<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div class="container">
<h2>С классом .row (<small>чтобы не было промежутков у первой и послдней колонок</small>)</h2>
<div class="row">
<div class="col-6">Шон Леви, удачно показывавший себя и в комедии, и в экшне, продемонстрирует наработанные в двух жанрах навыки и возьмется за постановку приключенческого проекта «Сорок разбойников», основанного на популярной восточной сказке об Али-Бабе. На главную роль в картине студии 20th Century Fox претендуют Лиам Хемсворт, Дэн Стивенс и Эван Питерс.</div>
<div class="col-6">Сразу два проекта из киновселенной DC напомнили о себе на этой неделе. Студия Warner рассматривает Джая Кортни на роль Дэдшота в «Отряде самоубийц», а также определяется с постановщиком грядущей «Чудо-женщины». В качестве фаворита имеется в виду Мишель МакЛарен, ответственная за «Игру престолов» и «Во все тяжкие».</div>
</div>
<h2>Без класса .row</h2>
<div class="col-6">Шон Леви, удачно показывавший себя и в комедии, и в экшне, продемонстрирует наработанные в двух жанрах навыки и возьмется за постановку приключенческого проекта «Сорок разбойников», основанного на популярной восточной сказке об Али-Бабе. На главную роль в картине студии 20th Century Fox претендуют Лиам Хемсворт, Дэн Стивенс и Эван Питерс.</div>
<div class="col-6">Сразу два проекта из киновселенной DC напомнили о себе на этой неделе. Студия Warner рассматривает Джая Кортни на роль Дэдшота в «Отряде самоубийц», а также определяется с постановщиком грядущей «Чудо-женщины». В качестве фаворита имеется в виду Мишель МакЛарен, ответственная за «Игру престолов» и «Во все тяжкие».</div>
</div>
</body>
</html>
body {
margin: 0;
}
.container {
width: 600px;
margin: auto;
background-color: #CEF495;
overflow: hidden;
}
.row {
margin: 0 -15px;
}
.row:before,
.row:after {
content: " ";
display: table;
width: 100%;
}
.row:after {
clear: both;
}
.col-6 {
padding: 0 15px;
float: left;
width: 50%;
background-color: #CCE2FC;
background-clip: content-box;
background-clip: content-box ;
box-sizing: border-box;
box-sizing: border-box;
box-sizing: border-box;
}
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. |