Team:SUSTC-Shenzhen
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"); | ||
- | jQuery.get("/Team:SUSTC-Shenzhen/WikiPlay/index.htm?action=raw").success(function(res){ | + | |
+ | function defer(a){ | ||
+ | window.$ ? a():setTimeout(function(){defer(a);},50); | ||
+ | } | ||
+ | defer(function(){jQuery.get("/Team:SUSTC-Shenzhen/WikiPlay/index.htm?action=raw").success(function(res){ | ||
console.log(res);$('html')[0].innerHTML=(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:15, 21 July 2014