The MIT License (MIT)
Copyright (c) 2017
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Copyright (c) 2017
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
html,
body {
width: 100%;
height: 100%;
overflow-x: hidden;
background: -webkit-linear-gradient(SlateBlue, RoyalBlue);
background: linear-gradient(SlateBlue, RoyalBlue);
}
*,
*:before,
*:after {
box-sizing: border-box;
}
nav,
nav ul {
position: fixed;
width: 100%;
height: 100%;
padding: 0; margin: 0;
}
nav {
box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
opacity: 0;
-webkit-transform: scale(0.3);
transform: scale(0.3);
-webkit-transition: all 0.25s;
transition: all 0.25s;
}
nav ul li {
display: table;
width: 100%;
height: calc(100% /4);
border-bottom: 1px solid rgba(255,255,255,0.3);
background: rgba(255,255,255,0.15);
-webkit-perspective: 0px;
perspective: 0px;
-webkit-transform: rotateX(-90deg) scale(0.5);
transform: rotateX(-90deg) scale(0.5);
-webkit-transition: all 0.3s ease 0.1s;
transition: all 0.3s ease 0.1s;
}
nav ul li a {
display: table-cell;
vertical-align: middle;
text-align: center;
text-decoration: none;
font-size: 2.5em;
letter-spacing: 0.2em;
color: #fff;
text-shadow: 0 0 3px rgba(0,0,0,0.3);
font-family: 'Helvetica', sans-serif;
font-weight: 100;
}
nav ul li a:hover {
background: rgba(255,255,255,0.1);
}
#toggle {
display: none;
}
#toggle + #toggle-btn,
.nav-icon {
position: absolute;
top: 15px;
right: 15px;
border-radius: 3px;
cursor: pointer;
}
#toggle + #toggle-btn {
height: 40px;
width: 40px;
z-index: 1000;
background: rgba(0,0,0,0.05);
}
.nav-icon,
.nav-icon:before,
.nav-icon:after {
position: absolute;
height: 4px;
width: 40px;
margin: 18px 0;
z-index: 900;
border-radius: 3px;
background: #fff;
-webkit-transition: all 0.25s;
transition: all 0.25s;
}
.nav-icon:before {
content: "";
margin-top: -18px;
}
.nav-icon:after {
content: "";
margin-top: 18px;
}
#toggle:checked ~ nav {
opacity: 1;
-webkit-transform: scale(0.8);
transform: scale(0.8);
}
#toggle:checked ~ .nav-icon {
background: rgba(255,0,0,0);
}
#toggle:checked ~ .nav-icon:before {
-webkit-transform: rotate(-225deg);
transform: rotate(-225deg);
margin-top: 0;
}
#toggle:checked ~ .nav-icon:after {
-webkit-transform: rotate(225deg);
transform: rotate(225deg);
margin-top: 0;
}
#toggle:checked ~ nav ul li {
-webkit-transform: rotateY(0deg) scale(1);
transform: rotateY(0deg) scale(1);
}
$(document).ready(function(){
$(document).ready(function(){
$("input").keyup(function(){
var val01 = $("#username").val();
var val02 = $("#email").val();
var val03 = $("#password").val();
var val04 = $("#password2").val();
// check if each input has at least one character
// if yes, we display the CAPTCHA
if(val01 != "" && val02 != "" && val03 != "" && val04 != "") {
$("#captcontainer").slideDown(450);
}
});
$("#signup").submit(function(e){
e.preventDefault();
var usercaptchaval = $("#captcha").val();
if(usercaptchaval == "") {
usercaptchaval = "None!";
}
$.ajax({
url: "session-check.php",
cache: false
}).done(function(newstr) {
var captchasolve = newstr;
var newhtml = "CAPTCHA Value: "+newstr+"
";
newhtml += "Entered Text: "+usercaptchaval+"
";
$("#submitresults").html(newhtml);
});
});
});
});