Sha256: 07c7c0376036b72fcfa7d816cd741ae647753d2615cb7c52200b3ace65308d26
Contents?: true
Size: 905 Bytes
Versions: 6
Compression:
Stored size: 905 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;">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
6 entries across 6 versions & 2 rubygems