<html>
<head>
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta name="description" content="" />
<meta name="author" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<!--<link rel="stylesheet" href="mobile/css/base.css" />
<link rel="stylesheet" href="mobile/css/skeleton.css" />
<link rel="stylesheet" href="mobile/css/layout.css" />--!>
<!-- CSS MENU -->
<link rel="stylesheet" href="mobile/css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="mobile/font-awesome/css/font-awesome.css" />
</head>
<body>
<form id="mainform" runat="server">
<div class="container">
<a id="touch-menu" class="mobile-menu" href="#"><i class="icon-reorder">AGROBIZSA</i></a>
<nav>
<ul class="menu">
<li><a href="#"><i class="icon-home"></i>Inicio</a></li>
<li><a id="sub-menu-anchor-1" href="#"><i class="icon-user"></i>Noticias</a>
<ul id="sub-menu-1" class="sub-menu">
<li><a href="#">Últimas Noticias</a></li>
<li><a href="#">Noticias Corporativas</a></li>
<li><a href="#">Ecoambiental</a></li>
<li><a href="#">Agropecuaria</a></li>
<li><a href="#">Innovación</a></li>
<li><a href="#">Agronomía</a></li>
<li><a href="#">Salud</a></li>
</ul>
</li>
<li><a id="sub-menu-anchor-2" href="#"><i class="icon-camera"></i>eBooks</a>
<ul id="sub-menu-2" class="sub-menu">
<li><a href="#">Sanidad Vegetal</a></li>
<li><a href="#">Medio Ambiente</a></li>
<li><a href="#">Social</a></li>
<li><a href="#">Suelos y Agua</a></li>
<li><a href="#">Producción Agrícola</a></li>
<li><a href="#">Gestión</a></li>
</ul>
</li>
<li><a href="#"><i class="icon-bullhorn"></i>Hoy en la Historia</a></li>
<li><a href="#"><i class="icon-envelope-alt"></i>Eventos</a></li>
</ul>
</nav>
</div>
<div class="container">
<asp:ContentPlaceHolder ID="empaquetador" runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</body>
</html>
$(document).ready(function () {
var touch = $('#touch-menu');
var menu = $('.menu');
var touchsub1 = $('#sub-menu-anchor-1');
var submenu1 = $('#sub-menu-1');
var touchsub2 = $('#sub-menu-anchor-2');
var submenu2 = $('#sub-menu-2');
var touchsub3 = $('#sub-menu-anchor-3');
var submenu3 = $('#sub-menu-2');
$(touch).on('click', function (e) {
e.preventDefault();
menu.slideToggle();
});
$(touchsub1).on('click', function (e) {
e.preventDefault();
submenu1.slideToggle();
});
$(touchsub2).on('click', function (e) {
e.preventDefault();
submenu2.slideToggle();
});
$(touchsub3).on('click', function (e) {
e.preventDefault();
submenu3.slideToggle();
});
touchsub1.trigger('click');
touchsub2.trigger('click');
touchsub3.trigger('click');
$(window).resize(function () {
var w = $(window).width();
if (w > 767 && menu.is(':hidden')) {
menu.removeAttr('style');
}
if (w > 767) {
$("#sub-menu-1").css('display:', 'none;');
$("#sub-menu-2").css('display', 'none');
$("#sub-menu-3").css('display', 'none');
}
});
});
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. |