Permalink
Browse files

Check in for v2.0.0

  • Loading branch information...
1 parent b5462a6 commit 8cc60c0427e867c2d88c630a9e4a1ebadc78536a codecomputerlove committed Aug 17, 2011
Showing with 10,710 additions and 10,256 deletions.
  1. +101 −87 README.md
  2. +1 −1 build.properties
  3. +80 −77 build.xml
  4. BIN src/{photoswipe-icons.png → assets/icons.png}
  5. BIN src/{photoswipe-icons@2x.png → assets/icons@2x.png}
  6. BIN src/{photoswipe-loader.gif → assets/loader.gif}
  7. +22 −14 src/{ → assets}/photoswipe.css
  8. +0 −163 src/caption-class.js
  9. +0 −374 src/caption-toolbar-class.js
  10. +0 −220 src/change.log
  11. +115 −0 src/code.photoswipe/cache.class.js
  12. +78 −0 src/code.photoswipe/cache.js
  13. +122 −0 src/code.photoswipe/carousel.class.animation.js
  14. +863 −0 src/code.photoswipe/carousel.class.js
  15. +44 −0 src/code.photoswipe/carousel.js
  16. +131 −0 src/code.photoswipe/documentoverlay.class.js
  17. +24 −0 src/code.photoswipe/documentoverlay.js
  18. +141 −0 src/code.photoswipe/image.class.js
  19. +26 −0 src/code.photoswipe/image.js
  20. +1,062 −0 src/code.photoswipe/photoswipe.class.js
  21. +262 −0 src/code.photoswipe/photoswipe.js
  22. +511 −0 src/code.photoswipe/toolbar.class.js
  23. +59 −0 src/code.photoswipe/toolbar.js
  24. +474 −0 src/code.photoswipe/touchelement.class.js
  25. +42 −0 src/code.photoswipe/touchelement.js
  26. +141 −0 src/code.photoswipe/uilayer.class.js
  27. +20 −0 src/code.photoswipe/uilayer.js
  28. +102 −94 src/{zoom-pan-rotate-class.js → code.photoswipe/zoompanrotate.class.js}
  29. +21 −0 src/code.photoswipe/zoompanrotate.js
  30. +290 −0 src/code.util/animation.js
  31. +91 −0 src/code.util/browser.js
  32. +133 −27 src/{util-dom-jQuery.js → code.util/dom.jquery.js}
  33. +152 −53 src/{util-dom.js → code.util/dom.js}
  34. +33 −10 src/{util-events-jQuery.js → code.util/events.jquery.js}
  35. +69 −16 src/{util-events.js → code.util/events.js}
  36. +239 −0 src/code.util/util.js
  37. +0 −66 src/document-overlay-class.js
  38. +0 −238 src/element-class.js
  39. +83 −0 src/examples/01-default.html
  40. +84 −0 src/examples/02-jquery.html
  41. +92 −0 src/examples/03-multiple-image-sets.html
  42. +146 −0 src/examples/04-jquery-mobile.html
  43. +35 −33 src/examples/{jquery-mobile-ajax.html → 05-jquery-mobile-ajax.html}
  44. +158 −0 src/examples/06-events.html
  45. +107 −0 src/examples/07-custom-toolbar.html
  46. +87 −0 src/examples/08-exclusive-mode.html
  47. +68 −0 src/examples/09-exclusive-mode-no-thumbnails.html
  48. +0 −182 src/examples/advanced-setup.html
  49. +15 −37 src/examples/ajax-gallery1.html
  50. +14 −35 src/examples/ajax-gallery2.html
  51. +173 −0 src/examples/debug-jquery-mobile.html
  52. +259 −0 src/examples/debug-jquery.html
  53. +171 −221 src/examples/debug.html
  54. +0 −243 src/examples/events.html
  55. +0 −74 src/examples/exclusive-mode-with-array.html
  56. +0 −109 src/examples/exclusive-mode.html
  57. +0 −148 src/examples/index.html
  58. +0 −128 src/examples/jquery-engine-animate-enhanced.html
  59. +0 −135 src/examples/jquery-engine.html
  60. +6 −0 src/examples/jquery-mobile.css
  61. +0 −187 src/examples/jquery-mobile.html
  62. +0 −131 src/examples/jquery-plugin.html
  63. +6 −4 src/examples/styles.css
  64. +0 −143 src/examples/using-meta-data.html
  65. +0 −98 src/full-size-image-class.js
  66. +18 −0 src/lib/jquery-1.6.2.min.js
  67. +0 −9 src/lib/jquery.animate-enhanced.min.js
  68. BIN src/lib/jquery.mobile-1.0b1/images/icons-18-black.png
  69. BIN src/lib/jquery.mobile-1.0b1/images/icons-18-white.png
  70. BIN src/lib/jquery.mobile-1.0b1/images/icons-36-black.png
  71. BIN src/lib/jquery.mobile-1.0b1/images/icons-36-white.png
  72. +0 −8 src/lib/jquery.mobile-1.0b1/jquery.mobile-1.0b1.min.css
  73. +0 −146 src/lib/jquery.mobile-1.0b1/jquery.mobile-1.0b1.min.js
  74. BIN src/lib/{jquery.mobile-1.0b1 → jquery.mobile-1.0b2}/images/ajax-loader.png
  75. BIN src/lib/{jquery.mobile-1.0b1 → jquery.mobile-1.0b2}/images/icon-search-black.png
  76. BIN src/lib/jquery.mobile-1.0b2/images/icons-18-black.png
  77. BIN src/lib/jquery.mobile-1.0b2/images/icons-18-white.png
  78. BIN src/lib/jquery.mobile-1.0b2/images/icons-36-black.png
  79. BIN src/lib/jquery.mobile-1.0b2/images/icons-36-white.png
  80. +163 −184 src/lib/{jquery.mobile-1.0b1/jquery.mobile-1.0b1.css → jquery.mobile-1.0b2/jquery.mobile-1.0b2.css}
  81. +3,405 −2,772 src/lib/{jquery.mobile-1.0b1/jquery.mobile-1.0b1.js → jquery.mobile-1.0b2/jquery.mobile-1.0b2.js}
  82. +8 −0 src/lib/jquery.mobile-1.0b2/jquery.mobile-1.0b2.min.css
  83. +155 −0 src/lib/jquery.mobile-1.0b2/jquery.mobile-1.0b2.min.js
  84. +8 −0 src/lib/klass.min.js
  85. +0 −64 src/lib/simple-inheritance.js
  86. +0 −4 src/lib/simple-inheritance.txt
  87. +0 −1,518 src/photoswipe.js
  88. +0 −408 src/slider-class.js
  89. +0 −301 src/slider-item-class.js
  90. +0 −316 src/toolbar-class.js
  91. +0 −100 src/util-animation-jQuery.js
  92. +0 −321 src/util-animation.js
  93. +0 −275 src/util.js
  94. +0 −4 src/version-header.txt
  95. +0 −478 src/viewport-class.js
  96. BIN tools/jslint4java-2.0.0/jslint4java-2.0.0.jar
  97. BIN tools/jsmin/jsmin.0.2.4.jar
