Difference between revisions of "Team:SJTU-software/Video"

 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{SJTU-software}}
 
{{SJTU-software}}
 
<html>
 
<html>
<script type="text/javascript">
 
function browserRedirect() {
 
var sUserAgent= navigator.userAgent.toLowerCase();
 
var bIsIpad= sUserAgent.match(/ipad/i) == "ipad";
 
var bIsIphoneOs= sUserAgent.match(/iphone os/i) == "iphone os";
 
var bIsMidp= sUserAgent.match(/midp/i) == "midp";
 
var bIsUc7= sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
 
var bIsUc= sUserAgent.match(/ucweb/i) == "ucweb";
 
var bIsAndroid= sUserAgent.match(/android/i) == "android";
 
var bIsCE= sUserAgent.match(/windows ce/i) == "windows ce";
 
var bIsWM= sUserAgent.match(/windows mobile/i) == "windows mobile";
 
 
 
if(bIsAndroid){
 
document.getElementById("a").style.display="block";
 
document.getElementById("b").style.display="none";
 
document.getElementById("c").style.display="none";
 
document.getElementById("d").style.display="none";
 
}
 
else if (bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsCE || bIsWM) {
 
document.getElementById("b").style.display="block";
 
document.getElementById("d").style.display="none";
 
document.getElementById("a").style.display="none";
 
document.getElementById("c").style.display="none";
 
} else if(bIsIpad) {
 
document.getElementById("c").style.display="block";
 
document.getElementById("a").style.display="none";
 
document.getElementById("b").style.display="none";
 
document.getElementById("d").style.display="none";
 
 
}
 
else {
 
document.getElementById("d").style.display="block";
 
document.getElementById("a").style.display="none";
 
document.getElementById("b").style.display="none";
 
document.getElementById("c").style.display="none";
 
 
}
 
}
 
  
window.onload=function(){browserRedirect();}
+
 
+
    $(document).ready(
+
                function(){
+
                    var ps=new jsPlayer("700","500","myVideo");
+
                }
+
        );
+
</script>
+
 
<body>
 
<body>
 
     <div class="wrapper">
 
     <div class="wrapper">
  
 
         <!-- MAIN-->
 
         <!-- MAIN-->
             <video id="myVideo" style="width:300px;">
+
             <video src="https://static.igem.org/mediawiki/2018/2/2f/T--SJTU-software--teamvideo.mp4"
                <source src="https://static.igem.org/mediawiki/2018/7/72/T--SJTU-software--Movie1.mp4" type="video/mp4">
+
            width="800"
 +
            controls="controls"
 +
            style="padding:100px;">
 +
            Your browser does not support the video tag.
 
             </video>
 
             </video>
 
         <!-- ENDS MAIN -->
 
         <!-- ENDS MAIN -->

Latest revision as of 14:06, 15 October 2018

    Address

    NO. 800 Dongchuan Road, Minhang District, Shanghai, China

    Contact Us

    rockywei@sjtu.edu.cn

    SJTU-software