<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>
<link href="https://fonts.googleapis.com/css?family=Comfortaa" rel="stylesheet">
</head>
<body>
<div class="well centered" id="well">
<div>
<form><label>
<i class="fa fa-search icon" aria-hidden="true" id="magni"></i></label>
<span id="magniText"></span>
</form>
</div>
<br>
<div align="left">
<p><i class="fa fa-puzzle-piece icon" aria-hidden="true" id="jiggy"></i>
<span id="jiggyText"></span>
</p>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
</body>
</html>
.formstyle{
background-color: transparent;
border-style: none;
border-bottom: 2px dashed #c9dee8;
width: 70%;
}
.icon{
padding: 15px;
font-size: 50px !important;
}
.toggleMe{
width: 30%;
}
body {
background-image: url(https://scontent-sjc2-1.xx.fbcdn.net/v/t31.0-8/17015684_10155366851512439_600021915085029862_o.jpg?oh=40568a73e302093676ebfb8a1cc73c51&oe=593564D3);
background-repeat: no-repeat;
background-attachment: fixed;
background-color: #3d748f;
background-size: 100% 100%;
}
.well {
border-style: none;
background-color: rgba(64, 64, 64, 0.75);
color: #c9dee8;
font-size: 30px;
font-family: 'Comfortaa', cursive;
border-radius: 10px 10px 10px 10px;
box-shadow: 1px 2px 3px rgba(64, 64, 64, 0.75);
box-shadow: 1px 2px 3px rgba(64, 64, 64, 0.75);
box-shadow: 0px 0px 10px rgba(64, 64, 64, 0.75);
}
.centered {
position: fixed;
top: 55%;
left: 50%;
transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
* {
box-sizing: border-box;
box-sizing: border-box;
box-sizing: border-box;
}
var toggler = true;
var inputText ='';
var wellToggle = function(){
$("#well").toggleClass("toggleMe")
if (toggler === true){
$("#magniText").append('<input class="formstyle" type="text" name="wikiFind" placeholder="***">')
$("#jiggyText").text("Random Article")
$("input").val(inputText);
toggler = false;
} else {
inputText = $("input").val()
$("input").detach()
$("#jiggyText").text("")
toggler = true
}
};
$("#well").hover(wellToggle, wellToggle);
Output
300px
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. |