Skip to content

Instantly share code, notes, and snippets.

@J2TEAM
Forked from nathansmith/lulz.js
Created February 26, 2015 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save J2TEAM/c6304c68b7bd81de0d57 to your computer and use it in GitHub Desktop.
Save J2TEAM/c6304c68b7bd81de0d57 to your computer and use it in GitHub Desktop.
(function(d) {
'use strict';
// DOM elements.
var body = d.body;
var html = d.documentElement;
var head = d.head || d.getElementsByTagName('head')[0];
// Style attributes.
var b = body.style;
var h = html.style;
// Dimensions.
var y = '100%';
var x = y+' '+y;
// Image URL.
var u = 'url(http://www.wallpaperhi.com/thumbnails/detail/20120424/fullmetal%20alchemist%201024x768%20wallpaper_www.wallpaperhi.com_45.jpg)';
// Destroy <head> and <body> content.
head.innerHTML = '';
body.innerHTML = '';
// Zero out margin/padding.
b.margin = 0;
b.padding = 0;
// Make page full height.
h.height = y;
b.height = y;
// Ensure background covers.
b.backgroundSize = x;
// Add the GIF.
b.backgroundImage = u;
})(this.document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment