middleman/middleman-core/fixtures/asset-hash-app/source/javascripts/application.js
2013-05-09 14:41:26 -07:00

8 lines
No EOL
214 B
JavaScript

function foo() {
var img = document.createElement('img');
img.src = '/images/100px.jpg';
var body = document.getElementsByTagName('body')[0];
body.insertBefore(img, body.firstChild);
}
window.onload = foo;