summaryrefslogtreecommitdiffstats
path: root/include/output.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-11-01 15:52:14 -0700
committerArun Persaud <arun@nubati.net>2008-11-01 15:56:07 -0700
commit93495e04bade7db58d447d7c2c3a51b607bd8fd6 (patch)
tree311b24fe9c049c02fcf93d03a44861cf1a64fd5f /include/output.php
parentec0599c27c8cd38cfc7e9939d753b2d9a262db00 (diff)
downloade-DoKo-93495e04bade7db58d447d7c2c3a51b607bd8fd6.tar.gz
e-DoKo-93495e04bade7db58d447d7c2c3a51b607bd8fd6.tar.bz2
e-DoKo-93495e04bade7db58d447d7c2c3a51b607bd8fd6.zip
CLEANUP: moved javascript to separate file
doesn't need to be in every html page. better to have it in its own file, so that it can be cached by the server. Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'include/output.php')
-rw-r--r--include/output.php38
1 files changed, 1 insertions, 37 deletions
diff --git a/include/output.php b/include/output.php
index 47fddfe..17bd9e2 100644
--- a/include/output.php
+++ b/include/output.php
@@ -271,43 +271,7 @@ function output_header()
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />
<link rel="shortcut icon" type="image/x-icon" href="pics/edoko-favicon.png" />
<link rel="stylesheet" type="text/css" href="css/standard014.css" />
- <script type="text/javascript">
- var current=0;
- function hl(num) {
- if(document.getElementById){
- var i;
- for(i=0;i<14;i++){
- if(document.getElementById("trick"+i))
- document.getElementById("trick"+i).style.display = 'none';
- }
- document.getElementById("trick"+num).style.display = 'block';
- current=num;
- }
- }
- function high_last(){
- if(document.getElementById){
- var i;
- for(i=13;i>=0;i--) {
- if(document.getElementById("trick"+i))
- {
- hl(i);
- current=i;
- break;
- }
- }
- }
- }
- function hl_next()
- {
- if(document.getElementById("trick"+(current+1)))
- hl(current+1);
- }
- function hl_prev()
- {
- if(document.getElementById("trick"+(current-1)))
- hl(current-1);
- }
- </script>
+ <script type="text/javascript" src="include/game.js"> </script>
</head>
<body onload="high_last();">
<div class="header">