Team:TU Delft/header2
From 2010.igem.org
(Difference between revisions)
Line 32: | Line 32: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
//Global Vars | //Global Vars | ||
- | + | // var activePage = "</html>{{{contentpage|home}}}<html>"; | |
// Set document ready callback | // Set document ready callback | ||
Line 40: | Line 40: | ||
rewriteLinks($("#navlist")); | rewriteLinks($("#navlist")); | ||
- | + | // if(activePage == "home") { | |
- | + | ||
- | + | ||
// $.history.load("pages/home"); | // $.history.load("pages/home"); | ||
// rewriteLinks($("#load")); | // rewriteLinks($("#load")); | ||
- | + | // } | |
// set onlick event for menu buttons | // set onlick event for menu buttons | ||
Line 102: | Line 100: | ||
} | } | ||
} else { | } else { | ||
- | // start page | + | // start default page |
- | $("#load").empty(); | + | //$("#load").empty(); |
+ | loadPage('pages/home'); | ||
} | } | ||
} | } |
Revision as of 13:20, 22 July 2010