<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<style>
body {
padding-top: 50px;
padding-bottom: 20px;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div id="main_row" class="col-md-8 col-md-offset-2">
<div id="one" class="col-md-4 section">
<h1>Кафе/Ресторан </h1>
<div id="one_two" class="col-md-12">
Второй этап
<span id="back_a" >Назад</span>
</div>
</div>
<div id="two" class="col-md-4 section">
<h1>Фастфуд/Столовая </h1>
<div id="two_two" class="col-md-12">
Второй этап
</div>
</div>
<div id="three" class="col-md-4 section">
<h1>Клуб</h1>
<div id="three_two" class="col-md-12">
Второй этап
</div>
</div>
</div>
</div>
</div>
</body>
</html>
var step = "1";
$('.section').hover(function() {
$(this).addClass('hover');
}, function() {
$(this).removeClass('hover');
});
$('#one').on("click", function() {
$("#one").removeClass("col-md-4");
$("#one").addClass("col-md-12");
$("#two").addClass("hiden");
$("#three").addClass("hiden");
step = "2";
});
$('#two').on("click", function() {
$("#two").removeClass("col-md-4");
$("#two").addClass("col-md-12");
$("#one").addClass("hiden");
$("#three").addClass("hiden");
step = "2";
});
$('#three').on("click", function() {
$("#three").removeClass("col-md-4");
$("#three").addClass("col-md-12");
$("#two").addClass("hiden");
$("#one").addClass("hiden");
step = "2";
});
$(function() {
$('#back_a').on("click", function(e){
e.stopPropagation();
console.log($('#one'));
$("#one").removeClass('col-md-12').addClass('col-md-4');
});
});
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. |