update
This commit is contained in:
@@ -75,6 +75,7 @@ html body{
|
|||||||
color: white;
|
color: white;
|
||||||
height: auto;
|
height: auto;
|
||||||
min-height: 50%;
|
min-height: 50%;
|
||||||
|
max-height: 100%;
|
||||||
}
|
}
|
||||||
#player {
|
#player {
|
||||||
height: auto;
|
height: auto;
|
||||||
@@ -125,9 +126,13 @@ footer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
#sidenav li {
|
#sidenav li {
|
||||||
height: 50px;
|
height: 30px;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidenav li.subli {
|
||||||
|
list-style: circle;
|
||||||
|
margin-left: 50px;
|
||||||
}
|
}
|
||||||
#sidenav ul {
|
#sidenav ul {
|
||||||
margin-left: 50px;
|
margin-left: 50px;
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
<li>item1</li>
|
<li>item1</li>
|
||||||
<li>item2</li>
|
<li>item2</li>
|
||||||
<li>item3</li>
|
<li>item3</li>
|
||||||
<li>subitem1</li>
|
<li class="subli">subitem1</li>
|
||||||
<li>subitem2</li>
|
<li class="subli">subitem2</li>
|
||||||
<li>item4</li>
|
<li>item4</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
<section id="chapterInfo"></section>
|
<section id="chapterInfo"></section>
|
||||||
</div>
|
</div>
|
||||||
<audio controls autoplay id="player">
|
<audio controls autoplay id="player">
|
||||||
<source id ="playersource" src="">;
|
<source id ="playersource" src="audio.ogg">;
|
||||||
</audio>
|
</audio>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
<footer></footer>
|
<footer></footer>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<object data="js/test.json" type="application/json" id="episode" hidden>
|
<object data="js/episode.json" type="application/json" id="episode" hidden>
|
||||||
</object>
|
</object>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
/*
|
|
||||||
* To change this template, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
function Cheapter() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function isCurrentCheapter(id, time) {
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
/*
|
|
||||||
* To change this template, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
function Episiode(name) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function getnextTrack() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
14
js/mlib.js
14
js/mlib.js
@@ -67,15 +67,13 @@ function jumpById(trackId, chapterId) {
|
|||||||
function timeUpdate() {
|
function timeUpdate() {
|
||||||
actChapter = calcChapterId(actTrack, player.currentTime);
|
actChapter = calcChapterId(actTrack, player.currentTime);
|
||||||
bread.innerHTML = createBreadCrumb(actTrack, actChapter);
|
bread.innerHTML = createBreadCrumb(actTrack, actChapter);
|
||||||
select.setAttribute("class", "");
|
|
||||||
select = document.getElementById('list' + actTrack + '.' + actChapter);
|
|
||||||
select.setAttribute("class", "select");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function createBreadCrumb(trackId, chapterId) {
|
function createBreadCrumb(trackId, chapterId) {
|
||||||
|
episodeInfo.innerHTML = "";
|
||||||
|
trackInfo.innerHTML = "";
|
||||||
|
chapterInfo.innerHTML = "";
|
||||||
|
|
||||||
episodeInfo.innerHTML = episodeObj.info;
|
episodeInfo.innerHTML = episodeObj.info;
|
||||||
var trackObj = episodeObj.tracks[trackId];
|
var trackObj = episodeObj.tracks[trackId];
|
||||||
trackInfo.innerHTML = trackObj.info;
|
trackInfo.innerHTML = trackObj.info;
|
||||||
@@ -85,6 +83,10 @@ function createBreadCrumb(trackId, chapterId) {
|
|||||||
chapterInfo.innerHTML = chapterObj.info;
|
chapterInfo.innerHTML = chapterObj.info;
|
||||||
actNewTitle = actNewTitle + " -> " + chapterObj.title;
|
actNewTitle = actNewTitle + " -> " + chapterObj.title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select.setAttribute("class", "");
|
||||||
|
select = document.getElementById('list' + actTrack + '.' + actChapter);
|
||||||
|
select.setAttribute("class", "select");
|
||||||
return actNewTitle;
|
return actNewTitle;
|
||||||
}
|
}
|
||||||
function calcChapterId(trackId, time) {
|
function calcChapterId(trackId, time) {
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
/*
|
|
||||||
* To change this template, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
/*
|
|
||||||
* To change this template, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
16
js/track.js
16
js/track.js
@@ -1,16 +0,0 @@
|
|||||||
/*
|
|
||||||
* To change this template, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
|
|
||||||
function Track() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function getnextCheapter() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
function isCurrentTrack(id) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user