فهرست منبع

修改 顏色 全螢幕

manto07m 3 سال پیش
والد
کامیت
8e18cfed91
4فایلهای تغییر یافته به همراه30 افزوده شده و 16 حذف شده
  1. 12 3
      api-detail.php
  2. 1 0
      bim-support-header.html
  3. 0 2
      home.php
  4. 17 11
      other-list.php

+ 12 - 3
api-detail.php

@@ -15,6 +15,11 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
 			width: 10%;
 			text-align: center;
 		}
+
+		.vjs-tech {
+			height: 100%;
+
+		}
 	</style>
 	<script type="application/javascript">
 		var i = 0;
@@ -154,7 +159,7 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
 									<section class="panel">
 										<div class="panel-body">
 											<h4 style="color: black;font-weight: bold;">操作影片</h4>
-											<video style="width:100%;height:320px;" id="my-video" class="video-js" autoplay preload="auto" data-setup="{}">
+											<video style="width:100%;height:320px;" id="my-video" class="video-js" autoplay controls preload="auto" data-setup="{}">
 												<source id="video-src" src='/Common/assets/images/not-found-video.mp4'>
 											</video>
 										</div>
@@ -179,7 +184,7 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
 										</div>
 									</section>
 									<button type="button" class="mb-xs mt-xs mr-xs btn btn-info col-md-offset-11" onclick="window.history.go(-1); return false;">返回</button>
-									
+
 								</div>
 
 							</div>
@@ -195,7 +200,7 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
 	<script>
 		/*Vue */
 		vm.mount('.body');
-addUserImage(userName.charAt(0),role);
+		addUserImage(userName.charAt(0), role);
 		const downloads = ["dll", "dyn", "exe", "msi"];
 		const videos = ["mp4", "m3u8", "ts", "avi"];
 		const hidden = ["png"];
@@ -286,6 +291,10 @@ addUserImage(userName.charAt(0),role);
 
 
 			});
+			var player = videojs("my-video");
+			player.on("fullscreenchange", () => {
+				$(".vjs-tech").css("height","100%");
+			})
 		});
 	</script>
 	<script src="/Common/assets/vendor/jstree/jstree.js"></script>

+ 1 - 0
bim-support-header.html

@@ -25,6 +25,7 @@
       <link href="/Common/assets/stylesheets/skins/default.css" rel="stylesheet"><!-- Theme Custom CSS -->
       <link href="/Common/assets/stylesheets/theme-custom.css" rel="stylesheet">
       <link href="https://cdn.datatables.net/1.10.25/css/jquery.dataTables.css" rel="stylesheet" type="text/css">
+      <link rel="stylesheet" href="/Common/assets/stylesheets/fa-icon.css" />
       <!-- Icon -->
       <link href="/Common/assets/images/favicon.ico" rel="shortcut icon"><!-- BIM支援網CSS -->
       <link href="./script/css/bim-support.css" rel="stylesheet" type="text/css"><!-- Head Libs -->

+ 0 - 2
home.php

@@ -75,8 +75,6 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
 					BIM資源網提供元件庫、API庫以及樣版庫,使用git管理元件、API以及樣板及其之版本控制,可瀏覽所有元件、API及樣板的內容及其相關屬性,<br>
 					以利下載自己所需之檔案。<br>
 				</h4>
-
-
 		</div>
 	</section>
 

+ 17 - 11
other-list.php

@@ -8,6 +8,7 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
 	<!-- jstree CSS -->
 	<link rel="stylesheet" href="/Common/assets/vendor/jstree/themes/default/style.css" />	
 	<?php include("bim-support-header.html"); ?>
+	
 	<script src="./script/js/global.js"></script>
 	<script src="./script/js/pdfobject.min.js"></script>
 	<script type="application/javascript">
@@ -16,10 +17,10 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
 		var type = url.searchParams.get("type");
 		if (type === null) {
 			window.location.href = "other-list.php?type=收費建議";
-		}		
+		}
 		var userName = "<?php echo $_SESSION['name'] ?>";
 		var role = "<?php echo ($groupName); ?>";
-		var right = <?php echo ($right); ?>;		
+		var right = <?php echo ($right); ?>;
 		var $grid;
 		pageHeader = "BIM相關資源";
 	</script>
@@ -45,7 +46,10 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
 			text-align: center;
 			font-size: 18px;
 		}
+
+		
 	</style>
+	
 </head>
 
 <body>
@@ -76,7 +80,7 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
 									<search-bar></search-bar>
 									<li id="reset" style="padding-top: 10px;">
 										<div class="input-group input-search" style="table-layout: auto;">
-											<button class="btn btn-primary" type="button" id="resetbtn" data-toggle="tooltip" ><i class="fa fa-undo"></i></button>
+											<button class="btn btn-primary" type="button" id="resetbtn" data-toggle="tooltip"><i class="fa fa-undo"></i></button>
 										</div>
 									</li>
 								</ul>
@@ -133,14 +137,14 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
 			</section>
 		</div>
 	</section>
-	
+
 	<?php include("bim-support-body.html"); ?>
 
 	<script>
 		vm.mount('.body');
-addUserImage(userName.charAt(0),role);
+		addUserImage(userName.charAt(0), role);
 		$(document).ready(function() {
-			PDFObject.embed("./assets/null.pdf", "#pdfFile"); 
+			PDFObject.embed("./assets/null.pdf", "#pdfFile");
 
 			/*載入jstree */
 			$('#treeAjaxHTML').jstree({
@@ -201,8 +205,7 @@ addUserImage(userName.charAt(0),role);
 					$("#fileDate").empty();
 					$("#fileDate").append(data.node.a_attr.time);
 				}
-			}).bind('loaded.jstree', function(e, data) {
-			});
+			}).bind('loaded.jstree', function(e, data) {});
 			$("#treeAjaxHTML").on('open_node.jstree', function(event, data) {
 				data.instance.set_type(data.node, 'f-open');
 			});
@@ -225,9 +228,12 @@ addUserImage(userName.charAt(0),role);
 				$("#treeAjaxHTML").jstree("search", search);
 			}
 		});
-		
-		$('[data-toggle="tooltip"]').tooltip({container: "body",placement:"right",title:"重置搜尋結果"});
-		
+
+		$('[data-toggle="tooltip"]').tooltip({
+			container: "body",
+			placement: "right",
+			title: "重置搜尋結果"
+		});
 	</script>
 	<script src="/Common/assets/vendor/jstree/jstree.js"></script>