diff options
| -rw-r--r-- | inc/html.inc.php | 8 | ||||
| -rw-r--r-- | index.php | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php index 5bf0ff0..42b05ed 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php | |||
| @@ -46,9 +46,15 @@ EOT; | |||
| 46 | EOT; | 46 | EOT; |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | echo <<<EOT | 49 | if ($CONFIG['showtime']) { |
| 50 | echo <<<EOT | ||
| 50 | <script type="text/javascript" src="//code.jquery.com/jquery-2.1.1.min.js"></script> | 51 | <script type="text/javascript" src="//code.jquery.com/jquery-2.1.1.min.js"></script> |
| 51 | <script type="text/javascript" src="{$html_weburl}js/jquery.timeago.js"></script> | 52 | <script type="text/javascript" src="{$html_weburl}js/jquery.timeago.js"></script> |
| 53 | |||
| 54 | EOT; | ||
| 55 | } | ||
| 56 | |||
| 57 | echo <<<EOT | ||
| 52 | </head> | 58 | </head> |
| 53 | <body> | 59 | <body> |
| 54 | 60 | ||
| @@ -26,7 +26,8 @@ if ($uhosts) { | |||
| 26 | host_summary('uncategorized', $uhosts); | 26 | host_summary('uncategorized', $uhosts); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | echo <<<EOT | 29 | if ($CONFIG['showtime']) { |
| 30 | echo <<<EOT | ||
| 30 | <script> | 31 | <script> |
| 31 | jQuery(document).ready(function() { | 32 | jQuery(document).ready(function() { |
| 32 | jQuery("time.timeago").timeago(); | 33 | jQuery("time.timeago").timeago(); |
| @@ -34,5 +35,6 @@ jQuery(document).ready(function() { | |||
| 34 | </script> | 35 | </script> |
| 35 | 36 | ||
| 36 | EOT; | 37 | EOT; |
| 38 | } | ||
| 37 | 39 | ||
| 38 | html_end(); | 40 | html_end(); |
