Fetching contributors…
Cannot retrieve contributors at this time
42 lines (38 sloc) 1022 Bytes
<!doctype html>
<title>Custom Module</title>
<script type="text/javascript" src="/webfont.js"></script>
<style >
iframe {
height: 100px;
width: 100%;
<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>";
custom: {
families: ['ChunkFiveRegular'],
urls : ['']
context: child
<iframe name="child" src="/blank.html" onload="loaded()"></iframe>
<a href="#" onclick="document.getElementsByTagName('body')[0].style.color = '#fff';return false;">Hide Page</a> |
<a href="/custom.html">Reload Cached</a>
The goal of this page is to show how fonts load from a custom module in a
child iframe.