Update of /cvsroot/php-blog/additional_plugins/serendipity_event_lightbox/prettyphoto/js
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv23007/serendipity_event_lightbox/prettyphoto/js
Modified Files:
jquery.prettyPhoto.js
Log Message:
gitclone.sh autocommit
Index: jquery.prettyPhoto.js
===================================================================
RCS file: /cvsroot/php-blog/additional_plugins/serendipity_event_lightbox/prettyphoto/js/jquery.prettyPhoto.js,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- jquery.prettyPhoto.js 1 Sep 2015 00:38:12 -0000 1.6
+++ jquery.prettyPhoto.js 27 Apr 2017 20:33:28 -0000 1.7
@@ -1,911 +1,911 @@
/* ------------------------------------------------------------------------
- Class: prettyPhoto
- Use: Lightbox clone for jQuery
- Author: Stephane Caron (http://www.no-margin-for-errors.com)
- Version: 3.1.6
+ Class: prettyPhoto
+ Use: Lightbox clone for jQuery
+ Author: Stephane Caron (http://www.no-margin-for-errors.com)
+ Version: 3.1.6
------------------------------------------------------------------------- */
(function($) {
[...1732 lines suppressed...]
+ function setHashtag(){
+ if(typeof theRel == 'undefined') return; // theRel is set on normal calls, it's impossible to deeplink using the API
+ location.hash = theRel + '/'+rel_index+'/';
+ };
+
+ function clearHashtag(){
+ if ( location.href.indexOf('#prettyPhoto') !== -1 ) location.hash = "prettyPhoto";
+ }
+
+ function getParam(name,url){
+ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
+ var regexS = "[\\?&]"+name+"=([^&#]*)";
+ var regex = new RegExp( regexS );
+ var results = regex.exec( url );
+ return ( results == null ) ? "" : results[1];
+ }
+
})(jQuery);
var pp_alreadyInitialized = false; // Used for the deep linking to make sure not to call the same function several times.
|