<html>
<head>
<link href="//da7xgjtj801h2.cloudfront.net/2014.3.1119/styles/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" />
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="//da7xgjtj801h2.cloudfront.net/2014.3.1119/js/kendo.all.min.js"></script>
<meta name="description" content="Mobile Layout" />
<meta charset="utf-8">
<title>Mobile Layout</title>
</head>
<body>
<div class="outer">
<div class="power button"></div>
<div class="volumeup button"></div>
<div class="volumedown button"></div>
<div class="bezel">
<div class="top">
<div class="earphone"></div>
<div class="fcamera"></div>
</div>
<div class="main">
<div class="content">
<div id="container">
<div id="listPage" data-role="view" data-title="Headlines" data-model="viewModel" data-layout="defaultLayout">
<ul id="headLines" data-role="listview" data-style="inset" data-template="headlineTemplate" data-bind="source: newsItems"></ul>
<ul id="headlineActions" data-role="actionsheet">
<li class="km-actionsheet-title">Select Action</li>
<li><a href="#" data-action="viewModel.selectHeadline">View Story</a></li>
<li><a href="#" data-action="viewModel.markAsRead">Mark as Read</a></li>
</ul>
</div>
<script id="headlineTemplate" type="text/x-kendo-template">
<a data-rel="actionsheet" href="\\#headlineActions" data-actionsheet-context="#=id#">#=title#</a>
</script>
<div id="detailsPage" data-role="view" data-title="News Story Details" data-model="viewModel" data-layout="detailLayout">
<h2 class="articleTitle" data-bind="text: selectedStory.title"></h2>
<h3 class="articleAuthorDate">
by <span class="articleAuthor" data-bind="text: selectedStory.author.name"></span> on <span class="articleDate" data-bind="text: selectedStory.dateString"></span>
</h3>
<div class="articleContent" data-bind="html: selectedStory.content"></div>
</div>
<div data-id="defaultLayout" data-role="layout">
<div data-role="header">
<div data-role="navbar">
<span data-role="view-title"></span>
</div>
</div>
<div data-role="footer">
</div>
</div>
<div data-id="detailLayout" data-role="layout">
<div data-role="header">
<div data-role="navbar">
<span data-role="view-title"></span>
</div>
</div>
<div data-role="footer">
<div data-role="tabstrip">
<a href="#" data-icon="home">Headlines</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="bottom">
<ul>
<li><span>◁</span></li>
<li><span>○</span></li>
<li><span>□</span></li>
</ul>
</div>
</div>
</div>
</body>
</html>
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. |