Update to work with Caddy server.

This commit is contained in:
Ralph Caraveo III committed 2015-06-14 21:17:35 -07:00
1 parent 1c9edb7dda
commit dc0a69b266
4 files changed
+13 -8

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
localhost:2020
gzip
log caddy.log
# The root of the site
root .
+4
View File
@@ -0,0 +1,4 @@
127.0.0.1 - [14/Jun/2015:21:16:02 -0700] "GET / HTTP/1.1" 304 0
127.0.0.1 - [14/Jun/2015:21:16:02 -0700] "GET /cdgmagic_cdgplayer.js HTTP/1.1" 304 0
127.0.0.1 - [14/Jun/2015:21:16:02 -0700] "GET /cdgmagic_cdgdecoder_lowresource.js HTTP/1.1" 304 0
127.0.0.1 - [14/Jun/2015:21:16:05 -0700] "GET /media/Coldplay%20-%20Sky%20Full%20Of%20Stars.ogg HTTP/1.1" 200 0
+3 -3
View File
@@ -64,9 +64,9 @@ function set_file_prefix(file_url_prefixes)
// Ignore this call if we weren't given a file name.
if (file_url_prefixes == "") { return; };
// Construct the file paths.
// Ensure the subfolder below: karaoke/ has the cdg/mp3 media files
var audio_file_prefix = "karaoke/" + file_url_prefixes.split(":", 2)[0];
var cdg_file_prefix = "karaoke/" + file_url_prefixes.split(":", 2)[1];
// Ensure the subfolder below: media/ has the cdg/mp3 media files
var audio_file_prefix = "media/" + file_url_prefixes.split(":", 2)[0];
var cdg_file_prefix = "media/" + file_url_prefixes.split(":", 2)[1];
// Prepend the media files source directoy.
// file_url_prefix = "media/" + file_url_prefix;
// Stop, reset, and blank all the CD+G related stuff.
@@ -98,6 +98,7 @@ function toggle_2x_mode()
<option value="Frankie Avalon - Beauty School Dropout:Frankie Avalon - Beauty School Dropout">Frankie Avalon - Beauty School Dropout</option>
<option value="Queensryche - Silent Lucidity:Queensryche - Silent Lucidity">Queensryche - Silent Lucidity</option>
<option value="Amy Winehouse - MONKEY MAN:Amy Winehouse - MONKEY MAN">Amy Winehouse - MONKEY MAN</option>
<option value="Coldplay - Sky Full Of Stars:Coldplay - Sky Full Of Stars">Coldplay - Sky Full Of Stars</option>
</select>
</center>
<br><br>This JavaScript based player should work in most HTML5 compatible browsers supporting both the &lt;canvas&gt; and &lt;audio&gt; (note: "Sample Project" 01-04 are silent) tags, including many mobile and embedded devices.
@@ -115,10 +116,5 @@ function toggle_2x_mode()
</div><!--end right_content-->
<div class="footer">
<br><a href="http://sourceforge.net/projects/cdgmagic"><img src="./HTML5-CDGPlayer_files/sflogo.php" width="80" height="15" alt="Get CD+Graphics Magic at SourceForge.net. Fast, secure and Free Open Source software downloads"></a>
</div>
</body></html>