<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Indie+Flower' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="50.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
var div = $("#tgemp");
startAnimation();
function startAnimation(){
div.animate({height: "100%", width: "100%"}, 3000, "swing");
div.css("background-color", "#99FF66");
}
document.getElementById("tt").style.opacity = "1";
});
});
</script>
</head>
<div id = "tgemp">
<p id = "tt"> A walk on the beach</p>
</div>
<body>
<h1>50 States Quiz</h1>
<div id="firstDiv" align="center">
<h2> Can you name all 50 states? </h2>
<p id = "timer"> 5:00 </p>
<button type="button" id = "time" onclick="Begin();"> Begin </button><br/><br/><br/><br/>
<input type="text" id = "tb" onInput="Verify()" enabled></input><br/><br/><br/>
</div><br/>
</body>
<center><img src="us.png" height = '50%' id = "img"></center>
</html>
body{
background-color: #ADD8E6;
background: linear-gradient(left, rgba(255,90,90,1),rgba(114,188,212,1));
background: linear-gradient(right, rgba(255,90,90,1),rgba(114,188,212,1));
background: linear-gradient(right, rgba(255,90,90,1),rgba(114,188,212,1));
background: linear-gradient(to right, rgba(255,90,90,1),rgba(114,188,212,1));
}
h1,h2,#timer{
font-family: 'Indie Flower',serif;
text-align: center;
color: white;
font-size: 325%;
}
h2,#timer{
font-size: 200%;
}
#time {
background: #65a9d7;
border: solid 0px #1e90ff;
border-radius: 50px;
border-radius: 50px;
border-radius: 50px;
color: #ffffff;
font-size: 130%;
font-family: 'Indie Flower',serif;
padding: 5px 15px;
}
#time:hover {
background: #c42f2f;
}
#time:active {
background: #FF9200;
border: solid 0px #1e90ff;
border-radius: 50px;
border-radius: 50px;
border-radius: 50px;
}
#time:focus{
outline:0 !important;
}
#tb {
background-color: #ADD8E6;
background: linear-gradient(right, rgba(255,90,90,1),rgba(114,188,212,1));
background: linear-gradient(left, rgba(255,90,90,1),rgba(114,188,212,1));
background: linear-gradient(left, rgba(255,90,90,1),rgba(114,188,212,1));
background: linear-gradient(to left, rgba(255,90,90,1),rgba(114,188,212,1));
border:3px solid #FF9200;
border-radius:10px;
height: 30px;
width: 200px;
text-align:center;
font-family: 'Indie Flower',serif;
color: white;
font-size: 125%;
outline:0 !important;
}
#tgemp{
font-family: 'Indie Flower',serif;
color: #99FF66;
width:0px;
height:0px;
position:absolute;
left:0px;
top:0px;
background-color:red;
}
#tt{
font-family: 'Indie Flower',serif;
color: white;
opacity:0;
position:absolute;
font-size: 400%;
text-align: center;
width: 100%;
}
#tt:after{
content: "";
display: inline-block;
width: 100%;
}
Output
You can jump to the latest bin by adding /latest
to your URL
Keyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |