]> Joshua Wise's Git repositories - patchfork.git/blobdiff - theme/mini/theme.js
Add Jon Fink's iPhone theme/frontend for Pitchfork. Access using player/mini.php.
[patchfork.git] / theme / mini / theme.js
diff --git a/theme/mini/theme.js b/theme/mini/theme.js
new file mode 100644 (file)
index 0000000..c234418
--- /dev/null
@@ -0,0 +1,68 @@
+function showPlaylist() {
+if (document.all) {
+  document.all['content'].style.display = 'block';
+  document.all['content'].style.zIndex = 5;
+
+}
+else if (document.getElementById) {
+  document.getElementById('content').style.display = 'block';
+  document.getElementById('content').style.zIndex = 5;
+
+}
+
+}
+
+function showControls() {
+if (document.all) {
+  document.all['content'].style.display = 'none';
+  document.all['content'].style.zIndex = -1;
+}
+else if (document.getElementById) {
+  document.getElementById('content').style.display = 'none';
+  document.getElementById('content').style.zIndex = -1;
+
+}
+
+}
+
+/* number of "windows" on the directory browser */
+var BROWSER_NUM = 3;
+
+/* the border around the playing item in the playlist */
+var PLAYLIST_PLAYING_STYLE = "1px solid #a20000";
+
+/* this is the color thing that you add blink in */
+var DEFAULT_BLINK_COLOR = "#C1DAD6";
+
+var BASE_IMG_DIR = "../theme/default/images/";
+
+var IMAGE = new Object();
+
+IMAGE.BUTTON_PLAY              = BASE_IMG_DIR + "play_25.png";
+IMAGE.BUTTON_STOP              = BASE_IMG_DIR + "stop_25.png";
+IMAGE.BUTTON_PAUSE             = BASE_IMG_DIR + "pause_25.png";
+IMAGE.BUTTON_PREVIOUS          = BASE_IMG_DIR + "previous_25.png";
+IMAGE.BUTTON_NEXT              = BASE_IMG_DIR + "next_25.png";
+
+IMAGE.BROWSER_PLAYLIST_REMOVE  = BASE_IMG_DIR + "disabled_15.png";
+
+IMAGE.SERVER_SETTINGS_ENABLED  = BASE_IMG_DIR + "enabled_15.png";
+IMAGE.SERVER_SETTINGS_DISABLED         = BASE_IMG_DIR + "disabled_15.png";
+IMAGE.SERVER_SETTINGS_XFADE_DOWN= BASE_IMG_DIR + "left_15.png";
+IMAGE.SERVER_SETTINGS_XFADE_UP = BASE_IMG_DIR + "right_15.png";
+
+IMAGE.CLOSE                    = BASE_IMG_DIR + "close_15.png";
+IMAGE.WORKING                  = BASE_IMG_DIR + "working.gif";
+
+IMAGE.MENU_ITEM_CROP           = BASE_IMG_DIR + "crop_30.png";
+IMAGE.MENU_ITEM_REMOVE         = BASE_IMG_DIR + "remove_30.png";
+IMAGE.MENU_ITEM_DIRECTORY      = BASE_IMG_DIR + "folder_30.png";
+
+IMAGE.PAGINATION_FOLLOW                = BASE_IMG_DIR + "follow-playing-yes.png";
+IMAGE.PAGINATION_NOFOLLOW      = BASE_IMG_DIR + "follow-playing-no.png";
+
+IMAGE.JUMP_CURRENT             = BASE_IMG_DIR + "jump-to-current.png";
+
+
+/* this should be whatever the backgroun is converted from hex to dec */
+IMAGE.STREAM_BGCOLOR           = "15198183";
This page took 0.023882 seconds and 4 git commands to generate.