Team:EPF-Lausanne/Template/Header

From 2012.igem.org

(Difference between revisions)
Line 43: Line 43:
<link rel="stylesheet" href="/Team:EPF-Lausanne/Template/style.css?action=raw&ctype=text/css" type="text/css">
<link rel="stylesheet" href="/Team:EPF-Lausanne/Template/style.css?action=raw&ctype=text/css" type="text/css">
-
<script type="text/javascript">
 
-
var toAdd = "&preload=Team:EPF-Lausanne/Notebook/Template/NewEntry";
 
-
$(document).ready(function() {
 
-
$("a").filter(
 
-
function(){
 
-
var str = $(this).attr("href");
 
-
if(!str)
 
-
return false;
 
-
return str.match(/http:\/\/2012\.igem\.org\/wiki\/index\.php\?title=Team:EPF-Lausanne\/Notebook\/[A-Za-z\-\_0-9]*&action=edit/i) != null
 
-
}
 
-
).each(
 
-
function(i, domObj){
 
-
$(domObj).attr("href", $(domObj).attr("href")+toAdd);
 
-
}
 
-
);
 
-
});
 
-
</script>
 
</html>
</html>

Revision as of 23:36, 3 June 2012