Team:Dundee/cleanPage.js

From 2011.igem.org

(Difference between revisions)
Line 1: Line 1:
function removeElements() {
function removeElements() {
-
   $("#p-logo").hide();
+
   $("#p-logo").empty();
   $("#search-controls").empty();
   $("#search-controls").empty();
   $(".firstHeading").empty();
   $(".firstHeading").empty();
Line 11: Line 11:
$(document).ready(function () {
$(document).ready(function () {
   removeElements();
   removeElements();
 +
  cleanStyles();
});
});

Revision as of 14:24, 27 May 2011

function removeElements() {

 $("#p-logo").empty();
 $("#search-controls").empty();
 $(".firstHeading").empty();

}

function cleanStyles() {

 $("#top-section).css("height", 0);

}

$(document).ready(function () {

 removeElements();
 cleanStyles();

});