Team:Tongji

From 2014.igem.org

(Difference between revisions)
Line 9: Line 9:
   $('head').empty();
   $('head').empty();
   $('body').empty().removeClass().css('margin','0');
   $('body').empty().removeClass().css('margin','0');
-
    
+
   if (screen.width < 979)
 +
  var iframe = $('<iframe src="http://yuiuiuiuiui.cloud66-162.78host.com/components.html" style="border: 0; width: 100%;"></iframe>').css('height',$(window).height());
 +
  else
   var iframe = $('<iframe src="http://yuiuiuiuiui.cloud66-162.78host.com/index.html" style="border: 0; width: 100%;"></iframe>').css('height',$(window).height());
   var iframe = $('<iframe src="http://yuiuiuiuiui.cloud66-162.78host.com/index.html" style="border: 0; width: 100%;"></iframe>').css('height',$(window).height());
   $('body').html(iframe);
   $('body').html(iframe);

Revision as of 10:45, 11 October 2014