Template:Amplino

From 2012e.igem.org

(Difference between revisions)
 
(38 intermediate revisions not shown)
Line 12: Line 12:
<!-- Scripting - START /-->
<!-- Scripting - START /-->
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.js"></script>
-
<script type="text/javascript" src="http://github.com/cowboy/jquery-hashchange/raw/v1.3/jquery.ba-hashchange.js"></script>
+
<script type="text/javascript" src="http://github.com/cowboy/jquery-hashchange/raw/v1.3/jquery.ba-hashchange.js">
 +
</script>
 +
<script src="http://tweet.seaofclouds.com/jquery.tweet.js"></script>
 +
<link href='http://fonts.googleapis.com/css?family=Days+One' rel='stylesheet' type='text/css'>
<script>
<script>
Line 31: Line 34:
$('#search-controls').appendTo('#search-form');
$('#search-controls').appendTo('#search-form');
$('#menubar').appendTo('#user-menu');
$('#menubar').appendTo('#user-menu');
 +
$('.right-menu').appendTo('#igem-links');
 +
$("#igem-links .right-menu").attr("id","account-links");
 +
$("#account-links").attr("class","no-class");
// Initialize history plugin.
// Initialize history plugin.
Line 100: Line 106:
dbgout('moveToAnchor error: ' + err);
dbgout('moveToAnchor error: ' + err);
}
}
 +
}
 +
 +
function updateContentEditLink() {
 +
if (!wgUserName) {
 +
return;
 +
}
 +
 +
var page = currentPage ? currentPage : 'Home';
 +
var url = location.pathname + '/' + page + '?action=edit';
 +
$("#menubar ul li:nth-child(3) a").attr('href', url);
 +
 +
 +
var url = location.pathname + '/' + page;
 +
$("#menubar ul li:nth-child(1) a").attr('href', url);
 +
var url = location.pathname + '/' + page + '?action=history';
 +
$("#menubar ul li:nth-child(4) a").attr('href', url);
 +
var url = location.pathname + '/' + page + '?action=watch';
 +
$("#menubar ul li:nth-child(6) a").attr('href', url);
 +
$("#menubar ul li:nth-child(2)").css('display','none');
 +
$("#menubar ul li:nth-child(5)").css('display','none');
}
}
Line 176: Line 202:
if (anchor.substring(0,5)!='page=')
if (anchor.substring(0,5)!='page=')
this.href = '#page=' + currentPage + ampersandStr + 'anchor=' + anchor;
this.href = '#page=' + currentPage + ampersandStr + 'anchor=' + anchor;
-
} else if(txt != "edit")
+
} else if(txt != "edit") {
-
this.href = this.href.replace("https://2012e.igem.org/Team:Amplino/", "#page=");
+
this.href = this.href.replace("https://2012e.igem.org/wiki/index.php/Team:Amplino/", "#page=");
 +
}
// dbgout('rewriting ' + url + ' to ' + this.href);
// dbgout('rewriting ' + url + ' to ' + this.href);
Line 213: Line 240:
/* Amplino Styles */
/* Amplino Styles */
 +
 +
h2, h3, h4 {
 +
font-family: 'Days One', sans-serif;
 +
}
#floatingbar {
#floatingbar {
Line 332: Line 363:
min-height: 400px;
min-height: 400px;
}
}
 +
 +
#igem-links {
 +
position: fixed;
 +
top: 0;
 +
right: 5px;
 +
z-index: 1000;
 +
font-size: 10px;
 +
}
 +
 +
#account-links ul {
 +
list-style: none;
 +
}
 +
 +
#account-links li {
 +
display: block;
 +
clear: both;
 +
float: right;
 +
}
 +
 +
#account-links li a.new, #account-links li a {
 +
color: #fff;
 +
}
 +
 +
#account-links li a.new:visited, #account-links li a:visited {
 +
color: #fff;
 +
}
</style>
</style>
 +
 +
<div id="igem-links">
 +
 +
</div>
<div id="floatingbar">
<div id="floatingbar">
Line 341: Line 402:
<ul>
<ul>
<li><a href="#page=Team">Team</a></li>
<li><a href="#page=Team">Team</a></li>
-
<li><a href="#">Summary</a></li>
+
<li><a href="#page=Summary">Summary</a></li>
-
<li><a href="#">Problem</a></li>
+
<li><a href="#page=Problem">Problem</a></li>
-
<li><a href="#">Opportunity</a></li>
+
<!-- <li><a href="#page=Opportunity">Opportunity</a></li> -->
-
<li><a href="#">Solution</a></li>
+
<li><a href="#page=Solution">Solution</a></li>
-
<li><a href="#">Source Data</a></li>
+
<li><a href="#page=Source_Data">Source Data</a></li>
-
<li><a href="#">Attributions</a></li>
+
<li><a href="#page=Attributions">Attributions</a></li>
 +
<li><a href="#page=Safety">Safety</a></li>
</ul>
</ul>
</div>
</div>
Line 362: Line 424:
<div id="Amplino-loading-panel-logo">
<div id="Amplino-loading-panel-logo">
<!-- yes im using center -->
<!-- yes im using center -->
-
<center><img width="100" height="120" src="https://static.igem.org/mediawiki/2010/d/d8/TUDelft_2010_AlkanivoreAnimated.gif" /> <h2>Loading...</h2></center>
+
<center> <h2>Loading...</h2></center>
</div>
</div>
</div>
</div>

Latest revision as of 11:14, 21 October 2012