Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function onReady(callback) {
- var intervalID = window.setInterval(checkReady, 1000);
- function checkReady() {
- if (document.getElementsByTagName('body')[0] !== undefined) {
- window.clearInterval(intervalID);
- callback.call(this);
- }
- }
- }
- function show(id, value) {
- document.getElementById(id).style.display = value ? 'block' : 'none';
- }
- onReady(function () {
- show('all', true);
- show('loading', false);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement