first commit
This commit is contained in:
commit
369e9b7829
879 files changed
+416721
No files matched your search
@@ -0,0 +1,220 @@
|
||||
/*!
|
||||
* Lightview - The jQuery Lightbox - v3.5.1
|
||||
* (c) 2008-2016 Nick Stakenburg
|
||||
*
|
||||
* http://projects.nickstakenburg.com/lightview
|
||||
*
|
||||
* License: http://projects.nickstakenburg.com/lightview/license
|
||||
*/
|
||||
;var Lightview = {
|
||||
version: '3.5.1',
|
||||
|
||||
extensions: {
|
||||
flash: 'swf',
|
||||
image: 'bmp gif jpeg jpg png',
|
||||
iframe: 'asp aspx cgi cfm htm html jsp php pl php3 php4 php5 phtml rb rhtml shtml txt',
|
||||
quicktime: 'avi mov mpg mpeg movie mp4'
|
||||
},
|
||||
pluginspages: {
|
||||
quicktime: 'http://www.apple.com/quicktime/download',
|
||||
flash: 'http://www.adobe.com/go/getflashplayer'
|
||||
}
|
||||
};
|
||||
|
||||
Lightview.Skins = {
|
||||
// every possible property is defined on the base skin
|
||||
// all other skins inherit from this skin
|
||||
'base': {
|
||||
ajax: {
|
||||
type: 'get'
|
||||
},
|
||||
background: {
|
||||
color: '#fff',
|
||||
opacity: 1
|
||||
},
|
||||
border: {
|
||||
size: 0,
|
||||
color: '#ccc',
|
||||
opacity: 1
|
||||
},
|
||||
continuous: false,
|
||||
controls: {
|
||||
close: 'relative',
|
||||
slider: {
|
||||
items: 5
|
||||
},
|
||||
text: {
|
||||
previous: "Prev", // when modifying this on skins images/css might have to be changed
|
||||
next: "Next"
|
||||
},
|
||||
thumbnails: {
|
||||
spinner: { color: '#777' },
|
||||
mousewheel: true
|
||||
},
|
||||
type: 'relative'
|
||||
},
|
||||
effects: {
|
||||
caption: { show: 180, hide: 180 },
|
||||
content: { show: 280, hide: 280 },
|
||||
overlay: { show: 240, hide: 280 },
|
||||
sides: { show: 150, hide: 180 },
|
||||
spinner: { show: 50, hide: 100 },
|
||||
slider: { slide: 180 },
|
||||
thumbnails: { show: 120, hide: 0, slide: 180, load: 340 },
|
||||
window: { show: 120, hide: 50, resize: 200, position: 180 }
|
||||
},
|
||||
errors: {
|
||||
'missing_plugin': "The content your are attempting to view requires the <a href='#{pluginspage}' target='_blank'>#{type} plugin<\/a>."
|
||||
},
|
||||
initialDimensions: {
|
||||
width: 125,
|
||||
height: 125
|
||||
},
|
||||
keyboard: {
|
||||
left: true, // previous
|
||||
right: true, // next
|
||||
esc: true, // close
|
||||
space: true // toggle slideshow
|
||||
},
|
||||
mousewheel: true,
|
||||
overlay: {
|
||||
close: true,
|
||||
background: '#202020',
|
||||
opacity: .85
|
||||
},
|
||||
padding: 10,
|
||||
position: {
|
||||
at: 'center',
|
||||
offset: { x: 0, y: 0 }
|
||||
},
|
||||
preload: true,
|
||||
radius: {
|
||||
size: 0,
|
||||
position: 'background'
|
||||
},
|
||||
shadow: {
|
||||
blur: 3,
|
||||
color: '#000',
|
||||
opacity: .15
|
||||
},
|
||||
slideshow: {
|
||||
delay: 5000
|
||||
},
|
||||
spacing: {
|
||||
relative: { horizontal: 60, vertical: 60 },
|
||||
thumbnails: { horizontal: 60, vertical: 60 },
|
||||
top: { horizontal: 60, vertical: 60 }
|
||||
},
|
||||
spinner: { },
|
||||
thumbnail: { icon: false },
|
||||
viewport: 'scale',
|
||||
wrapperClass: false,
|
||||
|
||||
initialTypeOptions: {
|
||||
ajax: {
|
||||
keyboard: false,
|
||||
mousewheel: false,
|
||||
viewport: 'crop'
|
||||
},
|
||||
flash: {
|
||||
width: 550,
|
||||
height: 400,
|
||||
params: {
|
||||
allowFullScreen: 'true',
|
||||
allowScriptAccess: 'always',
|
||||
wmode: 'transparent'
|
||||
},
|
||||
flashvars: {},
|
||||
keyboard: false,
|
||||
mousewheel: false,
|
||||
thumbnail: { icon: 'video' },
|
||||
viewport: 'scale'
|
||||
},
|
||||
iframe: {
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
attr: {
|
||||
scrolling: 'auto'
|
||||
},
|
||||
keyboard: false,
|
||||
mousewheel: false,
|
||||
viewport: 'crop'
|
||||
},
|
||||
image: {
|
||||
viewport: 'scale'
|
||||
},
|
||||
inline: {
|
||||
keyboard: false,
|
||||
mousewheel: false,
|
||||
viewport: 'crop'
|
||||
},
|
||||
quicktime: {
|
||||
width: 640,
|
||||
height: 272,
|
||||
params: {
|
||||
autoplay: true,
|
||||
controller: true,
|
||||
enablejavascript: true,
|
||||
loop: false,
|
||||
scale: 'tofit'
|
||||
},
|
||||
keyboard: false,
|
||||
mousewheel: false,
|
||||
thumbnail: { icon: 'video' },
|
||||
viewport: 'scale'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// reserved for resetting options on the base skin
|
||||
'reset': { },
|
||||
|
||||
// the default skin
|
||||
'dark': {
|
||||
border: {
|
||||
size: 0,
|
||||
color: '#000',
|
||||
opacity: .25
|
||||
},
|
||||
radius: { size: 5 },
|
||||
background: '#141414',
|
||||
shadow: {
|
||||
blur: 5,
|
||||
opacity: .08
|
||||
},
|
||||
overlay: {
|
||||
background: '#2b2b2b',
|
||||
opacity: .85
|
||||
},
|
||||
spinner: {
|
||||
color: '#777'
|
||||
}
|
||||
},
|
||||
|
||||
'light': {
|
||||
border: { opacity: .25 },
|
||||
radius: { size: 5 },
|
||||
spinner: {
|
||||
color: '#333'
|
||||
}
|
||||
},
|
||||
|
||||
'mac': {
|
||||
background: '#fff',
|
||||
border: {
|
||||
size: 0,
|
||||
color: '#dfdfdf',
|
||||
opacity: .3
|
||||
},
|
||||
shadow: {
|
||||
blur: 3,
|
||||
opacity: .08
|
||||
},
|
||||
overlay: {
|
||||
background: '#2b2b2b',
|
||||
opacity: .85
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
(function($,window){(function(){function wheel(event){var realDelta;if(event.originalEvent.wheelDelta){realDelta=event.originalEvent.wheelDelta/120}else{if(event.originalEvent.detail){realDelta=-event.originalEvent.detail/3}}if(!realDelta){return}var customEvent=$.Event("lightview:mousewheel");$(event.target).trigger(customEvent,realDelta);if(customEvent.isPropagationStopped()){event.stopPropagation()}if(customEvent.isDefaultPrevented()){event.preventDefault()}}$(document.documentElement).bind("mousewheel DOMMouseScroll",wheel)})();var easing={};(function(){var baseEasings={};$.extend(baseEasings,{Quart:function(p){return Math.pow(p,4)}});$.each(baseEasings,function(name,easeIn){easing["easeIn"+name]=easeIn;easing["easeOut"+name]=function(p){return 1-easeIn(1-p)};easing["easeInOut"+name]=function(p){return p<0.5?easeIn(p*2)/2:1-easeIn(p*-2+2)/2}});$.each(easing,function(fn_name,fn){if(!$.easing[fn_name]){$.easing[fn_name]=fn}})})();var _slice=Array.prototype.slice;var _={clone:function(object){return $.extend({},object)},isElement:function(object){return object&&object.nodeType==1},element:{isAttached:(function(){function findTopAncestor(element){var ancestor=element;while(ancestor&&ancestor.parentNode){ancestor=ancestor.parentNode}return ancestor}return function(element){var topAncestor=findTopAncestor(element);return !!(topAncestor&&topAncestor.body)}})()}};var Browser=(function(uA){function getVersion(identifier){var version=new RegExp(identifier+"([\\d.]+)").exec(uA);return version?parseFloat(version[1]):true}return{IE:!!(window.attachEvent&&uA.indexOf("Opera")===-1)&&getVersion("MSIE "),Opera:uA.indexOf("Opera")>-1&&((!!window.opera&&opera.version&&parseFloat(opera.version()))||7.55),WebKit:uA.indexOf("AppleWebKit/")>-1&&getVersion("AppleWebKit/"),Gecko:uA.indexOf("Gecko")>-1&&uA.indexOf("KHTML")===-1&&getVersion("rv:"),MobileSafari:!!uA.match(/Apple.*Mobile.*Safari/),Chrome:uA.indexOf("Chrome")>-1&&getVersion("Chrome/")}})(navigator.userAgent);function px(source){var destination={};for(var property in source){destination[property]=source[property]+"px"}return destination}function pyth(a,b){return Math.sqrt(a*a+b*b)}function degrees(radian){return(radian*180)/Math.PI}function radian(degrees){return(degrees*Math.PI)/180}var getUniqueID=(function(){var count=0,_prefix="lv_identity_";return function(prefix){prefix=prefix||_prefix;count++;while(document.getElementById(prefix+count)){count++}return prefix+count}})();function sfcc(c){return String.fromCharCode.apply(String,c.split(","))}function warn(message){if(!!window.console){console[console.warn?"warn":"log"](message)}}var Requirements={scripts:{jQuery:{required:"1.4.4",available:window.jQuery&&jQuery.fn.jquery},SWFObject:{required:"2.2",available:window.swfobject&&swfobject.ua&&"2.2"},Spinners:{required:"3.0.0",available:window.Spinners&&(Spinners.version||Spinners.Version)}},check:(function(){var VERSION_STRING=/^(\d+(\.?\d+){0,3})([A-Za-z_-]+[A-Za-z0-9]+)?/;function convertVersionString(versionString){var vA=versionString.match(VERSION_STRING),nA=vA&&vA[1]&&vA[1].split(".")||[],v=0;for(var i=0,l=nA.length;i<l;i++){v+=parseInt(nA[i]*Math.pow(10,6-i*2))}return vA&&vA[3]?v-1:v}return function require(script){if(!this.scripts[script].available||(convertVersionString(this.scripts[script].available)<convertVersionString(this.scripts[script].required))&&!this.scripts[script].notified){this.scripts[script].notified=true;warn("Lightview requires "+script+" >= "+this.scripts[script].required)}}})()};(function(){$(document).ready(function(){var navigatorPlugins=(navigator.plugins&&navigator.plugins.length);function detectPlugin(name){var detected=false;if(navigatorPlugins){detected=$.map(_slice.call(navigator.plugins),function(n,i){return n.name}).join(",").indexOf(name)>=0}else{try{detected=new ActiveXObject(name)}catch(e){}}return !!detected}if(navigatorPlugins){Lightview.plugins={flash:detectPlugin("Shockwave Flash"),quicktime:detectPlugin("QuickTime")}}else{Lightview.plugins={flash:detectPlugin("ShockwaveFlash.ShockwaveFlash"),quicktime:detectPlugin("QuickTime.QuickTime")}}})})();function createHTML(object){var html="<"+object.tag;for(var attr in object){if($.inArray(attr,"children html tag".split(" "))<0){html+=" "+attr+'="'+object[attr]+'"'}}if(new RegExp("^(?:area|base|basefont|br|col|frame|hr|img|input|link|isindex|meta|param|range|spacer|wbr)$","i").test(object.tag)){html+="/>"}else{html+=">";if(object.children){$.each(object.children,function(i,child){html+=createHTML(child)})}if(object.html){html+=object.html}html+="</"+object.tag+">"}return html}$.extend(true,Lightview,(function(){var testElement=document.createElement("div"),domPrefixes="Webkit Moz O ms Khtml".split(" ");function prefixed(property){return testAllProperties(property,"prefix")}function testProperties(properties,prefixed){for(var i in properties){if(testElement.style[properties[i]]!==undefined){return prefixed=="prefix"?properties[i]:true}}return false}function testAllProperties(propLine truncated
|
||||
Reference in new issue
Block a user