Team:Uppsala/Templates/top template

From 2014.igem.org

(Difference between revisions)
 
(110 intermediate revisions not shown)
Line 3: Line 3:
<head>
<head>
-
<link rel="stylesheet" type="text/css" href="style.css"> <!-- Link that works localy, does NOT work in mediawiki -->
+
<script type="text/javascript">
 +
function preloadimages(arr){
 +
    var newimages=[]
 +
    var arr=(typeof arr!="object")? [arr] : arr //force arr parameter to always be an array
 +
    for (var i=0; i<arr.length; i++){
 +
        newimages[i]=new Image()
 +
        newimages[i].src=arr[i]
 +
    }
 +
}
 +
</script>
 +
<script src="https://2014.igem.org/Team:Uppsala/jquery?action=raw&ctype=text/javascript" type="text/javascript"></script>
-
<link href="https://2014.igem.org/Team:Uppsala/sponsors.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet"> <!-- STYLESHEET THAT CONTAINS THE CSS RESET, MUST BE INCLUDED!!! -->
+
<script src="https://2014.igem.org/Team:Uppsala/jscript/collapse.js?action=raw&ctype=text/javascript" type="text/javascript"></script> <!-- Script for collapse -->
-
<link href="https://2014.igem.org/Team:Uppsala/css_reset.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet"> <!-- STYLESHEET THAT CONTAINS THE CSS RESET, MUST BE INCLUDED!!! -->
+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <!-- Required for Back-to-top -->
-
<link href="https://2014.igem.org/Team:Uppsala/mediawiki_remove.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet"> <!-- STYLESHEET THAT CONTAINS THE MEDIAWIKI REMOVAL, MUST BE INCLUDED!!! -->
+
<script src="https://2014.igem.org/Team:Uppsala/JavaScript?action=raw&ctype=text/javascript" type="text/javascript"></script>
-
<link href="https://2014.igem.org/Team:Uppsala/navbar.css?action=raw&ctype=text/css" type="text/css"
+
<link href='http://fonts.googleapis.com/css?family=Play:400,700' rel='stylesheet' type='text/css'>
-
rel="stylesheet"> <!-- STYLESHEET THAT CONTAINS THE NAVBAR CSS, MUST BE INCLUDED!!! -->
+
-
<link href="https://2014.igem.org/Team:Uppsala/stylesheet.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet"> <!-- STYLESHEET THAT CONTAINS MAIN_CONTENT AND GENERAL STUFF, MUST BE INCLUDED!!! -->
+
<link href='http://fonts.googleapis.com/css?family=Black+Ops+One' rel='stylesheet' type='text/css'>
-
<link href="https://2014.igem.org/Team:Uppsala/style/collapse.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet"> <!-- STYLESHEET FOR COLLAPSE EFFECTS ONLY!!! -->
+
<link href="https://2014.igem.org/Team:Uppsala/mediawiki_remove.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet"/> <!-- Stylesheet that contains mediawiki removal and adds background -->
 +
<link href="https://2014.igem.org/Team:Uppsala/css_reset.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet"/> <!-- Stylesheet that contains css reset -->
 +
<link href="https://2014.igem.org/Team:Uppsala/style/collapse.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet"/> <!-- Stylesheet for collapse-->
 +
<link href="https://2014.igem.org/Team:Uppsala/navbar.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet"/> <!-- Stylesheet for navbar -->
 +
<link href="https://2014.igem.org/Team:Uppsala/stylesheet.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet"/> <!-- Main style sheet -->
-
<script src="https://2014.igem.org/Team:Uppsala/jscript/collapse.js?action=raw&ctype=text/javascript" type="text/javascript"></script> <!-- SCRIPT FOR COLLAPSE EFFECTS ONLY!!! -->
+
<link href="https://2014.igem.org/Team:Uppsala/tabSelector.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet"/> <!-- Temporary stylesheet for tabSelector -->
-
<script src="https://2014.igem.org/Team:Uppsala/script.js?action=raw&ctype=text/javascript" type="text/javascript"></script>
+
<link href="https://2014.igem.org/Team:Uppsala/stylesheet2.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet"/>
 +
<!-- stylesheet 2 file -->
 +
<link href="https://2014.igem.org/Team:Uppsala/marcus.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet"/>
 +
<!-- Marcus worksheet -->
 +
 +
<!-- Two links for Java-button-->
 +
<link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
 +
