File size: 74,325 Bytes
265e2c6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html><html lang="pt-BR">
  <head>
    <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Jornal Oliveira</title>
          <style>
              body {
                    font-family: Arial, sans-serif;
                          background-color: #ffffff;
                                margin: 0;
                                      padding: 0;
                                          }
                                              header {
                                                    background-color: #388e3c;
                                                          padding: 15px;
                                                                color: white;
                                                                      text-align: center;
                                                                            font-size: 24px;
                                                                                  font-weight: bold;
                                                                                      }
                                                                                          nav {
                                                                                                background-color: #66bb6a;
                                                                                                      padding: 10px;
                                                                                                            display: flex;
                                                                                                                  justify-content: center;
                                                                                                                      }
                                                                                                                          nav button {
                                                                                                                                margin: 0 10px;
                                                                                                                                      background-color: #66bb6a;
                                                                                                                                            color: white;
                                                                                                                                                  border: none;
                                                                                                                                                        font-size: 16px;
                                                                                                                                                              cursor: pointer;
                                                                                                                                                                  }
                                                                                                                                                                      main {
                                                                                                                                                                            padding: 20px;
                                                                                                                                                                                  color: black;
                                                                                                                                                                                      }
                                                                                                                                                                                          .materia {
                                                                                                                                                                                                margin-bottom: 20px;
                                                                                                                                                                                                      border-bottom: 1px solid #ccc;
                                                                                                                                                                                                            padding-bottom: 10px;
                                                                                                                                                                                                                }
                                                                                                                                                                                                                    .ler-mais {
                                                                                                                                                                                                                          color: #2196f3;
                                                                                                                                                                                                                                cursor: pointer;
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                        .termo {
                                                                                                                                                                                                                                              font-size: 12px;
                                                                                                                                                                                                                                                    margin-top: 10px;
                                                                                                                                                                                                                                                          color: #333;
                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                  .termo strong {
                                                                                                                                                                                                                                                                        color: red;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                              </style>
                                                                                                                                                                                                                                                                              </head>
                                                                                                                                                                                                                                                                              <body>
                                                                                                                                                                                                                                                                                <header>Jornal Oliveira</header>
                                                                                                                                                                                                                                                                                  <nav>
                                                                                                                                                                                                                                                                                      <button onclick="mostrarPagina('inicio')">Início</button>
                                                                                                                                                                                                                                                                                          <button onclick="mostrarPagina('avaliar')">Avaliar</button>
                                                                                                                                                                                                                                                                                              <button onclick="mostrarPagina('sugestoes')">Sugestões</button>
                                                                                                                                                                                                                                                                                                  <button onclick="mostrarPagina('participe')">Participe</button>
                                                                                                                                                                                                                                                                                                      <button onclick="mostrarPagina('login')">Login</button>
                                                                                                                                                                                                                                                                                                        </nav>  <main id="conteudo">
                                                                                                                                                                                                                                                                                                            <section id="inicio">
                                                                                                                                                                                                                                                                                                                  <h2>Últimas matérias</h2>
                                                                                                                                                                                                                                                                                                                        <div class="materia">
                                                                                                                                                                                                                                                                                                                                <h3>Título da Matéria</h3>
                                                                                                                                                                                                                                                                                                                                        <p>Resumo breve da matéria...</p>
                                                                                                                                                                                                                                                                                                                                                <span class="ler-mais" onclick="toggleTexto(this)">Leia mais</span>
                                                                                                                                                                                                                                                                                                                                                        <div class="texto-completo" style="display: none;">
                                                                                                                                                                                                                                                                                                                                                                  <p>Conteúdo completo da matéria...</p>
                                                                                                                                                                                                                                                                                                                                                                            <span class="ler-mais" onclick="toggleTexto(this)">Ler menos</span>
                                                                                                                                                                                                                                                                                                                                                                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                          </div>
                                                                                                                                                                                                                                                                                                                                                                                              </section><section id="avaliar" style="display: none;">
                                                                                                                                                                                                                                                                                                                                                                                                <h2>Avalie o Jornal</h2>
                                                                                                                                                                                                                                                                                                                                                                                                  <label for="nota">Nota (1 a 5):</label>
                                                                                                                                                                                                                                                                                                                                                                                                    <input type="number" id="nota" min="1" max="5"><br>
                                                                                                                                                                                                                                                                                                                                                                                                      <label for="comentario">Comentário (obrigatório):</label><br>
                                                                                                                                                                                                                                                                                                                                                                                                        <textarea id="comentario" required></textarea><br>
                                                                                                                                                                                                                                                                                                                                                                                                          <button onclick="enviarAvaliacao()">Enviar</button>
                                                                                                                                                                                                                                                                                                                                                                                                          </section>

                                                                                                                                                                                                                                                                                                                                                                                                          <section id="sugestoes" style="display: none;">
                                                                                                                                                                                                                                                                                                                                                                                                            <h2>Envie sua sugestão</h2>
                                                                                                                                                                                                                                                                                                                                                                                                              <textarea id="sugestaoTexto" placeholder="Digite sua sugestão..."></textarea><br>
                                                                                                                                                                                                                                                                                                                                                                                                                <button onclick="enviarSugestao()">Enviar</button>
                                                                                                                                                                                                                                                                                                                                                                                                                </section>

                                                                                                                                                                                                                                                                                                                                                                                                                <section id="participe" style="display: none;">
                                                                                                                                                                                                                                                                                                                                                                                                                  <h2>Participe</h2>
                                                                                                                                                                                                                                                                                                                                                                                                                    <input type="text" id="nomeCompleto" placeholder="Nome completo" required><br>
                                                                                                                                                                                                                                                                                                                                                                                                                      <input type="text" id="serie" placeholder="Série" required><br>
                                                                                                                                                                                                                                                                                                                                                                                                                        <select id="periodo">
                                                                                                                                                                                                                                                                                                                                                                                                                            <option value="manha">Manhã</option>
                                                                                                                                                                                                                                                                                                                                                                                                                                <option value="tarde">Tarde</option>
                                                                                                                                                                                                                                                                                                                                                                                                                                    <option value="noite">Noite</option>
                                                                                                                                                                                                                                                                                                                                                                                                                                      </select><br>
                                                                                                                                                                                                                                                                                                                                                                                                                                        <input type="text" id="ra" placeholder="RA (ex: 0001234567)" required><br>
                                                                                                                                                                                                                                                                                                                                                                                                                                          <div class="termo">
                                                                                                                                                                                                                                                                                                                                                                                                                                              <p><strong>TERMO DE CONDIÇÃO DE PARTICIPAÇÃO – JORNAL OLIVEIRA</strong><br><br>
                                                                                                                                                                                                                                                                                                                                                                                                                                                    Prezado(a) estudante,<br><br>
                                                                                                                                                                                                                                                                                                                                                                                                                                                          Para fins de organização e reconhecimento dos participantes do Jornal Oliveira, solicitamos que os novos integrantes forneçam o seu RA (Registro do Aluno) no momento da inscrição. Essa informação será utilizada exclusivamente para identificação interna no âmbito do projeto.<br><br>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                O Jornal Oliveira compromete-se a utilizar o RA apenas para os fins aqui descritos, não realizando qualquer tipo de divulgação ou compartilhamento não autorizado. <strong>Contudo, ao fornecer essa informação, o participante declara estar ciente de que a organização não se responsabiliza por eventuais vazamentos ou acessos indevidos que ocorram por fatores externos ou alheios à sua vontade.</strong><br><br>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Ao assinalar a opção abaixo, o(a) participante declara estar de acordo com os termos apresentados e autoriza expressamente o uso do seu RA para os fins descritos.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          </p>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              <input type="checkbox" id="aceito"> [ ] Declaro que li e concordo com os termos acima para participar do Jornal Oliveira.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  <button onclick="enviarParticipacao()">Enviar</button>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  </section>

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  <section id="login" style="display: none;">
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <h2>Login</h2>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      <input type="password" id="codigoAcesso" placeholder="Código de acesso"><br>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <button onclick="verificarCodigo()">Entrar</button>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          <div id="acessoExtra"></div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          </section>

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </main>  <script>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                function mostrarPagina(id) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      document.querySelectorAll('main > section').forEach(sec => sec.style.display = 'none');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            document.getElementById(id).style.display = 'block';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    function toggleTexto(el) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          const container = el.parentElement;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                const text = container.querySelector('.texto-completo');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      if (text && text.style.display === 'none') {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              text.style.display = 'block';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      el.style.display = 'none';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    text.style.display = 'none';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            container.querySelector('.ler-mais').style.display = 'inline';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          function enviarAvaliacao() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                const nota = document.getElementById('nota').value;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      const comentario = document.getElementById('comentario').value.trim();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            if (nota >= 1 && nota <= 5 && comentario.length > 0) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    alert('Avaliação enviada com sucesso.');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  alert('Preencha a nota (1 a 5) e o comentário obrigatoriamente.');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                function enviarSugestao() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      const texto = document.getElementById('sugestaoTexto').value.trim();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            if (texto.length >= 10) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    alert('Sugestão enviada com sucesso.');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  alert('A sugestão deve ter no mínimo 10 palavras.');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                function enviarParticipacao() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      const nome = document.getElementById('nomeCompleto').value.trim();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            const serie = document.getElementById('serie').value.trim();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  const ra = document.getElementById('ra').value.trim();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        const aceito = document.getElementById('aceito').checked;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              if (nome && serie && ra.startsWith('000') && aceito) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      alert('Inscrição enviada com sucesso.');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    alert('Preencha todos os campos corretamente e aceite os termos.');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  function verificarCodigo() {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        const codigo = document.getElementById('codigoAcesso').value;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              const acessoExtra = document.getElementById('acessoExtra');
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    if (codigo === 'BRJORNAL') {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            acessoExtra.innerHTML = '<button>Enviar Matéria</button>';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  } else if (codigo === 'BRJORNALEDITOR') {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          acessoExtra.innerHTML = '<button>Ver Avaliações</button><button>Ver Sugestões</button><button>Ver Participações</button>';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        acessoExtra.innerHTML = 'Código inválido.';
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    </script><p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Rwhehhehe/ok" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    </html>