Template:Amplino

From 2012e.igem.org

(Difference between revisions)
 
(32 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 110: Line 116:
var url = location.pathname + '/' + page + '?action=edit';
var url = location.pathname + '/' + page + '?action=edit';
$("#menubar ul li:nth-child(3) a").attr('href', url);
$("#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 186: 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 223: Line 240:
/* Amplino Styles */
/* Amplino Styles */
 +
 +
h2, h3, h4 {
 +
font-family: 'Days One', sans-serif;
 +
}
#floatingbar {
#floatingbar {
Line 342: 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 353: Line 404:
<li><a href="#page=Summary">Summary</a></li>
<li><a href="#page=Summary">Summary</a></li>
<li><a href="#page=Problem">Problem</a></li>
<li><a href="#page=Problem">Problem</a></li>
-
<li><a href="#page=Opportunity">Opportunity</a></li>
+
<!-- <li><a href="#page=Opportunity">Opportunity</a></li> -->
<li><a href="#page=Solution">Solution</a></li>
<li><a href="#page=Solution">Solution</a></li>
<li><a href="#page=Source_Data">Source Data</a></li>
<li><a href="#page=Source_Data">Source Data</a></li>
<li><a href="#page=Attributions">Attributions</a></li>
<li><a href="#page=Attributions">Attributions</a></li>
 +
<li><a href="#page=Safety">Safety</a></li>
</ul>
</ul>
</div>
</div>

Latest revision as of 11:14, 21 October 2012