<html>
<head>
<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="" />
<title>JS Bin</title>
</head>
<body>
<form class="form">
<div class="input">
<label>Control Page width</label>
<input type="range" name="width" min="320" value="500" max="1366" step="10"><label id="widthAmt"></label>
</div>
<fieldset id="meta-toggles">
<legend>viewport meta</legend>
</fieldset>
</form>
<div id="content" style="width: 500px">
<h1>Safari not optimized for Pro screen?</h1>
<p>Is it just me or does Safari just kind of seem stretched out on the Pro when you are using the entire screen? It looks find when you run split view (of course it does since it is just the size of a regular iPad screen.</p>
<p>My hope was to be able to use Safari to run my electronic medical record (ideally with the backordered still pen for ordering tests). When I load my EMR it looks shockingly similar to when it was on the regular iPad...Stuff is nice and big, but I would LIKE to be able to zoom out further to see more data on the screen at once, but I feel like everything is TOO zoomed in.</p>
<p>I dropped dynamic text to it's smallest, no help. What I need is a selection similar to my Retina MBP 13" where I can do dynamic screen scaling and fit MORE on the screen...</p>
Is this just a product of an immature product/software development cycle?</p>
</div>
</body>
</html>
* {
box-sizing: border-box;
}
body {
padding: 0;
margin: 0;
font-family: sans-serif;
line-height: 1.35;
}
p {
margin-bottom: 1.5em;
}
#content {
margin: 0 auto;
border: 1px dotted #333;
padding: 0 3em;
background-color: #ffffec;
}
.input label, legend {
font-variant: small-caps;
}
.input label:first-child {
display: block;
}
.input input {
margin-right: 1em;
}
.input {
margin: 1em 0;
}
fieldset .input {
margin: 0;
}
.form {
padding: 0;
font-family: sans-serif;
display: block;
width: 320px;
margin: 0 auto 1em;
}
var $width = $('[name="width"]');
var metaToggles = [
{ key: 'width', value: 'device-width' },
{ key: 'maximum-scale', value: '1' },
{ key: 'user-scalable', value: 'no' }
];
function setup() {
var inputs = metaToggles.map(function (spec) {
return $('<div class="input"><input type="checkbox" name="'+spec.key+'"><label>'+[spec.key, spec.value].join('=')+'</label></div>');
});
$('#meta-toggles').append(inputs);
}
function sync() {
var data = {
width: $width.val()
};
$('#widthAmt').text(data.width);
$('#content').css({width: data.width });
var viewport = [];
metaToggles.forEach( function (spec) {
if ($('[name="'+spec.key+'"]').is(':checked')) {
viewport.push([spec.key, spec.value].join('='));
}
});
$('meta[name="viewport"]').attr('content', viewport.join(','));
}
$(function() {
setup();
$width.on('input', sync);
metaToggles.forEach( function(spec) {
$('[name="'+spec.key+'"]').on('change', sync);
});
sync();
});
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. |