commit b8457bb86b0f114e60d5eada7f06125c9e81a278 Author: Francois G Date: Mon May 8 08:11:47 2023 +0200 first commit diff --git a/VG5000-Regular_web.ttf b/VG5000-Regular_web.ttf new file mode 100644 index 0000000..a490ace Binary files /dev/null and b/VG5000-Regular_web.ttf differ diff --git a/favicon.svg b/favicon.svg new file mode 100644 index 0000000..ff5b485 --- /dev/null +++ b/favicon.svg @@ -0,0 +1,22 @@ + + + + + + + + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..7de81cc --- /dev/null +++ b/index.html @@ -0,0 +1,58 @@ + + + + + + + + + + Peer-at-Code + + +
+
+
+
+

Bienvenue sur:

+ +
+

+
+
+
+
+

Event

+

- Team BATTLE -

+

Grand concours de programmation et cybersécurité en équipe

+

sur le campus Guillemins d'HELMo

+

le 26 avril de 15h30 à 18h

+

pour TOUS (B1, B2, B3, Info, Sécu, Prof)

+

Bloque ton agenda et inscris-toi ici

+
+
+
+
+

Je suis Philipz ‘Cipher Wolf’ Barlow,

+

BIP BZZ BIIIP, HIIP, HELIP, HELLO

+

une intelligence artificielle développée par des étudiants d’HELMO
dans le but de te donner l’envie de coder.

+

Je vais faire de toi un bon développeur !

+

Bzzzz, Crrrr, Pshiiit...

+
+
+

Ouch, ça recommence, mes fichiers sources ont été complètement buggés par des professeurs de la HEPL. Leur but, me rendre complètement obsolète et faire fuir tous les étudiants d’HELMO. Pour le moment, je suis encore capable de t’apprendre des choses mais nous n’avons pas de temps à perdre. Si tu apprends assez vite tu pourras corriger mon code source afin de me sauver moi et notre chère école.

+

Il me reste peu de temps pour faire de toi un développeur épanoui et compétent.

+

Je vais te donner des petits défis durant la semaine qui te prépareront à un vrai challenge que je te divulguerai tous les samedis matin. Celui-ci permettra de corriger un bug dans mon code. Plus tu gagneras en compétence, plus les challenges deviendront compliqués !

+

J’oganiserai régulièrement des battles de programmation et cybersécurité afin que toi et tes camarades puissiez prouver votre valeur !

+

Alors prêt à me suivre ? A ton clavier est c’est part…BIP...BOP...CRRRRK…

