Team:SUSTC-Shenzhen

From 2014.igem.org

(Difference between revisions)
Line 26: Line 26:
//loadjsfile("//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js");
//loadjsfile("//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js");
-
function defer(a){
+
function defer(a) {
-
   window.$ ? a():setTimeout(function(){defer(a);},50);
+
   window.$ ? a() : setTimeout(function() {
 +
    defer(a);
 +
  }, 50);
}
}
-
defer(function(){jQuery.get("/Team:SUSTC-Shenzhen/WikiPlay/index.htm?action=raw").success(function(res){  
+
defer(function() {
-
console.log(res);$('html')[0].innerHTML=(res);  
+
  $.get("/Team:SUSTC-Shenzhen/WikiPlay/index.htm?action=raw").success(function(res) {
-
});});
+
    console.log(res);
 +
    $('html')[0].innerHTML = (res);
 +
  });
 +
});
 +
 
//$('html').load('/Team:SUSTC-Shenzhen/WikiPlay/index.htm?action=raw');
//$('html').load('/Team:SUSTC-Shenzhen/WikiPlay/index.htm?action=raw');
</script>
</script>
</html>
</html>

Revision as of 03:16, 21 July 2014