Template:Team:Cambridge/CAM 2011 TEMPLATE HEAD

From 2011.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
 +
<!--
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
Line 68: Line 69:
<div id="wiki_content" style="float:left;width:85%;">
<div id="wiki_content" style="float:left;width:85%;">
 +
-->
 +
<script type='text/javasctipt'>
 +
if( (!/action=render/i.test(location.search)) && !/view=old/i.test(location.search)) //if this wasn't AJAX
 +
{
 +
  var url = window.location.pathname.replace(/\/Team:Cambridge/i, '');
 +
  alert('reditect to "/Team:Cambridge/new#' + url + '", as location.search = "' + location.search + '"');
 +
  window.location = "/Team:Cambridge/new#" + url;
 +
}
 +
 +
</script>
 +
 +
<div>
 +
<div id="wiki_content">
</html>
</html>

Revision as of 16:47, 10 September 2011