fix syn2cat links color and location

master
Eran Goldman-Malka 2017-11-08 11:45:54 +01:00
parent da2df3cf4d
commit 22090f158f
2 changed files with 118 additions and 102 deletions

View File

@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Level2 decrypt challenge</title> <title>Level2 decrypt challenge</title>
@ -13,9 +14,10 @@
<script src="bootstrap/respond.min.js"></script> <script src="bootstrap/respond.min.js"></script>
<![endif]--> <![endif]-->
</head> </head>
<body>
<div class="container">
<body>
<div class="wrap">
<div class="container">
<div class="page-header" id="banner"> <div class="page-header" id="banner">
<div class="row"> <div class="row">
<div class="col-lg-6 col-lg-offset-6" id="mainDiv"> <div class="col-lg-6 col-lg-offset-6" id="mainDiv">
@ -35,11 +37,19 @@
</div> </div>
</div> </div>
</form> </form>
This page made by <a href=https://syn2cat.lu/>Syn2Cat</a>, the a.s.b.l. running the <a href=https://level2.lu/>Level2</a> hackerspace.
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="footer">
<div class="row">
<div class="col-lg-4 col-lg-offset-8">
<p class="text-muted credit"> This page made by <a href=https://syn2cat.lu/>Syn2Cat</a>, the a.s.b.l. running the <a href=https://level2.lu/>Level2</a> hackerspace.</p>
</div>
</div>
</div>
@ -71,8 +81,7 @@
var dec = $("#dec").val(); var dec = $("#dec").val();
var result = ""; //caesarShift(enc,-12); var result = ""; //caesarShift(enc,-12);
var succeed = false; var succeed = false;
for (var i = 1; i <26; i++) for (var i = 1; i < 26; i++) {
{
result = caesarShift(enc, i); result = caesarShift(enc, i);
if (result === dec) { if (result === dec) {
$("#mainDiv").empty().append("<h1 class='text-success'>Congratulations, you made it!</h1><h3><a href='./index.html'>click here to<br>Try another code</a></h3>"); $("#mainDiv").empty().append("<h1 class='text-success'>Congratulations, you made it!</h1><h3><a href='./index.html'>click here to<br>Try another code</a></h3>");
@ -83,7 +92,7 @@
} }
}); });
}); });
</script> </script>
</body> </body>
</html> </html>

View File

@ -9,21 +9,28 @@ body {
color:#fff; color:#fff;
background-color:#333; background-color:#333;
font-family: 'Open Sans',Arial,Helvetica,Sans-Serif; font-family: 'Open Sans',Arial,Helvetica,Sans-Serif;
height: 100%;
}
/* Sticky footer styles
-------------------------------------------------- */
/* Wrapper for page content to push down footer */
.wrap {
min-height: 100%;
height: auto !important;
height: 100%;
/* Negative indent footer by its height */
margin: 0 auto -60px;
/* Pad bottom by footer height */
padding: 0 0 60px;
} }
a:link, a:visited { /* Set the fixed height of the footer here */
color:#eee; .footer {
} height: 60px;
background-color: #00000000;
.block { position: absolute;
background-color:rgba(0,0,0,0.2); left: 0;
height:370px; bottom: 0;
padding-left:12px;
padding-right:12px;
}
.block-sm {
height:180px;
} }
.btn-flat { .btn-flat {