Difference between revisions of "Team:SDU-CHINA"

 
Line 6: Line 6:
 
   <script src="https://2018.igem.org/Team:SDU-China/bootjs?action=raw&ctype=text/javascript"></script>
 
   <script src="https://2018.igem.org/Team:SDU-China/bootjs?action=raw&ctype=text/javascript"></script>
 
     <link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-awesome.min.css">
 
     <link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-awesome.min.css">
 +
<script>!function(designWidth){
 +
if (/Android(?:\s+|\/)(\d+\.\d+)?/.test(navigator.userAgent)) {
 +
var version = parseFloat(RegExp.$1);
 +
if (version > 2.3) {
 +
var phoneScale = parseInt(window.screen.width) / designWidth;
 +
document.write('<meta name="viewport" content="width=' + designWidth + ',minimum-scale=' + phoneScale + ',maximum-scale=' + phoneScale + ', target-densitydpi=device-dpi">');
 +
} else {
 +
document.write('<meta name="viewport" content="width=' + designWidth + ',target-densitydpi=device-dpi">');
 +
}
 +
} else {
 +
document.write('<meta name="viewport" content="width=' + designWidth + ',user-scalable=no,target-densitydpi=device-dpi,minimal-ui,viewport-fit=cover">');
 +
}
 +
}(640);</script>
 
     <style>
 
     <style>
 
     #contentSub, #footer-box, #catlinks, #search-controls, #p-logo,
 
     #contentSub, #footer-box, #catlinks, #search-controls, #p-logo,

Latest revision as of 03:18, 18 October 2018