Sha256: 50d33d0135b71b9afd7d5b55cd0f0c8b99ca5ec10370279f66f69833cbdb4bf3
Contents?: true
Size: 986 Bytes
Versions: 91
Compression:
Stored size: 986 Bytes
Contents
<!doctype html> <html> <head> <link href="/basic.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="/webfont.js"></script> <script type="text/javascript"> WebFont.load({ google: { families: ['Droid Sans'], api: '/fonts/api' }, active: function() { var h1 = document.getElementsByTagName('h1')[0]; h1.style.visibility = 'visible'; h1.style.fontFamily = 'Droid Sans'; } }); </script> <style type="text/css"> h1 { visibility: hidden; } </style> </head> <body> <h1> Hello World. I am Droid Sans. </h1> <hr> <p> <a href="#" onclick="document.getElementsByTagName('body')[0].style.color = '#fff';return false;">Hide Page</a> | <a href="/event-js-active.html">Reload Cached</a> </p> <p> The goal of this page is to use a combination of JavaScript and CSS to hide the headline until its font has completely rendered. </p> </body> </html>
Version data entries
91 entries across 91 versions & 1 rubygems