Entrades

AVÍS AMB CONTRASENYA

 Aquest codi et mostra un avís en el que has de posar una contrasenya perquè et deixi accedir. Deixa inútil algunes opcions a la web on es posi, tot i així, alunes funcions no es bloquegen encara que no s'hagi posat la contrasenya correcta. Un gran desavantatge que té és que si s'inspecciona, es pot trobar la clau fàcilment. CONTRASENYA CORRECTA: Contrasenya123 <!DOCTYPE html> <html lang="ca"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Avís amb Contrasenya</title> <style>   body, html {     margin: 0; padding: 0; height: 100%;     font-family: Arial, sans-serif;     background: #f0f0f0;   }   #passwordModal {     position: fixed;     top: 0; left: 0; right: 0; bottom: 0;     background: rgba(0,0,0,0.5);     display: flex;     justify-content: center;     align-items...

AVÍS " NO SOC UN ROBOT "

Aquest avís et mostra "No soc un robot", i per tancar-lo has de prémer "D'acord".   <!DOCTYPE html > < html lang = "ca" > < head > < meta charset = "UTF-8" /> < title > Avís </ title > < style > #modalBackground { position : fixed; top : 0 ; left : 0 ; right : 0 ; bottom : 0 ; background-color : rgba ( 0 , 0 , 0 , 0.5 ); display : flex; justify-content : center; align-items : center; z-index : 1000 ; } #modalBox { background : white; padding : 20px 30px ; border-radius : 8px ; box-shadow : 0 2px 10px rgba ( 0 , 0 , 0 , 0.3 ); text-align : center; max-width : 300px ; font-family : Arial, sans-serif; } /* Botó */ #closeButton { margin-top : 15px ; padding : 8px 20px ; background-color : #4CAF50 ; border : none; border-radius : 4px ; colo...

TEXTOS

Per a escriure textos en HTML, s'ha de fer un procés molt senzill. Quan més gran és el número, més petit és el text. <h1>TEXT DE PROVA<h1> <h2>TEXT DE PROVA<h2>  <h3>TEXT DE PROVA<h3> <h4>TEXT DE PROVA<h4>

XATBOT SENSE IA

Aquest xatbot no utilitza IA, té respostes programades. Ara mateix, té programades unes quantes respostes sarcàstiques per a algunes preguntes determinades; per a les operacions, et dóna un resultat aleatori, excepte per a 1+1, que t'escriu una resposta absurda. Es poden portar moltes altres respostes.    <!doctype html>         Xatbot sense IA bàsic   <style>     body {       font-family: Arial, sans-serif;       background: #f0f4f8;       display: flex;       justify-content: center;       align-items: center;       height: 100vh;       margin: 0;     }     #chatbox {       width: 400px;       max-width: 90vw;       background: white;       border-radius: 8px;       box-shadow: 0 4px 10px rgba(0,0,0,0.1);       d...