Commit aa70db69428be33d7e96a25bb311aefdc92d59c6

Authored by 王富生
1 parent affc0c13

项目下拉框增加全部

login/test.html 0 → 100644
  1 +<!doctype html>
  2 +<html>
  3 +<meta http-equiv=Content-Type content="text/html;charset=utf-8">
  4 +<script src="JavaScript/jquery-1.7.2.min.js"></script>
  5 +<script src="JavaScript/jsPlayer.js"></script>
  6 +<script src="JavaScript/dtooltip-min.js"></script>
  7 +<link href="CSS/play.css?var=1121" rel="stylesheet" type="text/css">
  8 +
  9 +<script type="text/javascript">
  10 + function browserRedirect() {
  11 + var sUserAgent= navigator.userAgent.toLowerCase();
  12 + var bIsIpad= sUserAgent.match(/ipad/i) == "ipad";
  13 + var bIsIphoneOs= sUserAgent.match(/iphone os/i) == "iphone os";
  14 + var bIsMidp= sUserAgent.match(/midp/i) == "midp";
  15 + var bIsUc7= sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
  16 + var bIsUc= sUserAgent.match(/ucweb/i) == "ucweb";
  17 + var bIsAndroid= sUserAgent.match(/android/i) == "android";
  18 + var bIsCE= sUserAgent.match(/windows ce/i) == "windows ce";
  19 + var bIsWM= sUserAgent.match(/windows mobile/i) == "windows mobile";
  20 +
  21 +
  22 + if(bIsAndroid){
  23 + document.getElementById("a").style.display="block";
  24 + document.getElementById("b").style.display="none";
  25 + document.getElementById("c").style.display="none";
  26 + document.getElementById("d").style.display="none";
  27 + }
  28 + else if (bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsCE || bIsWM) {
  29 + document.getElementById("b").style.display="block";
  30 + document.getElementById("d").style.display="none";
  31 + document.getElementById("a").style.display="none";
  32 + document.getElementById("c").style.display="none";
  33 + } else if(bIsIpad) {
  34 + document.getElementById("c").style.display="block";
  35 + document.getElementById("a").style.display="none";
  36 + document.getElementById("b").style.display="none";
  37 + document.getElementById("d").style.display="none";
  38 +
  39 + }
  40 + else {
  41 + document.getElementById("d").style.display="block";
  42 + document.getElementById("a").style.display="none";
  43 + document.getElementById("b").style.display="none";
  44 + document.getElementById("c").style.display="none";
  45 +
  46 + }
  47 + }
  48 + window.onload=function(){browserRedirect();}
  49 +
  50 + $(document).ready(
  51 + function(){
  52 + var ps=new jsPlayer("700","500","myVideo");
  53 + }
  54 + );
  55 +</script>
  56 +
  57 +
  58 +<head>
  59 + <title>测试移动终端</title>
  60 +</head>
  61 +<body>
  62 +<div id="a"><p>这是安卓手机</p></div>
  63 +<div id="b"><p>这是苹果手机</p></div>
  64 +<div id="c"><p>这是ipad</p></div>
  65 +<div id="d"><p>这是电脑</p></div>
  66 +<div style="width:700px;margin:auto;">
  67 + <!--播放器代码开始-->
  68 + <div class="playContent">
  69 + <div class="playScreen">
  70 + <video id="myVideo">
  71 + <source src="Movie/th264.mp4" type="video/mp4">
  72 + </video>
  73 + </div>
  74 + <div class="proLines">
  75 + <div id="origin" class="arial">00:00:00</div>
  76 + <div class="line">
  77 + <div class="isPlayLine">
  78 + <div class="currentCircle">
  79 +
  80 + </div>
  81 + </div>
  82 + </div>
  83 + <div id="duration" class="arial"></div>
  84 + </div>
  85 + <div class="playBars">
  86 + <div class="prevBar"><img src="Images/prev.jpg" border="0" id="prev"></div>
  87 + <div class="startBar"><img src="Images/stop.jpg" border="0" id="imgStatus"></div>
  88 + <div class="nextBar"><img src="Images/next.jpg" border="0" id="next"></div>
  89 + <div class="voiceContent">
  90 + <div class="voice">
  91 + <img src="Images/voice.jpg" id="voiceImg" border="0">
  92 + </div>
  93 + <div class="voiceline">
  94 + <div class="voicekuai"></div>
  95 + </div>
  96 + </div>
  97 + </div>
  98 + </div>
  99 + <!--播放器代码结束-->
  100 +</div>
  101 +
  102 +</body>
  103 +
  104 +</html>
0 \ No newline at end of file 105 \ No newline at end of file
topages/workfill/workfill.js
@@ -135,7 +135,7 @@ var fun = { @@ -135,7 +135,7 @@ var fun = {
135 $("#work-projectName"+i).selectpicker('refresh'); 135 $("#work-projectName"+i).selectpicker('refresh');
136 $("#daily-report"+i).text(""); 136 $("#daily-report"+i).text("");
137 //如果不是本周则隐藏按钮 137 //如果不是本周则隐藏按钮
138 - if(clicknum >= 1) { 138 + /** if(clicknum >= 1) {
139 $("#btn-commit" + i).attr("style", "display:none;"); 139 $("#btn-commit" + i).attr("style", "display:none;");
140 $("#daily-report" + i).attr("readonly","readonly"); 140 $("#daily-report" + i).attr("readonly","readonly");
141 $("#btn-commit" + i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none'); 141 $("#btn-commit" + i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none');
@@ -149,7 +149,7 @@ var fun = { @@ -149,7 +149,7 @@ var fun = {
149 ele.find('.slide-icon').addClass('slide-icon-active'); 149 ele.find('.slide-icon').addClass('slide-icon-active');
150 ele.parent().siblings().find('.workquery-list-container').slideUp(); 150 ele.parent().siblings().find('.workquery-list-container').slideUp();
151 ele.parent().find('.workquery-list-container').slideUp(); 151 ele.parent().find('.workquery-list-container').slideUp();
152 - }else if(clicknum == 0){ 152 + }else if(clicknum == 0){*/
153 //日期回填 153 //日期回填
154 var date = moment().subtract('days', weekOfday-i).format('YYYY-MM-DD 01:00:00'); 154 var date = moment().subtract('days', weekOfday-i).format('YYYY-MM-DD 01:00:00');
155 $("#weekday"+i).attr("data-date",date); 155 $("#weekday"+i).attr("data-date",date);
@@ -171,7 +171,7 @@ var fun = { @@ -171,7 +171,7 @@ var fun = {
171 $("#btn-commit"+i).parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').addClass('display-none'); 171 $("#btn-commit"+i).parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').addClass('display-none');
172 $("#btn-commit"+i).parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').text(projectName); 172 $("#btn-commit"+i).parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').text(projectName);
173 } 173 }
174 - } 174 + //}
175 } 175 }
176 /**回填数据*/ 176 /**回填数据*/
177 $.each(data,function(index,row){ 177 $.each(data,function(index,row){