Team:Brown/templates/header

From 2010.igem.org

(Difference between revisions)
Line 3: Line 3:
<!-- BEGIN Breadcrumbs script from TU Delft -->
<!-- BEGIN Breadcrumbs script from TU Delft -->
<script language="javascript" type="text/javascript">
<script language="javascript" type="text/javascript">
 +
//Global Vars
var currentPage;
var currentPage;
-
var page = currentPage ? currentPage : 'Home';
+
var in_frame_test = 1;
-
var url = location.pathname + '/' + page + '?action=edit';
+
var ampersandStr = String.fromCharCode(38);
 +
var loading_home = false;
 +
 
 +
function dbgout(msg) {
 +
  var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
 +
  if(is_chrome) console.log(msg);
 +
}
 +
 
 +
function updateContentEditLink() {
 +
if (!wgUserName) {
 +
return;
 +
}
 +
 
 +
var page = currentPage ? currentPage : 'Home';
 +
var url = location.pathname + '/' + page + '?action=edit';
 +
$("#edit_content_link").attr('href', url);
 +
// $("#edit_content_link").click(function() {
 +
// $("#iGEM_TU_Delft_container").html('<iframe src="'+url+'" width="100%" height="100%"></iframe>');
 +
// });
 +
}
 +
 
function capitaliseFirstLetter(string)
function capitaliseFirstLetter(string)
{
{

Revision as of 02:40, 24 October 2010