first commit
This commit is contained in:
commit
b8457bb86b
11 changed files with 252 additions and 0 deletions
BIN
VG5000-Regular_web.ttf
Normal file
BIN
VG5000-Regular_web.ttf
Normal file
Binary file not shown.
22
favicon.svg
Normal file
22
favicon.svg
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
version="1.1"
|
||||
id="svg2"
|
||||
width="316.88806"
|
||||
height="403.48761"
|
||||
viewBox="0 0 316.88806 403.48761"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs6" />
|
||||
<g
|
||||
id="g8"
|
||||
transform="translate(-1336.2683,-983.10866)">
|
||||
<path
|
||||
style="fill:#ffffff;stroke-width:1.33333"
|
||||
d="m 1437.4177,1380.7067 c -9.9352,-7.6895 -11.072,-9.3436 -8.9512,-13.0248 6.3769,-11.0689 6.1237,-10.0198 3.9689,-16.4398 -1.1069,-3.2977 -2.8457,-6.4756 -3.8641,-7.0621 -1.0183,-0.5864 -1.8705,-1.7864 -1.8939,-2.6667 -0.1482,-5.5935 -3.761,-6.6686 -8.0378,-2.3919 l -4.2088,4.2088 -5.5222,-3.2057 c -3.0372,-1.7631 -8.9721,-5.1393 -13.1888,-7.5026 -9.1338,-5.1192 -9.0112,-4.3474 -2.2297,-14.0284 14.8007,-21.1286 15.0568,-21.2554 25.6645,-12.7092 29.3499,23.6463 23.4518,25.0027 54.7375,-12.5885 18.548,-22.2861 18.3237,-19.3641 1.8277,-23.8183 -36.6332,-9.8916 -58.989,-17.5624 -59.3972,-20.3807 -0.7638,-5.2751 4.9532,-17.8505 8.1152,-17.8505 6.433,0 67.5308,13.7651 74.9487,16.8857 4.4,1.851 11.072,3.905 14.8265,4.5645 13.2976,2.3356 38.2114,11.9873 53.2882,20.644 18.2952,10.5046 15.881,10.7243 26.668,-2.4276 10.9364,-13.3342 33.8373,-37 35.8041,-37 1.452,0 22.3975,18.231 23.176,20.1725 0.4521,1.1276 -20.9049,26.5016 -22.2913,26.4839 -0.4427,-0.01 -2.1727,-2.4056 -3.8447,-5.3333 -3.9907,-6.9882 -4.0985,-6.9496 -12.9713,4.6347 l -7.6271,9.9578 4.0635,3.4192 c 11.1096,9.3481 7.0069,23.6736 -9.1766,32.0423 -7.4788,3.8675 -14.582,-1.9986 -14.582,-12.0423 0,-5.639 0,-5.639 -5.9781,-6.4584 -3.288,-0.4506 -14.238,-4.3612 -24.3333,-8.6902 -10.0954,-4.329 -23.364,-9.8839 -29.4859,-12.3442 l -11.1305,-4.4733 -2.8695,3.4287 c -1.5781,1.8857 -8.2693,9.9713 -14.8693,17.9678 -6.6,7.9966 -19.95,22.7833 -29.6667,32.8594 -20.4416,21.1978 -19.0627,18.4546 -12.3333,24.534 6.2512,5.6477 6.2694,5.775 2.1013,14.7272 -6.5831,14.1385 -9.1553,14.8714 -20.7368,5.908 z m 86.1807,-129.4814 c -10.4054,-3.2657 -10.3618,-2.7203 -1.014,-12.713 4.5304,-4.8432 13.8312,-15.5093 20.6682,-23.7025 26.167,-31.3573 37.9246,-38.7723 42.8368,-27.0156 3.4606,8.282 -0.4461,15.7054 -19.291,36.6574 -12.7076,14.1282 -30.0415,29.499 -33.087,29.3397 -1.2788,-0.067 -5.8296,-1.2216 -10.113,-2.566 z m -20.2119,-8.6338 c -1.4667,-1.0165 -12.3608,-4.2778 -24.2091,-7.2473 -45.1137,-11.3065 -56.4576,-17.313 -56.4576,-29.894 0,-7.0863 -1.1044,-7.4217 -21.8392,-6.6324 l -18.8274,0.7167 -5.7394,-7.4703 c -6.8292,-8.8888 -8.7446,-9.5271 -20.9122,-6.9691 -5.1251,1.0774 -9.3703,1.8522 -9.4336,1.7217 -0.5804,-1.1947 -8.5647,-23.6187 -9.2462,-25.9679 -1.3588,-4.6836 1.2705,-6.5953 12.439,-9.0436 5.6241,-1.2329 10.3554,-2.3428 10.514,-2.4665 0.3189,-0.2485 -14.8146,-70.2699 -20.1917,-93.4259 -8.1016,-34.8887 -7.5264,-35.2728 83.9034,-56.02468 21.2667,-4.82689 45.8667,-10.60552 54.6667,-12.84136 34.1278,-8.67101 41.6992,-4.44946 48.6584,27.13054 2.1496,9.7546 8.325,32.4355 13.7233,50.4022 11.4255,38.0271 8.6319,35.2113 30.5076,30.7497 7.4485,-1.5192 13.6936,-2.6093 13.8781,-2.4226 0.693,0.7015 3.2326,21.4062 3.2326,26.3544 0,5.1427 -0.016,5.1571 -6.3334,5.9988 -18.926,2.521 -18.7316,2.3177 -14.9329,15.6133 3.1181,10.9138 -3.6464,18.6557 -26.4004,30.2151 -5.2095,2.6466 -7.4784,5.4913 -4.3797,5.4913 0.7078,0 3.4078,1.8622 6,4.1381 10.5656,9.2767 6.266,18.5858 -25.6471,55.5286 -7.5807,8.7755 -8.6864,9.3163 -12.9732,6.3452 z m -28.5351,-42.1436 c 2.3519,-2.3518 2.6551,-3.754 1.9002,-8.7882 -1.0488,-6.9942 -2.3911,-7.0543 16.6701,0.7463 14.7717,6.0452 13.8504,6.6925 16.0261,-11.2599 2.2774,-18.79 -5.1112,-29.9889 -29.0352,-44.0094 -22.0469,-12.9204 -37.0658,15.23 -26.1634,49.0391 5.3856,16.7014 12.9398,21.9346 20.6022,14.2721 z m -66.0593,-57.6604 c 25.5828,-10.8592 28.5875,-12.4589 28.6273,-15.2421 0.024,-1.6503 -10.3142,-44.8839 -11.4705,-47.97 -0.128,-0.3404 -25.7851,7.158 -44.8832,13.1172 -5.6765,1.7712 -10.3265,3.8833 -10.3333,4.6937 -0.013,1.3608 12.5774,48.434 13.9582,52.1933 0.9932,2.704 3.1854,2.0862 24.1015,-6.7921 z m 97.2325,-24.8327 c 28.2819,-4.7673 26.1991,-3.5727 23.9088,-13.7134 -10.1838,-45.0931 -10.3534,-45.5585 -15.9644,-43.8096 -2.1537,0.6714 -11.1158,2.853 -19.9158,4.8482 -23.1962,5.2591 -32.6667,8.375 -32.6667,10.7475 0,5.2427 16.7445,45.8561 18.912,45.8705 1.2349,0.01 12.8117,-1.7662 25.7261,-3.9432 z"
|
||||
id="path2120" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 4.3 KiB |
58
index.html
Normal file
58
index.html
Normal file
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="Apprendre la programmation et la cybersécurité en s'amusant.">
|
||||
<link rel="shortcut icon" href="favicon.svg">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<title>Peer-at-Code</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container my-3">
|
||||
<div id="content">
|
||||
<div class="landing v-align">
|
||||
<div>
|
||||
<h1>Bienvenue sur:</h1>
|
||||
<span>
|
||||
<div id="screen"><b id="prompt" class="idle">▮</b></div>
|
||||
</span></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="landing v-align">
|
||||
<div>
|
||||
<p class="lead">Event</p>
|
||||
<h1>- Team BATTLE -</h1>
|
||||
<p class="h4">Grand concours de programmation et cybersécurité en équipe</p>
|
||||
<p class="h4">sur le campus Guillemins d'HELMo</p>
|
||||
<p class="h4">le 26 avril de 15h30 à 18h</p>
|
||||
<p class="h4">pour TOUS (B1, B2, B3, Info, Sécu, Prof)</p>
|
||||
<p>Bloque ton agenda et <a href="https://framaforms.org/inscription-team-battles-info-secu-1679950176">inscris-toi ici</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="landing v-align">
|
||||
<div>
|
||||
<h1>Je suis Philipz ‘Cipher Wolf’ Barlow,</h1>
|
||||
<p class="lead">BIP BZZ BIIIP, HIIP, HELIP, HELLO</p>
|
||||
<p>une intelligence artificielle développée par des étudiants d’HELMO<br>dans le but de te donner l’envie de coder.</p>
|
||||
<p><i>Je vais faire de toi un bon développeur !</i></p>
|
||||
<p class="lead">Bzzzz, Crrrr, Pshiiit...</p>
|
||||
</div>
|
||||
</div>
|
||||
<p>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.</p>
|
||||
<p>Il me reste peu de temps pour faire de toi un développeur épanoui et compétent.</p>
|
||||
<p>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 !</p>
|
||||
<p>J’oganiserai régulièrement des battles de programmation et cybersécurité afin que toi et tes camarades puissiez prouver votre valeur !</p>
|
||||
<p>Alors prêt à me suivre ? A ton clavier est c’est part…BIP...BOP...CRRRRK…</p>
|
||||
</div>
|
||||
</div>
|
||||
<img src="peerat.webp" />
|
||||
<img id="red" class="signal" src="signal-red.webp" />
|
||||
<img id="orange" class="signal" src="signal-orange.webp" />
|
||||
<img id="green" class="signal" src="signal-green.webp" />
|
||||
<img id="hide" class="signal" src="pacBcei%7B516N41H1DD3N%7D.webp" />
|
||||
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
BIN
peerat.webp
Normal file
BIN
peerat.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 214 KiB |
3
robots.txt
Normal file
3
robots.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
User-agent: *
|
||||
|
||||
Disallow: /wdfsdg94km9m2wfsdflm2d0/noT9.txt
|
87
script.js
Normal file
87
script.js
Normal file
|
@ -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 `<br>`
|
||||
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);
|
||||
};
|
BIN
signal-green.webp
Normal file
BIN
signal-green.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.5 KiB |
BIN
signal-orange.webp
Normal file
BIN
signal-orange.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.4 KiB |
BIN
signal-red.webp
Normal file
BIN
signal-red.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.4 KiB |
76
style.css
Normal file
76
style.css
Normal file
|
@ -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
|
||||
}
|
6
wdfsdg94km9m2wfsdflm2d0/noT9.txt
Normal file
6
wdfsdg94km9m2wfsdflm2d0/noT9.txt
Normal file
|
@ -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 !
|
Loading…
Add table
Reference in a new issue