<link href="main.css" rel="stylesheet">
</head>
</head>
-
 
-
 
-
<body>
 
-
 
<div id="master"> <!-- Master div that contains all other divs except footer -->
<div id="master"> <!-- Master div that contains all other divs except footer -->
-
<!-- Media wiki template for the whole header section, templates needs to be placed outside <html> tags  -->
+
<!-- Mediawiki template for the whole header section, templates needs to be placed outside <html> tags  -->
</html>
</html>
Line 44: Line 60:
<html>
<html>
-
 
-
<div id="main_frame_lower"> <!-- Master div that contains all other main_frame divs (lower section), should store background image -->
 
<div id="main_content"> <!-- Contains all elements on the content sektion: 3 (check photos) and the tracking system (6,7,9) -->
<div id="main_content"> <!-- Contains all elements on the content sektion: 3 (check photos) and the tracking system (6,7,9) -->
Line 51: Line 65:
<div id="title">    <!-- Subheader -->
<div id="title">    <!-- Subheader -->
-
<h1>Project</h1>
+
<h1 id="currentH"> Home </h1>
              
              
</div> <!-- Ends subheader -->
</div> <!-- Ends subheader -->
-
            <div id="tracking_system"> <!-- Masterdiv for the tracking system, all other elements for tracking should be put here! -->
+
                        <div id="social_media">
-
                       
+
                            <ul>
-
            <h2 onload=track() id="tra">Failed to load tracking. JS is probably not enabled</h2>
+
                            <li><a href="http://www.facebook.com/UppsalaIgem?fref=ts"><img class="sm_logo" src="https://static.igem.org/mediawiki/2014/3/39/Uppsala-igem2014-Facebook.png" onmouseover="this.src='https://static.igem.org/mediawiki/2014/2/2c/Uppsala-igem2014-Facebook_hover.png'" onmouseout="this.src='https://static.igem.org/mediawiki/2014/3/39/Uppsala-igem2014-Facebook.png'" ></a></li>  
-
<script>
+
                           
-
text = "";
+
                            <li><a href="http://twitter.com/igemuppsala"><img class="sm_logo" src="https://static.igem.org/mediawiki/2014/5/5e/Uppsala-igem2014-Twitter.png" onmouseover="this.src='https://static.igem.org/mediawiki/2014/b/b9/Twitter_hover.png'" onmouseout="this.src='https://static.igem.org/mediawiki/2014/5/5e/Uppsala-igem2014-Twitter.png'"></a></li>
-
container = "";
+
                           
-
var data = window.location.href;
+
                            <li><a href="http://www.youtube.com/channel/UC7GPw3UhMro-eN__6NNOLUg"><img class="sm_logo" src="https://static.igem.org/mediawiki/2014/b/b2/Uppsala-igem2014Youtube.png" onmouseover="this.src='https://static.igem.org/mediawiki/2014/9/91/Uppsala-igem2014Youtube_hover.png'" onmouseout="this.src='https://static.igem.org/mediawiki/2014/b/b2/Uppsala-igem2014Youtube.png'"></a></li>
-
var data = data.replace("https://2014.igem.org/Team:Uppsala/", "");//change to the correct one for the wiki
+
 
-
var data = data.split("_")
+
                            <li><a href="https://igem.org/Main_Page"><img class="sm_logo" src="https://static.igem.org/mediawiki/2014/1/18/Uppsala-igem2014Igem.jpg" onmouseover="this.src='https://static.igem.org/mediawiki/2014/0/02/Uppsala-igem2014Igem_hover.jpg'" onmouseout="this.src='https://static.igem.org/mediawiki/2014/1/18/Uppsala-igem2014Igem.jpg'"></a></li>
-
for (i = 0; i < data.length; i++) {
+
                            </ul>
-
container += data[i]
+
 
-
    text += '-><a href="' + container + '">' + data[i] + "</a>";
+
                        </div>
-
container +="_"
+
                        <div class="clear">
-
}
+
                        </div>
-
document.getElementById("tra").innerHTML = text
+
 
-
</script>
+
-
 
-
            </div>   <!-- Ends tracking_system -->
 
-
                   
 
-
         
 
<!-- Content for the page should be put here, 3 on the picture (Mainpage) -->
<!-- Content for the page should be put here, 3 on the picture (Mainpage) -->
<div>
<div>
</html>
</html>

Latest revision as of 21:58, 17 October 2014

Home