[Slim-Checkins] r9408 - in /trunk/server/HTML/Nokia770: browse.js
browsedb.html slimserver.css
bklaas at svn.slimdevices.com
bklaas at svn.slimdevices.com
Mon Sep 4 13:40:12 PDT 2006
Author: bklaas
Date: Mon Sep 4 13:40:10 2006
New Revision: 9408
URL: http://svn.slimdevices.com?rev=9408&view=rev
Log:
adding gallery select
Modified:
trunk/server/HTML/Nokia770/browse.js
trunk/server/HTML/Nokia770/browsedb.html
trunk/server/HTML/Nokia770/slimserver.css
Modified: trunk/server/HTML/Nokia770/browse.js
URL: http://svn.slimdevices.com/trunk/server/HTML/Nokia770/browse.js?rev=9408&r1=9407&r2=9408&view=diff
==============================================================================
--- trunk/server/HTML/Nokia770/browse.js (original)
+++ trunk/server/HTML/Nokia770/browse.js Mon Sep 4 13:40:10 2006
@@ -19,6 +19,37 @@
}
}
+function toggleGalleryView(artwork) {
+ //var thisdoc = parent.browser;
+ var thisdoc = document;
+ if (thisdoc.location.pathname != '') {
+ myString = new String(thisdoc.location.href);
+ if (artwork) {
+ setCookie( 'SlimServer-albumView', "1" );
+ if (thisdoc.location.href.indexOf('start') == -1) {
+ thisdoc.location=thisdoc.location.href+"&artwork=1";
+ } else {
+ myString = new String(thisdoc.location.href);
+ var rExp = /\&start=/gi;
+ thisdoc.location=myString.replace(rExp, "&artwork=1&start=");
+ }
+ } else {
+ setCookie( 'SlimServer-albumView', "" );
+ var rExp = /\&artwork=1/gi;
+ thisdoc.location=myString.replace(rExp, "");
+ }
+ }
+}
+
+function setCookie(name, value) {
+ var expires = new Date();
+ expires.setTime(expires.getTime() + 1000*60*60*24*365);
+ document.cookie =
+ name + "=" + escape(value) +
+ ((expires == null) ? "" : ("; expires=" + expires.toGMTString()));
+}
+
window.onload= function() {
refreshLibraryInfo();
}
+
Modified: trunk/server/HTML/Nokia770/browsedb.html
URL: http://svn.slimdevices.com/trunk/server/HTML/Nokia770/browsedb.html?rev=9408&r1=9407&r2=9408&view=diff
==============================================================================
--- trunk/server/HTML/Nokia770/browsedb.html (original)
+++ trunk/server/HTML/Nokia770/browsedb.html Mon Sep 4 13:40:10 2006
@@ -27,9 +27,10 @@
<a href="browsetree.html?player=[% playerURI %]"><font class="pagebartext">[% "HERE" | string %]</a>.</font>
[% END %]
[% END %]
+[% PROCESS galleryselect.html %]
<table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="#EEEEEE">
- <tr>
- <td> [% PROCESS crumblist noHomeLink = 1%]</td>
+ <td valign = 'top'> [% PROCESS crumblist noHomeLink = 1%]
+ </td>
</tr>
<tr>
<td class="pagebartext">
Modified: trunk/server/HTML/Nokia770/slimserver.css
URL: http://svn.slimdevices.com/trunk/server/HTML/Nokia770/slimserver.css?rev=9408&r1=9407&r2=9408&view=diff
==============================================================================
--- trunk/server/HTML/Nokia770/slimserver.css (original)
+++ trunk/server/HTML/Nokia770/slimserver.css Mon Sep 4 13:40:10 2006
@@ -375,6 +375,12 @@
top: 25;
z-index: 12;
}
+div#gallerySelect {
+ position: fixed;
+ left: 20;
+ top: 30;
+ z-index: 12;
+}
div#addedToPlaylist{
position: fixed;
z-index: 100;
More information about the checkins
mailing list