Team:Hong Kong-CUHK/home.html

From 2014.igem.org

(Difference between revisions)
m
Line 134: Line 134:
<script type="text/javascript">
<script type="text/javascript">
 +
var generalSubTopic = [{
 +
    "id": "link-offical",
 +
    "background": "url('https://static.igem.org/mediawiki/2014/5/5f/Cloud1.png')",
 +
    "width": 100,
 +
    "height": 45,
 +
    "offset": {
 +
        "left": 150,
 +
        "top": 10,
 +
    }
 +
}, {
 +
    "id": "link-ours",
 +
    "background": "url('https://static.igem.org/mediawiki/2014/5/5f/Cloud1.png')",
 +
    "width": 100,
 +
    "height": 45,
 +
    "offset": {
 +
        "left": 400,
 +
        "top": 10,
 +
    }
 +
}];
 +
var teamSubTopic = [{
var teamSubTopic = [{
     "id": "link-offical",
     "id": "link-offical",
Line 183: Line 203:
     "id": "link-home",
     "id": "link-home",
     "content": "home-1.html?action=raw&ctype=text/html",
     "content": "home-1.html?action=raw&ctype=text/html",
 +
    "subtopic": generalSubTopic,
     "width": 135,
     "width": 135,
     "height": 130,
     "height": 130,
Line 192: Line 213:
     "id": "link-team",
     "id": "link-team",
     "content": "team.html?action=raw&ctype=text/html",
     "content": "team.html?action=raw&ctype=text/html",
-
     "subtopic": teamSubTopic,
+
     "subtopic": generalSubTopic,
     "width": 90,
     "width": 90,
     "height": 75,
     "height": 75,
Line 202: Line 223:
     "id": "link-project",
     "id": "link-project",
     "content": "project.html?action=raw&ctype=text/html",
     "content": "project.html?action=raw&ctype=text/html",
 +
    "subtopic": generalSubTopic,
     "width": 90,
     "width": 90,
     "height": 75,
     "height": 75,
Line 211: Line 233:
     "id": "link-biobricks",
     "id": "link-biobricks",
     "content": "biobricks.html?action=raw&ctype=text/html",
     "content": "biobricks.html?action=raw&ctype=text/html",
 +
    "subtopic": generalSubTopic,
     "width": 90,
     "width": 90,
     "height": 75,
     "height": 75,
Line 220: Line 243:
     "id": "link-modelling",
     "id": "link-modelling",
     "content": "modelling.html?action=raw&ctype=text/html",
     "content": "modelling.html?action=raw&ctype=text/html",
 +
    "subtopic": generalSubTopic,
     "width": 90,
     "width": 90,
     "height": 75,
     "height": 75,
Line 229: Line 253:
     "id": "link-human-practice",
     "id": "link-human-practice",
     "content": "humanpractice.html?action=raw&ctype=text/html",
     "content": "humanpractice.html?action=raw&ctype=text/html",
 +
    "subtopic": generalSubTopic,
     "width": 90,
     "width": 90,
     "height": 75,
     "height": 75,
Line 248: Line 273:
     "id": "link-documentation",
     "id": "link-documentation",
     "content": "documentation.html?action=raw&ctype=text/html",
     "content": "documentation.html?action=raw&ctype=text/html",
 +
    "subtopic": generalSubTopic,
     "width": 102,
     "width": 102,
     "height": 75,
     "height": 75,
Line 257: Line 283:
     "id": "link-acknowledgement",
     "id": "link-acknowledgement",
     "content": "acknowledgement.html?action=raw&ctype=text/html",
     "content": "acknowledgement.html?action=raw&ctype=text/html",
 +
    "subtopic": generalSubTopic,
     "width": 121,
     "width": 121,
     "height": 75,
     "height": 75,
Line 302: Line 329:
             if (value['background'] != null) {
             if (value['background'] != null) {
                 link = link.css('background', value['background']);
                 link = link.css('background', value['background']);
 +
                link = link.css('background-repeat', 'no-repeat');
             }
             }
Line 315: Line 343:
                     .animate({
                     .animate({
                         top: value['offset']['top']
                         top: value['offset']['top']
-
                     }, 1000, 'linear')
+
                     }, 250, 'linear')
                     .animate({
                     .animate({
                         left: value['offset']['left']
                         left: value['offset']['left']

Revision as of 03:05, 18 October 2014