-
-
Save J2TEAM/c6304c68b7bd81de0d57 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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