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"); | ||
- | |||
- | |||
- | + | function defer(a) { | |
- | + | ($.fn.jquery==="2.1.1") ? a() : setTimeout(function() { | |
- | + | 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