Template:Team:Edinburgh/Code
From 2013.igem.org
(Difference between revisions)
Hristianita (Talk | contribs) |
Hristianita (Talk | contribs) |
||
(39 intermediate revisions not shown) | |||
Line 32: | Line 32: | ||
display: none; | display: none; | ||
} | } | ||
+ | |||
+ | .right { | ||
+ | float: right; | ||
+ | cursor: deafault; | ||
+ | margin-right: 10px; | ||
+ | margin-top: 10px; | ||
+ | vertical-align: top; | ||
+ | } | ||
Line 49: | Line 57: | ||
min-height: 500px; | min-height: 500px; | ||
text-align: justify; | text-align: justify; | ||
+ | } | ||
+ | |||
+ | .content img { | ||
+ | text-align: center; | ||
} | } | ||
Line 64: | Line 76: | ||
background-color: #2b6196; | background-color: #2b6196; | ||
+ | } | ||
+ | |||
+ | .counter { | ||
+ | margin: 10px; | ||
+ | margin-top: 30px; | ||
+ | text-align: center; | ||
+ | font-weight: bold !important; | ||
+ | } | ||
+ | |||
+ | |||
+ | .counter a { | ||
+ | color: #2b6196; | ||
} | } | ||
Line 75: | Line 99: | ||
border-radius: 10px; | border-radius: 10px; | ||
margin-top: 30px; | margin-top: 30px; | ||
- | margin-left: - | + | margin-left: -2px !important; |
- | margin-right: | + | margin-right: 8px; |
} | } | ||
.gallery p{ | .gallery p{ | ||
Line 161: | Line 185: | ||
margin-right: 10px; | margin-right: 10px; | ||
font-size: 14pt; | font-size: 14pt; | ||
+ | |||
font-weight: bold; | font-weight: bold; | ||
display: block; | display: block; | ||
Line 167: | Line 192: | ||
background-color: #acd8a6; | background-color: #acd8a6; | ||
padding: 3px; | padding: 3px; | ||
- | padding-left: | + | padding-right: 5px; |
+ | padding-left: 10px; | ||
margin-bottom: 5px; | margin-bottom: 5px; | ||
} | } | ||
Line 184: | Line 210: | ||
.home_side_menu_item .selflink { | .home_side_menu_item .selflink { | ||
color: #904400 !important; | color: #904400 !important; | ||
+ | margin-right: 6px !important; | ||
} | } | ||
Line 238: | Line 265: | ||
position: relative; | position: relative; | ||
display: block; | display: block; | ||
+ | } | ||
+ | |||
+ | .side_menu_item a{ | ||
+ | margin-right: 6px; | ||
} | } | ||
Line 253: | Line 284: | ||
color : #2b6196; | color : #2b6196; | ||
font-weight: bold; | font-weight: bold; | ||
+ | margin-right: 6px; | ||
} | } | ||
Line 314: | Line 346: | ||
color: #001f3d !important; | color: #001f3d !important; | ||
cursor: default !important; | cursor: default !important; | ||
+ | margin-right: 6px; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
Line 335: | Line 368: | ||
active = 3; | active = 3; | ||
} | } | ||
- | } else if ( | + | } else if ($(".home_side_menu_item").length> 0 ) { |
active = 3; | active = 3; | ||
} | } | ||
Line 345: | Line 378: | ||
$(menu_buttons[i]).parent("tr").siblings(":last").children("td").filter(function(index) {return index==i}).children("a").addClass("selflink"); | $(menu_buttons[i]).parent("tr").siblings(":last").children("td").filter(function(index) {return index==i}).children("a").addClass("selflink"); | ||
} | } | ||
- | + | ||
if (touchscreen) continue; | if (touchscreen) continue; | ||
Line 365: | Line 398: | ||
active = 3; | active = 3; | ||
} | } | ||
- | } else if ( | + | } else if ($(".home_side_menu_item").length> 0 ) { |
active = 3; | active = 3; | ||
} | } | ||
Line 372: | Line 405: | ||
children[active-1].style.display = "block"; | children[active-1].style.display = "block"; | ||
} | } | ||
- | + | })(); | |
- | + | } | |
+ | |||
+ | menu_links = $("#side_menu_items > li > a"); | ||
+ | |||
+ | for (var j=0; j < menu_links.length; j++) { | ||
+ | active=1; | ||
+ | if (window.location.href.indexOf(menu_links[j].href, window.location.href.length-menu_links[j].href.length) > -1) { | ||
+ | active = 3; | ||
+ | } | ||
+ | if (active==3) { | ||
+ | $(menu_links[j]).addClass("selflink"); | ||
+ | } | ||
+ | } | ||
}); | }); | ||
$(function() { | $(function() { | ||
- | $(".genablerlinkers").attr("src", "http://www.genablerlinkers.appspot.com"); | + | $(".bagpipes").attr("src", "//www.youtube.com/embed/Z_AHBSvXHDM?rel=0"); |
- | $(".outreachvideo").attr("src", " | + | $(".genablerlinkers").attr("src", "http://www.genablerlinkers.appspot.com"); |
+ | $(".outreachvideo").attr("src", "//www.youtube.com/embed/t7wQX_EFrdY?rel=0"); | ||
}); | }); | ||
Line 407: | Line 453: | ||
$(function() { | $(function() { | ||
- | $("#flags | + | $("#flags img").css("cursor", "pointer"); |
- | $("#flags | + | $("#flags img").css("cursor", "hand"); |
$("#languages").children("div").css("display", "none"); $("#english").css("display", "block"); | $("#languages").children("div").css("display", "none"); $("#english").css("display", "block"); | ||
- | var english = $("#flags | + | var english = $("#flags img")[0]; |
if(english) english.onclick=function() {$("#languages").children("div").css("display", "none"); $("#english").css("display", "block")}; | if(english) english.onclick=function() {$("#languages").children("div").css("display", "none"); $("#english").css("display", "block")}; | ||
- | var french= $("#flags | + | var french= $("#flags img")[1]; |
if(french) french.onclick=function() {$("#languages").children("div").css("display", "none"); $("#french").css("display", "block")}; | if(french) french.onclick=function() {$("#languages").children("div").css("display", "none"); $("#french").css("display", "block")}; | ||
- | + | var german= $("#flags img")[2]; | |
+ | if(german) german.onclick=function() {$("#languages").children("div").css("display", "none"); $("#german").css("display", "block")}; | ||
+ | |||
+ | var chinese = $("#flags img")[3]; | ||
if(chinese ) chinese .onclick=function() {$("#languages").children("div").css("display", "none"); $("#chinese ").css("display", "block")}; | if(chinese ) chinese .onclick=function() {$("#languages").children("div").css("display", "none"); $("#chinese ").css("display", "block")}; | ||
- | var polish = $("#flags | + | var polish = $("#flags img")[4]; |
if(polish ) polish .onclick=function() {$("#languages").children("div").css("display", "none"); $("#polish ").css("display", "block")}; | if(polish ) polish .onclick=function() {$("#languages").children("div").css("display", "none"); $("#polish ").css("display", "block")}; | ||
- | var lithuanian= $("#flags | + | var lithuanian= $("#flags img")[5]; |
if(lithuanian) lithuanian.onclick=function() {$("#languages").children("div").css("display", "none"); $("#lithuanian").css("display", "block")}; | if(lithuanian) lithuanian.onclick=function() {$("#languages").children("div").css("display", "none"); $("#lithuanian").css("display", "block")}; | ||
- | var bulgarian = $("#flags | + | var bulgarian = $("#flags img")[6]; |
if(bulgarian ) bulgarian .onclick=function() {$("#languages").children("div").css("display", "none"); $("#bulgarian ").css("display", "block")}; | if(bulgarian ) bulgarian .onclick=function() {$("#languages").children("div").css("display", "none"); $("#bulgarian ").css("display", "block")}; | ||
+ | |||
+ | var greek = $("#flags img")[7]; | ||
+ | if(greek ) greek.onclick=function() {$("#languages").children("div").css("display", "none"); | ||
+ | $("#greek ").css("display", "block")}; | ||
+ | |||
}); | }); | ||
Line 489: | Line 543: | ||
vCalHeader+="<tr>\n<td class=\"monthSelector\" colspan='7'>\n"; | vCalHeader+="<tr>\n<td class=\"monthSelector\" colspan='7'>\n"; | ||
vCalHeader+="<select name=\"MonthSelector\" onChange=\"javascript:Cal.SwitchMth(this.selectedIndex+5);RenderCal();\">\n"; | vCalHeader+="<select name=\"MonthSelector\" onChange=\"javascript:Cal.SwitchMth(this.selectedIndex+5);RenderCal();\">\n"; | ||
- | for (i=5;i< | + | for (i=5;i<10;i++) |
{ | { | ||
if (i==Cal.Month) | if (i==Cal.Month) |
Latest revision as of 00:27, 5 October 2013