summaryrefslogtreecommitdiffstats
path: root/include/output.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2010-05-04 21:44:30 -0700
committerArun Persaud <arun@nubati.net>2010-05-04 21:44:30 -0700
commit5e3f5fe45c7d05a85f5e36637b3dd937e1ac3596 (patch)
treea97f3f401edc0c1f845122a158f62a5a7812d543 /include/output.php
parent11823f4dd6a5b231893b84ca94861e3e6ba57f1d (diff)
downloade-DoKo-5e3f5fe45c7d05a85f5e36637b3dd937e1ac3596.tar.gz
e-DoKo-5e3f5fe45c7d05a85f5e36637b3dd937e1ac3596.tar.bz2
e-DoKo-5e3f5fe45c7d05a85f5e36637b3dd937e1ac3596.zip
improved jquery on user home page
the text will now say either show or hide not both depending on the situation.
Diffstat (limited to 'include/output.php')
-rw-r--r--include/output.php18
1 files changed, 15 insertions, 3 deletions
diff --git a/include/output.php b/include/output.php
index 729452a..13bc6f7 100644
--- a/include/output.php
+++ b/include/output.php
@@ -376,24 +376,36 @@ function output_header()
<title>e-Doko</title>
<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/standard026.css" />
- <script type="text/javascript" src="include/game.js"> </script>
+ <link rel="stylesheet" type="text/css" href="css/standard027.css" />
<script type="text/javascript" src="include/jquery.js"> </script>
<script type="text/javascript" src="include/jquery.tablesorter.js"></script>
+ <script type="text/javascript" src="include/game.js"> </script>
<script type="text/javascript">
$(document).ready(function()
{
$("#ScoreTable").tablesorter({ widgets: ['zebra']});
$(".gameshidesession").click( function () {
- $(this).parent().children(".gamessession").toggle(300);
+ $(this).parent().children(".gamessession").hide(300);
+ $(this).parent().children(".gamesshowsession").show();
+ $(this).hide();
+ });
+
+ $(".gamesshowsession").click( function () {
+ $(this).parent().children(".gamessession").show(300);
+ $(this).parent().children(".gameshidesession").show();
+ $(this).hide();
});
$(".gameshowall").click( function () {
$(".gamessession").show(300);
+ $(".gamesshowsession").hide();
+ $(".gameshidesession").show();
});
$(".gamehideall").click( function () {
$(".gamessession").hide(300);
+ $(".gamesshowsession").show();
+ $(".gameshidesession").hide();
});