Team:TU Delft/test
From 2010.igem.org
(Difference between revisions)
Line 26: | Line 26: | ||
</style> | </style> | ||
- | |||
- | |||
- | |||
<div id="panel"> | <div id="panel"> | ||
<!-- CONTENT STARTS HERE /--> | <!-- CONTENT STARTS HERE /--> | ||
- | + | {{:Team:TU_Delft/pages/{{{contentpage|home}}} }} | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
<!-- CONTENT ENDS HERE /--> | <!-- CONTENT ENDS HERE /--> | ||
- | |||
</div> | </div> | ||
Line 139: | Line 104: | ||
if(pgHeight > maxHeight) maxHeight = pgHeight; | if(pgHeight > maxHeight) maxHeight = pgHeight; | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
// instead of button click handler, all actions pass through the address bar so history works too | // instead of button click handler, all actions pass through the address bar so history works too | ||
Line 157: | Line 112: | ||
$(".menu_button_" + activePage).removeClass("menu_button_" + activePage + "_sel"); | $(".menu_button_" + activePage).removeClass("menu_button_" + activePage + "_sel"); | ||
activePage = page; | activePage = page; | ||
+ | |||
+ | $.get(url, function(data) { | ||
+ | $("#subpage_panel").html(data).show(200); | ||
+ | rewriteLinks($("#subpage_panel")); | ||
+ | }); | ||
if($.inArray(page, pages) < 0) { | if($.inArray(page, pages) < 0) { | ||
Line 166: | Line 126: | ||
isMenuPage = true; | isMenuPage = true; | ||
- | |||
- | |||
- | |||
- | |||
} else { | } else { | ||
if (isMenuPage) { | if (isMenuPage) { | ||
Line 180: | Line 136: | ||
// remove old page if any, show tab content | // remove old page if any, show tab content | ||
$(".menu_button_" + activePage).addClass("menu_button_" + activePage + "_sel"); | $(".menu_button_" + activePage).addClass("menu_button_" + activePage + "_sel"); | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
} | } | ||
}); | }); |
Revision as of 15:07, 16 June 2010
{{:Team:TU_Delft/pages/{{{contentpage|home}}} }}