Sha256: 3e2a2417c5aaf89d44c08865cc07c6980714812e135b522f068032d55972ce81
Contents?: true
Size: 971 Bytes
Versions: 19
Compression:
Stored size: 971 Bytes
Contents
<!DOCTYPE HTML> <html> <head> <title>wait test</title> <script type="text/javascript" charset="utf-8"> function setTimeoutDisplay(id, display, timeout) { setTimeout(function() { document.getElementById(id).style.display = display; }, timeout); } function setTimeoutRemove(id, timeout) { setTimeout(function() { var e = document.getElementById(id); e.parentNode.removeChild(e); }, timeout); } </script> </head> <body> <div id="foo" style="display:block;">foo</div> <div id="bar" style="display:none;" onclick='this.innerHTML = "changed"'>bar</div> <a id="show_bar" href="#" onclick="setTimeoutDisplay('bar', 'block', 500);">show bar</a> <a id="hide_foo" href="#" onclick="setTimeoutDisplay('foo', 'none', 500);">hide foo</a> <a id="remove_foo" href="#" onclick="setTimeoutRemove('foo', 500);">remove foo</a> </body> </html>
Version data entries
19 entries across 19 versions & 1 rubygems