Search and Top Navigation
Ticket #3185: ui.photogallerydemo_slider.patch
File ui.photogallerydemo_slider.patch, 3.8 KB (added by apaella@gmail.com, August 14, 2008 05:39PM UTC)
The patch
Index: img/slider-bg-2.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: img\slider-bg-2.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Index: img/slider-handle.gif
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: img\slider-handle.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Index: index.html
===================================================================
--- index.html (revision 537)
+++ index.html (working copy)
@@ -15,9 +15,21 @@
+
+
+
@@ -109,6 +121,14 @@
+
+ Resize images
+
+
+
+
+
+
Trash (drag me back)
Index: js/demo.js
===================================================================
--- js/demo.js (revision 537)
+++ js/demo.js (working copy)
@@ -117,6 +117,26 @@
.displayBox();
return false;
});
+
+
+ var sliderChange = function(e, ui){
+ $('.img_content').each(function(index, item){
+ var _new = 1.44 * $('#sliderSize').slider("value");
+
+ $(this).css("width", _new+'px')
+ .parent().css("width", (_new+16)+'px');
+
+ });
+ }
+ $('#sliderSize').slider({
+ startValue : 100,
+ min : 50,
+ max : 100,
+ stepping : 5,
+ slide : sliderChange,
+ change : sliderChange
+ });
+
});
function createGalleryItem(img) {
Index: theme/css/screen.css
===================================================================
--- theme/css/screen.css (revision 537)
+++ theme/css/screen.css (working copy)
@@ -116,12 +116,12 @@
----------------
=SIDEBAR
---------------- */
-.box {
+.box, .box2 {
margin: 18px;
border: 1px solid #ccc;
background: #fff;
}
-.box h2 {
+.box h2, .box2 h2 {
padding: 0 8px;
margin: 0;
font-size: 1.5em;
Download in other formats:
Original Format
File ui.photogallerydemo_slider.patch, 3.8 KB (added by apaella@gmail.com, August 14, 2008 05:39PM UTC)
The patch
Index: img/slider-bg-2.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: img\slider-bg-2.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Index: img/slider-handle.gif
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: img\slider-handle.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Index: index.html
===================================================================
--- index.html (revision 537)
+++ index.html (working copy)
@@ -15,9 +15,21 @@
+
+
+
@@ -109,6 +121,14 @@
+
Resize images
+
+
+
+
+
+