View
188 README.md

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -5,7 +5,7 @@
project.description = PhotoSwipe
project.src.dir = src
-project.build.version = 1.0.19
+project.build.version = 2.0.0
project.build.year = 2011
project.build.workdir = work
View
157 build.xml
@@ -1,16 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="PhotoSwipe" default="build" basedir=".">
- <property name="jscompjar" location="${project.tools.dir}/google-closure/compiler.jar" />
-
- <taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask" classpath="tools/google-closure/compiler.jar" />
-
<property file="build.properties"/>
<!--
<taskdef name="jsmin" classname="net.matthaynes.jsmin.JSMin_Task" classpath="tools/jsmin/jsmin.0.2.4.jar"/>
-->
+ <taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask" classpath="tools/google-closure/compiler.jar" />
+
+ <taskdef name="jslint" classname="com.googlecode.jslint4java.ant.JSLintTask" classpath="tools/jslint4java-2.0.0/jslint4java-2.0.0.jar" />
+
+
<target name="build">
<buildnumber/>
@@ -24,13 +25,12 @@
<mkdir dir="${project.build.workdir}"/>
<mkdir dir="${project.build.artifactdir}/${project.build.version}"/>
-
<antcall target="buildJs">
<param name="engine" value=""/>
</antcall>
<antcall target="buildJs">
- <param name="engine" value="-jQuery"/>
+ <param name="engine" value=".jquery"/>
</antcall>
<antcall target="buildLibs" />
@@ -43,92 +43,116 @@
<target name="buildJs">
- <concat destfile="${project.build.workdir}/code-photoswipe${engine}-${project.build.version}.js">
+ <!-- Checks -->
+ <jslint options="browser,indent=0,plusplus,sloppy,white,indent=0,newcap,nomen,regexp,confusion,forin=true">
+ <formatter type="plain" />
+ <fileset dir="${project.src.dir}/code.util/" includes="*.js" />
+ </jslint>
+
+ <jslint options="browser,indent=0,plusplus,sloppy,white,indent=0,newcap,nomen,regexp,confusion,forin=true">
+ <formatter type="plain" />
+ <fileset dir="${project.src.dir}/code.photoswipe/" includes="*.js" />
+ </jslint>
+
+
+ <concat destfile="${project.build.workdir}/code.photoswipe${engine}-${project.build.version}.js">
- <fileset dir="." includes="${project.src.dir}/util.js" />
- <fileset dir="." includes="${project.src.dir}/util-dom${engine}.js" />
- <fileset dir="." includes="${project.src.dir}/util-events${engine}.js" />
- <fileset dir="." includes="${project.src.dir}/util-animation${engine}.js" />
- <fileset dir="." includes="${project.src.dir}/element-class.js" />
- <fileset dir="." includes="${project.src.dir}/full-size-image-class.js" />
- <fileset dir="." includes="${project.src.dir}/document-overlay-class.js" />
- <fileset dir="." includes="${project.src.dir}/viewport-class.js" />
- <fileset dir="." includes="${project.src.dir}/slider-item-class.js" />
- <fileset dir="." includes="${project.src.dir}/slider-class.js" />
- <fileset dir="." includes="${project.src.dir}/caption-class.js" />
- <fileset dir="." includes="${project.src.dir}/toolbar-class.js" />
- <fileset dir="." includes="${project.src.dir}/caption-toolbar-class.js" />
- <fileset dir="." includes="${project.src.dir}/zoom-pan-rotate-class.js" />
- <fileset dir="." includes="${project.src.dir}/photoswipe.js" />
+ <fileset dir="." includes="${project.src.dir}/code.util/util.js" />
+ <fileset dir="." includes="${project.src.dir}/code.util/browser.js" />
+ <fileset dir="." includes="${project.src.dir}/code.util/events${engine}.js" />
+ <fileset dir="." includes="${project.src.dir}/code.util/dom${engine}.js" />
+ <fileset dir="." includes="${project.src.dir}/code.util/animation.js" />
+
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/touchelement.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/touchelement.class.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/image.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/image.class.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/cache.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/cache.class.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/documentoverlay.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/documentoverlay.class.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/carousel.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/carousel.class.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/carousel.class.animation.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/toolbar.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/toolbar.class.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/uilayer.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/uilayer.class.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/zoompanrotate.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/zoompanrotate.class.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/photoswipe.js" />
+ <fileset dir="." includes="${project.src.dir}/code.photoswipe/photoswipe.class.js" />
+
</concat>
+
<antcall target="versionStamp">
- <param name="filePath" value="${project.build.workdir}/code-photoswipe${engine}-${project.build.version}.js"/>
+ <param name="filePath" value="${project.build.workdir}/code.photoswipe${engine}-${project.build.version}.js"/>
</antcall>
<!-- Minimise -->
- <jscomp compilationLevel="simple" debug="false" output="${project.build.workdir}/code-photoswipe${engine}-${project.build.version}.min.js">
+ <jscomp compilationLevel="simple" debug="false" output="${project.build.workdir}/code.photoswipe${engine}-${project.build.version}.min.js">
<sources dir="${project.build.workdir}">
- <file name="code-photoswipe${engine}-${project.build.version}.js" />
+ <file name="code.photoswipe${engine}-${project.build.version}.js" />
</sources>
</jscomp>
-
<!--
- <jsmin srcfile="${project.build.workdir}/code-photoswipe${engine}-${project.build.version}.js" suffix="true" />
+ <jsmin srcfile="${project.build.workdir}/code.photoswipe${engine}-${project.build.version}.js" suffix="true" />
-->
<!-- Add license etc to the minified version -->
- <concat destfile="${project.build.workdir}/code-photoswipe${engine}-${project.build.version}.min2.js">
- <fileset dir="." includes="${project.src.dir}/version-header.txt" />
- <fileset dir="." includes="${project.build.workdir}/code-photoswipe${engine}-${project.build.version}.min.js" />
+ <concat destfile="${project.build.workdir}/code.photoswipe${engine}-${project.build.version}.min2.js">
+ <fileset dir="." includes="${project.src.dir}/version.header.txt" />
+ <fileset dir="." includes="${project.build.workdir}/code.photoswipe${engine}-${project.build.version}.min.js" />
</concat>
<antcall target="versionStamp">
- <param name="filePath" value="${project.build.workdir}/code-photoswipe${engine}-${project.build.version}.min2.js"/>
+ <param name="filePath" value="${project.build.workdir}/code.photoswipe${engine}-${project.build.version}.min2.js"/>
</antcall>
- <delete file="${project.build.workdir}/code-photoswipe${engine}-${project.build.version}.min.js"/>
-
- <move file="${project.build.workdir}/code-photoswipe${engine}-${project.build.version}.min2.js" tofile="${project.build.workdir}/code-photoswipe${engine}-${project.build.version}.min.js" />
-
+ <delete file="${project.build.workdir}/code.photoswipe${engine}-${project.build.version}.min.js"/>
+ <move file="${project.build.workdir}/code.photoswipe${engine}-${project.build.version}.min2.js" tofile="${project.build.workdir}/code.photoswipe${engine}-${project.build.version}.min.js" />
+
<copy todir="${project.build.workdir}/examples">
<fileset dir="${project.src.dir}/examples"/>
</copy>
-
- <antcall target="versionStamp">
- <param name="filePath" value="${project.build.workdir}/examples/index.html"/>
- </antcall>
- <antcall target="versionStamp">
- <param name="filePath" value="${project.build.workdir}/examples/jquery-plugin.html"/>
- </antcall>
+
<antcall target="versionStamp">
- <param name="filePath" value="${project.build.workdir}/examples/jquery-engine.html"/>
+ <param name="filePath" value="${project.build.workdir}/examples/01-default.html"/>
</antcall>
+
<antcall target="versionStamp">
- <param name="filePath" value="${project.build.workdir}/examples/jquery-engine-animate-enhanced.html"/>
+ <param name="filePath" value="${project.build.workdir}/examples/02-jquery.html"/>
</antcall>
+
<antcall target="versionStamp">
- <param name="filePath" value="${project.build.workdir}/examples/advanced-setup.html"/>
+ <param name="filePath" value="${project.build.workdir}/examples/03-multiple-image-sets.html"/>
</antcall>
+
<antcall target="versionStamp">
- <param name="filePath" value="${project.build.workdir}/examples/events.html"/>
+ <param name="filePath" value="${project.build.workdir}/examples/04-jquery-mobile.html"/>
</antcall>
+
<antcall target="versionStamp">
- <param name="filePath" value="${project.build.workdir}/examples/exclusive-mode.html"/>
+ <param name="filePath" value="${project.build.workdir}/examples/05-jquery-mobile-ajax.html"/>
</antcall>
+
<antcall target="versionStamp">
- <param name="filePath" value="${project.build.workdir}/examples/exclusive-mode-with-array.html"/>
+ <param name="filePath" value="${project.build.workdir}/examples/06-events.html"/>
</antcall>
+
<antcall target="versionStamp">
- <param name="filePath" value="${project.build.workdir}/examples/jquery-mobile.html"/>
+ <param name="filePath" value="${project.build.workdir}/examples/07-custom-toolbar.html"/>
</antcall>
+
<antcall target="versionStamp">
- <param name="filePath" value="${project.build.workdir}/examples/jquery-mobile-ajax.html"/>
+ <param name="filePath" value="${project.build.workdir}/examples/08-exclusive-mode.html"/>
</antcall>
+
<antcall target="versionStamp">
- <param name="filePath" value="${project.build.workdir}/examples/using-meta-data.html"/>
+ <param name="filePath" value="${project.build.workdir}/examples/09-exclusive-mode-no-thumbnails.html"/>
</antcall>
</target>
@@ -142,26 +166,6 @@
<fileset dir="${project.src.dir}/lib"/>
</copy>
- <jscomp compilationLevel="simple" warning="quiet" debug="false" output="${project.build.workdir}/lib/simple-inheritance.min.js">
- <sources dir="${project.build.workdir}/lib">
- <file name="simple-inheritance.js" />
- </sources>
- </jscomp>
-
- <!--
- <jsmin srcfile="${project.build.workdir}/lib/simple-inheritance.js" suffix="true" />
- -->
-
- <concat destfile="${project.build.workdir}/lib/simple-inheritance.min2.js">
- <fileset dir="." includes="${project.build.workdir}/lib/simple-inheritance.txt" />
- <fileset dir="." includes="${project.build.workdir}/lib/simple-inheritance.min.js" />
- </concat>
-
- <delete file="${project.build.workdir}/lib/simple-inheritance.txt" />
- <delete file="${project.build.workdir}/lib/simple-inheritance.js" />
- <delete file="${project.build.workdir}/lib/simple-inheritance.min.js" />
-
- <move file="${project.build.workdir}/lib/simple-inheritance.min2.js" tofile="${project.build.workdir}/lib/simple-inheritance.min.js" />
</target>
@@ -181,10 +185,10 @@
<fileset file="MIT-license.txt"/>
<fileset file="README.md"/>
<fileset file="${project.src.dir}/change.log"/>
- <fileset file="${project.src.dir}/photoswipe.css"/>
- <fileset file="${project.src.dir}/photoswipe-icons.png"/>
- <fileset file="${project.src.dir}/photoswipe-icons@2x.png"/>
- <fileset file="${project.src.dir}/photoswipe-loader.gif"/>
+ <fileset file="${project.src.dir}/assets/photoswipe.css"/>
+ <fileset file="${project.src.dir}/assets/icons.png"/>
+ <fileset file="${project.src.dir}/assets/icons@2x.png"/>
+ <fileset file="${project.src.dir}/assets/loader.gif"/>
</copy>
<copy todir="${project.build.artifactdir}/${project.build.version}/lib">
@@ -195,9 +199,8 @@
<fileset dir="${project.build.workdir}/examples"/>
</copy>
-
<delete dir="${project.build.workdir}" />
-
+
</target>
</project>
File renamed without changes
File renamed without changes
File renamed without changes
@@ -1,55 +1,58 @@
/*
- * PhotoSwipe - http://www.photoswipe.com/
- * Copyright (c) 2011 by Code Computerlove (http://www.codecomputerlove.com)
+ * photoswipe.css
+ * Copyright (c) %%year%% by Code Computerlove (http://www.codecomputerlove.com)
* Licensed under the MIT license
*
- * Default styles for SwipeGallery
+ * Default styles for PhotoSwipe
* Avoid any position or dimension based styles
* where possible, unless specified already here.
* The gallery automatically works out gallery item
* positions etc.
*/
-body.ps-active
+
+body.ps-active, body.ps-building
{
- -webkit-text-size-adjust: none;
+ background: #000;
overflow: hidden;
}
body.ps-active *
{
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
+ display: none;
}
body.ps-active *:focus
{
outline: 0;
}
-
/* Document overlay */
div.ps-document-overlay
{
background: #000;
}
-/* Viewport */
-div.ps-viewport
-{
+/* UILayer */
+div.ps-uilayer {
+
background: #000;
cursor: pointer;
+
}
/* Zoom/pan/rotate layer */
div.ps-zoom-pan-rotate{
background: #000;
}
+div.ps-zoom-pan-rotate * { display: block; }
-/* Slider */
-div.ps-slider-item-loading
+/* Carousel */
+div.ps-carousel-item-loading
{
- background: url(photoswipe-loader.gif) no-repeat center center;
+ background: url(loader.gif) no-repeat center center;
}
@@ -65,6 +68,7 @@ div.ps-caption
font-family: "Lucida Grande", Helvetica, Arial,Verdana, sans-serif;
text-align: center;
}
+div.ps-caption * { display: block; }
div.ps-caption-bottom
{
@@ -76,6 +80,7 @@ div.ps-caption-bottom
div.ps-caption-content
{
padding: 13px;
+ display: block;
}
@@ -94,6 +99,9 @@ div.ps-toolbar
display: table;
table-layout: fixed;
}
+div.ps-toolbar * {
+ display: block;
+}
div.ps-toolbar-top
{
@@ -112,7 +120,7 @@ div.ps-toolbar div div.ps-toolbar-content
width: 44px;
height: 44px;
margin: 0 auto 0;
- background-image: url(photoswipe-icons.png);
+ background-image: url(icons.png);
background-repeat: no-repeat;
}
@@ -157,6 +165,6 @@ div.ps-toolbar-play div.ps-toolbar-content
-o-background-size: 176px 88px;
-webkit-background-size: 176px 88px;
background-size: 176px 88px;
- background-image: url(photoswipe-icons@2x.png);
+ background-image: url(icons@2x.png);
}
}
Oops, something went wrong.

0 comments on commit 8cc60c0

Please sign in to comment.