Add fight215 script

This commit is contained in:
Travis Burtrum 2015-05-17 20:52:35 -05:00
parent 61d12521a8
commit 0dc351fcbf
3 changed files with 3 additions and 2 deletions

View File

@ -447,7 +447,7 @@ function template_html_below()
{ {
global $context, $settings, $options, $scripturl, $txt, $modSettings; global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo ' echo '<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/count.min.js" defer="defer"></script>
</body></html>'; </body></html>';
} }

View File

@ -409,7 +409,7 @@ function template_html_below()
{ {
global $context, $settings, $options, $scripturl, $txt, $modSettings; global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo ' echo '<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/count.min.js" defer="defer"></script>
</body></html>'; </body></html>';
} }

1
Themes/default/scripts/count.min.js vendored Normal file
View File

@ -0,0 +1 @@
!function(){document.body.style.marginTop=0,document.body.style.marginRight=0,document.body.style.marginBottom=0,document.body.style.marginLeft=0,document.body.style.paddingTop=0,document.body.style.paddingRight=0,document.body.style.paddingBottom=0,document.body.style.paddingLeft=0;var t=document.createElement("iframe");t.src="https://www.fight215.org/count/index.html",t.width="100%",t.height="60px",t.frameBorder="0",t.setAttribute("allowTransparency","true"),t.setAttribute("scrolling","no"),t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.zIndex="20000";var e=document.createElement("style"),o=document.createTextNode("body::before{content:'';height:60px;display:block}");e.type="text/css",e.appendChild(o),document.head.appendChild(e),document.body.insertBefore(t,document.body.firstChild)}();