Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #142 from Financial-Times/script-demo-tmpl
Browse files Browse the repository at this point in the history
Move script to head so it does not appear in the registry demo chunk
  • Loading branch information
kaelig committed Nov 27, 2014
2 parents 1db68bf + 4010509 commit 2cbfd6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/page.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<script src="//polyfill.webservices.ft.com/v1/polyfill.min.js"></script>
<style>body { margin: 0; }.demo-js .o--if-nojs { display: none; }</style>
<script>(function(d) {d.className = d.className + ' demo-js';})(document.documentElement);</script>
{{{oDemoStyle}}}
</head>
<body class="{{oDemoBodyClasses}}">
<script>(function(d) {var b = d.getElementsByTagName('body')[0];b.className = b.className + ' demo-js';})(document);</script>
{{{oDemoTpl}}}
{{{oDemoScript}}}
<script src="//registry.origami.ft.com/embedapi?autoload=resize"></script>
</body>
</html>
</html>

0 comments on commit 2cbfd6b

Please sign in to comment.