Team:SYSU-Software/prefix.js

From 2013.igem.org

(Difference between revisions)
Line 1: Line 1:
window.onload = function(){
window.onload = function(){
-
        alert("hi");
 
$.ajax({
$.ajax({
-
  url: "/Team:SYSU-Software/header",
+
  url: "header.html",
  cache: false,
  cache: false,
  success: function(html){
  success: function(html){
-
$("#navigation").append(html);
+
$("#navigation").append($(html).find(".row").html());
  }
  }
});
});
$.ajax({
$.ajax({
-
  url: "/Team:SYSU-Software/footer",
+
  url: "footer.html",
  cache: false,
  cache: false,
  success: function(html){
  success: function(html){
-
$("#footer").append(html);
+
$("#footer").append($(html).find("footer").html());
  }
  }
});
});
}
}

Revision as of 16:06, 11 April 2013

window.onload = function(){ $.ajax({ url: "header.html", cache: false, success: function(html){ $("#navigation").append($(html).find(".row").html()); } }); $.ajax({ url: "footer.html", cache: false, success: function(html){ $("#footer").append($(html).find("footer").html()); } }); }