Difference between revisions of "Team:USTC"

Line 291: Line 291:
 
                       windowWidth = document.documentElement.clientWidth;
 
                       windowWidth = document.documentElement.clientWidth;
 
                       $('#Project').attr("coords",("'" + (640*windowWidth/1280) + "," + (20*windowWidth/1280) + "," + (880*windowWidth/1280) + "," + (95*windowWidth/1280) +"'"));
 
                       $('#Project').attr("coords",("'" + (640*windowWidth/1280) + "," + (20*windowWidth/1280) + "," + (880*windowWidth/1280) + "," + (95*windowWidth/1280) +"'"));
 
+
                      $('#Team').attr("coords",("'" + (480*windowWidth/1280) + "," + (208*windowWidth/1280) + "," + (595*windowWidth/1280) + "," + (455*windowWidth/1280) +"'"));
 
+
                      $('#Awards').attr("coords",("'" + (120*windowWidth/1280) + "," + (208*windowWidth/1280) + "," + (232*windowWidth/1280) + "," + (432*windowWidth/1280) +"'"));
 +
                      $('#HumanPractice').attr("coords",("'" + (480*windowWidth/1280) + "," + (490*windowWidth/1280) + "," + (725*windowWidth/1280) + "," + (568*windowWidth/1280) +"'"));
 +
                      $('#Parts').attr("coords",("'" + (1050*windowWidth/1280) + "," + (98*windowWidth/1280) + "," + (1170*windowWidth/1280) + "," + (321*windowWidth/1280) +"'"));
 
                     });
 
                     });
  
Line 302: Line 304:
 
                   $("div.sidebar").prependTo("body");
 
                   $("div.sidebar").prependTo("body");
 
                   $("div#sideMenu").prependTo("div.pusher");
 
                   $("div#sideMenu").prependTo("div.pusher");
 
+
                     var windowWidth;
                      
+
                      windowWidth = document.documentElement.clientWidth;
 +
                      $('#Project').attr("coords",("'" + (640*windowWidth/1280) + "," + (20*windowWidth/1280) + "," + (880*windowWidth/1280) + "," + (95*windowWidth/1280) +"'"));
 +
                      $('#Team').attr("coords",("'" + (480*windowWidth/1280) + "," + (208*windowWidth/1280) + "," + (595*windowWidth/1280) + "," + (455*windowWidth/1280) +"'"));
 +
                      $('#Awards').attr("coords",("'" + (120*windowWidth/1280) + "," + (208*windowWidth/1280) + "," + (232*windowWidth/1280) + "," + (432*windowWidth/1280) +"'"));
 +
                      $('#HumanPractice').attr("coords",("'" + (480*windowWidth/1280) + "," + (490*windowWidth/1280) + "," + (725*windowWidth/1280) + "," + (568*windowWidth/1280) +"'"));
 +
                      $('#Parts').attr("coords",("'" + (1050*windowWidth/1280) + "," + (98*windowWidth/1280) + "," + (1170*windowWidth/1280) + "," + (321*windowWidth/1280) +"'"));
 
                    
 
                    
  

Revision as of 02:30, 19 October 2016

Modeling