Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="IFrame orientation: Child">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
  <title>IFrame orientation: Child</title>
</head>
<body>
  IFrame orientation: Child
  
  <div id="ruller"></div>
  
  <pre id=logger></pre>
  
</body>
</html>
 
function log(m) {
  logger.textContent += '\n' + m;
}
log('START');
window.addEventListener('resize', function() {
  log('resized to ' + window.innerWidth);
  ruller.style.width = (window.innerWidth - 10) + 'px';
});
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
dvoytenkopro
0viewers