Sha256: cf0c329abfb77cdc7a38fbb2e16cab804234fbb758091e62a1ee692387d54211
Contents?: true
Size: 1022 Bytes
Versions: 70
Compression:
Stored size: 1022 Bytes
Contents
<!doctype html> <html> <head> <title>Custom Module</title> <script type="text/javascript" src="/webfont.js"></script> <style > iframe { height: 100px; width: 100%; } </style> </head> <body> <script type="text/javascript"> function loaded() { var child = frames["child"]; child.document.body.innerHTML = "<h1 style=\"font-family: 'ChunkFiveRegular'\">Hello World. I am ChunkFive.</h1>"; WebFont.load({ custom: { families: ['ChunkFiveRegular'], urls : ['http://seanmcb.com/typekit/wfl/stylesheet.css'] }, context: child }); } </script> <iframe name="child" src="/blank.html" onload="loaded()"></iframe> <hr> <p> <a href="#" onclick="document.getElementsByTagName('body')[0].style.color = '#fff';return false;">Hide Page</a> | <a href="/custom.html">Reload Cached</a> </p> <p> The goal of this page is to show how fonts load from a custom module in a child iframe. </p> </body> </html>
Version data entries
70 entries across 70 versions & 1 rubygems