diff --git a/dbpopulate.js b/dbpopulate.js index 519b156..df47dfb 100755 --- a/dbpopulate.js +++ b/dbpopulate.js @@ -34,8 +34,7 @@ function filewalker (dir, done) { // If directory, execute a recursive call if (stat && stat.isDirectory()) { - // Add directory to array [comment if you need to remove the directories from the array] - results.push(file) + //results.push(file) filewalker(file, function (err, res) { if (err) return done(err) diff --git a/public/icon/pause.svg b/public/icon/pause.svg new file mode 100644 index 0000000..7b8f99c --- /dev/null +++ b/public/icon/pause.svg @@ -0,0 +1,10 @@ + + + diff --git a/public/icon/play-next.svg b/public/icon/play-next.svg new file mode 100644 index 0000000..e2d3601 --- /dev/null +++ b/public/icon/play-next.svg @@ -0,0 +1,9 @@ + + + diff --git a/public/icon/play-prev.svg b/public/icon/play-prev.svg new file mode 100644 index 0000000..5d4b441 --- /dev/null +++ b/public/icon/play-prev.svg @@ -0,0 +1,10 @@ + + + diff --git a/public/icon/play.svg b/public/icon/play.svg new file mode 100644 index 0000000..5cecb82 --- /dev/null +++ b/public/icon/play.svg @@ -0,0 +1,3 @@ + + diff --git a/public/icon/volume-low.svg b/public/icon/volume-low.svg new file mode 100644 index 0000000..4923380 --- /dev/null +++ b/public/icon/volume-low.svg @@ -0,0 +1,7 @@ + + + diff --git a/public/icon/volume-off.svg b/public/icon/volume-off.svg new file mode 100644 index 0000000..ae0022c --- /dev/null +++ b/public/icon/volume-off.svg @@ -0,0 +1,40 @@ + + + + diff --git a/public/icon/volume.svg b/public/icon/volume.svg new file mode 100644 index 0000000..0f31a8d --- /dev/null +++ b/public/icon/volume.svg @@ -0,0 +1,9 @@ + + + diff --git a/public/index.css b/public/index.css index c3e65c4..ff8da8b 100644 --- a/public/index.css +++ b/public/index.css @@ -73,9 +73,84 @@ tr:nth-child(even) { background-color: #112635; cursor: pointer; } +.paging.btn.inner { + background-color: #102331; +} .paging.bg { background-color: #0e202c; } +.player-controls { + display: flex; + flex-direction: row; + height: 40px; + background-color: #0c2233; +} +.player-controls .grow { + flex-grow: 1; +} +.player-controls span { + display: block; +} +.player-controls .icon { + width: 30px; + height: 30px; + cursor: pointer; + background-size: 60%; + background-repeat: no-repeat; + background-position: center; + margin: 5px; + padding: 0 5px; +} +.player-controls .timestamp { + margin-top: 0.9em; + font-size: 0.8em; + padding: 0 5px; + min-width: 8em; + text-align: center; +} +.play-btn { + background-image: url('icon/play.svg'); +} +.pause-btn { + background-image: url('icon/pause.svg'); +} +.mute-btn { + background-image: url('icon/volume.svg'); +} +.mute1-btn { + background-image: url('icon/volume-low.svg'); +} +.muted-btn { + background-image: url('icon/volume-off.svg'); +} +.next-btn { + background-image: url('icon/play-next.svg'); +} +.prev-btn { + background-image: url('icon/play-prev.svg'); +} +.volume { + display: flex; + flex-direction: row; +} +.volume .volume-bar { + width: 5em; +} +.volume .volume-bar .seek-inner { + width: 100%; +} +.seek-container { + height: 8px; + width: 100%; + margin: 16px 5px 0 5px; + background-color: #00131b; + cursor: pointer; +} +.seek-inner { + height: 100%; + width: 0%; + background-color: #00b7ff; +} @media only screen and (max-width: 600px) { tr td:nth-child(1), th:nth-child(1) { display: none; @@ -100,4 +175,7 @@ tr:nth-child(even) { .allowance { margin-bottom: 100px !important; } + .volume .volume-bar { + display: none; + } } diff --git a/public/index.html b/public/index.html index 9cad845..be6cdbd 100644 --- a/public/index.html +++ b/public/index.html @@ -25,19 +25,32 @@