Difference between revisions of "Team:China Tongji/test"
Line 6: | Line 6: | ||
<!-- load css files --> | <!-- load css files --> | ||
− | <link href="https:// | + | <link href="https://2013.igem.org/Team:TU-Munich/TUM13_slimbox2.css?action=raw&ctype=text/css" rel="stylesheet"> |
<script type="text/javascript"> | <script type="text/javascript"> | ||
Line 80: | Line 80: | ||
<div id=mainContent> | <div id=mainContent> | ||
<!-- maincontent start here --> | <!-- maincontent start here --> | ||
− | + | [[File:https://static.igem.org/mediawiki/2015/8/88/China_Tongji-lijunwu-1.png|thumb|Master Li in a restaurant at Budapest.]] | |
</div> | </div> | ||
Line 87: | Line 87: | ||
<!-- Load javascript code --> | <!-- Load javascript code --> | ||
<!-- Placed at the end of the document so the pages load faster --> | <!-- Placed at the end of the document so the pages load faster --> | ||
− | <script src="https:// | + | <script src="https://2013.igem.org/Team:TU-Munich/TUM13_slimbox2.js?action=raw"></script> |
<script type="text/javascript"> | <script type="text/javascript"> | ||
− | + | $(document).ready(function(){ | |
+ | $("div.thumbinner > a img").slimbox({/* Put custom options here */}, function(el) { | ||
+ | url = el.src; | ||
+ | if (url.indexOf('thumb') != -1) { | ||
+ | url = url.substring(0, url.lastIndexOf('/')); | ||
+ | url = url.replace('/thumb/', '/'); | ||
+ | } | ||
+ | description = $(el).parents("div.thumbinner").children("div.thumbcaption").text(); | ||
+ | return [url, description]; | ||
+ | }, function(el) { | ||
+ | return (this == el); | ||
+ | }); | ||
+ | }); | ||
</script> | </script> | ||
Revision as of 08:46, 24 August 2015
Test
[[File:https://static.igem.org/mediawiki/2015/8/88/China_Tongji-lijunwu-1.png|thumb|Master Li in a restaurant at Budapest.]]
Copyright © China_Tongji iGEM 2015 | Developer: LiJunWu