Browse Source

CSS change to light

manto07m 3 years ago
parent
commit
a67966508e
4 changed files with 19 additions and 16 deletions
  1. 4 0
      script/css/bim-support.css
  2. 3 4
      script/js/video-play.js
  3. 2 2
      video-list.php
  4. 10 10
      video-play.php

+ 4 - 0
script/css/bim-support.css

@@ -90,4 +90,8 @@ th {
 
 .video {
     color: #0088CC;
+}
+
+ul.nav-main > li > .list-a:hover {
+	background-color: #B3E5FF;
 }

+ 3 - 4
script/js/video-play.js

@@ -37,7 +37,6 @@ function getVideoInfo() {
         },
         dataType: "json"
     }).done(function (result) {
-        $("#header").append(result[0].title);
         getVideoList(result[0].dir_name);
     }).error(function (error) {
         console.log(error);
@@ -58,12 +57,12 @@ function getVideoList(dir) {
         $("#video-list").empty();
         for (j = 0; j < videos.length; j++) {
             if (videos[j].id == id)
-                $("#video-list").append("<li><a style='color:#0088CC;background-color:#21262d' href = '#' onclick='getVideo(" + videos[j].id + ")'><i class = 'fa fa-video-camera'></i><span>" + videos[j].title + '</span></a></li>');
+                $("#video-list").append("<li><a class='list-a' style='color:#0088CC;background-color:#B3E5FF' href = '#' onclick='getVideo(" + videos[j].id + ")'><i class = 'fa fa-video-camera'></i><span>" + videos[j].title + '</span></a></li>');
             else
-                $("#video-list").append("<li><a style='color:#0088CC;' href = '#' onclick='getVideo(" + videos[j].id + ")'><i class = 'fa fa-video-camera'></i><span>" + videos[j].title + '</span></a></li>');
+                $("#video-list").append("<li><a class='list-a' style='color:#0088CC;' href = '#' onclick='getVideo(" + videos[j].id + ")'><i class = 'fa fa-video-camera'></i><span>" + videos[j].title + '</span></a></li>');
         }
         for (j = 0; j < files.length; j++) {
-            $("#file-list").append("<li><a style='color:#0088CC;' class='video' href = '#' onclick='getFile(" + files[j].id + ")'><i class = 'fa " + fileType[files[j].type] + "'></i><span>" + files[j].title + "." + files[j].type + '</span></a></li>');
+            $("#file-list").append("<li><a class='list-a' style='color:#0088CC;' class='video' href = '#' onclick='getFile(" + files[j].id + ")'><i class = 'fa " + fileType[files[j].type] + "'></i><span>" + files[j].title + "." + files[j].type + '</span></a></li>');
         }
 
 

+ 2 - 2
video-list.php

@@ -21,7 +21,7 @@ if (!isset($_SESSION['loggedin'])) {
 </head>
 
 <body>
-<section class="body">
+	<section class="body">
 		<!-- start: header -->
 		<header-menu></header-menu>
 		<!-- end: header -->
@@ -31,7 +31,7 @@ if (!isset($_SESSION['loggedin'])) {
 			<!-- end: sidebar -->
 			<section role="main" class="content-body">
 				<header class="page-header">
-					<h2>BIM影音網</h2>
+					<h2>{{pageHeader}}</h2>
 					<button class="mb-xs mt-xs mr-xs btn btn-default right" type="button" style="float: right;" onclick="initList(parent)">回上層</button>
 				</header>
 				<div class="row" id="video-list">

+ 10 - 10
video-play.php

@@ -13,7 +13,7 @@ if (isset($_POST["id"])) {
 <head>
     <?php include("bim-support-header.html"); ?>
     <link href="https://vjs.zencdn.net/7.17.0/video-js.css" rel="stylesheet">
-    <script src="./script/js/global.js"></script>  
+    <script src="./script/js/global.js"></script>
     <script src="./script/js/jquery.redirect.js"></script>
 
     <script>
@@ -24,17 +24,17 @@ if (isset($_POST["id"])) {
 </head>
 
 <body>
-<section class="body">
-		<!-- start: header -->
-		<header-menu></header-menu>
-		<!-- end: header -->
-		<div class="inner-wrapper">
-			<!-- start: sidebar -->
-			<side-bar></side-bar>
-			<!-- end: sidebar -->
+    <section class="body">
+        <!-- start: header -->
+        <header-menu></header-menu>
+        <!-- end: header -->
+        <div class="inner-wrapper">
+            <!-- start: sidebar -->
+            <side-bar></side-bar>
+            <!-- end: sidebar -->
             <section role="main" class="content-body">
                 <header class="page-header">
-                    <h2 id="header">BIM影音網 - </h2>
+                    <h2 id="header">{{pageHeader}}</h2>
                 </header>
                 <div class="row">
                     <div class="col-md-9">