Team:RHIT/Current Team
From 2012.igem.org
(Difference between revisions)
Line 22: | Line 22: | ||
</script>--> | </script>--> | ||
<script> | <script> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
function page1() { | function page1() { | ||
$('#rhit-blueSheet').show(); | $('#rhit-blueSheet').show(); | ||
Line 52: | Line 47: | ||
} | } | ||
$(document).ready(function () { | $(document).ready(function () { | ||
+ | var $_GET = {}; | ||
+ | |||
+ | document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () { | ||
+ | function decode(s) { | ||
+ | return decodeURIComponent(s.split("+").join(" ")); | ||
+ | } | ||
+ | |||
+ | $_GET[decode(arguments[1])] = decode(arguments[2]); | ||
+ | }); | ||
var page = $('#menubar.right-menu').find('#pt-userpage'); | var page = $('#menubar.right-menu').find('#pt-userpage'); | ||
if (page.length == 0) return undefined; | if (page.length == 0) return undefined; | ||
Line 60: | Line 64: | ||
$('#logged_in').show(); | $('#logged_in').show(); | ||
} | } | ||
- | var pageNum = $_GET( | + | var pageNum = $_GET("page"); |
window[pageNum]; | window[pageNum]; | ||
}); | }); |
Revision as of 03:29, 2 October 2012