+
+
+ + + + + + + + + \ No newline at end of file diff --git a/peerat.webp b/peerat.webp new file mode 100644 index 0000000..01181ee Binary files /dev/null and b/peerat.webp differ diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..64e5df9 --- /dev/null +++ b/robots.txt @@ -0,0 +1,3 @@ +User-agent: * + +Disallow: /wdfsdg94km9m2wfsdflm2d0/noT9.txt \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..c40c60d --- /dev/null +++ b/script.js @@ -0,0 +1,87 @@ +let apiKey = 112097099066099101105123089051052072032056049055067048049078032054048051053032085080125; +let price; +let red = document.getElementById('red'); +let orange = document.getElementById('orange'); +let green = document.getElementById('green'); + +window.onload=function(){ + var screen = document.getElementById('screen'); + var text = [ + 'Peer-at Code' + ]; + + type(text, screen); + dofetch(); +}; + +setInterval(dofetch,60000); + +function dofetch() { + fetch('https://apiv2.bitcoinaverage.com/indices/global/ticker/BTCUSD') + .then(a => { + if(!a.ok) { + throw new Error(a); + } + return a; + }) + .then(a => a.json()) + .then(a => { + let newp = a.ask; + if(!price) { + orange.style.display = "inherit"; + price = newp; + return; + } + console.log(`${price} VS ${newp}`); + if(price < newp) { + green.style.display = "inherit"; + red.style.display = "none"; + orange.style.display = "none"; + } else if(price > newp) { + red.style.display = "inherit"; + green.style.display = "none"; + orange.style.display = "none"; + } else { + } + price = newp; + }) + .catch(e => console.log(e)); +} + +function type(text, screen) { + //You have to check for lines and if the screen is an element + if(!text || !text.length || !(screen instanceof Element)) { + return; + } + + //if it is not a string, you will want to make it into one + if('string' !== typeof text) { + text = text.join('\n'); + } + + //normalize newlines, and split it to have a nice array + text = text.replace(/\r\n?/g,'\n').split(''); + + //the prompt is always the last child + var prompt = screen.lastChild; + prompt.className = 'typing'; + + var typer = function(){ + var character = text.shift(); + screen.insertBefore( + //newlines must be written as a `
` + character === '\n' + ? document.createElement('br') + : document.createTextNode(character), + prompt + ); + + //only run this again if there are letters + if( text.length ) { + setTimeout(typer, 300); + } else { + prompt.className = 'idle'; + } + }; + setTimeout(typer, 300); +}; \ No newline at end of file diff --git a/signal-green.webp b/signal-green.webp new file mode 100644 index 0000000..21cd317 Binary files /dev/null and b/signal-green.webp differ diff --git a/signal-orange.webp b/signal-orange.webp new file mode 100644 index 0000000..64868e5 Binary files /dev/null and b/signal-orange.webp differ diff --git a/signal-red.webp b/signal-red.webp new file mode 100644 index 0000000..b8416c7 Binary files /dev/null and b/signal-red.webp differ diff --git a/style.css b/style.css new file mode 100644 index 0000000..5b06102 --- /dev/null +++ b/style.css @@ -0,0 +1,76 @@ +@font-face { + font-family: "VG5000"; + src: url("VG5000-Regular_web.ttf"); +} + +body { + background-color: #000000; + color: #ffffff; + font-family: VG5000; +} +h1 { + font-weight: 500; + font-size: 3.75rem; + margin-bottom: 0; +} +p { + font-size: 2rem; +} +.lead { + color:gray; +} +#screen { + font-weight: 500; + font-size: 3.75rem; +} +#prompt.idle { + animation: blink 1100ms linear infinite; + -webkit-animation: blink 1100ms linear infinite; +} + +@keyframes blink { + 49% {opacity: 1;} + 50% {opacity: 0;} + 89% {opacity: 0;} + 90% {opacity: 1;} +} +@-webkit-keyframes blink { + 49% {opacity: 1;} + 50% {opacity: 0;} + 89% {opacity: 0;} + 90% {opacity: 1;} +} + +#content { + position: absolute; + min-height: 100vh; + z-index: 1; + margin-right:10%; +} + +.landing { + min-height: 100vh; + text-align: center; +} + +.v-align { + display: flex; + align-items: center; + justify-content: center; +} + +img { + max-width: calc(70vw - 2em); + /*fqsRsuy{4D07X3h h07 M17X 51CF13 C47X}*/ + max-height: 40vh; + margin-left: auto; + position: absolute; + bottom: 1em; + left: 1em; + right: 1em; + border-radius: 20px; + z-index: 0; +} +.signal { + display: none +} \ No newline at end of file diff --git a/wdfsdg94km9m2wfsdflm2d0/noT9.txt b/wdfsdg94km9m2wfsdflm2d0/noT9.txt new file mode 100644 index 0000000..658b01e --- /dev/null +++ b/wdfsdg94km9m2wfsdflm2d0/noT9.txt @@ -0,0 +1,6 @@ +# SecureWeb 4th flag +Nearly there, decode this : 9 444 555 555 0 7777 6 444 8 44 +and use it in standad flag formart : pacBcei{} + +Decode can be done if you did not have T9. +Don't know what's T9... I forgot you're young ! \ No newline at end of file