Sha256: f2dc3f609992a452e419f3340faf2d29c74d34e4888f4e76934ccf1e00c92a3a
Contents?: true
Size: 1.14 KB
Versions: 19
Compression:
Stored size: 1.14 KB
Contents
<!doctype html> <html> <head> <title>Ascender Module Demo</title> <link href="/basic.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="/webfont.js"></script> <style type="text/css"> 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: 'AyitaPro'\">Hello World. I am Ayita Pro.</h1>"; WebFont.load({ ascender: { key:'ec2de397-11ae-4c10-937f-bf94283a70c1', families:['AyitaPro:regular,bold,bolditalic,italic'] }, 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="/ascender.html">Reload Cached</a> </p> <p> Note: use "localhost" when testing web fonts. </p> <p> The goal of this page is to show how fonts load from Ascender in a child iframe. </p> </body> </html>
Version data entries
19 entries across 19 versions & 1 rubygems