Team:SYSU-Software/prefix.js
From 2013.igem.org
(Difference between revisions)
Nie1234567 (Talk | contribs) |
Nie1234567 (Talk | contribs) |
||
Line 1: | Line 1: | ||
window.onload = function(){ | window.onload = function(){ | ||
- | |||
$.ajax({ | $.ajax({ | ||
- | url: " | + | 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: " | + | 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()); } }); }