diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-07-31 22:34:08 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-07-31 22:34:08 -0700 |
commit | 2d290b23c402561ef30c1de665895c120dd79483 (patch) | |
tree | 8bde5ebd953f3dd375abe88e61e40571df313b1f /includes/header.php | |
parent | 628c2e712e39fe85762583fd1ddc12609746fc58 (diff) | |
download | pathery-2d290b23c402561ef30c1de665895c120dd79483.tar.xz |
Everything related to the scoreboard.
New feedback page.
Changed the speed of the pauses on checkpoints during a path animation.
Changed how notifications are recieved.
Diffstat (limited to 'includes/header.php')
-rw-r--r-- | includes/header.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/includes/header.php b/includes/header.php index 887aa41..4e19fad 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,6 +1,6 @@ <?php
$accepted = isset($_SESSION['accepted']) && $_SESSION['accepted'] == 1;
-function htmlHeader($css = array(), $title = 'Pathery', $desc = '') {
+function htmlHeader($css = array(), $title = 'Pathery', $desc = '', $scripts = array()) {
global $accepted;
?>
<!DOCTYPE html>
@@ -17,9 +17,12 @@ function htmlHeader($css = array(), $title = 'Pathery', $desc = '') { }
if ($desc !== '')
echo " <meta name='Description' content='$desc'>";
+
+ foreach ($scripts as $s)
+ echo "<script src='js/$s.js?v=1'></script>";
?>
- <script src="js/ajax.js" async="async"></script>
- <script src="js/mapspecs.js"></script>
+ <script src="js/ajax.js?v=1" async="async"></script>
+ <script src="js/mapspecs.js?v=1"></script>
<script>
(function(d,c){var a,b,g,e;a=d.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"===d.location.protocol?"https:":"http:")+'//api.mixpanel.com/site_media/js/api/mixpanel.2.js';b=d.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);c._i=[];c.init=function(a,d,f){var b=c;"undefined"!==typeof f?b=c[f]=[]:f="mixpanel";g="disable track track_pageview track_links track_forms register register_once unregister identify name_tag set_config".split(" ");
|