middleman/middleman-core/fixtures/relative-assets-app/source/javascripts/application.js

8 lines
214 B
JavaScript
Raw Normal View History

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;