Skip to content

Instantly share code, notes, and snippets.

@dlwr
Created November 24, 2013 13:13
Show Gist options
  • Save dlwr/7627140 to your computer and use it in GitHub Desktop.
Save dlwr/7627140 to your computer and use it in GitHub Desktop.
var wrap = document.createElement('div');
wrap.style.backgroundColor = 'rgba(255,250,255, 0.7)';
wrap.style.color = '#000';
wrap.style.display = 'table';
wrap.style.fontSize ='90px';
wrap.style.height = '100%';
wrap.style.left = '0';
wrap.style.position = 'fixed';
wrap.style.textAlign = 'center';
wrap.style.top = '0';
wrap.style.width = '100%';
wrap.style.zIndex = '99999999999';
wrap.innerHTML = '<p style="display:table-cell;vertical-align:middle;">深呼吸しましょう!</p>';
document.body.appendChild(wrap);
var remove = function() {
document.body.removeChild(wrap);
};
setTimeout(remove, 5000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment