Team:SUSTC-Shenzhen/Introduction

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) {
function defer(a) {
   ($.fn.jquery==="2.1.1") ? a() : setTimeout(function() {
   ($.fn.jquery==="2.1.1") ? a() : setTimeout(function() {
Line 32: Line 31:
}
}
defer(function() {
defer(function() {
-
   $.get("/Team:SUSTC-Shenzhen/WikiPlay/about.htm?action=raw").success(function(res) {
+
   $.get("/Team:SUSTC-Shenzhen/WikiPlay/about.htm?action=raw").success(function(data, textStatus, jqXHR) {
-
     console.log(res);
+
      
-
    $('html')[0].innerHTML = (res);
+
      $('html')[0].innerHTML = (data);
 +
      //jQuery(selecteur).html(jqXHR.responseText);
 +
      var reponse = jQuery(jqXHR.responseText);
 +
      var reponseScript = reponse.filter("script");
 +
      console.log(reponseScript);
 +
      jQuery.each(reponseScript, function(idx, val) { eval(val.text);console.log(val.text); } );
 +
   
   });
   });
});
});

Revision as of 07:55, 27 July 2014