Difference between revisions of "Team:China Tongji/test"

Line 6: Line 6:
  
 
<!-- load css files -->
 
<!-- load css files -->
<link href="https://2015.igem.org/Team:TU-Munich/TUM13_slimbox2_css?action=raw&ctype=text/css" rel="stylesheet">  
+
<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://2015.igem.org/Team:China_Tongji/slider_js?action=raw"></script>
+
     <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

close label

Test

[[File:https://static.igem.org/mediawiki/2015/8/88/China_Tongji-lijunwu-1.png|thumb|Master Li in a restaurant at Budapest.]]