<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<ul class="main-menu">
<a href="#">
<li>Главное меню 1
<ul class="second-main-menu">
<a href="#">
<li>Второе меню первого пункта 1
<ul class="third-main-menu">
<a href="#">
<li>Третье меню 1 пункта</li>
</a>
<a href="#">
<li>Третье меню 1 пункта</li>
</a>
<a href="#">
<li>Третье меню 1 пункта</li>
</a> <a href="#">
<li>Третье меню 1 пункта</li>
</a>
<a href="#">
<li>Третье меню 1 пункта</li>
</a>
<a href="#">
<li>Третье меню 1 пункта</li>
</a> <a href="#">
<li>Третье меню 1 пункта</li>
</a>
<a href="#">
<li>Третье меню 1 пункта</li>
</a>
<a href="#">
<li>Третье меню 1 пункта</li>
</a>
</ul>
</li>
</a>
<a href="#">
<li>Второе меню первого пункта 2
<ul class="third-main-menu">
<a href="#">
<li>Третье меню 2 пункта</li>
</a>
<a href="#">
<li>Третье меню 2 пункта</li>
</a>
<a href="#">
<li>Третье меню 2 пункта</li>
</a>
</ul>
</li>
</a>
<a href="#">
<li>Второе меню первого пункта 3
<ul class="third-main-menu">
<a href="#">
<li>Третье меню 3 пункта</li>
</a>
<a href="#">
<li>Третье меню 3 пункта</li>
</a>
<a href="#">
<li>Третье меню 3 пункта</li>
</a>
</ul>
</li>
</a>
<a href="#">
<li>Второе меню первого пункта 4
<ul class="third-main-menu">
<a href="#">
<li>Третье меню 4 пункта</li>
</a>
<a href="#">
<li>Третье меню 4 пункта</li>
</a>
<a href="#">
<li>Третье меню 4 пункта</li>
</a>
</ul>
</li>
</a>
<a href="#">
<li>Второе меню первого пункта 5
<ul class="third-main-menu">
<a href="#">
<li>Третье меню 5 пункта </li>
</a>
<a href="#">
<li>Третье меню 5 пункта </li>
</a>
<a href="#">
<li>Третье меню 5 пункта </li>
</a>
</ul>
</li>
</a>
<a href="#">
<li>Второе меню первого пункта 6
<ul class="third-main-menu">
<a href="#">
<li>Третье меню 5 пункта</li>
</a>
<a href="#">
<li>Третье меню 5 пункта</li>
</a>
<a href="#">
<li>Третье меню 5 пункта</li>
</a>
</ul>
</li>
</a>
</ul>
</li>
</a>
</body>
</html>
.main-menu{
background-color: #FFF;
width: 220px;
height: auto;
position: relative;
margin-left: 10px;
border: 1px solid #a6a6a6;
}
ul.main-menu>li>ul{
border: 1px solid #a6a6a6;
display: none;
}
ul.main-menu>li>ul>li>ul{
border: 1px solid #a6a6a6;
display: none;
margin-top: 0px;
}
ul.main-menu li {
height: 30px;
padding-left: 15px;
border-right: 6px solid transparent;
border-left: 3px solid transparent;
padding-top: 3px;
}
ul.main-menu li:hover {
font-family: Tahoma;
font-size: 14px;
color: #FFF;
text-decoration: none;
background-color: #4586f3;
border-right: 6px solid #1B5AC2;
border-left: 3px solid #1B5AC2;
}
.white-text-bgc:focus ul.second-main-menu li{
display: block;
}
.white-text-bgc:hover ul.second-main-menu li{
display: block;
}
ul.main-menu a{
text-decoration: none;
color: #6C6C6C;
}
ul.main-menu>li:hover>a{
color: #FFF!important;
}
ul.main-menu a:hover{
text-decoration: none;
}
ul.dropdown>li.mainLi:hover > ul {
display: none;
}
ul.main-menu>li:hover > ul {
display: block;
position: absolute;
left: 100%;
top: -1px;
width: 250px;
z-index: 3;
}
ul.third-main-menu {
top: -1px;
margin-left: 232px;
position: absolute;
width: 250px;
}
ul.main-menu>li:hover ul.main-menu>li>ul{
display: block;
}
ul.main-menu>li:hover>ul>li:hover ul{
display: block;
}
.white-text-bgc:hover ul.second-main-menu{
display: block;
}
.white-text-bgc{
background-color: #000;
}
.white-text-bgc2{
border: 1px solid #a6a6a6;
display: block;
background-color: #FFF;
}
ul.main-menu>li:hover a{
color: #000;
}
ul.second-main-menu li:hover {
color: #FFF;
text-decoration: none;
background-color: #efefef;
border:none;
font-weight: bold;
font-family: Tahoma;
font-size: 13px;
border: 1px solid #a6a6a6;
width: 250px;
}
ul.second-main-menu li{
border: none;
font-weight: bold;
font-family: Tahoma;
font-size: 13px;
line-height: 30px;
border: 1px solid transparent;
padding-top: 0;
}
ul.third-main-menu{
background-color: rgba(255,255,255,.8);
}
ul.third-main-menu li {
font-weight: normal;
border: 1px solid transparent;
opacity: 1;
}
ul.third-main-menu li:hover {
font-weight: normal;
color: #4a4a4a;
opacity: 1;
background-color: #efefef;
}
ul.second-main-menu li {
margin-left: -1px;
}
ul.main-menu>li img{
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. |