Team:SUSTC-Shenzhen/Contact

From 2014.igem.org

(Difference between revisions)
Line 25: Line 25:
//loadcssfile("//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css");
//loadcssfile("//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css");
//loadjsfile("//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js");
//loadjsfile("//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js");
-
$('head').load('/Team:SUSTC-Shenzhen/WikiPlay/header.htm?action=raw');
 
-
$('body').load('/Team:SUSTC-Shenzhen/WikiPlay/contact.htm?action=raw');
 
-
 
+
function defer(a) {
-
$("<div>").load('/Team:SUSTC-Shenzhen/WikiPlay/footer.htm?action=raw', function() {
+
  ($.fn.jquery==="2.1.1") ? a() : setTimeout(function() {
-
     $("body").append($(this).html());
+
    defer(a);
 +
  }, 50);
 +
}
 +
defer(function() {
 +
  $.get("/Team:SUSTC-Shenzhen/WikiPlay/contact.htm?action=raw").success(function(res) {
 +
     console.log(res);
 +
    $('html')[0].innerHTML = (res);
 +
  });
});
});
</script>
</script>
</html>
</html>

Revision as of 00:54, 27 July 2014