|
|
@@ -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>');
|
|
|
}
|
|
|
|
|
|
|