first commit
This commit is contained in:
commit
eda9661806
3433 files changed
+595883
No files matched your search
@@ -0,0 +1,4 @@
|
||||
/* SWFObject v2.2 <http://code.google.com/p/swfobject/>
|
||||
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
|
||||
*/
|
||||
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(YLine truncated
|
||||
@@ -0,0 +1,79 @@
|
||||
jQuery(document).ready(function(){
|
||||
|
||||
var port_carousel_wrapper = jQuery('.blog-carousel-wrapper');
|
||||
|
||||
function carousel_port_init(){
|
||||
port_carousel_wrapper.each(function(){
|
||||
var port_carousel = jQuery(this);
|
||||
var port_holder = port_carousel.children('.blog-carousel-holder');
|
||||
var port_item = port_carousel.find('.gdl-blog-widget');
|
||||
|
||||
port_item.css('float', 'left');
|
||||
|
||||
var parent_col = 12;
|
||||
if( jQuery(this).parent().parent().hasClass('six') ){
|
||||
parent_col = 6;
|
||||
}else if( jQuery(this).parent().parent().hasClass('four') ){
|
||||
parent_col = 4;
|
||||
}else if( jQuery(this).parent().parent().hasClass('three') ){
|
||||
parent_col = 3;
|
||||
}
|
||||
|
||||
var child_col;
|
||||
var child_size;
|
||||
if( port_item.filter(':first').hasClass('three') ){
|
||||
child_col = 3;
|
||||
child_size = port_carousel.parents('.row').width() / 4;
|
||||
}else if( port_item.filter(':first').hasClass('four') ){
|
||||
child_col = 4;
|
||||
child_size = port_carousel.parents('.row').width() / 3;
|
||||
}else if( port_item.filter(':first').hasClass('six') ){
|
||||
child_col = 6;
|
||||
child_size = port_carousel.parents('.row').width() / 2;
|
||||
}
|
||||
port_holder.attr('data-num', parseInt(parent_col/child_col) );
|
||||
|
||||
if( jQuery('html').filter(':first').width() <= '767' ){
|
||||
port_holder.attr('data-num', 1);
|
||||
child_size = port_carousel.parents('.row').width();
|
||||
}
|
||||
|
||||
port_item.css('width', child_size );
|
||||
|
||||
port_holder.attr('data-width', child_size);
|
||||
port_holder.attr('data-max', port_item.length);
|
||||
port_holder.width( port_item.length * child_size );
|
||||
|
||||
var cur_index = parseInt(port_holder.attr('data-index'));
|
||||
port_holder.css({ 'margin-left': -(cur_index * child_size + 10) });
|
||||
});
|
||||
}
|
||||
|
||||
// bind the navigation
|
||||
var port_nav = port_carousel_wrapper.children('.blog-nav-wrapper');
|
||||
port_nav.children('.blog-nav.left').click(function(){
|
||||
var port_holder = jQuery(this).parent('.blog-nav-wrapper').siblings('.blog-carousel-holder');
|
||||
var cur_index = parseInt(port_holder.attr('data-index'));
|
||||
|
||||
if( cur_index > 0 ){ cur_index--; }
|
||||
port_holder.attr('data-index', cur_index);
|
||||
port_holder.animate({ 'margin-left': -(cur_index * parseInt(port_holder.attr('data-width')) + 10) });
|
||||
});
|
||||
port_nav.children('.blog-nav.right').click(function(){
|
||||
var port_holder = jQuery(this).parent('.blog-nav-wrapper').siblings('.blog-carousel-holder');
|
||||
var cur_index = parseInt(port_holder.attr('data-index'));
|
||||
if( cur_index + parseInt(port_holder.attr('data-num')) < parseInt(port_holder.attr('data-max')) ){
|
||||
cur_index++;
|
||||
}
|
||||
|
||||
port_holder.attr('data-index', cur_index);
|
||||
port_holder.animate({ 'margin-left': -(cur_index * parseInt(port_holder.attr('data-width')) + 10) });
|
||||
});
|
||||
carousel_port_init();
|
||||
|
||||
|
||||
jQuery(window).resize(function(){
|
||||
carousel_port_init();
|
||||
});
|
||||
|
||||
});
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Manufacturer:
|
||||
* Dalton Maag Ltd.
|
||||
*/
|
||||
Cufon.registerFont({"w":162,"face":{"font-family":"Aller","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 5 3 3 0 0 2 0 4","ascent":"288","descent":"-72","x-height":"4","bbox":"-66 -347 519 90","underline-thickness":"18","underline-position":"-18","unicode-range":"U+0020-U+FB04"},"glyphs":{" ":{"w":85},"\ufb00":{"d":"245,-235v-33,-11,-63,7,-55,50r48,0v1,9,2,20,0,28r-48,0r0,157v-12,0,-24,2,-35,0r0,-157r-78,0r0,157v-12,0,-25,2,-36,0r0,-157r-30,0v-2,-7,-1,-20,0,-28r30,0v-7,-64,38,-93,98,-76v-1,12,-5,19,-9,28v-34,-10,-60,6,-53,48r78,0v-8,-64,37,-93,96,-79v0,13,-3,19,-6,29","w":246},"\ufb01":{"d":"162,-230v-37,-16,-96,-12,-85,45r111,0r0,185v-12,0,-24,2,-35,0r0,-157r-76,0r0,157v-12,0,-25,2,-36,0r0,-157r-30,0v-2,-7,-1,-20,0,-28r30,0v-11,-76,66,-96,129,-74v1,12,-4,22,-8,29","w":217},"\ufb02":{"d":"149,-235v-41,-9,-80,0,-72,50r44,0v1,9,2,20,0,29r-44,0r0,156v-12,0,-25,2,-36,0r0,-156r-30,0v-1,-10,-2,-19,0,-29r30,0v-12,-82,74,-92,143,-76r0,195v-3,30,8,46,37,38v3,7,3,17,3,28v-46,11,-75,-8,-75,-59r0,-176","w":227},"\ufb03":{"d":"130,-233v-34,-10,-60,6,-53,48r78,0v-12,-77,66,-96,129,-74v0,12,-5,21,-9,29v-37,-16,-95,-11,-85,45r112,0r0,185v-12,0,-25,2,-36,0r0,-157r-76,0r0,157v-12,0,-24,2,-35,0r0,-157r-78,0r0,157v-12,0,-25,2,-36,0r0,-157r-30,0v-2,-7,-1,-20,0,-28r30,0v-7,-64,38,-93,98,-76v-2,12,-6,19,-9,28","w":329},"\ufb04":{"d":"262,-235v-41,-9,-80,0,-72,50r44,0v1,9,2,20,0,29r-44,0r0,156v-12,0,-24,2,-35,0r0,-156r-78,0r0,156v-12,0,-25,2,-36,0r0,-156r-30,0v-1,-10,-2,-19,0,-29r30,0v-6,-63,37,-92,98,-76v-1,12,-5,19,-9,28v-37,-8,-59,7,-53,48r78,0v-12,-82,73,-92,142,-76r0,195v-1,29,7,47,37,38v3,7,3,19,4,28v-46,11,-76,-8,-76,-59r0,-176","w":341},"%":{"d":"258,-255v12,0,25,-2,36,0r-174,255v-12,1,-25,2,-36,0xm293,-22v26,0,35,-22,34,-51v-1,-29,-8,-50,-34,-50v-25,0,-35,22,-35,50v0,29,7,51,35,51xm293,4v-46,0,-68,-31,-68,-77v0,-45,22,-76,68,-76v46,0,67,31,67,76v0,46,-21,77,-67,77xm84,-132v26,0,35,-22,34,-51v-1,-29,-8,-50,-34,-50v-25,0,-35,22,-35,50v0,29,7,51,35,51xm84,-106v-46,0,-68,-31,-68,-77v0,-45,22,-76,68,-76v46,0,67,31,67,76v0,46,-21,77,-67,77","w":378},"&":{"d":"145,-229v-30,-10,-78,-8,-78,29v0,50,74,30,121,34r33,-45r3,0r0,45r47,0v3,8,2,21,0,29r-47,0r0,53v0,63,-43,88,-106,88v-56,0,-97,-22,-97,-77v0,-37,20,-62,46,-74v-20,-9,-37,-25,-37,-54v-1,-60,70,-72,123,-55v-1,12,-3,18,-8,27xm60,-79v0,35,23,51,61,51v64,0,73,-44,69,-108r-73,0v-36,1,-57,23,-57,57","w":273},"'":{"d":"23,-259v11,0,24,-2,34,0r0,99v-11,2,-23,1,-34,0r0,-99","w":80},"(":{"d":"97,-279v-55,77,-56,262,0,339v-11,2,-24,3,-35,0v-57,-78,-57,-261,0,-339v11,-2,23,-2,35,0","w":114},")":{"d":"53,-279v57,78,57,261,0,339v-11,2,-23,2,-35,0v55,-77,56,-262,0,-339v11,-2,24,-3,35,0","w":114},"*":{"d":"76,-259v8,-2,15,-1,23,0r3,47v-10,0,-20,2,-29,0xm66,-207v-1,10,-4,18,-8,26r-44,-17v1,-7,3,-14,7,-21xm60,-173v9,4,16,10,23,16r-30,36r-18,-13xm154,-219v4,7,6,14,7,21r-44,17v-4,-8,-7,-16,-8,-26xm139,-134v-5,6,-11,9,-18,13r-30,-36v7,-5,15,-12,23,-16","w":174},"+":{"d":"92,-111r-60,0v-2,-9,-1,-23,0,-32r60,0r0,-65v11,-2,21,-2,32,0r0,65r60,0v0,11,2,22,0,32r-60,0r0,66v-10,1,-22,2,-32,0r0,-66","w":216},",":{"d":"28,-40v12,-1,23,-2,36,0r-23,81v-11,0,-24,2,-34,0","w":76},"-":{"d":"112,-117v0,10,2,23,0,32r-94,0v0,-10,-2,-23,0,-32r94,0","w":129},".":{"d":"23,0v0,-13,-2,-28,0,-40v13,-2,27,-2,40,0v3,11,3,29,0,40v-13,0,-28,2,-40,0","w":86},"\/":{"d":"100,-259v12,0,24,-2,35,0r-88,259v-11,0,-24,2,-34,0","w":147},"0":{"d":"18,-116v0,-69,25,-120,91,-120v65,0,90,51,90,120v0,68,-25,120,-91,120v-66,0,-90,-52,-90,-120xm161,-116v0,-50,-12,-88,-53,-88v-41,0,-53,39,-53,88v0,50,11,89,53,89v41,0,53,-40,53,-89","w":216},"1":{"d":"49,-162v-7,-8,-10,-14,-13,-26v35,-14,62,-36,101,-46r0,203r51,0v1,11,2,20,0,31r-140,0v-3,-9,-2,-21,0,-31r54,0r0,-154","w":216},"2":{"d":"27,-221v50,-26,151,-21,146,53v-4,63,-54,95,-86,136r96,0v0,10,2,23,0,32r-160,0r-2,-5r102,-122v22,-29,13,-77,-35,-77v-23,0,-37,7,-52,13v-3,-9,-9,-19,-9,-30","w":216},"3":{"d":"28,-16v42,19,119,17,119,-43v0,-41,-43,-51,-82,-41r-3,-5r60,-95r-92,0v-2,-9,-3,-23,0,-32r145,0r3,4r-66,100v43,-4,70,24,72,65v4,85,-94,105,-167,77v2,-11,6,-21,11,-30","w":216},"4":{"d":"15,-28r-3,-4r105,-207v12,1,23,7,32,12r-84,167r73,0r0,-68v11,-2,23,-2,34,0r0,68r34,0v0,10,2,23,0,32r-34,0r0,49v-11,0,-24,2,-34,0r0,-49r-123,0","w":216},"5":{"d":"79,-136v60,-10,105,17,105,74v0,82,-89,103,-161,78v1,-12,5,-21,10,-30v44,17,113,11,113,-46v0,-50,-57,-57,-98,-42r-4,-3r5,-127r122,0v0,11,2,22,0,32r-90,0","w":216},"6":{"d":"112,4v-110,7,-104,-153,-55,-214v22,-30,56,-48,104,-52v4,11,3,20,1,30v-59,6,-91,45,-101,101v10,-18,31,-35,61,-34v49,2,77,31,77,83v0,54,-34,82,-87,86xm162,-81v0,-34,-16,-54,-49,-54v-32,0,-49,22,-50,55v-1,34,17,53,48,53v33,0,51,-21,51,-54","w":216},"7":{"d":"88,27v-13,-3,-23,-7,-33,-15r92,-212r-122,0v0,-11,-2,-22,0,-32r173,2","w":216},"8":{"d":"185,-197v1,32,-20,49,-42,60v28,13,54,31,54,71v0,49,-38,70,-89,70v-51,0,-89,-21,-89,-70v0,-40,26,-58,53,-71v-22,-11,-42,-29,-41,-60v1,-42,34,-62,77,-62v43,0,75,20,77,62xm108,-26v58,0,66,-72,20,-88v-6,-3,-13,-6,-20,Line truncated
|
||||
@@ -0,0 +1,7 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* Ryoichi Tsunekawa Bagel&Co All rights reserved
|
||||
*/
|
||||
Cufon.registerFont({"w":186,"face":{"font-family":"Bebas","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"0 0 0 0 0 0 0 0 0 0","ascent":"288","descent":"-72","x-height":"4","bbox":"14.4078 -422 343 54","underline-thickness":"12.7841","underline-position":"-12.7841","unicode-range":"U+0020-U+007F"},"glyphs":{" ":{"w":33},"!":{"d":"20,-80v-5,-76,-2,-160,-3,-241r48,0r0,180r-4,61r-41,0xm17,0r0,-48r48,0r0,48r-48,0","w":81},"\"":{"d":"24,-298r-7,-73r44,0r-7,73r-30,0xm81,-298r-7,-73r45,0r-8,73r-30,0","w":135},"#":{"d":"221,-185r-11,60r50,0r-7,49r-51,0r-12,76r-48,0r12,-76r-42,0r-12,76r-48,0r12,-76r-47,0r7,-49r48,0r10,-60r-47,0r7,-49r48,0r15,-87r48,0r-14,87r41,0r15,-87r48,0r-14,87r49,0r-7,49r-50,0xm172,-185r-41,0r-10,60r41,0","w":295},"$":{"d":"98,-283v-37,2,-31,57,-7,80v33,32,82,65,85,121v2,45,-22,74,-59,82r0,22r-41,0r0,-23v-35,-9,-57,-45,-59,-88r46,-4v-5,54,63,69,65,13v-13,-71,-106,-82,-106,-167v0,-39,22,-70,54,-77r0,-21r41,0r0,21v34,7,54,35,57,71r-46,8v-3,-20,-7,-39,-30,-38","w":193},"%":{"d":"57,-334v55,0,38,77,40,131v1,21,-19,40,-40,40v-21,0,-41,-18,-40,-40v3,-55,-16,-131,40,-131xm71,-295v0,-18,-30,-18,-30,0r0,92v0,18,30,18,30,0r0,-92xm159,-38v2,-55,-15,-132,40,-132v55,0,38,78,40,132v1,21,-19,40,-40,40v-21,0,-41,-19,-40,-40xm198,-24v8,0,16,-7,15,-15r0,-91v1,-8,-8,-15,-15,-15v-7,0,-14,7,-14,15r0,91v-1,8,6,15,14,15xm60,5r-28,0r164,-339r28,0","w":255},"&":{"d":"96,-336v64,-2,88,78,47,123r-36,48v11,22,23,44,36,63v8,-18,14,-38,18,-59r44,10v-8,34,-18,63,-31,87v12,11,23,17,32,17r0,44v-19,0,-38,-8,-58,-25v-44,56,-131,29,-131,-46v0,-37,19,-68,38,-95v-11,-28,-29,-53,-29,-91v1,-44,26,-75,70,-76xm96,-299v-34,12,-31,49,-11,88v11,-16,33,-35,34,-57v1,-19,-9,-31,-23,-31xm78,-123v-16,20,-31,79,9,81v10,0,20,-7,31,-19v-13,-17,-27,-38,-40,-62","w":222},"'":{"d":"17,-371r44,0r-7,73r-30,0","w":77},"(":{"d":"81,24v-55,-89,-91,-224,-32,-331v11,-20,20,-40,32,-58r31,15v-24,50,-47,109,-49,174v-2,47,28,137,49,184","w":129},")":{"d":"66,-175v1,-49,-26,-131,-49,-175r31,-14v59,90,90,209,32,325v-11,22,-20,43,-32,63r-31,-16v22,-56,47,-115,49,-183","w":128},"*":{"d":"143,-260r-39,7r27,28r-33,24r-19,-35r-18,35r-34,-24r28,-28r-38,-7r13,-38r35,17r-6,-40r41,0r-6,40r37,-17","w":160},"+":{"d":"117,-175r64,0r0,36r-64,0r0,65r-36,0r0,-65r-64,0r0,-36r64,0r0,-64r36,0r0,64","w":197},",":{"d":"17,0r0,-48r48,0r0,48r-17,37r-21,0r12,-37r-22,0","w":81},"-":{"d":"17,-184r143,0r0,48r-143,0r0,-48","w":176},"\u2010":{"d":"17,-184r143,0r0,48r-143,0r0,-48","w":176},".":{"d":"17,-48r48,0r0,48r-48,0r0,-48","w":81},"\/":{"d":"150,-341r40,0r-134,351r-39,0","w":206},"0":{"d":"93,-325v41,0,77,35,77,77r0,175v1,40,-36,76,-77,76v-41,0,-76,-35,-76,-76r0,-175v-1,-41,36,-77,76,-77xm92,-46v16,0,27,-13,28,-28r0,-175v-1,-15,-12,-28,-28,-28v-16,0,-28,12,-28,28r0,175v0,16,12,28,28,28","k":{"y":12,"x":12,"u":-9,"s":-6,"r":-9,"q":-8,"p":-9,"o":-8,"n":-9,"m":-9,"l":-9,"k":-9,"i":-9,"h":-9,"g":-8,"f":-9,"e":-9,"d":-9,"c":-8,"b":-9,"Y":12,"X":12,"U":-9,"S":-6,"R":-9,"Q":-8,"P":-9,"O":-8,"N":-9,"M":-9,"L":-9,"K":-9,"I":-9,"H":-9,"G":-8,"F":-9,"E":-9,"D":-9,"C":-8,"B":-9,"9":-7,"8":-8,"6":-9,"5":-7,"2":-5,"1":-6,"0":-8}},"1":{"d":"17,-280v25,-3,46,-20,55,-41r34,0r0,321r-48,0r0,-247r-41,0r0,-33","w":122,"k":{"z":-7,"y":-6,"x":-7,"w":-7,"v":-7,"u":-10,"t":-6,"s":-7,"r":-10,"q":-9,"p":-10,"o":-9,"n":-10,"m":-10,"l":-10,"k":-10,"i":-10,"h":-10,"g":-9,"f":-10,"e":-10,"d":-10,"c":-9,"b":-10,"a":-7,"Z":-7,"Y":-6,"X":-7,"W":-7,"V":-7,"U":-10,"T":-6,"S":-7,"R":-10,"Q":-9,"P":-10,"O":-9,"N":-10,"M":-10,"L":-10,"K":-10,"I":-10,"H":-10,"G":-9,"F":-10,"E":-10,"D":-10,"C":-9,"B":-10,"A":-7,"9":-8,"8":-9,"6":-9,"5":-8,"4":-5,"3":-5,"2":-6,"1":-6,"0":-9}},"2":{"d":"96,-276v-21,-1,-34,25,-31,54r-48,0v-2,-59,26,-98,81,-99v66,-1,95,82,62,143v-17,30,-62,90,-85,130r95,0r0,48r-153,0v-9,-70,41,-100,68,-145v20,-33,43,-54,43,-95v0,-19,-14,-36,-32,-36","w":190,"k":{"y":16,"w":5,"v":6,"u":-7,"r":-7,"q":-7,"p":-7,"o":-7,"n":-7,"m":-7,"l":-7,"k":-7,"i":-7,"h":-7,"g":-7,"f":-7,"e":-7,"d":-7,"c":-7,"b":-7,"Y":16,"W":5,"V":6,"U":-7,"R":-7,"Q":-7,"P":-7,"O":-7,"N":-7,"M":-7,"L":-7,"K":-7,"I":-7,"H":-7,"G":-7,"F":-7,"E":-7,"D":-7,"C":-7,"B":-7,"9":-5,"6":-7,"4":31,"0":-7}},"3":{"d":"93,3v-43,0,-80,-36,-76,-84r46,-4v0,22,8,39,29,39v30,1,33,-20,33,-50v0,-33,-18,-49,-52,-49r0,-42v39,0,56,-21,54,-62v0,-21,-10,-31,-28,-31v-22,-1,-30,19,-28,43r-47,0v-3,-53,25,-85,73,-88v80,-5,97,123,37,156v27,15,39,44,39,92v0,45,-36,81,-80,80","w":189,"k":{"y":15,"x":14,"w":6,"v":6,"u":-8,"s":-6,"r":-9,"q":-8,"p":-9,"o":-8,"n":-9,"m":-9,"l":-9,"k":-9,"j":6,"i":-9,"h":-9,"g":-8,"f":-9,"e":-9,"d":-9,"c":-8,"b":-9,"Y":15,"X":14,"W":6,"V":6,"U":-8,"S":-6,"R":-9,"Q":-8,"P":-9,"O":-8,"N":-9,"M":-9,"L":-9,"K":-9,"J":6,"I":-9,"H":-9,"G":-8,"F":-9,"E":-9,"D":-9,"C":-8,"B":-9,"9":-7,"8":-7,"6":-8,"5":-6,"0":-8}},"4":{"d":"17,-118r85,-203r48,0r0,203r31,0r0,49r-31,0r0,69r-48,0r0,-69r-85,0r0,-49xm102,-118r0,-100r-40,100r40,0","w":197,"k":{"y":25,"x":19,"w":23,"v":23,"u":-7,"t":25,"r":-7,"q":-7,"p":-7,"o":-7,"n":-7,"m":-7,"l":-7,"k"Line truncated
|
||||
@@ -0,0 +1,31 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* Copyright (c) 2010 by Pablo Impallari. www.impallari.com Igino Marini.
|
||||
* www.ikern.com. All rights reserved.
|
||||
*
|
||||
* Trademark:
|
||||
* Cabin Regular is a trademark of Pablo Impallari. www.impallari.com Igino
|
||||
* Marini. www.ikern.com.
|
||||
*
|
||||
* Full name:
|
||||
* Cabin-Regular
|
||||
*
|
||||
* Description:
|
||||
* Copyright (c) 2011 by Pablo Impallari. www.impallari.com Copyright (c) 2011 by
|
||||
* Igino Marini. www.ikern.com All rights reserved.
|
||||
*
|
||||
* Manufacturer:
|
||||
* Pablo Impallari. www.impallari.com Igino Marini. www.ikern.com
|
||||
*
|
||||
* Designer:
|
||||
* Pablo Impallari
|
||||
*
|
||||
* Vendor URL:
|
||||
* www.impallari.com
|
||||
*
|
||||
* License information:
|
||||
* http://scripts.sil.org/OFL
|
||||
*/
|
||||
Cufon.registerFont({"w":221,"face":{"font-family":"Cabin Cufon","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 11 8 3 5 2 2 2 0 4","ascent":"288","descent":"-72","x-height":"4","bbox":"-15 -347 420 90","underline-thickness":"18","underline-position":"-18","stemh":"231","stemv":"32","unicode-range":"U+0020-U+2122"},"glyphs":{" ":{"w":81},"A":{"d":"219,0r-36,0r-24,-68r-96,0r-24,68r-36,0r90,-252r36,0xm148,-99r-37,-105r-38,105r75,0","k":{"1":6,"9":5,"\u00df":5,"\u00f0":2,"Y":23,"\u00dd":23,"\u0178":23,"c":4,"\u00e7":4,"d":4,"e":4,"\u00e9":4,"\u00ea":4,"\u00eb":4,"\u00e8":4,"o":4,"\u00f3":4,"\u00f4":4,"\u00f6":4,"\u0153":4,"\u00f2":4,"\u00f8":4,"\u00f5":4,"q":4,"u":4,"\u00fa":4,"\u00fb":4,"\u00fc":4,"\u00f9":4,"\"":15,"'":15,"C":4,"\u00c7":4,"G":4,"O":4,"\u0152":4,"\u00d3":4,"\u00d4":4,"\u00d6":4,"\u00d2":4,"\u00d8":4,"\u00d5":4,"Q":4,"U":6,"\u00da":6,"\u00db":6,"\u00dc":6,"\u00d9":6,"y":14,"\u00fd":14,"\u00ff":14,"T":19,"V":18,"\u201d":19,"\u2019":19,"W":13,"t":10,"f":5,"\u201c":18,"\u2018":18,"g":3,"v":13,"w":10,"\u00ab":3,"\u2039":3,"*":16,"\\":17,"}":4,"l":3,"?":6,"\u00ae":5,"\u2122":16}},"\u00c6":{"d":"298,0r-157,0r0,-65r-77,0r-33,65r-34,0r124,-252r173,0r0,31r-112,0r0,74r87,0r0,31r-87,0r0,85r116,0r0,31xm141,-98r0,-122r-61,122r61,0","w":311,"k":{"m":3,"n":3,"\u00f1":3,"p":3,"r":3,"\u00fe":3,"c":6,"\u00e7":6,"d":6,"e":6,"\u00e9":6,"\u00ea":6,"\u00eb":6,"\u00e8":6,"o":6,"\u00f3":6,"\u00f4":6,"\u00f6":6,"\u0153":6,"\u00f2":6,"\u00f8":6,"\u00f5":6,"q":6,"s":2,"\u0161":2,"u":6,"\u00fa":6,"\u00fb":6,"\u00fc":6,"\u00f9":6,"C":4,"\u00c7":4,"G":4,"O":4,"\u0152":4,"\u00d3":4,"\u00d4":4,"\u00d6":4,"\u00d2":4,"\u00d8":4,"\u00d5":4,"Q":4,"y":6,"\u00fd":6,"\u00ff":6,"t":5,"f":5,"g":5,"v":5,"w":5,"\u00ab":8,"\u2039":8,"\u2014":4,"\u2013":4,"-":4,"\u00ae":3}},"\u00c1":{"d":"219,0r-36,0r-24,-68r-96,0r-24,68r-36,0r90,-252r36,0xm148,-99r-37,-105r-38,105r75,0xm145,-313r-68,23r0,-15r68,-34r0,26","k":{"Y":23,"\u00dd":23,"\u0178":23,"c":4,"\u00e7":4,"d":4,"e":4,"\u00e9":4,"\u00ea":4,"\u00eb":4,"\u00e8":4,"o":4,"\u00f3":4,"\u00f4":4,"\u00f6":4,"\u0153":4,"\u00f2":4,"\u00f8":4,"\u00f5":4,"q":4,"u":4,"\u00fa":4,"\u00fb":4,"\u00fc":4,"\u00f9":4,"\"":15,"'":15,"C":4,"\u00c7":4,"G":4,"O":4,"\u0152":4,"\u00d3":4,"\u00d4":4,"\u00d6":4,"\u00d2":4,"\u00d8":4,"\u00d5":4,"Q":4,"U":6,"\u00da":6,"\u00db":6,"\u00dc":6,"\u00d9":6,"y":14,"\u00fd":14,"\u00ff":14,"T":19,"V":18,"\u201d":19,"\u2019":19,"W":13,"t":10,"f":5,"\u201c":18,"\u2018":18,"g":3,"v":13,"w":10,"\u00ab":3,"\u2039":3,"*":16,"\\":17,"}":4,"l":3,"?":6,"\u00ae":5,"\u2122":16}},"\u00c2":{"d":"219,0r-36,0r-24,-68r-96,0r-24,68r-36,0r90,-252r36,0xm148,-99r-37,-105r-38,105r75,0xm164,-293r-53,-29r-53,29r0,-13r53,-38r53,38r0,13","k":{"Y":23,"\u00dd":23,"\u0178":23,"c":4,"\u00e7":4,"d":4,"e":4,"\u00e9":4,"\u00ea":4,"\u00eb":4,"\u00e8":4,"o":4,"\u00f3":4,"\u00f4":4,"\u00f6":4,"\u0153":4,"\u00f2":4,"\u00f8":4,"\u00f5":4,"q":4,"u":4,"\u00fa":4,"\u00fb":4,"\u00fc":4,"\u00f9":4,"\"":15,"'":15,"C":4,"\u00c7":4,"G":4,"O":4,"\u0152":4,"\u00d3":4,"\u00d4":4,"\u00d6":4,"\u00d2":4,"\u00d8":4,"\u00d5":4,"Q":4,"U":6,"\u00da":6,"\u00db":6,"\u00dc":6,"\u00d9":6,"y":14,"\u00fd":14,"\u00ff":14,"T":19,"V":18,"\u201d":19,"\u2019":19,"W":13,"t":10,"f":5,"\u201c":18,"\u2018":18,"g":3,"v":13,"w":10,"\u00ab":3,"\u2039":3,"*":16,"\\":17,"}":4,"l":3,"?":6,"\u00ae":5,"\u2122":16}},"\u00c4":{"d":"219,0r-36,0r-24,-68r-96,0r-24,68r-36,0r90,-252r36,0xm148,-99r-37,-105r-38,105r75,0xm156,-292r-25,0r0,-36r25,0r0,36xm92,-292r-25,0r0,-36r25,0r0,36","k":{"Y":23,"\u00dd":23,"\u0178":23,"c":4,"\u00e7":4,"d":4,"e":4,"\u00e9":4,"\u00ea":4,"\u00eb":4,"\u00e8":4,"o":4,"\u00f3":4,"\u00f4":4,"\u00f6":4,"\u0153":4,"\u00f2":4,"\u00f8":4,"\u00f5":4,"q":4,"u":4,"\u00fa":4,"\u00fb":4,"\u00fc":4,"\u00f9":4,"\"":15,"'":15,"C":4,"\u00c7":4,"G":4,"O":4,"\u0152":4,"\u00d3":4,"\u00d4":4,"\u00d6":4,"\u00d2":4,"\u00d8":4,"\u00d5":4,"Q":4,"U":6,"\u00da":6,"\u00db":6,"\u00dc":6,"\u00d9":6,"y":14,"\u00fd":14,"\u00ff":14,"T":19,"V":18,"\u201d":19,"\u2019":19,"W":13,"t":10,"f":5,"\u201c":18,"\u2018":18,"g":3,"v":13,"w":10,"\u00ab":3,"\u2039":3,"*":16,"\\":17,"}":4,"l":3,"?":6,"\u00ae":5,"\u2122":16}},"\u00c0":{"d":"219,0r-36,0r-24,-68r-96,0r-24,68r-36,0r90,-252r36,0xm148,-99r-37,-105r-38,105r75,0xm145,-290r-68,-23r0,-26r68,34r0,15","k":{"Y":23,"\u00dd":23,"\u0178":23,"c":4,"\u00e7":4,"d":4,"e":4,"\u00e9":4,"\u00ea":4,"\u00eb":4,"\u00e8":4,"o":4,"\u00f3":4,"\u00f4":4,"\u00f6":4,"\u0153":4,"\u00f2":4,"\u00f8":4,"\u00f5":4,"q":4,"u":4,"\u00fa":4,"\u00fb":4,"\u00fc":4,"\u00f9":4,"\"":15,"'":15,"C":4,"\u00c7":4,"G":4,"O":4,"\u0152":4,"\u00d3":4,"\u00d4":4,"\u00d6":4,"\u00d2":4,"\u00d8":4,"\u00d5":4,"Q":4,"U":6,"\u00da":6,"\u00db":6,"\u00dc":6,"\u00d9":6,"y":14,"\u00fd":14,"\u00ff":14,"T":19,"V":18,"\u201d":19,"\u2019":19,"W":13,"t":10,"f":5,"\u201c":18,"\u2018":18,"g":3,"v":13,"w":10,"\u00ab":3,"\u2039":3,"*":16,"\\":17,"}":4,"l":3,"?":6,"\u00ae":5,"\u2122":16}},"\u00c5":{"d":"219,0r-36,0r-24,-68r-96,0r-24,68r-36,0r90,-252r36,0Line truncated
|
||||
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* Llicčncia gratuďta / Free License (La Tipomatika)
|
||||
*
|
||||
* Trademark:
|
||||
* Please refer to the Copyright section for the font trademark attribution
|
||||
* notices.
|
||||
*
|
||||
* Full name:
|
||||
* CicleGordita
|
||||
*
|
||||
* Manufacturer:
|
||||
* La Tipomatika
|
||||
*
|
||||
* Designer:
|
||||
* La Tipomatika (Digital Type Foundry)
|
||||
*/
|
||||
Cufon.registerFont({"w":162,"face":{"font-family":"Cicle Gordita","font-weight":700,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 0 0 0 0 0 0 0 0","ascent":"288","descent":"-72","x-height":"65","bbox":"-25 -310 359 68","underline-thickness":"18","underline-position":"-18","unicode-range":"U+0020-U+FB02"},"glyphs":{" ":{"w":92},"e":{"d":"33,-78v6,54,55,67,97,41r10,23v-58,40,-136,3,-134,-76v0,-51,34,-93,74,-93v45,0,76,46,72,105r-119,0xm34,-103r92,0v-4,-31,-23,-54,-46,-54v-22,0,-41,24,-46,54","w":164},"f":{"d":"113,-245r-8,26v-31,-9,-44,11,-46,42r45,0r0,27r-45,0r0,150r-24,0r0,-150r-26,0r0,-27v8,-2,27,7,25,-7v6,-43,30,-73,79,-61","w":118},"g":{"d":"158,-153v38,57,-28,115,-90,94v-2,0,-5,1,-5,4v2,10,12,1,19,4v41,0,74,26,74,59v0,33,-33,60,-74,60v-70,0,-99,-81,-40,-110v-2,-10,-1,-22,3,-30v-55,-45,4,-133,78,-107r70,0v-12,8,-14,26,-35,26xm35,8v0,19,21,34,47,34v27,0,49,-15,49,-34v0,-18,-22,-35,-49,-35v-26,0,-47,17,-47,35xm48,-118v0,21,21,38,47,38v27,0,49,-17,49,-38v0,-22,-22,-39,-49,-39v-26,0,-47,17,-47,39","w":198},"p":{"d":"36,-144r0,107v3,7,22,14,45,14v34,0,62,-31,62,-68v0,-36,-28,-66,-62,-66v-24,0,-45,6,-45,13xm36,-180r0,6v63,-31,132,16,132,83v0,69,-67,114,-131,85r0,72r-26,0r0,-210v0,0,-1,-25,-11,-36r36,0","w":182},"y":{"d":"95,-50r52,-133r28,0r-83,207v-14,34,-42,51,-78,41r4,-30v33,26,53,-22,64,-52r-68,-166r28,0","w":192},"R":{"d":"135,0r-97,-109r0,109r-26,0r0,-249r73,0v41,0,73,29,73,65v-1,43,-40,71,-94,65r105,119r-34,0xm132,-184v0,-38,-49,-44,-94,-40r0,79v44,3,94,0,94,-39","w":170},"d":{"d":"40,-91v0,36,27,68,62,68v24,0,44,-8,44,-15r0,-105v-3,-7,-21,-14,-44,-14v-34,0,-62,31,-62,66xm146,-1r0,-5v-64,28,-131,-17,-131,-85v0,-66,69,-113,131,-83r0,-71r26,0r0,207v0,0,0,27,13,37r-39,0","w":192},"h":{"d":"13,-246r25,0r0,79v39,-37,104,-4,104,51r1,115r-26,0v-5,-59,20,-153,-40,-156v-18,0,-34,18,-39,37r0,120r-25,0r0,-246","w":163},"i":{"d":"18,0r0,-180r25,0r0,180r-25,0xm15,-225v0,-8,6,-15,15,-15v8,0,16,7,16,15v0,8,-8,15,-16,15v-9,0,-15,-7,-15,-15","w":63},"j":{"d":"62,-224v0,-9,7,-14,16,-14v7,0,14,5,14,14v0,8,-7,16,-14,16v-9,0,-16,-8,-16,-16xm13,66r2,-25v31,4,50,-10,50,-40r0,-182r26,0r0,186v-4,42,-31,69,-78,61","w":127},"k":{"d":"44,-131r55,-48r41,0r-60,50r74,129r-31,0r-63,-111v-5,5,-10,9,-16,14r0,97r-36,0v4,-4,10,-14,10,-21r0,-224r26,0r0,114","w":158},"l":{"d":"18,0r0,-245r25,0r0,245r-25,0","w":58},"m":{"d":"38,-180r0,14v27,-28,75,-17,93,14v31,-57,115,-29,115,36r0,115r-26,0v-5,-58,21,-156,-38,-156v-19,0,-36,18,-40,37r0,119r-26,0v-6,-58,22,-152,-39,-155v-18,0,-34,18,-39,37r0,119r-26,0r0,-158v0,-6,-6,-18,-10,-22r36,0","w":266},"n":{"d":"36,-179r0,12v39,-38,104,-4,104,51r0,116r-26,0v-5,-59,21,-157,-39,-157v-18,0,-34,18,-39,37r0,120r-26,0r0,-159v0,-6,-6,-16,-10,-20r36,0","w":155},"o":{"d":"31,-89v0,37,27,66,59,66v32,0,58,-29,58,-66v0,-37,-26,-68,-58,-68v-32,0,-59,31,-59,68xm5,-89v0,-51,39,-94,85,-94v47,0,84,43,84,94v0,51,-37,93,-84,93v-46,0,-85,-42,-85,-93","w":184},"q":{"d":"137,-175r0,-4r26,0r0,245r-26,0r0,-78v-61,27,-127,-17,-127,-81v0,-65,66,-109,127,-82xm137,-42r0,-102v0,-7,-19,-13,-43,-13v-32,0,-59,28,-59,64v0,54,70,84,102,51","w":184},"r":{"d":"93,-179r-6,25v-26,-12,-43,13,-50,35r0,119r-26,0r0,-158v0,-6,-5,-17,-15,-23r41,0r0,14v16,-12,34,-22,56,-12","w":100},"s":{"d":"138,-155r-21,15v-18,-21,-77,-24,-77,7v0,13,16,26,37,30v33,5,58,29,58,55v-1,58,-92,66,-122,22r19,-15v16,23,77,25,77,-7v0,-13,-18,-27,-37,-31v-31,-6,-58,-31,-58,-55v1,-56,95,-61,124,-21","w":150},"t":{"d":"39,-245r26,0r0,67r45,0r0,26r-45,0r0,152r-26,0r0,-152r-25,0r0,-26r25,0r0,-67","w":122},"u":{"d":"117,-13v-40,38,-103,3,-104,-51r0,-116r26,0v5,59,-20,157,39,157v18,0,35,-19,39,-38r0,-119r26,0r0,158v0,7,6,18,10,22r-36,0r0,-13"},"v":{"d":"75,0r-72,-180r27,0r57,139r56,-139r29,0r-74,180r-23,0","w":180},"w":{"d":"86,-42r21,-50r-35,-88r28,0r56,139r56,-139r28,0r-73,180r-23,-1r-23,-57r-24,58r-22,-1r-73,-179r28,0","w":253},"x":{"d":"76,-116r42,-64r31,0r-57,89r57,91r-31,0r-43,-68r-41,68r-31,0r57,-94r-55,-86r31,0","w":159},"z":{"d":"12,0r0,-23r100,-131r-99,0r0,-26r135,0r0,22r-99,132r99,0r0,26r-136,0"},"A":{"d":"79,-125r56,0r-28,-75xm5,0r92,-249r20,0r92,249r-28,0r-36,-98r-76,0r-37,98r-27,0","w":214},"B":{"d":"97,-1v-25,0,-55,0,-82,1r0,-249r81,0v65,-2,93,84,42,117v57,34,31,131,-41,131xm96,-145v60,0,53,-78,0,-78r-55,0r0,78r55,0xm41,-26v51,4,103,-2,103,-47v0,-44,-52,-51,-103,-46r0,93","w":184},"C":{"d":"202,-211r-18,18v-53,-65,-151,-17,-151,69v0,86,97,136,151,70r18,18v-68,82,-195,21,-195,-88v0,-106,128,-170,195,-87","w":212},"D":{"d":"103,-222r-67,0r0,196r68,-1v34,-1,61,-45,61,-98v0,-54,-27,-97,-62,-97xm9,0r0,-249r94,0v49,1,89,56,89,124v0,68,-39,125,-88,125r-95,0","w":207},"E":{"d":"142,-145r0,26r-104,0r0,93r122,0r0,26r-148,0r0,-249r148,0r0,26r-122,0r0,78r104,0","w":174},"F":{"d":"144,-145r0,26r-105,0r0,119r-26,0r0,-249r149,0r0,25r-123,0r0,79r105,0","w":175},"G":{"d":"199,-129r0,97v-69,77,-193,15,-193,-91v0,-109,127,-170,196,-88r-18,18v-54,-65,-152,-18,-152,70v0,78,85,133,141,79r0,-59r-65,0r0,-26r91,0","w":217},"H":{"d":"159,-119r-119,0r0,119r-26,0r0,-249r26,Line truncated
|
||||
@@ -0,0 +1,19 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* Copyright (c) 2003 by This Font is designed by Ralph Oliver du Carrois. All
|
||||
* rights reserved.
|
||||
*
|
||||
* Trademark:
|
||||
* Colaborate Light is a trademark of This Font is designed by Ralph Oliver du
|
||||
* Carrois.
|
||||
*
|
||||
* Description:
|
||||
* Copyright (c) 2003 by This Font is designed by Ralph Oliver du Carrois. All
|
||||
* rights reserved.
|
||||
*
|
||||
* Manufacturer:
|
||||
* This Font is designed by Ralph Oliver du Carrois
|
||||
*/
|
||||
Cufon.registerFont({"w":175,"face":{"font-family":"Colaborate Light","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 5 3 4 0 0 2 0 4","ascent":"288","descent":"-72","x-height":"4","bbox":"-45 -301 361 75","underline-thickness":"18","underline-position":"-18","stemh":"19","stemv":"23","unicode-range":"U+0020-U+FB02"},"glyphs":{" ":{"w":87},"\u00f0":{"d":"159,-102v0,53,-12,107,-74,107v-41,0,-69,-34,-69,-74v0,-75,93,-101,119,-38v0,-44,-12,-74,-40,-92r-31,21r-19,-11r28,-19v-10,-4,-21,-7,-33,-9r-9,-23v25,3,46,8,64,17r27,-19r19,11r-27,19v31,22,45,57,45,110xm131,-87v-5,-13,-18,-36,-47,-36v-33,0,-41,25,-41,54v0,34,17,54,42,54v30,0,46,-16,46,-72"},"\u0141":{"d":"168,0r-133,0r0,-99r-25,17r-12,-19r37,-25r0,-107r27,0r0,89r36,-24r12,19r-48,32r0,95r106,0r0,22","w":171},"\u0142":{"d":"91,-137r-34,23r0,114r-26,0r0,-97r-22,15r-12,-19r34,-23r0,-109r26,0r0,92r22,-15","w":88},"\u0160":{"d":"145,-60v0,-65,-124,-38,-121,-116v3,-64,82,-70,140,-52r-9,24v-29,-19,-104,-18,-104,28v0,23,22,32,46,41v35,12,75,25,75,75v0,77,-88,73,-148,56r9,-23v40,17,112,26,112,-33xm140,-291r-32,39r-21,0r-31,-39v26,-4,30,15,42,25v12,-10,15,-29,42,-25","w":197},"\u0161":{"d":"108,-44v0,-43,-96,-25,-92,-78v4,-54,67,-54,112,-35r-8,19v-24,-16,-77,-22,-79,15v0,14,16,19,35,25v26,8,57,18,57,54v0,56,-76,55,-118,38r9,-20v29,16,84,21,84,-18xm115,-233r-32,40r-21,0r-31,-40r19,0r23,26v12,-10,15,-30,42,-26","w":149},"\u00dd":{"d":"197,-233r-81,128r0,105r-27,0r0,-103r-83,-130r30,0r68,105r65,-105r28,0xm135,-291r-42,42r-19,0r35,-42r26,0","w":202,"k":{"\u00d2":9,"\u00d3":9,"\u00c1":19,"\u00c2":19,"\u0153":9,"\u0152":9,"\u00d5":9,"\u00c3":19,"\u00c0":19,"\u00f8":9,"\u00e6":9,"\u00d8":9,"\u00c6":19,"\u00a2":9,"\u00f5":9,"\u00f6":9,"\u00f4":9,"\u00f2":9,"\u00f3":9,"\u00eb":9,"\u00ea":9,"\u00e8":9,"\u00e9":9,"\u00e7":9,"\u00e5":9,"\u00e3":9,"\u00e4":9,"\u00e2":9,"\u00e0":9,"\u00e1":9,"\u00d6":9,"\u00c7":9,"\u00c5":19,"\u00c4":19,"s":9,"q":9,"o":9,"g":9,"e":9,"d":9,"c":9,"a":9,"Q":9,"O":9,"J":19,"G":9,"C":9,"A":19,".":19,",":19}},"\u00fd":{"d":"161,-165r-69,191v-9,26,-20,39,-50,49r-8,-20v38,-8,33,-35,46,-62r-66,-158r26,0r52,131r45,-131r24,0xm122,-233r-42,42r-19,0r35,-42r26,0","w":174,"k":{"\u00c1":9,"\u00c2":9,"\u0153":4,"\u00c3":9,"\u00c0":9,"\u00f8":4,"\u00e6":4,"\u00c6":9,"\u00a2":4,"\u00f5":4,"\u00f6":4,"\u00f4":4,"\u00f2":4,"\u00f3":4,"\u00eb":4,"\u00ea":4,"\u00e8":4,"\u00e9":4,"\u00e7":4,"\u00e5":4,"\u00e3":4,"\u00e4":4,"\u00e2":4,"\u00e0":4,"\u00e1":4,"\u00c5":9,"\u00c4":9,"s":4,"q":4,"o":4,"g":4,"e":4,"d":4,"c":4,"a":4,"T":9,"J":19,"A":9,".":19,",":19,"\u0161":4}},"\u017d":{"d":"178,-211r-133,190r130,0r0,21r-151,0r-8,-22r133,-190r-119,0r0,-21r139,0xm142,-289r-32,40r-21,0r-31,-40r19,0r23,26v12,-10,15,-30,42,-26","w":194},"\u017e":{"d":"134,-145r-94,127r90,0r0,18r-108,0r-9,-20r95,-126r-86,0r0,-19r104,0xm116,-233r-32,40r-21,0r-31,-40r19,0r23,26v12,-10,15,-30,42,-26","w":147},"\u00bd":{"d":"240,0r-82,0r-5,-14v20,-17,68,-48,68,-72v0,-32,-40,-24,-60,-14r-5,-15v35,-15,83,-12,83,29v0,28,-42,55,-63,72r64,0r0,14xm194,-226r-130,226r-23,0r130,-226r23,0xm70,-113r-18,0r0,-102r-24,20r-5,-14v15,-8,21,-27,47,-24r0,120","w":265},"\u00bc":{"d":"228,-32r-19,0r0,32r-18,0r0,-32r-52,0r-6,-13r59,-75r17,0r0,75r19,0r0,13xm195,-226r-132,226r-22,0r131,-226r23,0xm71,-113r-18,0r0,-102r-25,20r-5,-14v15,-9,21,-27,48,-24r0,120xm191,-45r0,-56r-43,56r43,0","w":265},"\u00b9":{"d":"76,-113r-18,0r0,-102r-24,20r-6,-14v15,-9,21,-27,48,-24r0,120","w":119},"\u00be":{"d":"236,-32r-19,0r0,32r-18,0r0,-32r-52,0r-6,-13r59,-75r17,0r0,75r19,0r0,13xm204,-226r-130,226r-23,0r131,-226r22,0xm100,-145v-1,38,-52,39,-83,29r5,-14v16,7,61,14,60,-15v0,-22,-17,-26,-41,-26r0,-13v22,0,38,-2,38,-21v-1,-30,-38,-18,-55,-10r-5,-14v26,-13,78,-13,78,23v0,18,-14,27,-29,29v15,2,32,10,32,32xm199,-45r0,-56r-42,56r42,0","w":265},"\u00b3":{"d":"102,-145v-1,38,-52,39,-84,29r5,-14v17,7,61,14,61,-15v0,-22,-18,-26,-42,-26r0,-13v22,0,39,-2,39,-21v0,-29,-38,-19,-55,-10r-5,-14v26,-13,80,-12,78,23v0,18,-15,27,-30,29v15,2,33,10,33,32","w":119},"\u00b2":{"d":"103,-114r-81,0r-5,-13v20,-17,67,-50,67,-74v0,-32,-39,-25,-59,-14r-5,-14v35,-15,82,-12,82,28v0,28,-42,56,-63,73r64,0r0,14","w":119},"\u00a6":{"d":"55,-129r-23,0r0,-84r23,0r0,84xm55,28r-23,0r0,-84r23,0r0,84","w":87},"\u2212":{"d":"163,-69r-150,0r0,-19r150,0r0,19"},"\u00d7":{"d":"158,-27r-15,16r-55,-55r-55,55r-15,-16r54,-54r-54,-55r15,-16r55,55r55,-55r15,16r-54,55"},"!":{"d":"56,-61r-24,0r0,-172r24,0r0,172xm58,0r-28,0r0,-30r28,0r0,30","w":87},"\"":{"d":"102,-233r-3,78r-18,0r-3,-78r24,0xm52,-233r-3,78r-18,0r-3,-78r24,0","w":129},"#":{"d":"171,-143r-38,0r-10,56r34,0r0,18r-37,0r-12,69r-22,0r12,-69r-40,0r-12,69r-22,0r12,-69r-31,0r0,-18r35,0r9,-56r-30,0r0,-18r34,0r12,-72r22,0r-12,72r39,0r13,-72r22,0r-13,72r35,0r0,18xm111,-143r-40,0r-9,56r39,0"},"$":{"d":"157,-60v0,43,-27,60,-60,65r0,30r-21,0r0,-29v-21,0,-40,-5,-60,-10r9,-23v18,7,32,13,51,13r0,-97v-30,-11,-60,-24,-60,-65v0,-39,26,-56,60,-60r0,-33r21,0r0,32v15,1,34,3,51,9r-9,24v-12,-5,-23,-11,-42,-12r0,86v30,11,60,26,60,70xm7Line truncated
|
||||
@@ -0,0 +1,26 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* (c) 2007-2008 Typodermic. This font is freeware. Read attached text file for
|
||||
* details. Check out the rest of the Gnuolane family and the OpenType version at
|
||||
* Typodermic: http://www.typodermic.com
|
||||
*
|
||||
* Trademark:
|
||||
* Gnuolane is a trademark of Typodermic
|
||||
*
|
||||
* Description:
|
||||
* Gnuolane Free is identical to Gnuolane regular. If you find a version of
|
||||
* Gnuolane Regular that looks significantly heavier than Gnuolane Free, it's an
|
||||
* older version. Ask your font vendor for an update.
|
||||
*
|
||||
* Manufacturer:
|
||||
* Ray Larabie
|
||||
*
|
||||
* Designer:
|
||||
* Ray Larabie
|
||||
*
|
||||
* Vendor URL:
|
||||
* http://www.typodermic.com
|
||||
*/
|
||||
Cufon.registerFont({"w":169,"face":{"font-family":"Gnuolane Free","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 11 5 6 4 0 0 2 0 4","ascent":"288","descent":"-72","x-height":"4","bbox":"-43 -351 269 79.3775","underline-thickness":"18","underline-position":"-18","unicode-range":"U+000D-U+FB04"},"glyphs":{" ":{"w":76},"\r":{},"!":{"d":"57,-282r-7,198r-29,0r-7,-198r43,0xm52,0r-34,0r0,-47r34,0r0,47","w":70},"\"":{"d":"59,-280r29,0r-3,105r-22,0xm4,-280r29,0r-3,105r-22,0","w":92,"k":{"\u01fa":26,"\u0167":-9,"\u0165":-9,"\u0163":-9,"\u0104":26,"\u0102":26,"\u0100":26,"\u00c5":26,"\u00c4":26,"\u00c2":26,"\u00c1":26,"\u00c0":26,"t":-9,"T":-9,"J":28,"A":26}},"#":{"d":"167,-260r-19,66r22,0r0,23r-28,0r-17,61r31,0r0,24r-38,0r-19,69r-27,-7r19,-62r-36,0r-19,69r-27,-7v8,-22,12,-39,18,-62r-22,0r0,-24r28,0r17,-61r-30,0r0,-23r38,0r20,-73r26,7r-18,66r34,0r20,-73xm62,-110r34,0r17,-61r-34,0","w":176},"$":{"d":"120,-89v-2,34,-14,54,-45,58r0,31r-21,0r0,-31v-32,-4,-46,-22,-46,-60r29,-5v0,22,4,37,25,39v39,4,33,-51,11,-61v-27,-14,-59,-25,-58,-67v1,-28,11,-45,39,-48r0,-35r21,0r0,34v28,3,40,16,42,45r-26,5v-3,-14,-6,-24,-23,-23v-14,0,-23,6,-22,21v5,51,78,35,74,97","w":130},"%":{"d":"11,-202v0,-41,2,-74,43,-74v41,0,42,33,42,74v0,40,-1,74,-42,74v-41,0,-43,-34,-43,-74xm42,0r115,-272r24,0r-115,272r-24,0xm72,-178v0,-31,10,-76,-18,-76v-30,0,-19,44,-19,76v0,17,3,29,19,29v16,0,18,-12,18,-29xm126,-70v0,-41,2,-74,43,-74v41,0,43,33,43,74v0,40,-3,74,-43,74v-40,0,-43,-34,-43,-74xm188,-46v-3,-32,10,-76,-19,-76v-30,0,-16,44,-19,76v2,16,3,28,19,28v16,0,17,-13,19,-28","w":222},"&":{"d":"62,-158v-18,-34,-36,-115,25,-115v71,0,38,105,4,121v14,25,30,49,46,72v7,-20,10,-44,12,-67r29,6v-5,30,-9,61,-20,87r28,30r-21,27r-25,-28v-27,46,-131,40,-131,-32v0,-51,23,-79,53,-101xm42,-66v-5,52,63,53,80,17v-18,-25,-35,-54,-50,-82v-17,16,-27,34,-30,65xm87,-248v-31,2,-13,53,-6,72v10,-12,23,-28,23,-49v0,-14,-2,-24,-17,-23","w":186},"'":{"d":"4,-280r29,0r-3,105r-22,0","w":37,"k":{"\u01fa":26,"\u0167":-9,"\u0165":-9,"\u0163":-9,"\u0104":26,"\u0102":26,"\u0100":26,"\u00c5":26,"\u00c4":26,"\u00c2":26,"\u00c1":26,"\u00c0":26,"t":-9,"T":-9,"J":28,"A":26}},"(":{"d":"90,50v-110,-35,-101,-287,-12,-335r16,19v-73,50,-79,260,9,297","w":113},")":{"d":"24,-284v109,36,100,286,12,335r-16,-19v73,-50,77,-258,-9,-296","w":113},"*":{"d":"105,-268r-6,58r57,-23r9,27r-61,14r40,44r-27,19r-29,-49r-31,49r-26,-19r40,-43r-60,-16r10,-27r56,24r-6,-58r34,0","w":175},"+":{"d":"84,-122r-73,0r0,-23r73,0r0,-74r23,0r0,74r73,0r0,23r-73,0r0,73r-23,0r0,-73","w":190},",":{"d":"48,-47v1,44,2,63,-26,91r-10,-8v12,-12,19,-25,19,-38r-17,0r0,-45r34,0","w":58,"k":{"\uf748":18,"\uf747":18,"\uf746":18,"\uf745":18,"\uf744":18,"\uf743":18,"\uf742":18,"\uf741":18,"\uf740":18,"\uf738":9,"\uf737":15,"\uf736":9,"\uf730":7,"\u207f":18,"\u2079":18,"\u2078":18,"\u2077":18,"\u2076":18,"\u2075":18,"\u2074":18,"\u2070":18,"\u201d":18,"\u201c":18,"\u2019":18,"\u2018":18,"\u1ef3":22,"\u1ef2":28,"\u1e85":22,"\u1e84":28,"\u1e83":22,"\u1e82":28,"\u1e81":22,"\u1e80":28,"\u01ff":7,"\u0178":28,"\u0177":22,"\u0176":28,"\u0175":22,"\u0174":28,"\u0172":7,"\u0170":7,"\u016e":7,"\u016c":7,"\u016a":7,"\u0168":7,"\u0167":9,"\u0165":9,"\u0163":9,"\u0153":7,"\u0151":7,"\u014f":7,"\u014d":7,"\u011b":7,"\u0119":7,"\u0117":7,"\u0116":7,"\u0115":7,"\u0113":7,"\u0111":7,"\u010f":7,"\u010d":7,"\u010b":7,"\u0109":7,"\u0107":7,"\u00ff":22,"\u00fd":22,"\u00f8":7,"\u00f6":7,"\u00f5":7,"\u00f4":7,"\u00f3":7,"\u00f2":7,"\u00f0":7,"\u00eb":7,"\u00ea":7,"\u00e9":7,"\u00e8":7,"\u00e7":7,"\u00e6":7,"\u00dd":28,"\u00dc":7,"\u00db":7,"\u00da":7,"\u00d9":7,"\u00d8":9,"\u00d6":9,"\u00d5":9,"\u00d4":9,"\u00d3":9,"\u00d2":9,"\u00c7":9,"y":22,"w":22,"v":22,"t":9,"o":7,"e":7,"d":7,"c":7,"Y":28,"W":28,"V":28,"U":7,"T":22,"Q":9,"O":9,"C":9,"9":9,"8":9,"6":9,"1":22,"0":9,")":13,"'":18,"\"":18}},"-":{"d":"4,-94r3,-23r68,0r-3,23r-68,0","w":78,"k":{"\u1ef2":15,"\u1e84":15,"\u1e82":15,"\u1e80":15,"\u0218":11,"\u01fa":13,"\u017d":13,"\u017b":13,"\u0179":13,"\u0178":15,"\u0176":15,"\u0174":15,"\u0160":11,"\u015e":11,"\u015c":11,"\u015a":11,"\u0104":13,"\u0102":13,"\u0100":13,"\u00dd":15,"\u00c5":13,"\u00c4":13,"\u00c2":13,"\u00c1":13,"\u00c0":13,"Z":13,"Y":15,"X":22,"W":15,"V":15,"T":22,"S":11,"J":41,"A":13}},".":{"d":"45,0r-34,0r0,-47r34,0r0,47","w":55,"k":{"\uf748":18,"\uf747":18,"\uf746":18,"\uf745":18,"\uf744":18,"\uf743":18,"\uf742":18,"\uf741":18,"\uf740":18,"\uf738":9,"\uf737":15,"\uf736":9,"\uf730":7,"\u207f":18,"\u2079":18,"\u2078":18,"\u2077":18,"\u2076":18,"\u2075":18,"\u2074":18,"\u2070":18,"\u201d":18,"\u201c":18,"\u2019":18,"\u2018":18,"\u1ef3":22,"\u1ef2":28,"\u1e85":22,"\u1e84":28,"\u1e83":22,"\u1e82":28,"\u1e81":22,"\u1e80":28,"\u01ff":7,"\u0178":28,"\u0177":22,"\u0176":28,"\u0175":22,"\u0174":28,"\u0172":7,"\u0170":7,"\u016e":7,"\u016c":7,"\u016a":7,"\u0168":7,"\u0167":9,"\u0165":9,"\u0163":9,"\u0153":7,"\u0151":7,"\u014f":7,"\u014d":7,"\u011b":7,"\u0119":7,"\u0117":7,"\u0116":7,"\u0115":7,"\u0113":7,"\u0111":7,"\u010f":7,"\u010d":7,"Line truncated
|
||||
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* Copyright (c) 2010 by Santiago Orozco. All rights reserved.
|
||||
*
|
||||
* Trademark:
|
||||
* Josefin Sans Std Light is a trademark of Santiago Orozco.
|
||||
*
|
||||
* Full name:
|
||||
* JosefinSansStd-Light
|
||||
*
|
||||
* Description:
|
||||
* Copyright (c) 2010 by Santiago Orozco. All rights reserved.
|
||||
*
|
||||
* Manufacturer:
|
||||
* Santiago Orozco
|
||||
*
|
||||
* Designer:
|
||||
* Santiago Orozco
|
||||
*/
|
||||
Cufon.registerFont({"w":162,"face":{"font-family":"Josefin Sans Cufon","font-weight":300,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 5 3 0 0 0 2 0 3","ascent":"270","descent":"-90","bbox":"-25 -362 377 91","underline-thickness":"18","underline-position":"-18","unicode-range":"U+0020-U+0219"},"glyphs":{" ":{"w":108},"O":{"d":"22,-126v0,-71,58,-129,129,-129v71,0,129,58,129,129v0,71,-58,129,-129,129v-71,0,-129,-58,-129,-129xm36,-126v0,63,52,116,115,116v63,0,116,-53,116,-116v0,-63,-53,-116,-116,-116v-63,0,-115,53,-115,116","w":302,"k":{"w":10,"s":22,"\u0161":22,"\u015b":22,"\u015d":22,"\u015f":22,"\u0219":22,"n":17,"b":17,"l":17,"m":17,"i":17,"h":17,"r":17,"p":17,"\u00ed":17,"\u00ec":17,"j":17,"k":17,"\u00ef":17,"\u00f1":17,"@":17,"1":17,"|":17,"\u00a1":17,"\u00ee":17,"[":17,"]":17,"\u00fe":17,"\u0131":17,"\u00b6":17,"\u00a6":17,"\u03bc":17,"\u0125":17,"\u0127":17,"\u0129":17,"\u012b":17,"\u012d":17,"\u012f":17,"\u0133":17,"\u0135":17,"\u0137":17,"\u0138":17,"\u013a":17,"\u013c":17,"\u013e":17,"\u0140":17,"\u0144":17,"\u0146":17,"\u0148":17,"\u0149":17,"\u014b":17,"\u0155":17,"\u0157":17,"\u0159":17,"g":14,"e":14,"a":14,"d":14,"c":14,"q":14,"\u00e1":14,"\u00e9":14,"\u00f3":14,"\u00e4":14,"\u00eb":14,"\u00f6":14,"\u00e0":14,"\u00e8":14,"\u00f2":14,"\u00e5":14,"o":14,"\u0153":14,"\u00e6":14,"\u00e2":14,"\u00ea":14,"\u00f4":14,"\u00e3":14,"\u00f5":14,"\u00e7":14,"\u00f0":14,"\u00a2":14,"&":14,"\u0101":14,"\u0103":14,"\u0105":14,"\u0107":14,"\u0109":14,"\u010b":14,"\u010d":14,"\u010f":14,"\u0111":14,"\u0113":14,"\u0115":14,"\u0117":14,"\u0119":14,"\u011b":14,"\u011d":14,"\u011f":14,"\u0121":14,"\u0123":14,"\u014d":14,"\u014f":14,"\u0151":14,"u":14,"\u00fa":14,"\u00fc":14,"\u00f9":14,"(":14,"\u00fb":14,"\u0169":14,"\u016b":14,"\u016d":14,"\u016f":14,"\u0171":14,"\u0173":14,"v":10,"y":10,"\u00fd":10,"\u00ff":10,"\u0175":10,"\u0177":10}},"g":{"d":"35,69r10,-8v33,36,101,14,102,-39r1,-60v-22,65,-130,45,-130,-29v0,-72,107,-97,129,-31r1,-37r12,0r0,157v3,62,-84,89,-125,47xm88,-9v34,0,57,-25,57,-58v0,-33,-23,-59,-57,-59v-33,0,-57,26,-57,59v0,33,24,58,57,58","w":186,"k":{"w":9,"s":14,"\u0161":14,"\u015b":14,"\u015d":14,"\u015f":14,"\u0219":14,"n":9,"b":9,"l":9,"m":9,"i":9,"h":9,"r":9,"p":9,"\u00ed":9,"\u00ec":9,"j":9,"k":9,"\u00ef":9,"\u00f1":9,"@":9,"1":9,"|":9,"\u00a1":9,"\u00ee":9,"[":9,"]":9,"\u00fe":9,"\u0131":9,"\u00b6":9,"\u00a6":9,"\u03bc":9,"\u0125":9,"\u0127":9,"\u0129":9,"\u012b":9,"\u012d":9,"\u012f":9,"\u0133":9,"\u0135":9,"\u0137":9,"\u0138":9,"\u013a":9,"\u013c":9,"\u013e":9,"\u0140":9,"\u0144":9,"\u0146":9,"\u0148":9,"\u0149":9,"\u014b":9,"\u0155":9,"\u0157":9,"\u0159":9,"g":9,"e":9,"a":9,"d":9,"c":9,"q":9,"\u00e1":9,"\u00e9":9,"\u00f3":9,"\u00e4":9,"\u00eb":9,"\u00f6":9,"\u00e0":9,"\u00e8":9,"\u00f2":9,"\u00e5":9,"o":9,"\u0153":9,"\u00e6":9,"\u00e2":9,"\u00ea":9,"\u00f4":9,"\u00e3":9,"\u00f5":9,"\u00e7":9,"\u00f0":9,"\u00a2":9,"&":9,"\u0101":9,"\u0103":9,"\u0105":9,"\u0107":9,"\u0109":9,"\u010b":9,"\u010d":9,"\u010f":9,"\u0111":9,"\u0113":9,"\u0115":9,"\u0117":9,"\u0119":9,"\u011b":9,"\u011d":9,"\u011f":9,"\u0121":9,"\u0123":9,"\u014d":9,"\u014f":9,"\u0151":9,"u":14,"\u00fa":14,"\u00fc":14,"\u00f9":14,"(":14,"\u00fb":14,"\u0169":14,"\u016b":14,"\u016d":14,"\u016f":14,"\u0171":14,"\u0173":14,".":9,"_":9}},"e":{"d":"147,-89r-116,45v10,35,64,48,92,21r9,7v-39,43,-118,10,-118,-51v0,-39,31,-70,70,-70v32,0,54,20,63,48xm131,-96v-24,-54,-119,-24,-103,40","k":{"x":9,"w":13,"s":18,"\u0161":18,"\u015b":18,"\u015d":18,"\u015f":18,"\u0219":18,"n":11,"b":11,"l":11,"m":11,"i":11,"h":11,"r":11,"p":11,"\u00ed":11,"\u00ec":11,"j":11,"k":11,"\u00ef":11,"\u00f1":11,"@":11,"1":11,"|":11,"\u00a1":11,"\u00ee":11,"[":11,"]":11,"\u00fe":11,"\u0131":11,"\u00b6":11,"\u00a6":11,"\u03bc":11,"\u0125":11,"\u0127":11,"\u0129":11,"\u012b":11,"\u012d":11,"\u012f":11,"\u0133":11,"\u0135":11,"\u0137":11,"\u0138":11,"\u013a":11,"\u013c":11,"\u013e":11,"\u0140":11,"\u0144":11,"\u0146":11,"\u0148":11,"\u0149":11,"\u014b":11,"\u0155":11,"\u0157":11,"\u0159":11,"t":5,"f":5,"\u0192":5,"\u00df":5,"\u0163":5,"\u0165":5,"\u0167":5,"g":9,"e":9,"a":9,"d":9,"c":9,"q":9,"\u00e1":9,"\u00e9":9,"\u00f3":9,"\u00e4":9,"\u00eb":9,"\u00f6":9,"\u00e0":9,"\u00e8":9,"\u00f2":9,"\u00e5":9,"o":9,"\u0153":9,"\u00e6":9,"\u00e2":9,"\u00ea":9,"\u00f4":9,"\u00e3":9,"\u00f5":9,"\u00e7":9,"\u00f0":9,"\u00a2":9,"&":9,"\u0101":9,"\u0103":9,"\u0105":9,"\u0107":9,"\u0109":9,"\u010b":9,"\u010d":9,"\u010f":9,"\u0111":9,"\u0113":9,"\u0115":9,"\u0117":9,"\u0119":9,"\u011b":9,"\u011d":9,"\u011f":9,"\u0121":9,"\u0123":9,"\u014d":9,"\u014f":9,"\u0151":9,"u":18,"\u00fa":18,"\u00fc":18,"\u00f9":18,"(":18,"\u00fb":18,"\u0169":18,"\u016b":18,"\u016d":18,"\u016f":18,"\u0171":18,"\u0173":18,"v":5,"y":5,"\u00fd":5,"\u00ff":5,"\u0175":5,"\u0177":5,".":7,"_":7}},"a":{"d":"160,0r-13,0r1,-38v-22,65,-130,45,-130,-29v0,-72,107,-97,129,-31r1,-37r12,0r0,135xm88,-9v34,0,57,-25,57,-58v0,-33,-23,-59,-57,-59v-33,0,-57,26,-57,59v0,33,24,58,57,58","w":198,"k":{"x":4,"w":17,"s":21,"\u0161":Line truncated
|
||||
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* Copyright (c) 2001 by Bigelow & Holmes Inc. Instructions copyright (c) 2001 by
|
||||
* URW++.
|
||||
*
|
||||
* Trademark:
|
||||
* Luxi is a registered trademark of Bigelow & Holmes Inc.
|
||||
*
|
||||
* Manufacturer:
|
||||
* Bigelow & Holmes Inc.
|
||||
*
|
||||
* Designer:
|
||||
* Kris Holmes and Charles Bigelow
|
||||
*
|
||||
* Vendor URL:
|
||||
* http://www.urwpp.de
|
||||
*/
|
||||
Cufon.registerFont({"w":180,"face":{"font-family":"Luxi Serif","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 2 6 3 7 0 0 0 0 0","ascent":"288","descent":"-72","x-height":"4","bbox":"-14 -357 340.392 76.1511","underline-thickness":"0","underline-position":"0","unicode-range":"U+0020-U+021B"},"glyphs":{" ":{"w":90},"!":{"d":"43,0r0,-35r34,0r0,35r-34,0xm54,-69r-11,-139r0,-52r34,0v2,69,-8,128,-12,191r-11,0","w":119},"\"":{"d":"38,-191r-12,-87r34,0r-11,87r-11,0xm98,-191r-12,-87r35,0r-12,87r-11,0","w":146},"#":{"d":"16,0r20,-80r-36,0r3,-18r38,0r16,-65r-41,0r4,-17r41,0r20,-80r18,0r-20,80r47,0r20,-80r18,0r-20,80r36,0r-3,17r-38,0r-16,65r41,0r-4,18r-41,0r-20,80r-18,0r20,-80r-47,0r-20,80r-18,0xm59,-98r46,0r16,-65r-46,0"},"$":{"d":"154,-106v28,45,-8,101,-56,107r0,21r-11,0r0,-22v-25,0,-49,-5,-73,-15r0,-44r20,0v-5,35,20,51,53,47r0,-106v-37,-23,-64,-35,-64,-81v0,-40,26,-57,64,-62r0,-21r11,0r0,21v20,1,40,5,62,13r0,41r-19,0v2,-29,-13,-43,-43,-42r0,102v17,11,49,32,56,41xm98,-14v43,-10,47,-72,8,-93r-8,-5r0,98xm87,-248v-45,11,-45,70,0,93r0,-93"},"%":{"d":"34,7r209,-274r22,0r-209,274r-22,0xm21,-195v0,-35,21,-65,55,-65v34,0,56,30,56,65v0,35,-21,65,-56,65v-33,0,-55,-31,-55,-65xm76,-249v-19,0,-29,18,-29,54v0,36,10,54,29,54v20,0,30,-18,30,-55v0,-36,-10,-53,-30,-53xm168,-65v0,-35,21,-65,55,-65v34,0,56,30,56,65v0,35,-21,65,-56,65v-33,0,-55,-31,-55,-65xm223,-119v-19,0,-29,18,-29,54v0,36,10,54,29,54v20,0,30,-18,30,-55v0,-36,-10,-53,-30,-53","w":299},"&":{"d":"211,-41v14,15,26,33,58,30r0,11r-67,0r-16,-18v-64,49,-169,23,-169,-59v0,-43,29,-66,68,-79v-42,-46,-20,-111,44,-111v37,0,65,17,65,52v0,38,-29,55,-65,65r73,100v13,-17,17,-39,16,-66v0,-14,-16,-10,-30,-11r0,-11r83,0v8,21,-34,1,-28,25v0,20,-10,44,-32,72xm52,-87v-3,65,74,93,126,60v-28,-32,-57,-73,-88,-120v-23,12,-37,29,-38,60xm130,-255v-48,10,-35,59,-7,97v22,-15,38,-31,39,-62v0,-23,-11,-35,-32,-35","w":280},"'":{"d":"27,-182r-16,-96r43,0r-16,96r-11,0","w":64},"(":{"d":"102,-267v-65,59,-65,251,0,308r0,11v-77,-44,-110,-185,-52,-275v14,-22,31,-41,52,-55r0,11","w":119},")":{"d":"18,41v66,-59,64,-250,0,-308r0,-11v77,44,110,185,52,276v-14,22,-31,40,-52,54r0,-11","w":119},"*":{"d":"101,-202r50,-23r8,24r-54,11v2,-5,0,-8,-4,-12xm104,-184r37,40r-21,15r-27,-48v5,-1,9,-3,11,-7xm87,-177r-27,48r-21,-15r37,-40v3,4,7,6,11,7xm75,-190r-54,-11r8,-24r50,23v-4,4,-4,6,-4,12xm84,-206r-7,-54r26,0r-6,54v-6,-2,-7,-3,-13,0"},"+":{"d":"93,-17r0,-78r-78,0r0,-18r78,0r0,-78r17,0r0,78r78,0r0,18r-78,0r0,78r-17,0","w":203},",":{"d":"41,0r-18,0r0,-43r44,0v2,50,4,96,-44,99r0,-10v15,1,19,-23,18,-46","w":90,"k":{"1":9}},"-":{"d":"14,-95r0,-22r91,0r0,22r-91,0","w":119,"k":{"\u00c1":10,"\u00c6":17,"\u00c5":10,"\u00c4":10,"Y":36,"W":12,"V":21,"T":27,"A":10}},".":{"d":"23,0r0,-43r44,0r0,43r-44,0","w":90,"k":{"1":9}},"\/":{"d":"-5,52r92,-312r18,0r-92,312r-18,0","w":100},"0":{"d":"89,7v-109,-8,-106,-268,1,-274v109,6,108,269,-1,274xm133,-133v0,-52,4,-123,-43,-123v-29,0,-43,41,-43,125v0,84,14,127,44,127v28,0,42,-43,42,-129","k":{"7":11,"4":-5,"1":14}},"1":{"d":"107,-262r1,234v0,23,27,16,49,17r0,11r-134,0r0,-11v16,0,35,2,46,-5v9,-59,3,-143,3,-209v1,-25,-30,-6,-49,-5r0,-11","k":{"9":8,"8":13,"7":14,"6":19,"5":9,"4":24,"3":6,"2":4,"1":9,"0":20,".":9,",":9}},"2":{"d":"78,-255v-29,0,-46,14,-43,52r-17,0r0,-48v54,-30,141,-22,141,51v0,53,-43,68,-72,98v-28,29,-39,36,-47,72r118,0r0,30r-146,0v-3,-98,109,-104,111,-198v0,-38,-15,-57,-45,-57","k":{"7":7,"4":20,"1":8}},"3":{"d":"160,-71v0,71,-78,92,-144,69r0,-46r18,0v-4,30,14,43,40,43v32,0,49,-28,49,-63v0,-49,-31,-69,-83,-65r0,-11v49,3,79,-16,78,-59v0,-35,-16,-52,-45,-52v-25,1,-39,8,-37,38r-18,0r0,-40v56,-21,135,-12,134,50v-1,36,-23,54,-54,66v37,9,62,31,62,70","k":{"7":11,"4":-2,"1":13}},"4":{"d":"111,-74r-107,0r0,-17r118,-174r19,0r0,165r30,0r0,26r-30,0v4,27,-12,68,28,63r0,11r-91,0v1,-4,-3,-12,3,-11v36,6,30,-29,30,-63xm24,-100r87,0r0,-128","k":{"7":8,"4":-7,"1":3}},"5":{"d":"159,-74v0,68,-68,95,-136,75r0,-44r17,0v0,24,2,39,31,39v34,-1,52,-33,52,-70v1,-49,-34,-72,-96,-70r0,-116r127,0r0,30r-116,0r0,73v69,-4,121,21,121,83","k":{"7":9,"4":-1,"1":11}},"6":{"d":"142,-216v-3,-25,-7,-40,-35,-39v-46,2,-62,62,-61,122v29,-64,127,-29,127,47v0,49,-35,94,-81,93v-59,-2,-83,-61,-83,-130v0,-99,60,-174,150,-132r0,39r-17,0xm97,-5v31,0,41,-39,41,-76v0,-97,-91,-91,-91,-14v0,40,19,90,50,90","k":{"7":6,"4":-8,"1":8}},"7":{"d":"175,-237v-47,64,-93,151,-102,237r-41,0v7,-61,70,-162,123,-228r-136,0r0,-32r156,0r0,23","k":{":":20,"8":2,"7":-2,"6":8,"5":2,"4":31,"3":-2,"2":-2,".":36,",":36}},"8":{"d":"7,-64v1,-39,22,-62,53,-76v-24,-18,-39,-27,-40,-62v-1,-40,30,-66,71,-65v38,0,70,20,70,57v-1,33,-25,52,-51,67v32,19,61,33,62,76v0,43,-40,74,-84,74v-44,1,-81,-28,-81,-71xm89,-255v-36,-3,-54,51,-29,72r40,34v41,-24,44,-102,-11,-106xm91,-5v41,1,61,-58,32,-87v-11,-11,-38,-29,-55,-41v-38,31,-37,127,23,128","k":{"7":6,"4":-7,"1":8}},"9":{"d":"38,-44v3,25,6,40,34,39v46,-2,63,-62,62,-122v-30,64,-127,28,-127,-48v0,-49,35,-93,81,-92v59,2,83,61,83,130v0,99,-60,174,-150,132r0,-39r17,0xm88,-105v70,0,51,-150,-5,-15Line truncated
|
||||
@@ -0,0 +1,25 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* Copyright (c) 2008 by Jos Buivenga. All rights reserved.
|
||||
*
|
||||
* Trademark:
|
||||
* Museo Sans is a trademark of Jos Buivenga.
|
||||
*
|
||||
* Full name:
|
||||
* MuseoSans-500
|
||||
*
|
||||
* Description:
|
||||
* Spaced and kerned with iKern.
|
||||
*
|
||||
* Manufacturer:
|
||||
* Jos Buivenga
|
||||
*
|
||||
* Designer:
|
||||
* Jos Buivenga
|
||||
*
|
||||
* Vendor URL:
|
||||
* http://www.josbuivenga.demon.nl
|
||||
*/
|
||||
Cufon.registerFont({"w":190,"face":{"font-family":"Museo Sans","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 0 0 0 0 0 0 0 0","ascent":"270","descent":"-90","x-height":"4","bbox":"-20 -321 345.029 76","underline-thickness":"18","underline-position":"-18","stemh":"30","stemv":"36","unicode-range":"U+0020-U+021B"},"glyphs":{" ":{"w":92},"!":{"d":"42,-70r-3,-184r36,0r-2,184r-31,0xm40,0r0,-35r35,0r0,35r-35,0","w":114},"\"":{"d":"73,-191r0,-67r27,0r0,67r-27,0xm23,-191r0,-67r27,0r0,67r-27,0","w":123,"k":{"\u0129":-12}},"#":{"d":"51,0r12,-69r-47,0r4,-26r47,0r11,-61r-47,0r5,-26r46,0r13,-72r29,0r-12,72r55,0r13,-72r29,0r-12,72r47,0r-5,26r-47,0r-11,61r47,0r-4,26r-47,0r-12,69r-29,0r12,-69r-56,0r-12,69r-29,0xm96,-95r56,0r11,-61r-56,0","w":258},"$":{"d":"19,-29r21,-27v0,0,26,27,64,27v24,0,44,-13,44,-37v0,-53,-124,-45,-124,-122v0,-35,27,-63,67,-69r0,-34r25,0r0,33v40,3,62,25,62,25r-16,30v0,0,-24,-22,-56,-22v-27,0,-46,17,-46,37v0,50,124,40,124,121v0,36,-26,66,-68,71r0,33r-25,0r0,-33v-46,-5,-72,-33,-72,-33","w":203},"%":{"d":"72,-152v-30,0,-55,-23,-55,-53v0,-29,25,-53,55,-53v30,0,54,24,54,53v0,30,-24,53,-54,53xm23,0r194,-254r34,0r-194,254r-34,0xm72,-179v15,0,26,-11,26,-26v0,-15,-11,-27,-26,-27v-15,0,-27,12,-27,27v0,15,12,26,27,26xm148,-49v0,-29,23,-53,54,-53v30,0,55,24,55,53v0,30,-25,53,-55,53v-31,0,-54,-23,-54,-53xm176,-49v0,15,11,27,26,27v15,0,27,-12,27,-27v0,-15,-12,-27,-27,-27v-15,0,-26,12,-26,27","w":273},"&":{"d":"108,4v-92,0,-120,-111,-44,-140v1,-3,-31,-11,-33,-57v-2,-53,58,-73,109,-62r-9,29v-28,-7,-64,5,-64,37v0,16,7,40,46,40r48,0r0,-35r34,0r0,35r34,0r0,31r-34,0v7,74,-21,122,-87,122xm56,-73v0,24,20,45,52,45v44,0,58,-38,53,-90v-50,-2,-105,-1,-105,45","w":246},"'":{"d":"23,-191r0,-67r27,0r0,67r-27,0","w":73,"k":{"\u0129":-12}},"(":{"d":"68,34v-52,-83,-59,-216,0,-299r31,0v-56,90,-53,205,0,299r-31,0","w":108,"k":{"\u0149":-6,"\u0135":-3,"\u012d":-8,"\u012b":-5,"\u0129":-11,"\u00ef":-7,"\u00ec":-7,"j":-3,"V":-4,"T":-5,"\u0162":-5,"\u0164":-5,"\u0166":-5,"\u021a":-5,"Y":-4,"\u00dd":-4,"\u0176":-4,"\u0178":-4}},")":{"d":"41,34r-31,0v53,-94,56,-209,0,-299r31,0v57,84,51,216,0,299","w":108},"*":{"d":"56,-118r-26,-19r32,-40r-49,-14r9,-30r48,18r-2,-51r32,0r-2,51r48,-18r10,30r-50,14r32,40r-26,19v-10,-14,-17,-30,-28,-43","w":168},"+":{"d":"28,-89r0,-28r80,0r0,-88r30,0r0,88r80,0r0,28r-80,0r0,89r-30,0r0,-89r-80,0","w":245},",":{"d":"10,36r22,-74r36,0r-31,74r-27,0","w":91,"k":{"v":6,"V":19,"M":2,"9":4,"8":3,"7":5,"6":6,"4":17,"0":5,"B":4,"D":4,"E":4,"F":4,"H":4,"I":4,"K":4,"L":4,"N":4,"P":4,"R":4,"\u00c8":4,"\u00c9":4,"\u00ca":4,"\u00cb":4,"\u00cc":4,"\u00cd":4,"\u00ce":4,"\u00cf":4,"\u00d0":4,"\u00d1":4,"\u00de":4,"\u010e":4,"\u0110":4,"\u0112":4,"\u0114":4,"\u0116":4,"\u0118":4,"\u011a":4,"\u0124":4,"\u0126":4,"\u0128":4,"\u012a":4,"\u012c":4,"\u012e":4,"\u0130":4,"\u0132":4,"\u0136":4,"\u0139":4,"\u013b":4,"\u013d":4,"\u013f":4,"\u0141":4,"\u0143":4,"\u0145":4,"\u0147":4,"\u014a":4,"\u0154":4,"\u0156":4,"\u0158":4,"U":8,"\u00d9":8,"\u00da":8,"\u00db":8,"\u00dc":8,"\u0168":8,"\u016a":8,"\u016c":8,"\u016e":8,"\u0170":8,"\u0172":8,"T":21,"\u0162":21,"\u0164":21,"\u0166":21,"\u021a":21,"Y":21,"\u00dd":21,"\u0176":21,"\u0178":21,"C":9,"G":9,"O":9,"Q":9,"\u00c7":9,"\u00d2":9,"\u00d3":9,"\u00d4":9,"\u00d5":9,"\u00d6":9,"\u00d8":9,"\u0106":9,"\u0108":9,"\u010a":9,"\u010c":9,"\u011c":9,"\u011e":9,"\u0120":9,"\u0122":9,"\u014c":9,"\u014e":9,"\u0150":9,"\u0152":9,"W":15,"\u0174":15,"t":2,"\u0163":2,"\u0165":2,"\u0167":2,"\u021b":2,"w":5,"\u0175":5,"y":8,"\u00fd":8,"\u00ff":8,"\u0177":8}},"-":{"d":"32,-87r0,-31r106,0r0,31r-106,0","w":169,"k":{"A":6,"\u00c0":6,"\u00c1":6,"\u00c2":6,"\u00c3":6,"\u00c4":6,"\u00c5":6,"\u00c6":6,"\u0100":6,"\u0102":6,"\u0104":6,"B":5,"D":5,"E":5,"F":5,"H":5,"I":5,"K":5,"L":5,"N":5,"P":5,"R":5,"\u00c8":5,"\u00c9":5,"\u00ca":5,"\u00cb":5,"\u00cc":5,"\u00cd":5,"\u00ce":5,"\u00cf":5,"\u00d0":5,"\u00d1":5,"\u00de":5,"\u010e":5,"\u0110":5,"\u0112":5,"\u0114":5,"\u0116":5,"\u0118":5,"\u011a":5,"\u0124":5,"\u0126":5,"\u0128":5,"\u012a":5,"\u012c":5,"\u012e":5,"\u0130":5,"\u0132":5,"\u0136":5,"\u0139":5,"\u013b":5,"\u013d":5,"\u013f":5,"\u0141":5,"\u0143":5,"\u0145":5,"\u0147":5,"\u014a":5,"\u0154":5,"\u0156":5,"\u0158":5,"M":5,"U":4,"\u00d9":4,"\u00da":4,"\u00db":4,"\u00dc":4,"\u0168":4,"\u016a":4,"\u016c":4,"\u016e":4,"\u0170":4,"\u0172":4,"a":2,"\u00e0":2,"\u00e1":2,"\u00e2":2,"\u00e3":2,"\u00e4":2,"\u00e5":2,"\u00e6":2,"\u0101":2,"\u0103":2,"\u0105":2,"T":22,"\u0162":22,"\u0164":22,"\u0166":22,"\u021a":22,"Y":22,"\u00dd":22,"\u0176":22,"\u0178":22,"C":2,"G":2,"O":2,"Q":2,"\u00c7":2,"\u00d2":2,"\u00d3":2,"\u00d4":2,"\u00d5":2,"\u00d6":2,"\u00d8":2,"\u0106":2,"\u0108":2,"\u010a":2,"\u010c":2,"\u011c":2,"\u011e":2,"\u0120":2,"\u0122":2,"\u014c":2,"\u014e":2,"\u0150":2,"\u0152":2,"W":11,"\u0174":11,"S":16,"\u015a":16,"\u015c":16,"\u015e":16,"\u0160":16,"\u0218":16,"V":13,"X":15,"Z":14,"\u0179":14,"\u017b":14,"\u017d":14,"x":4,"z":5,"\u017a":5,"\u017c":5,"\u017e":5}},".":{"d":"27,0r0,-37r37Line truncated
|
||||
@@ -0,0 +1,16 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* Copyright (c) 2007-2010 by vernon adams. All rights reserved.
|
||||
*
|
||||
* Trademark:
|
||||
* Nobile is a trademark of vernon adams.
|
||||
*
|
||||
* Description:
|
||||
* Copyright (c) 2007-2010 by vernon adams. All rights reserved.
|
||||
*
|
||||
* Manufacturer:
|
||||
* vernon adams
|
||||
*/
|
||||
Cufon.registerFont({"w":222,"face":{"font-family":"Nobile Cufon","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 3 3 0 0 0 0 0 0","ascent":"288","descent":"-72","x-height":"4","bbox":"-8 -418 349 118.111","underline-thickness":"7.03125","underline-position":"-51.3281","unicode-range":"U+0020-U+03BC"},"glyphs":{" ":{"w":90},"!":{"d":"88,-33r0,36r-36,0r0,-36r36,0xm81,-70r-21,0r-9,-208r40,1","w":138},"\"":{"d":"76,-186v-3,-31,-10,-58,-10,-92r40,0v0,34,-8,61,-11,92r-19,0xm17,-186v-3,-31,-10,-58,-11,-92r40,0v0,34,-7,61,-10,92r-19,0","w":111},"#":{"d":"127,-99r-33,0r-5,47r-25,0r6,-47r-30,0r0,-21r31,0r5,-39r-31,0r0,-22r34,0r5,-49r24,0r-5,49r33,0r5,-49r25,0r-5,49r28,0r0,22r-30,0r-5,39r31,0r0,21r-33,0r-6,47r-25,0xm97,-120r32,0r4,-39r-32,0","w":216},"$":{"d":"22,-163v4,-40,30,-53,73,-55r0,-26r18,0r0,27v22,0,45,3,58,11r-7,22v-11,-4,-28,-7,-51,-9r0,68v41,17,67,24,68,65v1,43,-31,59,-68,63r0,28r-18,0r0,-27v-32,-2,-43,-9,-66,-15r9,-25v17,7,33,12,57,13r0,-77v-38,-7,-76,-26,-73,-63xm113,-24v34,4,52,-39,27,-58v-5,-4,-14,-8,-27,-13r0,71xm95,-193v-50,-7,-57,52,-13,60r13,3r0,-63","w":200},"%":{"d":"265,-69v1,33,-6,53,-33,53v-26,0,-33,-21,-33,-53v0,-35,11,-53,33,-53v22,0,33,18,33,53xm288,-65v0,-46,-15,-75,-56,-75v-40,0,-56,29,-56,75v0,40,17,69,56,69v39,0,56,-29,56,-69xm105,-192v0,32,-7,53,-33,53v-27,0,-34,-20,-33,-53v0,-35,11,-53,33,-53v22,0,33,18,33,53xm128,-188v0,-46,-15,-75,-56,-75v-41,0,-58,29,-57,75v1,39,17,69,57,69v39,0,56,-28,56,-69xm80,-7r120,-256r22,12r-119,255","w":303},"&":{"d":"87,-176v15,32,74,19,75,-21v0,-23,-19,-33,-43,-33v-35,0,-52,30,-32,54xm224,-30v-39,58,-204,52,-198,-40v3,-41,23,-64,59,-74v-15,-12,-36,-27,-36,-52v0,-36,29,-58,70,-58v42,0,71,19,71,58v0,40,-32,48,-63,59r87,68v2,-24,2,-47,2,-71r29,0v0,31,-3,67,-8,91r40,32r-16,18xm58,-73v0,77,126,63,147,28r-104,-83v-29,6,-43,25,-43,55","w":291},"'":{"d":"47,-186v-3,-31,-10,-58,-11,-92r40,0v0,34,-7,61,-10,92r-19,0","w":111},"(":{"d":"118,36v-89,-51,-87,-265,-2,-316r20,18v-68,50,-71,227,-3,279","w":151},")":{"d":"16,17v68,-50,70,-226,3,-279r15,-19v81,47,90,240,16,303v-6,5,-10,10,-16,14","w":151},"*":{"d":"74,-227r24,-48r18,10r-27,48r54,0r0,16r-54,0r30,48r-18,10r-27,-49r-27,49r-18,-10r30,-48r-55,0r0,-16r55,0r-28,-48r18,-10","w":164},"+":{"d":"164,-91r-55,0r0,60r-25,0r0,-60r-55,0r0,-23r55,0r0,-61r25,0r0,61r55,0r0,23","w":182},",":{"d":"20,0r0,-52r49,0v2,46,2,89,-40,96r-9,-16v16,-6,22,-10,23,-28r-23,0","w":94},"-":{"d":"142,-89r-118,0r0,-28r118,0r0,28","w":165},".":{"d":"23,-17v0,-11,9,-20,20,-20v12,-1,19,8,19,20v0,11,-8,20,-19,20v-11,0,-20,-9,-20,-20","w":91},"\/":{"d":"34,21r110,-325r29,11r-109,324","w":183},"0":{"d":"188,-107v0,-48,-19,-81,-68,-81v-49,0,-67,35,-67,84v0,51,18,84,67,84v50,-1,68,-37,68,-87xm120,-213v66,0,100,42,100,109v0,66,-33,109,-100,109v-68,0,-100,-45,-100,-109v0,-66,34,-109,100,-109","w":238},"1":{"d":"55,0r0,-186r-36,18r-10,-22v23,-10,42,-25,79,-21r0,211r-33,0","w":130},"2":{"d":"32,-195v42,-28,139,-21,133,46v-6,65,-67,85,-105,122r105,0r0,27r-143,0r0,-26v33,-28,84,-62,106,-94v34,-48,-31,-85,-80,-57v-12,7,-11,-11,-16,-18","w":194},"3":{"d":"81,-108v30,-1,53,-10,55,-40v4,-50,-73,-44,-103,-26r-9,-24v46,-22,145,-23,141,46v-2,33,-19,55,-51,56v33,8,58,26,58,67v1,72,-103,75,-153,47r9,-23v31,17,112,31,112,-28v0,-29,-20,-46,-59,-50r0,-25","w":199},"4":{"d":"134,-212r28,7r0,169r33,0r0,24r-33,0r0,58r-29,0r0,-58r-114,0r-5,-24xm133,-163r-87,127r87,0r0,-127","w":210},"5":{"d":"177,-44v6,79,-92,97,-153,64v4,-41,36,-10,67,-10v37,0,56,-18,56,-53v-1,-59,-56,-69,-105,-39r-12,-12r0,-111r132,0r0,26r-106,0r0,70v46,-35,129,1,121,65","w":193},"6":{"d":"53,-92v30,-33,120,-35,113,33v-4,36,-18,61,-57,61v-50,0,-61,-44,-56,-94xm146,-232v-72,20,-124,66,-125,157v-1,62,28,103,88,102v54,-1,84,-31,88,-86v5,-75,-99,-106,-142,-55v11,-51,48,-81,99,-92","w":216},"7":{"d":"172,-216r10,21r-100,226r-30,-13r93,-207r-120,0r0,-27r147,0","w":198},"8":{"d":"194,-170v0,-44,-37,-64,-82,-64v-45,0,-85,21,-84,64v0,33,21,50,46,58v-29,10,-46,33,-46,71v1,48,36,67,84,67v46,0,82,-21,82,-67v0,-38,-17,-60,-46,-70v24,-10,46,-25,46,-59xm163,-44v0,34,-19,45,-51,46v-37,0,-52,-14,-53,-47v-1,-31,23,-56,53,-56v30,0,51,27,51,57xm163,-169v1,27,-24,48,-51,48v-28,0,-53,-21,-53,-49v0,-31,23,-41,53,-41v31,0,50,12,51,42","w":221},"9":{"d":"165,-112v-30,33,-113,37,-113,-33v0,-37,20,-60,56,-61v50,-2,63,43,57,94xm72,28v74,-18,123,-68,125,-157v2,-62,-29,-103,-89,-102v-54,1,-83,32,-87,86v-5,74,98,108,141,56v-10,52,-48,80,-98,92","w":216},":":{"d":"32,-49r47,0r0,49r-47,0r0,-49xm32,-152r47,0r0,50r-47,0r0,-50","w":104},";":{"d":"31,-152r49,0r0,50r-49,0r0,-50xm30,0r0,-52r50,0v2,46,2,89,-40,96r-9,-16v15,-6,22,-9,22,-28r-23,0","w":104},"<":{"d":"59,-117r115,-106r18,20r-97,86r97,87r-18,19","w":264},"=":{"d":"120,-89r-103,0r0,-23r103,0r0,23xm120,-49r-103,0r0,-23r103,0r0,23","w":151},">":{"d":"76,-11r-17,-19r96,-87r-96,-86r17,-20r116,106","w":264},"?":{"d":"176,-214v-2,61,-49,78,-94,95r0,68r-32,0r0,-86v41,-16,87,-23,92,-73v5,-53,-82,-44,-112,-24r-10,-25v46,-29,160,-30,156,45xm83,-11v1,9,-9,19,-18,1Line truncated
|
||||
@@ -0,0 +1,19 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* Copyright (c) 2011 by vernon adams. All rights reserved.
|
||||
*
|
||||
* Trademark:
|
||||
* Oswald is a trademark of vernon adams.
|
||||
*
|
||||
* Manufacturer:
|
||||
* vernon adams
|
||||
*
|
||||
* Designer:
|
||||
* vernon adams
|
||||
*
|
||||
* License information:
|
||||
* http://scripts.sil.org/OFL
|
||||
*/
|
||||
Cufon.registerFont({"w":180,"face":{"font-family":"Oswald Cufon","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 5 6 0 0 0 2 0 4","ascent":"288","descent":"-72","x-height":"3","bbox":"-24 -430 338 92.0029","underline-thickness":"17.9297","underline-position":"-18.1055","unicode-range":"U+0020-U+0237"},"glyphs":{" ":{"w":94},"\u00a0":{"w":94},"!":{"d":"11,-315r45,0r-11,247r-23,0xm11,-45r45,0r0,45r-45,0r0,-45","w":65},"\"":{"d":"11,-315r45,0r-11,67r-23,0xm68,-315r45,0r-12,67r-22,0","w":123},"#":{"d":"180,-180r-20,0r-4,34r24,0r0,34r-29,0r-16,112r-45,0r16,-112r-34,0r-16,112r-45,0r16,-112r-16,0r0,-34r21,0r5,-34r-26,0r0,-34r30,0r15,-101r45,0r-15,101r34,0r15,-101r45,0r-15,101r15,0r0,34xm77,-146r34,0r4,-34r-33,0","w":191},"$":{"d":"56,-169v-55,-40,-40,-157,45,-149r0,-20r23,0v1,9,-5,24,7,23v36,11,57,37,60,79r-45,11v0,-24,-9,-39,-22,-50r0,100v33,24,67,51,67,105v0,45,-27,67,-67,73r0,19r-23,0r0,-19v-51,-6,-75,-42,-79,-93r46,-11v0,32,11,57,33,66r0,-98xm101,-281v-45,-3,-38,62,-11,79r11,8r0,-87xm124,-35v33,-5,24,-63,3,-75v-2,-2,-1,-2,-3,-4r0,79","w":213},"%":{"d":"78,-95v-45,0,-64,-36,-64,-86v-1,-51,18,-85,64,-85v47,0,65,36,65,85v0,49,-19,86,-65,86xm78,-232v-35,0,-31,96,0,103v24,-5,25,-40,23,-68v-1,-17,-6,-35,-23,-35xm273,0v-45,0,-64,-36,-64,-86v-1,-51,18,-85,64,-85v47,0,65,36,65,85v0,49,-19,86,-65,86xm273,-137v-36,0,-31,96,0,103v24,-5,25,-40,23,-68v-1,-17,-6,-35,-23,-35xm182,-267r38,0r-49,267r-39,0","w":351},"&":{"d":"158,-28v-15,18,-36,31,-68,31v-45,0,-68,-28,-68,-71v0,-41,22,-69,46,-90v-13,-26,-34,-52,-34,-90v0,-43,24,-70,67,-70v40,0,68,21,68,59v0,44,-32,77,-57,101r46,68v6,-15,8,-33,11,-56r45,0v-2,32,-16,62,-28,84v6,8,15,16,28,17r0,48v-28,0,-41,-17,-56,-31xm101,-281v-41,9,-15,76,-5,101v13,-21,26,-47,28,-79v0,-14,-9,-22,-23,-22xm68,-68v0,45,47,38,61,12r-44,-68v-9,14,-17,32,-17,56","w":236},"'":{"d":"11,-315r45,0r-11,67r-23,0","w":67},"(":{"d":"101,11v-96,-3,-81,-135,-76,-229v3,-57,15,-107,76,-108r0,34v-54,14,-33,110,-33,182v0,40,-2,83,33,88r0,33","w":112},")":{"d":"11,-326v97,3,77,134,77,229v0,58,-15,107,-77,108r0,-33v53,-15,33,-112,33,-183v0,-39,4,-84,-33,-87r0,-34","w":112},"*":{"d":"60,-159r-26,-16r30,-42r-45,-18r10,-28r43,23r-4,-52r33,0r-5,52r43,-23r11,28r-45,18r30,42r-27,16r-24,-49","w":157},"+":{"d":"45,-68r0,-33r-34,0r0,-34r34,0r0,-34r34,0r0,34r33,0r0,34r-33,0r0,33r-34,0","w":123},",":{"d":"22,22v17,1,24,-6,23,-22r-23,0r0,-45r46,0v-3,42,9,87,-34,90","w":90},"-":{"d":"0,-112r68,0r0,33r-68,0r0,-33","w":67},".":{"d":"11,-45r45,0r0,45r-45,0r0,-45","w":67},"\/":{"d":"101,-315r45,0r-101,315r-45,0","w":146},"0":{"d":"180,-225v-2,98,24,228,-79,228v-102,0,-79,-129,-79,-228v0,-56,25,-93,79,-93v54,0,80,35,79,93xm68,-90v-1,29,5,56,33,56v28,0,34,-27,34,-56v0,-56,3,-120,-5,-171v-4,-26,-53,-26,-58,0v-10,48,-2,115,-4,171","w":202},"1":{"d":"11,-281v18,-7,36,-17,45,-34r34,0r0,315r-45,0r0,-248r-34,0r0,-33","w":112},"2":{"d":"96,-281v-31,0,-34,33,-34,67r-45,0v-3,-64,19,-101,79,-104v96,-5,87,118,45,172r-79,101r113,0r0,45r-158,0r0,-45v35,-55,80,-102,108,-163v13,-29,4,-73,-29,-73","w":191},"3":{"d":"174,-90v0,57,-22,93,-78,93v-57,0,-81,-34,-79,-93r45,0v1,32,2,56,34,56v31,0,32,-25,33,-56v1,-34,-11,-57,-45,-56r0,-45v31,1,45,-12,45,-45v0,-27,-6,-45,-33,-45v-32,0,-33,24,-34,56r-45,0v-2,-59,22,-88,79,-93v89,-8,103,131,33,149v29,10,45,39,45,79","w":191},"4":{"d":"107,-81r-90,0r0,-50r79,-184r56,0r0,192r35,0r0,42r-35,0r0,81r-45,0r0,-81xm107,-123r5,-136r-50,136r45,0","w":197},"5":{"d":"101,-171v-18,0,-27,14,-33,26r-38,0r0,-170r139,0r0,45r-99,0r-2,76v11,-6,27,-11,44,-11v53,1,68,40,68,93v0,64,-15,114,-80,115v-59,1,-77,-37,-78,-93r46,0v-1,29,0,58,30,57v45,0,37,-53,37,-97v0,-24,-8,-42,-34,-41","w":202},"6":{"d":"180,-101v0,59,-21,104,-79,104v-90,0,-79,-110,-79,-205v0,-74,33,-135,111,-111v31,9,47,36,47,77r-45,0v0,-27,-6,-46,-34,-45v-34,-6,-35,67,-33,112v7,-14,22,-22,44,-22v54,-1,68,39,68,90xm134,-115v7,-47,-54,-55,-66,-20v1,43,-9,101,33,101v36,0,35,-44,33,-81","w":202},"7":{"d":"11,-315r126,0r0,22r-57,293r-43,0r57,-278r-83,0r0,-37","w":148},"8":{"d":"124,-236v0,-24,-5,-45,-28,-45v-24,0,-29,21,-29,45v0,25,4,49,29,49v25,0,27,-25,28,-49xm96,-318v82,-9,95,117,44,152v24,13,34,37,34,76v0,57,-21,88,-78,93v-92,8,-102,-137,-45,-169v-50,-36,-38,-162,45,-152xm62,-90v-1,31,4,56,34,56v30,0,34,-25,33,-56v0,-28,-5,-54,-33,-54v-28,0,-34,26,-34,54","w":191},"9":{"d":"22,-214v0,-57,20,-104,79,-104v91,0,79,111,79,206v0,75,-34,133,-110,110v-31,-9,-48,-36,-48,-77r46,0v0,26,6,46,33,45v34,6,36,-66,34,-112v-8,13,-23,22,-45,22v-53,1,-68,-39,-68,-90xm101,-158v18,0,27,-10,34,-22v-1,-44,8,-101,-34,-101v-36,0,-33,44,-33,81v0,23,8,43,33,42","w":202},":":{"d":"22,-191r46,0r0,45r-46,0r0,-45xm22,-90r46,0r0,45r-46,0r0,-45","w":77},";":{"d":"11,-191r45,0r0,45r-45,0r0,-45xm11,-22v16,0,22,-8,23,-23r-23,0r0,-45r45,0v-2,39,10,90,-34,90","w":67},"<":{"d":"11,-135r113,-79r0,45r-79,56r79,57r0,45r-113,-79r0,-45","w":146},"=":{"d":"11,-101r0,-34r101,0r0,34r-101,0xm11,-45r0,-34r101,0r0,34r-101,0","w":123},">":{"d":"135,-90r-113,79r0,-45r79,-57r-79,-56r0,-45r113Line truncated
|
||||
@@ -0,0 +1,19 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* Copyright (c) Andrew Paglinawan, 2008. All rights reserved.
|
||||
*
|
||||
* Trademark:
|
||||
* Dashling is a trademark of the Andrew Paglinawan.
|
||||
*
|
||||
* Full name:
|
||||
* QuicksandBook-Regular
|
||||
*
|
||||
* Manufacturer:
|
||||
* Andrew Paglinawan
|
||||
*
|
||||
* Designer:
|
||||
* Andrew Paglinawan
|
||||
*/
|
||||
Cufon.registerFont({"w":220,"face":{"font-family":"Quicksand Book","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 7 3 3 0 0 0 6 0 0","ascent":"288","descent":"-72","bbox":"-8.5 -331.632 401 74","underline-thickness":"18","underline-position":"-18","unicode-range":"U+0020-U+0192"},"glyphs":{" ":{"w":108},"B":{"d":"37,-9r0,-234v6,-18,44,-7,65,-9v58,-5,85,80,39,112v28,10,49,36,49,68v0,40,-32,72,-72,72r-72,0v-5,0,-9,-4,-9,-9xm55,-18r63,0v30,0,54,-24,54,-54v0,-55,-58,-58,-117,-54r0,108xm55,-144v47,4,92,-2,92,-45v0,-43,-45,-49,-92,-45r0,90","w":213,"k":{"?":2,"A":7,"y":4,"w":4,"v":14,"i":14,"Y":11,"X":7,"W":5,"V":7,"T":7,"I":4,"B":25}},"C":{"d":"26,-127v0,-105,132,-168,213,-101v9,7,-3,22,-11,15v-68,-58,-184,-6,-184,86v0,88,115,143,183,85v9,-7,22,7,12,15v-80,65,-213,3,-213,-100","w":277,"k":{"\u0153":4,"-":4,"A":5,"y":4,"x":4,"w":4,"v":4,"q":4,"o":4,"l":12,"g":4,"e":4,"d":4,"c":4,"Y":7,"X":4,"Q":7,"O":7,"G":7,"C":7}},"D":{"d":"219,-126v0,86,-72,139,-174,126v-4,0,-8,-4,-8,-9r0,-234v4,-18,37,-9,56,-9v69,0,126,57,126,126xm55,-18v86,10,147,-34,147,-108v0,-73,-61,-118,-147,-108r0,216","w":258,"k":{"\u00c6":16,"}":7,"]":7,"\\":14,",":14,"\/":14,"?":7,".":14,"A":23,")":11,"x":4,"w":8,"a":32,"Z":16,"Y":23,"X":20,"W":13,"V":16,"T":20,"S":4,"R":7,"O":5,"N":22,"J":14,"I":18,"H":18,"E":18,"D":11}},"E":{"d":"37,-9r0,-234v0,-5,4,-9,10,-9r129,0v5,0,8,4,8,9v0,5,-3,9,-8,9r-121,0r0,99r106,0v5,0,8,4,8,9v0,5,-3,9,-8,9r-106,0r0,99r121,0v5,0,8,4,8,9v0,5,-3,9,-8,9r-131,0v-4,0,-8,-4,-8,-9","w":213,"k":{"\u0153":4,"y":4,"w":4,"v":4,"o":4,"e":4,"d":4,"c":4,"R":-7}},"F":{"d":"37,-9r0,-234v0,-5,4,-9,10,-9r129,0v5,0,9,4,9,9v0,5,-4,9,-9,9r-121,0r0,99r106,0v5,0,9,4,9,9v0,5,-4,9,-9,9r-106,0r0,108v0,5,-4,9,-9,9v-5,0,-9,-4,-9,-9","w":217,"k":{"\u00bb":5,"\u00c6":29,"\u0153":5,",":36,"\/":25,"?":-4,".":36,"A":29,"z":5,"y":5,"w":4,"v":5,"u":26,"s":4,"q":4,"o":26,"m":26,"g":4,"e":5,"d":4,"c":5,"a":9,"&":11,"Z":4,"Q":7,"O":7,"J":40,"G":7,"C":7}},"G":{"d":"242,-36v-13,29,-54,36,-85,36v-72,0,-131,-57,-131,-128v0,-103,133,-168,213,-99v8,6,-3,21,-11,14v-67,-58,-184,-4,-184,85v0,87,108,142,180,89r0,-74r-69,0v-5,0,-9,-4,-9,-9v0,-5,4,-9,9,-9r79,0v4,0,8,4,8,9r0,86","w":293,"k":{"\\":5,"?":4,"y":2,"w":19,"v":2,"o":7,"a":-4,"Y":11,"X":4,"W":5,"V":7,"T":7,"L":18,"H":16,"F":18}},"H":{"d":"185,-9r0,-108r-130,0r0,108v0,5,-4,9,-9,9v-5,0,-9,-4,-9,-9r0,-234v0,-5,4,-9,9,-9v5,0,9,4,9,9r0,108r130,0r0,-108v0,-5,3,-9,8,-9v5,0,9,4,9,9r0,234v0,5,-4,9,-9,9v-5,0,-8,-4,-8,-9","w":255,"k":{"A":23,"Y":16,"W":18,"O":11,"I":18}},"I":{"d":"40,-243v0,-5,4,-9,9,-9v5,0,9,4,9,9r0,234v0,5,-4,9,-9,9v-5,0,-9,-4,-9,-9r0,-234","w":109},"J":{"d":"17,-59v-1,-5,0,-10,5,-11v5,-1,10,1,11,5v9,28,35,47,65,47v37,0,68,-30,68,-67r0,-158v0,-5,4,-9,9,-9v5,0,8,4,8,9r0,158v0,48,-38,85,-85,85v-38,0,-70,-25,-81,-59","w":213,"k":{"\u00c6":9,",":5,".":5,"A":9,"i":-11,"h":-8,"e":-15,"a":-19,"J":7}},"K":{"d":"37,-9r0,-233v0,-5,4,-9,9,-9v5,0,9,4,9,9r0,146r152,-153v9,-7,22,4,13,13r-97,96r99,126v5,5,-1,14,-7,14v-3,0,-5,0,-7,-3r-97,-124r-56,55r0,63v0,5,-4,9,-9,9v-5,0,-9,-4,-9,-9","w":257,"k":{"\u00ab":7,"\u0153":11,"-":18,"y":18,"w":18,"v":22,"u":7,"t":9,"q":9,"o":11,"g":9,"f":7,"e":11,"d":9,"c":11,"a":4,"&":4,"Y":14,"W":11,"V":11,"U":5,"T":4,"S":4,"Q":18,"O":18,"G":18,"C":18,"B":16}},"L":{"d":"176,0r-130,0v-5,0,-9,-4,-9,-9r0,-234v0,-5,4,-9,9,-9v5,0,9,4,9,9r0,225r121,0v5,0,9,4,9,9v0,5,-4,9,-9,9","w":202,"k":{"\u0153":4,"\\":43,"*":29,"-":14,"?":22,"w":18,"v":22,"t":7,"q":2,"o":4,"g":2,"f":7,"e":4,"d":2,"c":4,"&":4,"Y":47,"W":36,"V":41,"U":7,"T":36,"Q":14,"O":14,"I":-2,"G":14,"C":14}},"M":{"d":"232,-9r0,-207r-81,112v-3,6,-11,6,-15,0r-81,-112r0,207v0,5,-4,9,-9,9v-5,0,-9,-4,-9,-9r0,-233v0,-8,12,-12,17,-5r90,124r89,-124v5,-7,17,-3,16,5r0,233v0,5,-4,9,-9,9v-5,0,-8,-4,-8,-9","w":303,"k":{"A":23,"P":18,"O":16,"M":12,"E":18}},"N":{"d":"224,-9v1,9,-14,13,-17,4r-151,-210r0,206v0,5,-4,9,-9,9v-5,0,-8,-4,-8,-9r0,-231v-3,-8,10,-15,15,-7r153,211r0,-205v0,-5,3,-8,8,-8v5,0,9,3,9,8r0,232","w":277,"k":{"Y":16,"U":18,"T":4,"O":18,"N":12,"I":13,"G":18,"E":23,"D":18}},"O":{"d":"26,-128v0,-71,54,-128,122,-128v67,0,121,57,121,128v0,71,-54,128,-121,128v-68,0,-122,-57,-122,-128xm44,-128v0,62,47,110,104,110v55,0,103,-48,103,-110v0,-62,-48,-110,-103,-110v-57,0,-104,48,-104,110","w":306,"k":{"\u00c6":14,"}":7,"]":7,"\\":14,",":14,"\/":14,"?":7,".":14,"A":14,")":11,"x":2,"Z":14,"Y":22,"X":18,"W":13,"V":14,"U":16,"T":20,"S":2,"O":4,"N":9,"M":14,"L":2,"K":11,"J":11,"I":18,"H":14,"D":11,"C":11,"B":13}},"P":{"d":"37,-9r0,-234v0,-5,4,-9,10,-9r70,0v40,0,72,32,72,72v0,40,-32,72,-72,72r-62,0r0,99v0,5,-4,9,-9,9v-5,0,-9,-4,-9,-9xm55,-125r62,0v30,0,55,-25,55,-55v0,-54,-58,-58,-117,-54r0,109","w":209,"k":{"\u00ab":-4,"\u00c6":25,"\u0153":2,",":36,"\/":22,".":36,"A":25,"y":-4,"w":-4,"v":-4,"u":-2,"t":-5,"o":5,"g":8,"f":11,"e":4,"d":8,"c":2,"&":7,"Z":5,"Y":4,"X":11,"W":2,"V":4,"J":36}},"Q":{"d":"155,8v43,13,79,46,122,8v4,-3,9,-2,12,2v3,4,3,10,-1,13v-20,15,-39,21,-57,21v-41,1,-86,-46,-127,-21v-6,4,-12,0,-13,-4v-2,-19,26,-18,38,-Line truncated
|
||||
@@ -0,0 +1,7 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* 2002 Š by heinrich lischka | www.fontboutique.de
|
||||
*/
|
||||
Cufon.registerFont({"w":172,"face":{"font-family":"Samba","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"0 0 4 0 0 0 0 0 0 0","ascent":"288","descent":"-72","x-height":"4","bbox":"-12 -305 293.214 76.4507","underline-thickness":"7.2","underline-position":"-44.28","unicode-range":"U+0020-U+017E"},"glyphs":{" ":{"w":162},"!":{"d":"43,-245r-3,191r-15,0r-3,-191r21,0xm43,-7v0,7,-4,11,-11,11v-7,0,-10,-4,-10,-11v0,-7,3,-11,10,-11v7,0,11,4,11,11","w":61},"\"":{"d":"68,-256v17,4,5,38,5,55v-2,5,-5,6,-9,2v-4,-13,-14,-54,4,-57xm35,-256v17,4,5,38,5,55v-2,5,-5,6,-9,2v-4,-12,-12,-53,4,-57","w":95},"#":{"d":"184,-176r-1,14r-26,0r-11,79r25,0r-2,15r-25,0r-10,68r-14,0r10,-68r-65,0r-10,68r-14,0r9,-68r-25,0r2,-15r25,0r12,-79r-25,0r1,-14r26,0r9,-69r15,0r-10,69r65,0r9,-65r14,0r-9,65r25,0xm143,-162r-65,0r-11,79r64,0","w":202},"$":{"d":"72,-126v-57,-11,-56,-110,0,-119r0,-21r14,0r0,18r36,1r0,-19r15,0r0,20r36,1r0,15r-36,-2r0,105v64,9,58,117,0,128r0,21r-15,0r0,-18r-36,-2r0,20r-14,0r0,-20r-47,-2r0,-14r47,1r0,-113xm122,-130r0,-103r-36,-1r0,98xm72,-230v-38,8,-37,78,0,89r0,-89xm137,-14v39,-11,44,-87,0,-98r0,98xm122,-11r0,-105r-36,-6r0,110","w":201},"%":{"d":"65,-245v34,-2,42,25,39,61v-1,20,-16,34,-39,33v-28,-2,-36,-28,-33,-61v1,-18,15,-32,33,-33xm187,-248r-145,252r-17,0r146,-252r16,0xm140,-94v36,-2,43,25,40,62v-1,20,-17,34,-40,32v-28,-2,-35,-28,-32,-61v1,-17,15,-32,32,-33xm65,-166v27,4,26,-20,25,-46v0,-12,-10,-20,-25,-18v-20,-1,-18,24,-18,46v0,10,9,19,18,18xm122,-32v1,24,44,23,44,0v0,-25,3,-47,-26,-47v-20,0,-19,25,-18,47","w":205},"&":{"d":"84,-234v-37,-1,-51,59,-18,77v31,-2,64,2,96,2r0,155r-86,4v-47,-1,-51,-53,-51,-108v0,-20,8,-36,25,-47v-36,-30,-14,-99,36,-97r62,3r0,15xm40,-104v0,45,-5,95,39,93r69,-3r0,-127r-71,-3v-20,-1,-37,19,-37,40","w":180},"'":{"d":"35,-256v17,4,5,38,5,55v-2,5,-5,6,-9,2v-4,-12,-12,-53,4,-57","w":63},"(":{"d":"40,-29v-4,39,30,45,64,36r0,15r-36,3v-27,1,-43,-27,-43,-54r0,-187v-1,-44,34,-64,79,-50r0,14v-34,-8,-64,-4,-64,36r0,187","w":97},")":{"d":"-4,-266v44,-13,80,5,80,50r0,187v1,44,-34,63,-80,51r0,-15v34,8,65,3,65,-36r0,-187v3,-39,-31,-45,-65,-36r0,-14","w":96},"*":{"d":"141,-162v-8,0,-22,-6,-40,-18v12,18,17,32,17,40v0,5,-1,8,-6,8v-8,0,-16,-14,-22,-43v-6,29,-14,43,-22,43v-5,0,-6,-3,-6,-8v0,-8,5,-22,17,-40v-18,12,-32,18,-40,18v-5,0,-8,-2,-8,-7v0,-8,14,-16,43,-22v-29,-6,-43,-13,-43,-21v0,-5,3,-7,8,-7v8,0,22,5,40,17v-12,-18,-17,-32,-17,-40v0,-5,1,-7,6,-7v8,0,16,13,22,42v6,-29,14,-42,22,-42v5,0,6,2,6,7v0,8,-5,22,-17,40v18,-12,32,-17,40,-17v5,0,8,2,8,7v0,8,-14,15,-43,21v29,6,43,14,43,22v0,5,-3,7,-8,7","w":168},"+":{"d":"157,-81r-58,0r0,58r-14,0r0,-58r-58,0r0,-14r58,0r0,-58r14,0r0,58r58,0r0,14","w":176},",":{"d":"36,-23v19,0,12,25,3,35v-2,6,-15,6,-14,-3v6,-11,-10,-31,11,-32","w":64},"-":{"d":"158,-79r-133,0r0,-18r133,0r0,18","w":176},"\u2010":{"d":"158,-79r-133,0r0,-18r133,0r0,18","w":176},".":{"d":"32,-23v6,-1,14,6,13,12v1,6,-7,14,-13,13v-5,1,-13,-8,-12,-13v-1,-5,6,-13,12,-12","w":61},"\/":{"d":"187,-248r-145,252r-17,0r146,-252r16,0","w":205},"0":{"d":"79,-248v47,0,79,14,79,54r0,144v0,39,-33,54,-79,54v-28,0,-54,-26,-54,-54r0,-144v-1,-29,25,-54,54,-54xm79,-11v37,0,64,-8,65,-39r0,-144v-1,-30,-28,-40,-65,-40v-21,0,-39,19,-39,40r0,144v-1,21,18,39,39,39","w":176},"1":{"d":"32,-248v31,-3,47,24,47,54r0,180r33,0r0,14r-87,0r0,-14r40,0r0,-180v0,-23,-10,-41,-33,-40r0,-14","w":129},"2":{"d":"74,-247v79,-20,113,63,70,106v-29,29,-114,56,-104,127v45,-4,117,25,115,-33v5,1,15,-3,14,4v3,69,-86,42,-144,43v-12,-89,61,-118,111,-153v26,-28,6,-84,-35,-81r-69,4r0,-15","w":187},"3":{"d":"144,-187v0,-61,-65,-46,-115,-43r0,-14v62,-8,129,-11,129,57v0,30,-12,48,-36,56v31,9,47,30,47,63v1,47,-26,74,-72,72r-72,-4r0,-14v61,2,130,18,130,-54v0,-46,-43,-58,-97,-54r0,-15v50,3,86,-10,86,-50","w":187},"4":{"d":"162,-97v2,26,-11,37,-40,39r0,58r-14,0r0,-58r-83,-3r0,-15r58,-169r16,0r-58,170r67,3r0,-54r14,0r0,54v20,-2,28,-7,26,-25r14,0","w":180,"k":{"3":11}},"5":{"d":"148,-68v0,-47,-11,-70,-58,-68r-65,3r0,-112r126,-3r0,14r-111,3r0,83v44,-2,59,-3,59,-3v51,-1,65,30,63,83v-2,46,-25,75,-72,72r-65,-4r0,-14v58,3,123,15,123,-54","w":180},"6":{"d":"78,-234v-35,2,-42,41,-38,82v62,-7,122,-6,122,62v0,65,-15,94,-83,94v-28,0,-56,-26,-54,-54v5,-79,-26,-196,54,-198r76,3r0,15xm79,-11v57,0,77,-21,69,-79v4,-58,-57,-52,-108,-47v2,53,-15,126,39,126","w":180},"7":{"d":"25,-198v-3,-63,75,-49,133,-47r0,15r-85,230r-16,0r47,-126r-36,0r0,-14r41,0r34,-91v0,0,-105,-17,-103,33r-15,0","w":176,"k":{"4":19}},"8":{"d":"135,-132v26,11,33,42,31,82v-2,41,-38,61,-87,54v-64,6,-74,-114,-23,-136v-48,-31,-25,-133,48,-116v55,-7,76,87,31,116xm86,-137v41,0,62,-15,58,-57v-2,-27,-24,-43,-58,-40v-27,2,-44,24,-39,58v-1,21,18,39,39,39xm79,-11v55,0,72,-14,72,-72v0,-34,-32,-39,-72,-39v-34,0,-39,32,-39,72v0,21,18,39,39,39","w":183},"9":{"d":"79,-248v49,0,83,14,83,54r0,140v0,29,-25,59,-54,58r-76,-4r0,-14r77,3v35,-1,44,-40,39,-82v-62,7,-123,6,-123,-62v0,-52,9,-93,54,-93xm40,-155v0,59,57,52,108,48v0,-65,17,-127,-69,-127v-36,0,-39,37,-39,79","w":180},":":{"d":"36,-157v6,-1,14,7,13,13v1,6,-7Line truncated
|
||||
@@ -0,0 +1,8 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* Š 2008 Bernd Montag - feel free to distribute - feel free to use personal and
|
||||
* commercial - read attached textfile for restrictions
|
||||
*/
|
||||
Cufon.registerFont({"w":85,"face":{"font-family":"Sansation","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 5 3 0 0 0 2 0 4","ascent":"288","descent":"-72","bbox":"-6 -323 367 76","underline-thickness":"26.3672","underline-position":"-15.6445","unicode-range":"U+0020-U+0192"},"glyphs":{" ":{},"!":{"d":"59,-251r0,186r-33,0r0,-186r33,0xm59,-33r0,33r-33,0r0,-33r33,0"},"\"":{"d":"115,-251r-5,76r-22,0r-5,-76r32,0xm50,-251r-5,76r-22,0r-5,-76r32,0","w":132},"#":{"d":"141,-154r-16,66r67,0r15,-66r-66,0xm71,1r15,-61r-68,0r5,-28r71,0r15,-66r-70,0r5,-27r72,0r18,-69r32,0r-18,69r66,0r18,-70r32,0r-18,70r69,0r-5,27r-71,0r-15,66r70,0r-5,28r-73,0r-15,61r-32,0r16,-61r-67,0r-16,61r-31,0","w":332},"$":{"d":"26,-42r0,-28v32,11,106,22,108,-16v2,-26,-28,-25,-55,-25v-41,0,-61,-18,-61,-54v0,-30,20,-48,61,-53r0,-33r31,0r0,33v18,1,33,4,48,9r0,28v-33,-14,-109,-20,-111,16v-2,25,31,24,58,24v41,0,62,19,62,55v0,30,-19,48,-57,53r0,33r-31,0r0,-33v-21,-1,-38,-4,-53,-9","w":184},"%":{"d":"54,0r-36,0r178,-251r36,0xm66,-182v17,0,26,-9,26,-26v0,-17,-9,-25,-26,-25v-17,0,-26,8,-26,25v0,17,9,26,26,26xm18,-207v0,-30,15,-46,48,-46v32,0,49,16,49,46v0,30,-17,45,-49,45v-33,0,-48,-15,-48,-45xm184,-18v17,0,26,-9,26,-26v0,-17,-9,-25,-26,-25v-17,0,-26,8,-26,25v0,17,9,26,26,26xm135,-44v0,-30,16,-45,49,-45v32,0,48,15,48,45v0,30,-16,46,-48,46v-33,0,-49,-16,-49,-46","w":249},"&":{"d":"52,-128v-23,-10,-34,-29,-34,-56v0,-68,89,-78,153,-59r0,27v-43,-14,-121,-17,-121,31v0,56,62,43,113,44r0,-25v20,-2,19,17,29,25r32,0r0,27r-28,0v5,74,-19,116,-91,115v-58,0,-87,-23,-87,-70v0,-29,11,-49,34,-59xm163,-114v-51,1,-113,-12,-113,44v0,29,18,44,53,44v51,0,64,-34,60,-88","w":224},"'":{"d":"50,-251r-5,76r-22,0r-5,-76r32,0","w":67},"(":{"d":"85,-251v-46,106,-47,212,0,318r-32,0v-46,-106,-47,-212,0,-318r32,0","w":98},")":{"d":"46,-251v46,106,47,212,0,318r-33,0v46,-106,47,-212,0,-318r33,0","w":98},"*":{"d":"57,-251r28,0r-5,40r36,-17r9,26r-40,7r28,30r-22,16r-20,-36r-20,36r-21,-16r28,-30r-41,-7r9,-27r37,19","w":142},"+":{"d":"70,-105r0,-53r27,0r0,53r52,0r0,26r-52,0r0,53r-27,0r0,-53r-52,0r0,-26r52,0","w":166},",":{"d":"76,-33r-26,77r-32,0r26,-77r32,0","w":94},"-":{"d":"105,-105r0,26r-87,0r0,-26r87,0","w":123},"\u2010":{"d":"105,-105r0,26r-87,0r0,-26r87,0","w":123},".":{"d":"50,-33r0,33r-32,0r0,-33r32,0","w":67},"\/":{"d":"40,0r-36,0r128,-251r36,0","w":172},"0":{"d":"122,-25v48,0,72,-33,72,-101v0,-67,-24,-101,-72,-101v-50,0,-75,34,-75,101v0,68,25,101,75,101xm13,-125v0,-85,37,-128,109,-128v71,0,107,43,107,128v0,85,-36,127,-107,127v-72,0,-109,-42,-109,-127","w":241},"1":{"d":"44,0r0,-218r-26,0r0,-16r58,-17r0,251r-32,0","w":111},"2":{"d":"18,0r0,-26v93,-64,139,-115,139,-153v0,-62,-92,-55,-132,-28r0,-29v60,-33,165,-20,165,57v0,43,-42,94,-126,153r126,0r0,26r-172,0","w":207},"3":{"d":"18,-243v64,-21,160,-14,160,58v0,28,-11,48,-33,58v22,10,33,29,33,57v0,75,-94,84,-160,61r0,-28v45,17,128,24,128,-33v0,-52,-53,-44,-102,-44r0,-27v49,0,102,8,102,-44v0,-54,-86,-47,-128,-29r0,-29","w":195},"4":{"d":"159,0r-33,0r0,-74r-113,0r0,-26r70,-151r32,0r-68,151r79,0r0,-93r33,0r0,93v10,8,30,5,26,26r-26,0r0,74","w":197,"k":{"7":26}},"5":{"d":"26,-251r150,0r0,26r-122,0r-6,71v71,-14,153,6,145,73v9,85,-100,96,-172,72r0,-28v50,18,146,25,140,-44v6,-61,-94,-56,-143,-42","w":206},"6":{"d":"18,-93v0,-55,29,-110,89,-166r22,19v-31,29,-53,58,-66,86v11,-3,26,-4,45,-4v61,0,92,25,92,75v0,56,-32,85,-97,85v-57,0,-85,-32,-85,-95xm105,-25v43,0,64,-19,64,-58v0,-54,-74,-54,-116,-44v-15,51,3,102,52,102","w":217,"k":{"9":17,"7":26}},"7":{"d":"18,-251r167,0r0,26r-101,225r-37,0r104,-225r-133,0r0,-26","w":197,"k":{"6":26,"4":26}},"8":{"d":"109,2v-93,0,-122,-100,-54,-133v-54,-35,-35,-134,54,-123v89,-10,108,88,53,123v25,11,38,30,38,56v0,51,-30,77,-91,77xm161,-186v0,-27,-17,-41,-53,-41v-34,0,-51,14,-51,41v0,28,18,42,53,42v34,0,51,-14,51,-42xm168,-73v0,-30,-20,-45,-60,-45v-38,0,-58,15,-58,45v0,33,20,48,60,48v39,0,58,-15,58,-48","w":217},"9":{"d":"200,-159v0,55,-29,110,-89,166r-22,-19v31,-29,53,-58,66,-86v-62,27,-137,6,-137,-71v0,-56,31,-85,93,-85v59,0,89,32,89,95xm110,-227v-40,0,-61,19,-61,58v0,64,82,63,116,40v15,-49,-6,-98,-55,-98","w":217,"k":{"7":17}},":":{"d":"50,-185r0,33r-32,0r0,-33r32,0xm50,-33r0,33r-32,0r0,-33r32,0","w":67},";":{"d":"76,-185r0,33r-32,0r0,-33r32,0xm76,-33r-26,77r-32,0r26,-77r32,0","w":94},"<":{"d":"18,-79r0,-26r158,-71r0,27r-131,57r131,57r0,26","w":193},"=":{"d":"149,-79r0,26r-131,0r0,-26r131,0xm149,-132r0,27r-131,0r0,-27r131,0","w":166},">":{"d":"18,-9r0,-26r130,-57r-130,-57r0,-27r158,71r0,26","w":193},"?":{"d":"44,-33r0,33r32,0r0,-33r-32,0xm18,-243v69,-18,160,-11,160,60v0,51,-38,72,-102,69r0,49r-32,0r0,-76v47,1,102,3,102,-42v0,-53,-80,-46,-128,-33r0,-27","w":195},"@":{"d":"110,-57v-7,-55,68,-63,123,-54v13,-58,-65,-51,-108,-38r0,-27v56,-20,140,-10,140,50r0,111v0,10,6,15,18,15v24,0,36,-32,36,-95v0,-88,-43,-132,-128,-132v-88,0,-132,44,-132,132v0,90,40,135,120,135r0,27v-102,0,-153,-54,-153,-162v0,-105,55,-158,163,-158v109,0,163,53,163,158v0,81,-25,121,-75,121v-28,0,-43,-13,-43,-39v-42,25,-Line truncated
|
||||
@@ -0,0 +1,38 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* Copyright (c) 2010, Yanone (http://yanone.de/typedesign/). All rights reserved.
|
||||
* This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
* This license is available with a FAQ at: http://scripts.sil.org/OFL
|
||||
*
|
||||
* Trademark:
|
||||
* Yanone Kaffeesatz is a trademark of Yanone
|
||||
*
|
||||
* Description:
|
||||
* Yanone Kaffeesatz was first published in 2004 and is Yanone's first ever
|
||||
* finished typeface. Its Bold is reminiscent of 1920s coffee house typography,
|
||||
* while the rather thin fonts bridge the gap to present times. Lacking self
|
||||
* confidence and knowledge about the type scene Yanone decided to publish the
|
||||
* family for free under a Creative Commons License. A decision that should turn
|
||||
* out one of the best he ever made. It has been downloaded over 100,000 times to
|
||||
* date from this website alone, and you can witness Kaffeesatz use on German
|
||||
* fresh-water gyms, Dubai mall promos and New Zealand McDonald's ads. And of
|
||||
* course on coffee and foodstuff packaging and cafe design around the globe. In
|
||||
* 2009 he reworked much of the typeface and it got published in FontShop's
|
||||
* FontFont Library under the new name FF Kava. You can read more about it in an
|
||||
* extensive article by Yves Peters on the FontFeed.
|
||||
*
|
||||
* Manufacturer:
|
||||
* Yanone
|
||||
*
|
||||
* Designer:
|
||||
* Yanone
|
||||
*
|
||||
* Vendor URL:
|
||||
* http://yanone.de/typedesign/
|
||||
*
|
||||
* License information:
|
||||
* http://scripts.sil.org/OFL
|
||||
*/
|
||||
Cufon.registerFont({"w":150,"face":{"font-family":"Yanone Kaffeesatz Cufon","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 0 0 0 0 0 0 0 0","ascent":"288","descent":"-72","x-height":"4","bbox":"-37.0108 -345 308.15 73.6924","underline-thickness":"25.56","underline-position":"-1.44","stemh":"23","stemv":"35","unicode-range":"U+0020-U+0237"},"glyphs":{" ":{"w":56},"!":{"d":"15,-18v0,-11,7,-21,20,-21v15,0,20,8,20,21v0,11,-7,21,-20,21v-15,0,-20,-8,-20,-21xm21,-77r-5,-169v0,-8,6,-8,40,-8r-6,163v-1,13,-7,14,-29,14","w":70},"\"":{"d":"16,-210v5,-6,-22,-85,7,-73v6,0,13,0,17,1v-6,28,8,82,-24,72xm84,-282v-6,29,9,83,-24,72v4,-7,-22,-86,8,-73v6,0,12,0,16,1","w":95,"k":{"\u017e":25,"\u0178":-7,"\u0161":33,"\u0160":4,"\u0153":33,"\u0152":7,"\u00ff":26,"\u00fd":26,"\u00fc":26,"\u00fb":26,"\u00fa":26,"\u00f9":26,"\u00f8":33,"\u00f6":33,"\u00f5":33,"\u00f4":33,"\u00f3":33,"\u00f2":33,"\u00f1":35,"\u00ef":-19,"\u00ee":-15,"\u00ec":-19,"\u00eb":37,"\u00ea":37,"\u00e9":37,"\u00e8":37,"\u00e7":34,"\u00e6":26,"\u00e5":26,"\u00e4":26,"\u00e3":26,"\u00e2":26,"\u00e1":26,"\u00e0":26,"\u00dd":-7,"\u00dc":4,"\u00db":4,"\u00d8":7,"\u00d6":7,"\u00d5":7,"\u00d4":7,"\u00d3":7,"\u00d2":7,"\u00d1":3,"\u00cf":-7,"\u00ce":-15,"\u00cb":6,"\u00ca":2,"\u00c7":20,"\u00c6":43,"\u00c5":43,"\u00c4":43,"\u00c3":43,"\u00c2":43,"\u00c1":43,"\u00c0":43,"\u00bf":37,"\u00a2":20,"r":35,"q":40,"m":35,"\\":-13,"Q":7,"@":27,"?":-7,"9":17,"6":11,"4":36,"3":1,"2":7,"1":14,"0":15,"\/":47,"+":8,"C":20,"G":13,"T":-5,"V":-6,"W":-6,"Y":-7,"d":40,"f":16,"t":6,"u":26,"v":25,"w":25,"y":26,"c":34,"e":37,"o":33,"O":7,")":-7,"]":-7,"A":43,"J":48,"x":23,"a":26,"z":25,"g":39,"n":35,"p":36,"s":33,"(":28,"[":28}},"#":{"d":"140,-91v3,31,-5,21,-25,23v-2,21,7,34,-27,29r1,-29r-34,0v-2,21,7,34,-27,29r2,-29r-20,0v-1,-28,3,-23,21,-23r2,-39r-23,0v-2,-30,5,-22,24,-23v2,-21,-6,-31,27,-28r-1,28r34,0v2,-21,-6,-31,27,-28r-1,28r20,0v2,29,-3,22,-22,23r-2,39r24,0xm58,-130r-1,39r34,0r2,-39r-35,0"},"$":{"d":"59,44r0,-41v-45,-4,-46,-13,-32,-40v15,16,76,17,71,-20v-6,-47,-79,-70,-79,-119v0,-26,17,-41,46,-45v1,-25,-8,-48,26,-44r0,43v42,6,44,9,30,33v-11,-8,-75,-14,-70,13v10,47,79,63,80,119v0,27,-11,52,-46,58v-1,25,9,47,-26,43"},"%":{"d":"16,-189v0,-45,19,-66,51,-66v32,0,48,15,48,66v0,46,-18,67,-50,67v-32,0,-49,-10,-49,-67xm44,-188v0,37,8,43,22,43v13,0,22,-10,22,-44v0,-36,-7,-43,-21,-43v-14,0,-23,9,-23,44xm134,-64v0,-45,19,-66,51,-66v32,0,48,15,48,66v0,46,-18,67,-50,67v-32,0,-49,-10,-49,-67xm162,-62v0,37,7,43,21,43v13,0,23,-10,23,-44v0,-36,-7,-43,-21,-43v-14,0,-23,9,-23,44xm60,3v0,0,-18,-5,-18,-11r145,-247v0,0,16,5,16,12v0,5,-143,246,-143,246","w":248},"&":{"d":"82,-254v46,0,65,10,47,38v-24,-14,-76,-26,-76,15v0,26,35,85,70,129v9,-43,-2,-91,-19,-107v25,-4,48,-2,70,-1v2,10,3,24,-15,23r-17,0v12,16,18,77,3,111v12,13,23,23,30,26v-10,31,-23,30,-45,1v-12,13,-29,23,-54,23v-94,0,-76,-106,-26,-133v-36,-53,-47,-125,32,-125xm111,-41v-16,-19,-33,-43,-48,-67v-27,16,-40,83,12,84v17,0,28,-7,36,-17","w":180},"'":{"d":"16,-210v5,-6,-22,-85,7,-73v6,0,13,0,17,1v-6,28,8,82,-24,72","w":50,"k":{"z":25,"y":26,"x":23,"Y":-7,"W":-6,"V":-6,"T":-5,"O":7,"w":25,"v":25,"u":26,"t":6,"s":33,"p":36,"o":33,"n":35,"g":39,"f":16,"e":37,"d":40,"c":34,"a":26,"]":-7,"[":28,"J":48,"G":13,"C":20,"A":43,")":-7,"(":28,"\u017e":25,"\u0178":-7,"\u0161":33,"\u0160":4,"\u0153":33,"\u0152":7,"\u00ff":26,"\u00fd":26,"\u00fc":26,"\u00fb":26,"\u00fa":26,"\u00f9":26,"\u00f8":33,"\u00f6":33,"\u00f5":33,"\u00f4":33,"\u00f3":33,"\u00f2":33,"\u00f1":35,"\u00ef":-19,"\u00ee":-15,"\u00ec":-19,"\u00eb":37,"\u00ea":37,"\u00e9":37,"\u00e8":37,"\u00e7":34,"\u00e6":26,"\u00e5":26,"\u00e4":26,"\u00e3":26,"\u00e2":26,"\u00e1":26,"\u00e0":26,"\u00dd":-7,"\u00dc":4,"\u00db":4,"\u00d8":7,"\u00d6":7,"\u00d5":7,"\u00d4":7,"\u00d3":7,"\u00d2":7,"\u00d1":3,"\u00cf":-7,"\u00ce":-15,"\u00cb":6,"\u00ca":2,"\u00c7":20,"\u00c6":43,"\u00c5":43,"\u00c4":43,"\u00c3":43,"\u00c2":43,"\u00c1":43,"\u00c0":43,"\u00bf":37,"\u00a2":20,"r":35,"q":40,"m":35,"\\":-13,"Q":7,"@":27,"?":-7,"9":17,"6":11,"4":36,"3":1,"2":7,"1":14,"0":15,"\/":44,"+":8}},"(":{"d":"53,-116v0,83,26,144,45,165v-3,13,-7,21,-17,21v-6,0,-58,-56,-58,-185v0,-120,53,-174,58,-174v9,0,14,5,17,19v-22,28,-45,78,-45,154","w":105,"k":{"\u017e":9,"\u0153":12,"\u0152":7,"\u00ff":-6,"\u00fd":-6,"\u00fc":11,"\u00fb":11,"\u00fa":11,"\u00f9":11,"\u00f8":12,"\u00f6":12,"\u00f5":12,"\u00f4":12,"\u00f3":12,"\u00f2":12,"\u00f1":10,"\u00ef":-5,"\u00ed":6,"\u00ec":-9,"\u00eb":11,"\u00ea":11,"\u00e9":11,"\u00e8":11,"\u00e7":11,"\u00e6":9,"\u00e4":9,"\u00e3":9,"\u00e2":9,"\u00e1":9,"\u00e0":9,"\u00d8":7,"\u00d6":7,"\u00d5":7,"\u00d4":7,"\u00d3":7,"\u00d2":7,"\u00cf":-4,"\u00ce":-21,"\u00c7":10,"\u00c6":9,"\u00c5":9,"\u00c4":9,"\u00c3":9,"\u00c2":9,"\u00c1":9,"\u00c0":9,"\u00a2":21,"r":10,"q":11,"m":10,"]":-19,"\\":-9,"[":18,"Q":7,"\/":6,"+":17,"*":8,"'":-7,"C":10,"G":7,"d":11,"t":5,"u":11,"v":13,"w":13,"y":-6,"c":11,"e":11,"o":12,"\"":-7,"-":12,"\u00ab":6,"O":7,"A":9,"x":8,"a":9,"\u00e5":9,"z":9,"Z":5,"\uLine truncated
|
||||
@@ -0,0 +1,13 @@
|
||||
/*!
|
||||
* The following copyright notice may not be removed under any circumstances.
|
||||
*
|
||||
* Copyright:
|
||||
* Copyright (c) 2009 Dave Crossland <dave@lab6.com>
|
||||
*
|
||||
* Designer:
|
||||
* Dave Crossland
|
||||
*
|
||||
* Vendor URL:
|
||||
* http://abattis.org
|
||||
*/
|
||||
Cufon.registerFont({"w":206,"face":{"font-family":"Cantarell Cufon","font-weight":500,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 6 3 0 0 0 0 0 0","ascent":"266","descent":"-94","x-height":"4","bbox":"-22 -376 370 97.4264","underline-thickness":"20.3906","underline-position":"-40.957","unicode-range":"U+0020-U+FB04"},"glyphs":{" ":{"w":98},"!":{"d":"40,-35r35,0r0,35r-35,0r0,-35xm42,-250r30,0r0,169r-30,0r0,-169","w":114},"\"":{"d":"88,-266r32,0r0,76r-32,0r0,-76xm19,-266r33,0r0,76r-33,0r0,-76","w":139},"#":{"d":"64,-250r28,0r0,69r63,0r0,-69r28,0r0,69r56,0r0,26r-56,0r0,62r56,0r0,27r-56,0r0,71r-28,0r0,-71r-63,0r0,71r-28,0r0,-71r-56,0r0,-27r56,0r0,-62r-56,0r0,-26r56,0r0,-69xm92,-155r0,62r63,0r0,-62r-63,0","w":246},"$":{"d":"75,-127v-48,-19,-31,-92,22,-91r0,-48r21,0r0,46v22,1,28,2,47,7r-7,22v-33,-8,-78,-14,-84,19v16,41,101,21,101,78v0,33,-25,49,-57,53r0,52r-21,0r0,-51v-17,0,-36,-4,-57,-13r8,-22v29,19,109,22,91,-26v-14,-15,-43,-18,-64,-26","w":210},"%":{"d":"80,-191v-1,-19,-5,-32,-23,-32v-16,0,-23,13,-23,31v0,19,6,34,23,34v15,0,24,-12,23,-33xm17,-192v0,-27,16,-48,40,-48v28,0,40,17,40,48v0,29,-14,50,-40,50v-25,0,-40,-19,-40,-50xm196,-61v0,-19,-6,-32,-23,-32v-16,0,-23,13,-23,31v0,19,5,34,23,34v16,0,23,-13,23,-33xm133,-62v0,-27,16,-48,40,-48v27,0,40,19,40,48v0,28,-14,50,-40,50v-26,0,-40,-18,-40,-50xm185,-250r30,0r-170,250r-30,0","w":233},"&":{"d":"53,-197v-5,-65,130,-79,130,-10v0,38,-34,52,-55,71r61,66r57,-63r16,17r-56,63r49,53r-35,0r-34,-35v-24,22,-48,40,-92,43v-71,5,-75,-90,-33,-120v10,-7,19,-18,28,-23v-20,-21,-33,-33,-36,-62xm129,-167v27,-8,36,-61,-8,-61v-31,0,-53,37,-26,57v9,6,14,27,26,11v4,-3,6,-6,8,-7xm74,-90v-37,37,12,95,61,64v12,-7,25,-18,34,-27r-63,-65v-14,8,-22,18,-32,28","w":279},"'":{"d":"19,-266r33,0r0,76r-33,0r0,-76","w":71},"(":{"d":"94,72v-54,-70,-75,-223,-19,-310v7,-11,11,-23,18,-34r23,12v-23,42,-47,97,-47,159v0,62,24,117,47,158","w":130},")":{"d":"61,-101v0,-63,-23,-118,-47,-159r23,-12v44,61,75,179,36,269v-12,28,-22,51,-36,75r-23,-15v24,-41,47,-95,47,-158","w":130},"*":{"d":"90,-250r30,0r-3,56r47,-30r15,26r-50,24r50,26r-15,26r-47,-31r3,56r-30,0r3,-56r-46,31r-15,-26r50,-26r-50,-24r15,-26r46,30","w":210},"+":{"d":"110,-217r26,0r0,89r88,0r0,24r-88,0r0,89r-26,0r0,-89r-88,0r0,-24r88,0r0,-89","w":246},",":{"d":"35,-30r32,0r-28,69r-32,0","w":100},"-":{"d":"31,-128r151,0r0,24r-151,0r0,-24","w":212},".":{"d":"32,-37r37,0r0,37r-37,0r0,-37","w":100},"\/":{"d":"94,-250r30,0r-87,266r-30,0","w":127},"0":{"d":"115,-23v88,-5,88,-200,-1,-203v-91,3,-87,201,1,203xm20,-128v0,-72,27,-125,94,-125v67,0,95,53,95,125v0,74,-27,132,-94,132v-69,0,-95,-58,-95,-132","w":228},"1":{"d":"44,-225v30,-10,51,-29,95,-25r0,224r58,0r0,26r-146,0r0,-26r59,0r0,-195r-55,22","w":228},"2":{"d":"145,-149v36,-30,7,-77,-38,-77v-17,0,-38,5,-65,15r-9,-23v67,-37,190,-14,156,71v-23,57,-96,71,-113,137r123,0r0,26r-159,0v6,-78,60,-111,105,-149","w":228},"3":{"d":"152,-189v-5,-45,-68,-44,-106,-22r-10,-24v53,-31,143,-24,146,41v1,28,-16,50,-38,57v30,9,48,26,49,60v1,79,-93,103,-162,71r8,-24v56,20,117,12,124,-40v-4,-38,-36,-51,-80,-50r0,-26v37,-1,66,-10,69,-43","w":228},"4":{"d":"122,-250r42,0r0,163r43,0r0,27r-43,0r0,60r-29,0r0,-60r-114,0r0,-20xm135,-221r-79,134r79,0r0,-134","w":228},"5":{"d":"169,-77v0,-57,-64,-59,-128,-50r0,-123r151,0r0,27r-122,0r0,68v68,-11,129,9,130,75v0,82,-92,94,-170,77r6,-26v56,11,133,10,133,-48","w":228},"6":{"d":"30,-101v-2,-101,48,-161,151,-149r-2,26v-67,-9,-112,22,-117,84v42,-48,142,-18,136,55v-4,51,-33,89,-86,89v-61,0,-81,-43,-82,-105xm169,-82v0,-32,-26,-57,-56,-57v-31,0,-54,24,-54,55v0,32,25,64,56,64v30,0,54,-30,54,-62","w":228},"7":{"d":"23,-250r182,0r0,19r-116,231r-35,0r115,-222r-146,0r0,-28","w":228},"8":{"d":"159,-191v1,-23,-22,-37,-46,-37v-41,0,-59,51,-20,67v9,4,19,8,30,11v15,-12,35,-17,36,-41xm117,-23v55,0,73,-70,27,-91v-12,-6,-20,-10,-35,-14v-27,7,-51,28,-52,57v-1,28,28,48,60,48xm40,-193v0,-36,33,-60,73,-60v44,0,76,20,75,61v-1,27,-17,37,-35,53v28,13,49,33,49,67v0,49,-36,76,-87,76v-47,0,-89,-25,-89,-73v0,-32,25,-59,50,-70v-20,-11,-36,-27,-36,-54","w":228},"9":{"d":"30,-169v0,-45,40,-86,87,-84v60,2,81,43,81,106v0,101,-47,158,-151,149r2,-26v73,5,113,-24,116,-91v-42,47,-135,16,-135,-54xm169,-169v-1,-32,-24,-58,-56,-60v-27,-1,-54,30,-54,58v0,28,27,54,56,54v28,0,55,-24,54,-52","w":228},":":{"d":"32,-37r37,0r0,37r-37,0r0,-37xm32,-175r37,0r0,37r-37,0r0,-37","w":100},";":{"d":"35,-30r32,0r-28,69r-32,0xm32,-175r37,0r0,37r-37,0r0,-37","w":100},"<":{"d":"171,-198r0,27r-123,62r123,59r0,29r-153,-73r0,-29","w":188},"=":{"d":"39,-88r168,0r0,26r-168,0r0,-26xm39,-168r168,0r0,27r-168,0r0,-27","w":246},">":{"d":"18,-198r153,75r0,29r-153,73r0,-29r122,-59r-122,-62r0,-27","w":188},"?":{"d":"55,-35r35,0r0,35r-35,0r0,-35xm121,-170v26,-52,-55,-69,-94,-49r-9,-22v48,-23,136,-16,136,48v0,67,-66,61,-67,124r-30,0v-2,-57,46,-65,64,-101","w":183},"@":{"d":"106,-79v0,-67,61,-112,123,-80r4,-11r19,0r1,143v2,13,7,25,22,23v33,-4,41,-45,41,-86v0,-82,-39,-128,-123,-128v-89,0,-129,56,-132,141v-3,93,81,152,169,115r11,21v-102,45,-214,-12,-209,-13Line truncated
|
||||
@@ -0,0 +1,73 @@
|
||||
jQuery(document).ready(function(){
|
||||
|
||||
var port_carousel_wrapper = jQuery('#footer-gallery-container');
|
||||
|
||||
function carousel_port_init(){
|
||||
port_carousel_wrapper.each(function(){
|
||||
var port_carousel = jQuery(this);
|
||||
var port_holder = port_carousel.children('#gallery-item-holder');
|
||||
var port_item = port_carousel.find('.footer-gallery-item');
|
||||
|
||||
port_item.css('float', 'left');
|
||||
|
||||
var child_size;
|
||||
if( port_item.filter(':first').hasClass('three') ){
|
||||
port_holder.attr('data-num', 4);
|
||||
child_size = port_carousel.width() / 4;
|
||||
}else if( port_item.filter(':first').hasClass('four') ){
|
||||
port_holder.attr('data-num', 3);
|
||||
child_size = port_carousel.width() / 3;
|
||||
}else if( port_item.filter(':first').hasClass('six') ){
|
||||
port_holder.attr('data-num', 2);
|
||||
child_size = port_carousel.width() / 2;
|
||||
}else if( port_item.filter(':first').hasClass('one-fifth') ){
|
||||
port_holder.attr('data-num', 5);
|
||||
child_size = port_carousel.width() / 5;
|
||||
}
|
||||
|
||||
if( jQuery('html').filter(':first').width() <= '767' ){
|
||||
port_holder.attr('data-num', 1);
|
||||
child_size = port_carousel.width();
|
||||
}
|
||||
|
||||
port_item.css('width', child_size );
|
||||
|
||||
port_holder.attr('data-width', child_size);
|
||||
port_holder.attr('data-max', port_item.length);
|
||||
port_holder.width( port_item.length * child_size );
|
||||
|
||||
var cur_index = parseInt(port_holder.attr('data-index'));
|
||||
port_holder.css({ 'margin-left': -(cur_index * child_size) });
|
||||
});
|
||||
}
|
||||
|
||||
// bind the navigation
|
||||
var port_nav = port_carousel_wrapper.children('.footer-gallery-nav-wrapper');
|
||||
port_nav.children('.footer-gallery-nav-left').click(function(){
|
||||
var port_holder = jQuery(this).parent().siblings('.gallery-item-holder');
|
||||
var cur_index = parseInt(port_holder.attr('data-index'));
|
||||
|
||||
if( cur_index > 0 ){ cur_index--; }
|
||||
|
||||
port_holder.attr('data-index', cur_index);
|
||||
port_holder.animate({ 'margin-left': -(cur_index * parseInt(port_holder.attr('data-width'))) });
|
||||
});
|
||||
port_nav.children('.footer-gallery-nav-right').click(function(){
|
||||
var port_holder = jQuery(this).parent().siblings('.gallery-item-holder');
|
||||
var cur_index = parseInt(port_holder.attr('data-index'));
|
||||
|
||||
if( cur_index + parseInt(port_holder.attr('data-num')) < parseInt(port_holder.attr('data-max')) ){
|
||||
cur_index++;
|
||||
}
|
||||
|
||||
port_holder.attr('data-index', cur_index);
|
||||
port_holder.animate({ 'margin-left': -(cur_index * parseInt(port_holder.attr('data-width'))) });
|
||||
});
|
||||
|
||||
carousel_port_init();
|
||||
|
||||
jQuery(window).resize(function(){
|
||||
carousel_port_init();
|
||||
});
|
||||
|
||||
});
|
||||
@@ -0,0 +1,51 @@
|
||||
jQuery(document).ready(function(){
|
||||
jQuery("form.gdl-contact-form").submit(function(){
|
||||
var the_form = jQuery(this);
|
||||
var error = false;
|
||||
|
||||
jQuery(this).find('#sending-result').slideUp(200);
|
||||
jQuery(this).find('.require-field').each(function(){
|
||||
if(jQuery.trim(jQuery(this).val()) == '') {
|
||||
error = true;
|
||||
jQuery(this).siblings('.error').slideDown(200);
|
||||
}else if(jQuery(this).hasClass('email')) {
|
||||
var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
|
||||
if(!emailReg.test(jQuery.trim(jQuery(this).val()))) {
|
||||
error = true;
|
||||
jQuery(this).siblings('.error').slideDown(200);
|
||||
}else{
|
||||
jQuery(this).siblings('.error').slideUp(200);
|
||||
}
|
||||
}else{
|
||||
jQuery(this).siblings('.error').slideUp(200);
|
||||
}
|
||||
});
|
||||
|
||||
if(error) return false;
|
||||
|
||||
jQuery(this).find('.contact-loading').fadeIn();
|
||||
|
||||
var send_data = jQuery(this).serialize();
|
||||
jQuery.post(MyAjax.ajaxurl, 'action=submit_contact_form&' + send_data, function(data){
|
||||
the_form.find('.contact-loading').fadeOut();
|
||||
if( data.success == '1' ){
|
||||
the_form.find('input[type="text"], textarea').val('');
|
||||
the_form.find('#sending-result div').each(function(){
|
||||
jQuery(this).html(data.value);
|
||||
jQuery(this).removeClass('red').addClass('green');
|
||||
jQuery(this).parent().slideDown(200);
|
||||
});
|
||||
}else{
|
||||
the_form.find('#sending-result div').each(function(){
|
||||
jQuery(this).html(data.value);
|
||||
jQuery(this).removeClass('green').addClass('red');
|
||||
jQuery(this).parent().slideDown(200);
|
||||
});
|
||||
}
|
||||
|
||||
}, 'json');
|
||||
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,259 @@
|
||||
jQuery(document).ready(function(){
|
||||
|
||||
// Search Default text
|
||||
jQuery('.search-text input').live("blur", function(){
|
||||
var default_value = jQuery(this).attr("data-default");
|
||||
if (jQuery(this).val() == ""){
|
||||
jQuery(this).val(default_value);
|
||||
}
|
||||
}).live("focus", function(){
|
||||
var default_value = jQuery(this).attr("data-default");
|
||||
if (jQuery(this).val() == default_value){
|
||||
jQuery(this).val("");
|
||||
}
|
||||
});
|
||||
|
||||
// Top search
|
||||
jQuery(".top-search-wrapper").find("#searchsubmit").click(function(){
|
||||
if( parseInt(jQuery(this).siblings("#search-text").width()) == 1 ){
|
||||
jQuery(this).siblings("#search-text").children("input[type='text']").val('');
|
||||
jQuery(this).siblings("#search-text").children().css('display', 'block');
|
||||
jQuery(this).siblings("#search-text").animate({ width: 174, 'margin-left': 15 });
|
||||
jQuery(this).siblings("#search-text").children("input[type='text']").focus();
|
||||
return false;
|
||||
}
|
||||
if( jQuery(this).siblings("#search-text").children("input[type='text']").val() == '' ){
|
||||
return false;
|
||||
}
|
||||
});
|
||||
jQuery("#searchform").click(function(){
|
||||
if (event.stopPropagation){
|
||||
event.stopPropagation();
|
||||
}
|
||||
else if(window.event){
|
||||
window.event.cancelBubble=true;
|
||||
}
|
||||
//event.stopPropagation();
|
||||
});
|
||||
jQuery("html").click(function(){
|
||||
jQuery(this).find(".top-search-wrapper").find("#search-text").animate({ width: 1, 'margin-left': 0 }, function(){
|
||||
jQuery(this).children().css('display', 'none');
|
||||
});
|
||||
});
|
||||
|
||||
// Social Hover
|
||||
jQuery("#gdl-social-icon .social-icon").hover(function(){
|
||||
jQuery(this).animate({ opacity: 0.55 }, 150);
|
||||
}, function(){
|
||||
jQuery(this).animate({ opacity: 1 }, 150);
|
||||
});
|
||||
|
||||
// Accordion
|
||||
var gdl_accordion = jQuery('ul.gdl-accordion');
|
||||
gdl_accordion.find('li').not('.active').each(function(){
|
||||
jQuery(this).children('.accordion-content').css('display', 'none');
|
||||
});
|
||||
gdl_accordion.find('li').click(function(){
|
||||
if( !jQuery(this).hasClass('active') ){
|
||||
jQuery(this).addClass('active').children('.accordion-content').slideDown();
|
||||
jQuery(this).siblings('li').removeClass('active').children('.accordion-content').slideUp();
|
||||
}
|
||||
});
|
||||
|
||||
// Toggle Box
|
||||
var gdl_toggle_box = jQuery('ul.gdl-toggle-box');
|
||||
gdl_toggle_box.find('li').not('.active').each(function(){
|
||||
jQuery(this).children('.toggle-box-content').css('display', 'none');
|
||||
});
|
||||
gdl_toggle_box.find('li').click(function(){
|
||||
if( jQuery(this).hasClass('active') ){
|
||||
jQuery(this).removeClass('active').children('.toggle-box-content').slideUp();
|
||||
}else{
|
||||
jQuery(this).addClass('active').children('.toggle-box-content').slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
// Tab
|
||||
var gdl_tab = jQuery('div.gdl-tab');
|
||||
gdl_tab.find('.gdl-tab-title li a').click(function(e){
|
||||
if( jQuery(this).hasClass('active') ) return;
|
||||
|
||||
var data_tab = jQuery(this).attr('data-tab');
|
||||
var tab_title = jQuery(this).parents('ul.gdl-tab-title');
|
||||
var tab_content = tab_title.siblings('ul.gdl-tab-content');
|
||||
|
||||
// tab title
|
||||
tab_title.find('a.active').removeClass('active');
|
||||
jQuery(this).addClass('active');
|
||||
|
||||
// tab content
|
||||
tab_content.children('li.active').removeClass('active').css('display', 'none');
|
||||
tab_content.children('li[data-tab="' + data_tab + '"]').fadeIn().addClass('active');
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
// Scroll Top
|
||||
jQuery('div.scroll-top').click(function() {
|
||||
jQuery('html, body').animate({ scrollTop:0 }, { duration: 600, easing: "easeOutExpo"});
|
||||
return false;
|
||||
});
|
||||
|
||||
// Blog Hover
|
||||
jQuery(".blog-media-wrapper.gdl-image img, .port-media-wrapper.gdl-image img, .gdl-gallery-image img").hover(function(){
|
||||
jQuery(this).animate({ opacity: 0.55 }, 150);
|
||||
}, function(){
|
||||
jQuery(this).animate({ opacity: 1 }, 150);
|
||||
});
|
||||
|
||||
// Port Hover
|
||||
jQuery(".portfolio-item").each(function(){
|
||||
var port_hover = 0; var port_unhover = 0;
|
||||
jQuery(this).hover(function(){
|
||||
port_hover++;
|
||||
|
||||
var thumbnail_hover = jQuery(this).find('a.hover-wrapper');
|
||||
var thumbnail_overlay_hover = thumbnail_hover.children('.portfolio-thumbnail-image-hover');
|
||||
var thumbnail_overlay_hover_icon = thumbnail_hover.children('.hover-icon');
|
||||
var tmp_height = thumbnail_hover.height();
|
||||
|
||||
var content_hover = jQuery(this).children('.portfolio-context');
|
||||
var content_bar = content_hover.children('.port-bottom-border');
|
||||
var cnt_height = content_hover.outerHeight();
|
||||
|
||||
content_bar.animate({ height: cnt_height }, {
|
||||
duration: (cnt_height - 2) * 0.5,
|
||||
complete: function(){
|
||||
if( port_hover - 1 == port_unhover ){
|
||||
thumbnail_overlay_hover.animate({ height: tmp_height }, tmp_height * 0.5);
|
||||
thumbnail_overlay_hover_icon.fadeIn(200);
|
||||
}
|
||||
}
|
||||
});
|
||||
content_hover.animate({ 'padding-left': 20, 'padding-right': 20 }, 150);
|
||||
}, function(){
|
||||
port_unhover++;
|
||||
|
||||
var thumbnail_hover = jQuery(this).find('a.hover-wrapper');
|
||||
var thumbnail_overlay_hover = thumbnail_hover.children('.portfolio-thumbnail-image-hover');
|
||||
var thumbnail_overlay_hover_icon = thumbnail_hover.children('.hover-icon');
|
||||
var tmp_height = thumbnail_hover.height();
|
||||
|
||||
var content_hover = jQuery(this).children('.portfolio-context');
|
||||
var content_bar = content_hover.children('.port-bottom-border');
|
||||
var cnt_height = content_hover.outerHeight();
|
||||
|
||||
if( thumbnail_hover.length == 0 ){
|
||||
content_bar.animate({ height: 2 }, (cnt_height - 2) * 0.5 );
|
||||
content_hover.animate({ 'padding-left': 0, 'padding-right': 40 }, 150);
|
||||
}else{
|
||||
thumbnail_overlay_hover.animate({ height: 0 }, {
|
||||
duration: tmp_height * 0.5,
|
||||
complete: function(){
|
||||
content_bar.animate({ height: 2 }, (cnt_height - 2) * 0.5 );
|
||||
content_hover.animate({ 'padding-left': 0, 'padding-right': 40 }, 150);
|
||||
}
|
||||
});
|
||||
thumbnail_overlay_hover_icon.fadeOut(200);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// JW Player Responsive
|
||||
responsive_jwplayer();
|
||||
function responsive_jwplayer(){
|
||||
jQuery('[id^="jwplayer"][id$="wrapper"]').each(function(){
|
||||
var data_ratio = jQuery(this).attr('data-ratio');
|
||||
if( !data_ratio || data_ratio.length == 0 ){
|
||||
data_ratio = jQuery(this).height() / jQuery(this).width();
|
||||
jQuery(this).css('max-width', '100%');
|
||||
jQuery(this).attr('data-ratio', data_ratio);
|
||||
}
|
||||
jQuery(this).height(jQuery(this).width() * data_ratio);
|
||||
});
|
||||
}
|
||||
jQuery(window).resize(function(){
|
||||
responsive_jwplayer();
|
||||
});
|
||||
|
||||
});
|
||||
jQuery(window).load(function(){
|
||||
|
||||
// Menu Navigation
|
||||
jQuery('#top-superfish-wrapper ul.top-menu').supersubs({
|
||||
minWidth: 14.5, maxWidth: 25, extraWidth: 1
|
||||
}).superfish({
|
||||
delay: 400, speed: 'fast', animation: {opacity:'show',height:'show'}
|
||||
});
|
||||
|
||||
jQuery('#main-superfish-wrapper ul.sf-menu').supersubs({
|
||||
minWidth: 14.5, maxWidth: 17, extraWidth: 1
|
||||
}).superfish({
|
||||
delay: 400, speed: 'fast', animation: {opacity:'show',height:'show'}
|
||||
});
|
||||
|
||||
// Personnal Item Height
|
||||
function set_personnal_height(){
|
||||
jQuery(".personnal-item-holder .row").each(function(){
|
||||
var max_height = 0;
|
||||
jQuery(this).find('.personnal-item').height('auto');
|
||||
jQuery(this).find('.personnal-item-wrapper').each(function(){
|
||||
if( max_height < jQuery(this).height()){
|
||||
max_height = jQuery(this).height();
|
||||
}
|
||||
});
|
||||
jQuery(this).find('.personnal-item').height(max_height);
|
||||
});
|
||||
}
|
||||
set_personnal_height();
|
||||
|
||||
// Price Table Height
|
||||
function set_price_table_height(){
|
||||
jQuery(".price-table-wrapper .row").each(function(){
|
||||
var max_height = 0;
|
||||
jQuery(this).find('.best-price').removeClass('best-active');
|
||||
jQuery(this).find('.price-item').height('auto');
|
||||
jQuery(this).find('.price-item-wrapper').each(function(){
|
||||
if( max_height < jQuery(this).height()){
|
||||
max_height = jQuery(this).height();
|
||||
}
|
||||
});
|
||||
jQuery(this).find('.price-item').height(max_height);
|
||||
jQuery(this).find('.best-price').addClass('best-active');
|
||||
});
|
||||
}
|
||||
set_price_table_height();
|
||||
|
||||
// Set Portfolio Max Height
|
||||
function set_portfolio_height(){
|
||||
jQuery('div.portfolio-item-holder').each(function(){
|
||||
var context_height = 0;
|
||||
jQuery(this).find('.portfolio-context').css({'height': 'auto'});
|
||||
jQuery(this).find('.portfolio-context').each(function(){
|
||||
if( context_height < jQuery(this).height()){
|
||||
context_height = jQuery(this).height();
|
||||
}
|
||||
});
|
||||
jQuery(this).find('.portfolio-context').css({'height': context_height});
|
||||
|
||||
var max_height = 0;
|
||||
jQuery(this).children('.portfolio-item').height('auto');
|
||||
jQuery(this).children('.portfolio-item').each(function(){
|
||||
if( max_height < jQuery(this).height()){
|
||||
max_height = jQuery(this).height();
|
||||
}
|
||||
});
|
||||
jQuery(this).children('.portfolio-item').height(max_height);
|
||||
});
|
||||
}
|
||||
setTimeout(function(){ set_portfolio_height(); }, 100);
|
||||
|
||||
// When window resize, set all function again
|
||||
jQuery(window).resize(function(){
|
||||
set_personnal_height();
|
||||
set_price_table_height();
|
||||
set_portfolio_height()
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
jQuery(document).ready(function(){
|
||||
jQuery('.gdl-tab-widget-wrapper').each(function(){
|
||||
jQuery(this).find('.gdl-tab-widget-header-item a').click(function(){
|
||||
jQuery(this).addClass('active');
|
||||
jQuery(this).parent().siblings().children('a').removeClass('active');
|
||||
|
||||
var tab_id = jQuery(this).attr('data-id');
|
||||
var widget_content = jQuery(this).parents('.gdl-tab-widget-header-wrapper').siblings('.gdl-tab-widget-content-wrapper');
|
||||
widget_content.children('div[data-id="' + tab_id + '"]').each(function(){
|
||||
jQuery(this).siblings().removeClass('active').css('display','none');
|
||||
jQuery(this).fadeIn().addClass('active');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,115 @@
|
||||
/*!
|
||||
* hoverIntent r7 // 2013.03.11 // jQuery 1.9.1+
|
||||
* http://cherne.net/brian/resources/jquery.hoverIntent.html
|
||||
*
|
||||
* You may use hoverIntent under the terms of the MIT license. Basically that
|
||||
* means you are free to use hoverIntent as long as this header is left intact.
|
||||
* Copyright 2007, 2013 Brian Cherne
|
||||
*/
|
||||
|
||||
/* hoverIntent is similar to jQuery's built-in "hover" method except that
|
||||
* instead of firing the handlerIn function immediately, hoverIntent checks
|
||||
* to see if the user's mouse has slowed down (beneath the sensitivity
|
||||
* threshold) before firing the event. The handlerOut function is only
|
||||
* called after a matching handlerIn.
|
||||
*
|
||||
* // basic usage ... just like .hover()
|
||||
* .hoverIntent( handlerIn, handlerOut )
|
||||
* .hoverIntent( handlerInOut )
|
||||
*
|
||||
* // basic usage ... with event delegation!
|
||||
* .hoverIntent( handlerIn, handlerOut, selector )
|
||||
* .hoverIntent( handlerInOut, selector )
|
||||
*
|
||||
* // using a basic configuration object
|
||||
* .hoverIntent( config )
|
||||
*
|
||||
* @param handlerIn function OR configuration object
|
||||
* @param handlerOut function OR selector for delegation OR undefined
|
||||
* @param selector selector OR undefined
|
||||
* @author Brian Cherne <brian(at)cherne(dot)net>
|
||||
*/
|
||||
(function($) {
|
||||
$.fn.hoverIntent = function(handlerIn,handlerOut,selector) {
|
||||
|
||||
// default configuration values
|
||||
var cfg = {
|
||||
interval: 100,
|
||||
sensitivity: 7,
|
||||
timeout: 0
|
||||
};
|
||||
|
||||
if ( typeof handlerIn === "object" ) {
|
||||
cfg = $.extend(cfg, handlerIn );
|
||||
} else if ($.isFunction(handlerOut)) {
|
||||
cfg = $.extend(cfg, { over: handlerIn, out: handlerOut, selector: selector } );
|
||||
} else {
|
||||
cfg = $.extend(cfg, { over: handlerIn, out: handlerIn, selector: handlerOut } );
|
||||
}
|
||||
|
||||
// instantiate variables
|
||||
// cX, cY = current X and Y position of mouse, updated by mousemove event
|
||||
// pX, pY = previous X and Y position of mouse, set by mouseover and polling interval
|
||||
var cX, cY, pX, pY;
|
||||
|
||||
// A private function for getting mouse position
|
||||
var track = function(ev) {
|
||||
cX = ev.pageX;
|
||||
cY = ev.pageY;
|
||||
};
|
||||
|
||||
// A private function for comparing current and previous mouse position
|
||||
var compare = function(ev,ob) {
|
||||
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
|
||||
// compare mouse positions to see if they've crossed the threshold
|
||||
if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
|
||||
$(ob).off("mousemove.hoverIntent",track);
|
||||
// set hoverIntent state to true (so mouseOut can be called)
|
||||
ob.hoverIntent_s = 1;
|
||||
return cfg.over.apply(ob,[ev]);
|
||||
} else {
|
||||
// set previous coordinates for next time
|
||||
pX = cX; pY = cY;
|
||||
// use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
|
||||
ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
|
||||
}
|
||||
};
|
||||
|
||||
// A private function for delaying the mouseOut function
|
||||
var delay = function(ev,ob) {
|
||||
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
|
||||
ob.hoverIntent_s = 0;
|
||||
return cfg.out.apply(ob,[ev]);
|
||||
};
|
||||
|
||||
// A private function for handling mouse 'hovering'
|
||||
var handleHover = function(e) {
|
||||
// copy objects to be passed into t (required for event object to be passed in IE)
|
||||
var ev = jQuery.extend({},e);
|
||||
var ob = this;
|
||||
|
||||
// cancel hoverIntent timer if it exists
|
||||
if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }
|
||||
|
||||
// if e.type == "mouseenter"
|
||||
if (e.type == "mouseenter") {
|
||||
// set "previous" X and Y position based on initial entry point
|
||||
pX = ev.pageX; pY = ev.pageY;
|
||||
// update "current" X and Y position based on mousemove
|
||||
$(ob).on("mousemove.hoverIntent",track);
|
||||
// start polling interval (self-calling timeout) to compare mouse coordinates over time
|
||||
if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}
|
||||
|
||||
// else e.type == "mouseleave"
|
||||
} else {
|
||||
// unbind expensive mousemove event
|
||||
$(ob).off("mousemove.hoverIntent",track);
|
||||
// if hoverIntent state is true, then call the mouseOut function after the specified delay
|
||||
if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
|
||||
}
|
||||
};
|
||||
|
||||
// listen for mouseenter and mouseleave
|
||||
return this.on({'mouseenter.hoverIntent':handleHover,'mouseleave.hoverIntent':handleHover}, cfg.selector);
|
||||
};
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,819 @@
|
||||
/*
|
||||
AnythingSlider v1.7.18
|
||||
Original by Chris Coyier: http://css-tricks.com
|
||||
Get the latest version: https://github.com/ProLoser/AnythingSlider
|
||||
|
||||
To use the navigationFormatter function, you must have a function that
|
||||
accepts two paramaters, and returns a string of HTML text.
|
||||
|
||||
index = integer index (1 based);
|
||||
panel = jQuery wrapped LI item this tab references
|
||||
@return = Must return a string of HTML/Text
|
||||
|
||||
navigationFormatter: function(index, panel){
|
||||
return "Panel #" + index; // This would have each tab with the text 'Panel #X' where X = index
|
||||
}
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
$.anythingSlider = function(el, options) {
|
||||
|
||||
var base = this, o;
|
||||
|
||||
// Wraps the ul in the necessary divs and then gives Access to jQuery element
|
||||
base.el = el;
|
||||
base.$el = $(el).addClass('anythingBase').wrap('<div class="anythingSlider"><div class="anythingWindow" /></div>');
|
||||
|
||||
// Add a reverse reference to the DOM object
|
||||
base.$el.data("AnythingSlider", base);
|
||||
|
||||
base.init = function(){
|
||||
|
||||
// Added "o" to be used in the code instead of "base.options" which doesn't get modifed by the compiler - reduces size by ~1k
|
||||
base.options = o = $.extend({}, $.anythingSlider.defaults, options);
|
||||
|
||||
base.initialized = false;
|
||||
if ($.isFunction(o.onBeforeInitialize)) { base.$el.bind('before_initialize', o.onBeforeInitialize); }
|
||||
base.$el.trigger('before_initialize', base);
|
||||
|
||||
// Cache existing DOM elements for later
|
||||
// base.$el = original ul
|
||||
// for wrap - get parent() then closest in case the ul has "anythingSlider" class
|
||||
base.$wrapper = base.$el.parent().closest('div.anythingSlider').addClass('anythingSlider-' + o.theme);
|
||||
base.$window = base.$el.closest('div.anythingWindow');
|
||||
base.win = window;
|
||||
base.$win = $(base.win);
|
||||
|
||||
base.$controls = $('<div class="anythingControls"></div>').appendTo( (o.appendControlsTo !== null && $(o.appendControlsTo).length) ? $(o.appendControlsTo) : base.$wrapper);
|
||||
base.$startStop = $('<a href="#" class="start-stop"></a>');
|
||||
if (o.buildStartStop) {
|
||||
base.$startStop.appendTo( (o.appendStartStopTo !== null && $(o.appendStartStopTo).length) ? $(o.appendStartStopTo) : base.$controls );
|
||||
}
|
||||
base.$nav = $('<ul class="thumbNav" />').appendTo( (o.appendNavigationTo !== null && $(o.appendNavigationTo).length) ? $(o.appendNavigationTo) : base.$controls );
|
||||
|
||||
// Set up a few defaults & get details
|
||||
base.flag = false; // event flag to prevent multiple calls (used in control click/focusin)
|
||||
base.playing = o.autoPlay; // slideshow state; removed "startStopped" option
|
||||
base.slideshow = false; // slideshow flag needed to correctly trigger slideshow events
|
||||
base.hovered = false; // actively hovering over the slider
|
||||
base.panelSize = []; // will contain dimensions and left position of each panel
|
||||
base.currentPage = o.startPanel = parseInt(o.startPanel,10) || 1; // make sure this isn't a string
|
||||
o.changeBy = parseInt(o.changeBy,10) || 1;
|
||||
base.adj = (o.infiniteSlides) ? 0 : 1; // adjust page limits for infinite or limited modes
|
||||
base.width = base.$el.width();
|
||||
base.height = base.$el.height();
|
||||
base.outerPad = [ base.$wrapper.innerWidth() - base.$wrapper.width(), base.$wrapper.innerHeight() - base.$wrapper.height() ];
|
||||
if (o.playRtl) { base.$wrapper.addClass('rtl'); }
|
||||
|
||||
// Expand slider to fit parent
|
||||
if (o.expand) {
|
||||
base.$outer = base.$wrapper.parent();
|
||||
base.$window.css({ width: '100%', height: '100%' }); // needed for Opera
|
||||
base.checkResize();
|
||||
}
|
||||
|
||||
// Build start/stop button
|
||||
if (o.buildStartStop) { base.buildAutoPlay(); }
|
||||
|
||||
// Build forwards/backwards buttons
|
||||
if (o.buildArrows) { base.buildNextBackButtons(); }
|
||||
|
||||
// can't lock autoplay it if it's not enabled
|
||||
if (!o.autoPlay) { o.autoPlayLocked = false; }
|
||||
|
||||
base.updateSlider();
|
||||
|
||||
base.$lastPage = base.$currentPage;
|
||||
|
||||
// Get index (run time) of this slider on the page
|
||||
base.runTimes = $('div.anythingSlider').index(base.$wrapper) + 1;
|
||||
base.regex = new RegExp('panel' + base.runTimes + '-(\\d+)', 'i'); // hash tag regex
|
||||
if (base.runTimes === 1) { base.makeActive(); } // make the first slider on the page active
|
||||
|
||||
// Make sure easing function exists.
|
||||
if (!$.isFunction($.easing[o.easing])) { o.easing = "swing"; }
|
||||
|
||||
// If pauseOnHover then add hover effects
|
||||
if (o.pauseOnHover) {
|
||||
base.$wrapper.hover(function() {
|
||||
if (base.playing) {
|
||||
base.$el.trigger('slideshow_paused', base);
|
||||
base.clearTimer(true);
|
||||
}
|
||||
}, function() {
|
||||
if (base.playing) {
|
||||
base.$el.trigger('slideshow_unpaused', base);
|
||||
base.startStop(base.playing, true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// If a hash can not be used to trigger the plugin, then go to start panel
|
||||
base.setCurrentPage(base.gotoHash() || o.startPage, false);
|
||||
|
||||
// Hide/Show navigation & play/stop controls
|
||||
base.slideControls(false);
|
||||
base.$wrapper.bind('mouseenter mouseleave', function(e){
|
||||
base.hovered = (e.type === "mouseenter") ? true : false;
|
||||
base.slideControls( base.hovered, false );
|
||||
});
|
||||
|
||||
// Add keyboard navigation
|
||||
$(document).keyup(function(e){
|
||||
// Stop arrow keys from working when focused on form items
|
||||
if (o.enableKeyboard && base.$wrapper.is('.activeSlider') && !e.target.tagName.match('TEXTAREA|INPUT|SELECT')) {
|
||||
if (!o.vertical && (e.which === 38 || e.which === 40)) { return; }
|
||||
switch (e.which) {
|
||||
case 39: case 40: // right & down arrow
|
||||
base.goForward();
|
||||
break;
|
||||
case 37: case 38: // left & up arrow
|
||||
base.goBack();
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Fix tabbing through the page, but don't change the view if the link is in view (showMultiple = true)
|
||||
base.$items.delegate('a', 'focus.AnythingSlider', function(e){
|
||||
var panel = $(this).closest('.panel'),
|
||||
indx = base.$items.index(panel) + base.adj; // index can be -1 in nested sliders - issue #208
|
||||
base.$items.find('.focusedLink').removeClass('focusedLink');
|
||||
$(this).addClass('focusedLink');
|
||||
base.$window.scrollLeft(0);
|
||||
if ( ( indx !== -1 && (indx >= base.currentPage + o.showMultiple || indx < base.currentPage) ) ) {
|
||||
base.gotoPage(indx);
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
// Binds events
|
||||
var triggers = "slideshow_paused slideshow_unpaused slide_init slide_begin slideshow_stop slideshow_start initialized swf_completed".split(" ");
|
||||
$.each("onShowPause onShowUnpause onSlideInit onSlideBegin onShowStop onShowStart onInitialized onSWFComplete".split(" "), function(i,f){
|
||||
if ($.isFunction(o[f])){
|
||||
base.$el.bind(triggers[i], o[f]);
|
||||
}
|
||||
});
|
||||
if ($.isFunction(o.onSlideComplete)){
|
||||
// Added setTimeout (zero time) to ensure animation is complete... see this bug report: http://bugs.jquery.com/ticket/7157
|
||||
base.$el.bind('slide_complete', function(){
|
||||
setTimeout(function(){ o.onSlideComplete(base); }, 0);
|
||||
});
|
||||
}
|
||||
base.initialized = true;
|
||||
base.$el.trigger('initialized', base);
|
||||
|
||||
// trigger the slideshow
|
||||
base.startStop(base.playing);
|
||||
|
||||
};
|
||||
|
||||
// called during initialization & to update the slider if a panel is added or deleted
|
||||
base.updateSlider = function(){
|
||||
// needed for updating the slider
|
||||
base.$el.children('.cloned').remove();
|
||||
base.$nav.empty();
|
||||
// set currentPage to 1 in case it was zero - occurs when adding slides after removing them all
|
||||
base.currentPage = base.currentPage || 1;
|
||||
|
||||
base.$items = base.$el.children();
|
||||
base.pages = base.$items.length;
|
||||
base.dir = (o.vertical) ? 'top' : 'left';
|
||||
o.showMultiple = (o.vertical) ? 1 : parseInt(o.showMultiple,10) || 1; // only integers allowed
|
||||
o.navigationSize = (o.navigationSize === false) ? 0 : parseInt(o.navigationSize,10) || 0;
|
||||
|
||||
if (o.showMultiple > 1) {
|
||||
if (o.showMultiple > base.pages) { o.showMultiple = base.pages; }
|
||||
base.adjustMultiple = (o.infiniteSlides && base.pages > 1) ? 0 : o.showMultiple - 1;
|
||||
base.pages = base.$items.length - base.adjustMultiple;
|
||||
}
|
||||
|
||||
// Hide navigation & player if there is only one page
|
||||
base.$controls
|
||||
.add(base.$nav)
|
||||
.add(base.$startStop)
|
||||
.add(base.$forward)
|
||||
.add(base.$back)[(base.pages <= 1) ? 'hide' : 'show']();
|
||||
if (base.pages > 1) {
|
||||
// Build/update navigation tabs
|
||||
base.buildNavigation();
|
||||
}
|
||||
|
||||
// Top and tail the list with 'visible' number of items, top has the last section, and tail has the first
|
||||
// This supports the "infinite" scrolling, also ensures any cloned elements don't duplicate an ID
|
||||
// Moved removeAttr before addClass otherwise IE7 ignores the addClass: http://bugs.jquery.com/ticket/9871
|
||||
if (o.infiniteSlides && base.pages > 1) {
|
||||
base.$el.prepend( base.$items.filter(':last').clone().removeAttr('id').addClass('cloned') );
|
||||
// Add support for multiple sliders shown at the same time
|
||||
if (o.showMultiple > 1) {
|
||||
base.$el.append( base.$items.filter(':lt(' + o.showMultiple + ')').clone().removeAttr('id').addClass('cloned').addClass('multiple') );
|
||||
} else {
|
||||
base.$el.append( base.$items.filter(':first').clone().removeAttr('id').addClass('cloned') );
|
||||
}
|
||||
base.$el.find('.cloned').each(function(){
|
||||
// disable all focusable elements in cloned panels to prevent shifting the panels by tabbing
|
||||
$(this).find('a,input,textarea,select,button,area').attr('disabled', 'disabled');
|
||||
$(this).find('[id]').removeAttr('id');
|
||||
});
|
||||
}
|
||||
|
||||
// We just added two items, time to re-cache the list, then get the dimensions of each panel
|
||||
base.$items = base.$el.children().addClass('panel' + (o.vertical ? ' vertical' : ''));
|
||||
base.setDimensions();
|
||||
|
||||
// Set the dimensions of each panel
|
||||
if (o.resizeContents) {
|
||||
base.$items.css('width', base.width);
|
||||
base.$wrapper.css('width', base.getDim(base.currentPage)[0]);
|
||||
base.$wrapper.add(base.$items).css('height', base.height);
|
||||
} else {
|
||||
base.$win.load(function(){ base.setDimensions(); }); // set dimensions after all images load
|
||||
}
|
||||
|
||||
if (base.currentPage > base.pages) {
|
||||
base.currentPage = base.pages;
|
||||
}
|
||||
base.setCurrentPage(base.currentPage, false);
|
||||
base.$nav.find('a').eq(base.currentPage - 1).addClass('cur'); // update current selection
|
||||
|
||||
};
|
||||
|
||||
// Creates the numbered navigation links
|
||||
base.buildNavigation = function() {
|
||||
if (o.buildNavigation && (base.pages > 1)) {
|
||||
var t, $a;
|
||||
base.$items.filter(':not(.cloned)').each(function(i) {
|
||||
var index = i + 1;
|
||||
t = ((index === 1) ? 'first' : '') + ((index === base.pages) ? 'last' : '');
|
||||
$a = $('<a href="#"></a>').addClass('panel' + index).wrap('<li class="' + t + '" />');
|
||||
base.$nav.append($a.parent()); // use $a.parent() so it will add <li> instead of only the <a> to the <ul>
|
||||
|
||||
// If a formatter function is present, use it
|
||||
if ($.isFunction(o.navigationFormatter)) {
|
||||
t = o.navigationFormatter(index, $(this));
|
||||
$a.html('<span>' + t + '</span>');
|
||||
// Add formatting to title attribute if text is hidden
|
||||
if (parseInt($a.find('span').css('text-indent'),10) < 0) { $a.addClass(o.tooltipClass).attr('title', t); }
|
||||
} else {
|
||||
$a.html('<span>' + index + '</span>');
|
||||
}
|
||||
|
||||
$a.bind(o.clickControls, function(e) {
|
||||
if (!base.flag && o.enableNavigation) {
|
||||
// prevent running functions twice (once for click, second time for focusin)
|
||||
base.flag = true; setTimeout(function(){ base.flag = false; }, 100);
|
||||
base.gotoPage(index);
|
||||
if (o.hashTags) { base.setHash(index); }
|
||||
}
|
||||
e.preventDefault();
|
||||
});
|
||||
});
|
||||
|
||||
// Add navigation tab scrolling - use !! in case someone sets the size to zero
|
||||
if (!!o.navigationSize && o.navigationSize < base.pages) {
|
||||
if (!base.$controls.find('.anythingNavWindow').length){
|
||||
base.$nav
|
||||
.before('<ul><li class="prev"><a href="#"><span>' + o.backText + '</span></a></li></ul>')
|
||||
.after('<ul><li class="next"><a href="#"><span>' + o.forwardText + '</span></a></li></ul>')
|
||||
.wrap('<div class="anythingNavWindow"></div>');
|
||||
}
|
||||
// include half of the left position to include extra width from themes like tabs-light and tabs-dark (still not perfect)
|
||||
base.navWidths = base.$nav.find('li').map(function(){
|
||||
return $(this).innerWidth() + Math.ceil(parseInt($(this).find('span').css('left'),10)/2 || 0);
|
||||
}).get();
|
||||
base.navLeft = 1;
|
||||
// add 5 pixels to make sure the tabs don't wrap to the next line
|
||||
base.$nav.width( base.navWidth( 1, base.pages + 1 ) + 5 );
|
||||
base.$controls.find('.anythingNavWindow')
|
||||
.width( base.navWidth( 1, o.navigationSize + 1 ) ).end()
|
||||
.find('.prev,.next').bind(o.clickControls, function(e) {
|
||||
if (!base.flag) {
|
||||
base.flag = true; setTimeout(function(){ base.flag = false; }, 200);
|
||||
base.navWindow( base.navLeft + o.navigationSize * ( $(this).is('.prev') ? -1 : 1 ) );
|
||||
}
|
||||
e.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
base.navWidth = function(x,y){
|
||||
var i, s = Math.min(x,y),
|
||||
e = Math.max(x,y),
|
||||
w = 0;
|
||||
for (i = s; i < e; i++) {
|
||||
w += base.navWidths[i-1] || 0;
|
||||
}
|
||||
return w;
|
||||
};
|
||||
|
||||
base.navWindow = function(n){
|
||||
if (!!o.navigationSize && o.navigationSize < base.pages && base.navWidths) {
|
||||
var p = base.pages - o.navigationSize + 1;
|
||||
n = (n <= 1) ? 1 : (n > 1 && n < p) ? n : p;
|
||||
if (n !== base.navLeft) {
|
||||
base.$controls.find('.anythingNavWindow').animate(
|
||||
{ scrollLeft: base.navWidth(1, n), width: base.navWidth(n, n + o.navigationSize) },
|
||||
{ queue: false, duration: o.animationTime });
|
||||
base.navLeft = n;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Creates the Forward/Backward buttons
|
||||
base.buildNextBackButtons = function() {
|
||||
base.$forward = $('<span class="arrow forward"><a href="#"><span>' + o.forwardText + '</span></a></span>');
|
||||
base.$back = $('<span class="arrow back"><a href="#"><span>' + o.backText + '</span></a></span>');
|
||||
|
||||
// Bind to the forward and back buttons
|
||||
base.$back.bind(o.clickBackArrow, function(e) {
|
||||
// prevent running functions twice (once for click, second time for swipe)
|
||||
if (o.enableArrows && !base.flag) {
|
||||
base.flag = true; setTimeout(function(){ base.flag = false; }, 100);
|
||||
base.goBack();
|
||||
}
|
||||
e.preventDefault();
|
||||
});
|
||||
base.$forward.bind(o.clickForwardArrow, function(e) {
|
||||
// prevent running functions twice (once for click, second time for swipe)
|
||||
if (o.enableArrows && !base.flag) {
|
||||
base.flag = true; setTimeout(function(){ base.flag = false; }, 100);
|
||||
base.goForward();
|
||||
}
|
||||
e.preventDefault();
|
||||
});
|
||||
// using tab to get to arrow links will show they have focus (outline is disabled in css)
|
||||
base.$back.add(base.$forward).find('a').bind('focusin focusout',function(){
|
||||
$(this).toggleClass('hover');
|
||||
});
|
||||
|
||||
// Append elements to page
|
||||
base.$back.appendTo( (o.appendBackTo !== null && $(o.appendBackTo).length) ? $(o.appendBackTo) : base.$wrapper );
|
||||
base.$forward.appendTo( (o.appendForwardTo !== null && $(o.appendForwardTo).length) ? $(o.appendForwardTo) : base.$wrapper );
|
||||
|
||||
base.$arrowWidth = base.$forward.width(); // assuming the left & right arrows are the same width - used for toggle
|
||||
};
|
||||
|
||||
// Creates the Start/Stop button
|
||||
base.buildAutoPlay = function(){
|
||||
base.$startStop
|
||||
.html('<span>' + (base.playing ? o.stopText : o.startText) + '</span>')
|
||||
.bind(o.clickSlideshow, function(e) {
|
||||
if (o.enableStartStop) {
|
||||
base.startStop(!base.playing);
|
||||
base.makeActive();
|
||||
if (base.playing && !o.autoPlayDelayed) {
|
||||
base.goForward(true);
|
||||
}
|
||||
}
|
||||
e.preventDefault();
|
||||
})
|
||||
// show button has focus while tabbing
|
||||
.bind('focusin focusout',function(){
|
||||
$(this).toggleClass('hover');
|
||||
});
|
||||
};
|
||||
|
||||
// Adjust slider dimensions on parent element resize
|
||||
base.checkResize = function(stopTimer){
|
||||
clearTimeout(base.resizeTimer);
|
||||
base.resizeTimer = setTimeout(function(){
|
||||
var w = base.$outer.width() - base.outerPad[0],
|
||||
h = (base.$outer[0].tagName === "BODY" ? base.$win.height() : base.$outer.height()) - base.outerPad[1];
|
||||
// base.width = width of one panel, so multiply by # of panels; outerPad is padding added for arrows.
|
||||
if (base.width * o.showMultiple !== w || base.height !== h) {
|
||||
base.setDimensions(); // adjust panel sizes
|
||||
// make sure page is lined up (use -1 animation time, so we can differeniate it from when animationTime = 0)
|
||||
base.gotoPage(base.currentPage, base.playing, null, -1);
|
||||
}
|
||||
if (typeof(stopTimer) === 'undefined'){ base.checkResize(); }
|
||||
}, 500);
|
||||
};
|
||||
|
||||
// Set panel dimensions to either resize content or adjust panel to content
|
||||
base.setDimensions = function(){
|
||||
var w, h, c, edge = 0,
|
||||
fullsize = { width: '100%', height: '100%' },
|
||||
// determine panel width
|
||||
pw = (o.showMultiple > 1) ? base.width || base.$window.width()/o.showMultiple : base.$window.width(),
|
||||
winw = base.$win.width();
|
||||
if (o.expand){
|
||||
w = base.$outer.width() - base.outerPad[0];
|
||||
base.height = h = base.$outer.height() - base.outerPad[1];
|
||||
base.$wrapper.add(base.$window).add(base.$items).css({ width: w, height: h });
|
||||
base.width = pw = (o.showMultiple > 1) ? w/o.showMultiple : w;
|
||||
}
|
||||
base.$items.each(function(i){
|
||||
c = $(this).children();
|
||||
if (o.resizeContents){
|
||||
// resize panel
|
||||
w = base.width;
|
||||
h = base.height;
|
||||
$(this).css({ width: w, height: h });
|
||||
if (c.length) {
|
||||
if (c[0].tagName === "EMBED") { c.attr(fullsize); } // needed for IE7; also c.length > 1 in IE7
|
||||
if (c[0].tagName === "OBJECT") { c.find('embed').attr(fullsize); }
|
||||
// resize panel contents, if solitary (wrapped content or solitary image)
|
||||
if (c.length === 1){ c.css(fullsize); }
|
||||
}
|
||||
} else {
|
||||
// get panel width & height and save it
|
||||
w = $(this).width() || base.width; // if image hasn't finished loading, width will be zero, so set it to base width instead
|
||||
if (c.length === 1 && w >= winw){
|
||||
w = (c.width() >= winw) ? pw : c.width(); // get width of solitary child
|
||||
c.css('max-width', w); // set max width for all children
|
||||
}
|
||||
$(this).css('width', w); // set width of panel
|
||||
h = (c.length === 1 ? c.outerHeight(true) : $(this).height()); // get height after setting width
|
||||
if (h <= base.outerPad[1]) { h = base.height; } // if height less than the outside padding, then set it to the preset height
|
||||
$(this).css('height', h);
|
||||
}
|
||||
base.panelSize[i] = [w,h,edge];
|
||||
edge += (o.vertical) ? h : w;
|
||||
});
|
||||
// Set total width of slider, Note that this is limited to 32766 by Opera - option removed
|
||||
base.$el.css((o.vertical ? 'height' : 'width'), edge);
|
||||
};
|
||||
|
||||
// get dimension of multiple panels, as needed
|
||||
base.getDim = function(page){
|
||||
if (base.pages < 1 || isNaN(page)) { return [ base.width, base.height ]; } // prevent errors when base.panelSize is empty
|
||||
page = (o.infiniteSlides && base.pages > 1) ? page : page - 1;
|
||||
var i,
|
||||
w = base.panelSize[page][0],
|
||||
h = base.panelSize[page][1];
|
||||
if (o.showMultiple > 1) {
|
||||
for (i=1; i < o.showMultiple; i++) {
|
||||
w += base.panelSize[(page + i)%o.showMultiple][0];
|
||||
h = Math.max(h, base.panelSize[page + i][1]);
|
||||
}
|
||||
}
|
||||
return [w,h];
|
||||
};
|
||||
|
||||
base.goForward = function(autoplay) {
|
||||
base.gotoPage(base.currentPage + o.changeBy * (o.playRtl ? -1 : 1), autoplay);
|
||||
};
|
||||
|
||||
base.goBack = function(autoplay) {
|
||||
base.gotoPage(base.currentPage + o.changeBy * (o.playRtl ? 1 : -1), autoplay);
|
||||
};
|
||||
|
||||
base.gotoPage = function(page, autoplay, callback, time) {
|
||||
if (autoplay !== true) {
|
||||
autoplay = false;
|
||||
base.startStop(false);
|
||||
base.makeActive();
|
||||
}
|
||||
// check if page is an id or class name
|
||||
if (/^[#|.]/.test(page) && $(page).length) {
|
||||
page = $(page).closest('.panel').index() + base.adj;
|
||||
}
|
||||
// rewind effect occurs here when changeBy > 1
|
||||
if (o.changeBy !== 1){
|
||||
if (page < 0) { page += base.pages; }
|
||||
if (page > base.pages) { page -= base.pages; }
|
||||
}
|
||||
if (base.pages <= 1) { return; } // prevents animation
|
||||
base.$lastPage = base.$currentPage;
|
||||
if (typeof(page) !== "number") {
|
||||
page = o.startPanel;
|
||||
base.setCurrentPage(page);
|
||||
}
|
||||
|
||||
// pause YouTube videos before scrolling or prevent change if playing
|
||||
if (autoplay && o.isVideoPlaying(base)) { return; }
|
||||
|
||||
if (page > base.pages + 1 - base.adj) { page = (!o.infiniteSlides && !o.stopAtEnd) ? 1 : base.pages; }
|
||||
if (page < base.adj ) { page = (!o.infiniteSlides && !o.stopAtEnd) ? base.pages : 1; }
|
||||
base.currentPage = ( page > base.pages ) ? base.pages : ( page < 1 ) ? 1 : base.currentPage;
|
||||
base.$currentPage = base.$items.eq(base.currentPage - base.adj);
|
||||
base.exactPage = page;
|
||||
base.targetPage = (page === 0) ? base.pages - base.adj : (page > base.pages) ? 1 - base.adj : page - base.adj;
|
||||
base.$targetPage = base.$items.eq( base.targetPage );
|
||||
time = time || o.animationTime;
|
||||
// don't trigger events when time = 1 - to prevent FX from firing multiple times on page resize
|
||||
if (time >= 0) { base.$el.trigger('slide_init', base); }
|
||||
|
||||
base.slideControls(true, false);
|
||||
|
||||
// When autoplay isn't passed, we stop the timer
|
||||
if (autoplay !== true) { autoplay = false; }
|
||||
// Stop the slider when we reach the last page, if the option stopAtEnd is set to true
|
||||
if (!autoplay || (o.stopAtEnd && page === base.pages)) { base.startStop(false); }
|
||||
|
||||
if (time >= 0) { base.$el.trigger('slide_begin', base); }
|
||||
|
||||
// delay starting slide animation
|
||||
setTimeout(function(d){
|
||||
// resize slider if content size varies
|
||||
if (!o.resizeContents) {
|
||||
// animating the wrapper resize before the window prevents flickering in Firefox
|
||||
d = base.getDim(page);
|
||||
base.$wrapper.filter(':not(:animated)').animate(
|
||||
// prevent animating a dimension to zero
|
||||
{ width: d[0] || base.width, height: d[1] || base.height },
|
||||
{ queue: false, duration: (time < 0 ? 0 : time), easing: o.easing }
|
||||
);
|
||||
}
|
||||
d = {};
|
||||
d[base.dir] = -base.panelSize[(o.infiniteSlides && base.pages > 1) ? page : page - 1][2];
|
||||
// Animate Slider
|
||||
base.$el.filter(':not(:animated)').animate(
|
||||
d, { queue: false, duration: time, easing: o.easing, complete: function(){ base.endAnimation(page, callback, time); } }
|
||||
);
|
||||
}, parseInt(o.delayBeforeAnimate, 10) || 0);
|
||||
};
|
||||
|
||||
base.endAnimation = function(page, callback, time){
|
||||
if (page === 0) {
|
||||
base.$el.css( base.dir, -base.panelSize[base.pages][2]);
|
||||
page = base.pages;
|
||||
} else if (page > base.pages) {
|
||||
// reset back to start position
|
||||
base.$el.css( base.dir, -base.panelSize[1][2]);
|
||||
page = 1;
|
||||
}
|
||||
base.exactPage = page;
|
||||
base.setCurrentPage(page, false);
|
||||
// Add active panel class
|
||||
base.$items.removeClass('activePage').eq(page - base.adj).addClass('activePage');
|
||||
|
||||
if (!base.hovered) { base.slideControls(false); }
|
||||
|
||||
if (time >= 0) { base.$el.trigger('slide_complete', base); }
|
||||
// callback from external slide control: $('#slider').anythingSlider(4, function(slider){ })
|
||||
if (typeof callback === 'function') { callback(base); }
|
||||
|
||||
// Continue slideshow after a delay
|
||||
if (o.autoPlayLocked && !base.playing) {
|
||||
setTimeout(function(){
|
||||
base.startStop(true);
|
||||
// subtract out slide delay as the slideshow waits that additional time.
|
||||
}, o.resumeDelay - (o.autoPlayDelayed ? o.delay : 0));
|
||||
}
|
||||
};
|
||||
|
||||
base.setCurrentPage = function(page, move) {
|
||||
page = parseInt(page, 10);
|
||||
if (base.pages < 1 || page === 0 || isNaN(page)) { return; }
|
||||
if (page > base.pages + 1 - base.adj) { page = base.pages - base.adj; }
|
||||
if (page < base.adj ) { page = 1; }
|
||||
|
||||
// Set visual
|
||||
if (o.buildNavigation){
|
||||
base.$nav
|
||||
.find('.cur').removeClass('cur').end()
|
||||
.find('a').eq(page - 1).addClass('cur');
|
||||
}
|
||||
|
||||
// hide/show arrows based on infinite scroll mode
|
||||
if (!o.infiniteSlides && o.stopAtEnd){
|
||||
base.$wrapper
|
||||
.find('span.forward')[ page === base.pages ? 'addClass' : 'removeClass']('disabled').end()
|
||||
.find('span.back')[ page === 1 ? 'addClass' : 'removeClass']('disabled');
|
||||
if (page === base.pages && base.playing) { base.startStop(); }
|
||||
}
|
||||
|
||||
// Only change left if move does not equal false
|
||||
if (!move) {
|
||||
var d = base.getDim(page);
|
||||
base.$wrapper
|
||||
.css({ width: d[0], height: d[1] })
|
||||
.add(base.$window).scrollLeft(0); // reset in case tabbing changed this scrollLeft - probably overly redundant
|
||||
base.$el.css( base.dir, -base.panelSize[(o.infiniteSlides && base.pages > 1) ? page : page - 1][2] );
|
||||
}
|
||||
// Update local variable
|
||||
base.currentPage = page;
|
||||
base.$currentPage = base.$items.removeClass('activePage').eq(page - base.adj).addClass('activePage');
|
||||
|
||||
};
|
||||
|
||||
base.makeActive = function(){
|
||||
// Set current slider as active so keyboard navigation works properly
|
||||
if (!base.$wrapper.is('.activeSlider')){
|
||||
$('.activeSlider').removeClass('activeSlider');
|
||||
base.$wrapper.addClass('activeSlider');
|
||||
}
|
||||
};
|
||||
|
||||
// This method tries to find a hash that matches an ID and panel-X
|
||||
// If either found, it tries to find a matching item
|
||||
// If that is found as well, then it returns the page number
|
||||
base.gotoHash = function(){
|
||||
var h = base.win.location.hash,
|
||||
i = h.indexOf('&'),
|
||||
n = h.match(base.regex);
|
||||
// test for "/#/" or "/#!/" used by the jquery address plugin - $('#/') breaks jQuery
|
||||
if (n === null && !/^#&/.test(h) && !/#!?\//.test(h)) {
|
||||
// #quote2&panel1-3&panel3-3
|
||||
h = h.substring(0, (i >= 0 ? i : h.length));
|
||||
// ensure the element is in the same slider
|
||||
n = ($(h).length && $(h).closest('.anythingBase')[0] === base.el) ? $(h).closest('.panel').index() : null;
|
||||
} else if (n !== null) {
|
||||
// #&panel1-3&panel3-3
|
||||
n = (o.hashTags) ? parseInt(n[1],10) : null;
|
||||
}
|
||||
return n;
|
||||
};
|
||||
|
||||
base.setHash = function(n){
|
||||
var s = 'panel' + base.runTimes + '-',
|
||||
h = base.win.location.hash;
|
||||
if ( typeof h !== 'undefined' ) {
|
||||
base.win.location.hash = (h.indexOf(s) > 0) ? h.replace(base.regex, s + n) : h + "&" + s + n;
|
||||
}
|
||||
};
|
||||
|
||||
// Slide controls (nav and play/stop button up or down)
|
||||
base.slideControls = function(toggle){
|
||||
//var dir = (toggle) ? 'slideDown' : 'slideUp',
|
||||
var dir = (toggle) ? 'fadeIn' : 'fadeOut',
|
||||
t1 = (toggle) ? 0 : o.animationTime,
|
||||
t2 = (toggle) ? o.animationTime: 0,
|
||||
op = (toggle) ? 1 : 0,
|
||||
sign = (toggle) ? 0 : 1; // 0 = visible, 1 = hidden
|
||||
if (o.toggleControls) {
|
||||
if (!base.hovered && base.playing) { dir = "fadeOut" } // don't animate arrows during slideshow
|
||||
base.$controls.stop(true,true).delay(t1)[dir](o.animationTime/2).delay(t2);
|
||||
}
|
||||
if (o.buildArrows && o.toggleArrows) {
|
||||
if (!base.hovered && base.playing) { sign = 1; op = 0; } // don't animate arrows during slideshow
|
||||
base.$forward.stop(true,true).delay(t1).animate({ opacity: op }, o.animationTime/2);
|
||||
//base.$forward.stop(true,true).delay(t1).animate({ right: sign * base.$arrowWidth, opacity: op }, o.animationTime/2);
|
||||
base.$back.stop(true,true).delay(t1).animate({ opacity: op }, o.animationTime/2);
|
||||
//base.$back.stop(true,true).delay(t1).animate({ left: sign * base.$arrowWidth, opacity: op }, o.animationTime/2);
|
||||
}
|
||||
};
|
||||
|
||||
base.clearTimer = function(paused){
|
||||
// Clear the timer only if it is set
|
||||
if (base.timer) {
|
||||
base.win.clearInterval(base.timer);
|
||||
if (!paused && base.slideshow) {
|
||||
base.$el.trigger('slideshow_stop', base);
|
||||
base.slideshow = false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Pass startStop(false) to stop and startStop(true) to play
|
||||
base.startStop = function(playing, paused) {
|
||||
if (playing !== true) { playing = false; } // Default if not supplied is false
|
||||
base.playing = playing;
|
||||
|
||||
if (playing && !paused) {
|
||||
base.$el.trigger('slideshow_start', base);
|
||||
base.slideshow = true;
|
||||
}
|
||||
|
||||
// Toggle playing and text
|
||||
if (o.buildStartStop) {
|
||||
base.$startStop.toggleClass('playing', playing).find('span').html( playing ? o.stopText : o.startText );
|
||||
// add button text to title attribute if it is hidden by text-indent
|
||||
if (parseInt(base.$startStop.find('span').css('text-indent'),10) < 0) {
|
||||
base.$startStop.addClass(o.tooltipClass).attr( 'title', playing ? o.stopText : o.startText );
|
||||
}
|
||||
}
|
||||
|
||||
// Pause slideshow while video is playing
|
||||
if (playing){
|
||||
base.clearTimer(true); // Just in case this was triggered twice in a row
|
||||
base.timer = base.win.setInterval(function() {
|
||||
// prevent autoplay if video is playing
|
||||
if ( !o.isVideoPlaying(base) ) {
|
||||
base.goForward(true);
|
||||
// stop slideshow if resume if false
|
||||
} else if (!o.resumeOnVideoEnd) {
|
||||
base.startStop();
|
||||
}
|
||||
}, o.delay);
|
||||
} else {
|
||||
base.clearTimer();
|
||||
}
|
||||
};
|
||||
|
||||
// Trigger the initialization
|
||||
base.init();
|
||||
};
|
||||
|
||||
$.anythingSlider.defaults = {
|
||||
// Appearance
|
||||
theme : "default", // Theme name, add the css stylesheet manually
|
||||
expand : false, // If true, the entire slider will expand to fit the parent element
|
||||
resizeContents : true, // If true, solitary images/objects in the panel will expand to fit the viewport
|
||||
vertical : false, // If true, all panels will slide vertically; they slide horizontally otherwise
|
||||
showMultiple : false, // Set this value to a number and it will show that many slides at once
|
||||
easing : "swing", // Anything other than "linear" or "swing" requires the easing plugin or jQuery UI
|
||||
|
||||
buildArrows : true, // If true, builds the forwards and backwards buttons
|
||||
buildNavigation : true, // If true, builds a list of anchor links to link to each panel
|
||||
buildStartStop : true, // ** If true, builds the start/stop button
|
||||
|
||||
appendForwardTo : null, // Append forward arrow to a HTML element (jQuery Object, selector or HTMLNode), if not null
|
||||
appendBackTo : null, // Append back arrow to a HTML element (jQuery Object, selector or HTMLNode), if not null
|
||||
appendControlsTo : null, // Append controls (navigation + start-stop) to a HTML element (jQuery Object, selector or HTMLNode), if not null
|
||||
appendNavigationTo : null, // Append navigation buttons to a HTML element (jQuery Object, selector or HTMLNode), if not null
|
||||
appendStartStopTo : null, // Append start-stop button to a HTML element (jQuery Object, selector or HTMLNode), if not null
|
||||
|
||||
toggleArrows : false, // If true, side navigation arrows will slide out on hovering & hide @ other times
|
||||
toggleControls : false, // if true, slide in controls (navigation + play/stop button) on hover and slide change, hide @ other times
|
||||
|
||||
startText : "Start", // Start button text
|
||||
stopText : "Stop", // Stop button text
|
||||
forwardText : "»", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
|
||||
backText : "«", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
|
||||
tooltipClass : "tooltip", // Class added to navigation & start/stop button (text copied to title if it is hidden by a negative text indent)
|
||||
|
||||
// Function
|
||||
enableArrows : true, // if false, arrows will be visible, but not clickable.
|
||||
enableNavigation : true, // if false, navigation links will still be visible, but not clickable.
|
||||
enableStartStop : true, // if false, the play/stop button will still be visible, but not clickable. Previously "enablePlay"
|
||||
enableKeyboard : true, // if false, keyboard arrow keys will not work for this slider.
|
||||
|
||||
// Navigation
|
||||
startPanel : 1, // This sets the initial panel
|
||||
changeBy : 1, // Amount to go forward or back when changing panels.
|
||||
hashTags : true, // Should links change the hashtag in the URL?
|
||||
infiniteSlides : true, // if false, the slider will not wrap & not clone any panels
|
||||
navigationFormatter : null, // Details at the top of the file on this use (advanced use)
|
||||
navigationSize : false, // Set this to the maximum number of visible navigation tabs; false to disable
|
||||
|
||||
// Slideshow options
|
||||
autoPlay : false, // If true, the slideshow will start running; replaces "startStopped" option
|
||||
autoPlayLocked : false, // If true, user changing slides will not stop the slideshow
|
||||
autoPlayDelayed : false, // If true, starting a slideshow will delay advancing slides; if false, the slider will immediately advance to the next slide when slideshow starts
|
||||
pauseOnHover : true, // If true & the slideshow is active, the slideshow will pause on hover
|
||||
stopAtEnd : false, // If true & the slideshow is active, the slideshow will stop on the last page. This also stops the rewind effect when infiniteSlides is false.
|
||||
playRtl : false, // If true, the slideshow will move right-to-left
|
||||
|
||||
// Times
|
||||
delay : 3000, // How long between slideshow transitions in AutoPlay mode (in milliseconds)
|
||||
resumeDelay : 15000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
|
||||
animationTime : 600, // How long the slideshow transition takes (in milliseconds)
|
||||
delayBeforeAnimate : 0, // How long to pause slide animation before going to the desired slide (used if you want your "out" FX to show).
|
||||
|
||||
// Callbacks - removed from options to reduce size - they still work
|
||||
|
||||
// Interactivity
|
||||
clickForwardArrow : "click", // Event used to activate forward arrow functionality (e.g. add jQuery mobile's "swiperight")
|
||||
clickBackArrow : "click", // Event used to activate back arrow functionality (e.g. add jQuery mobile's "swipeleft")
|
||||
clickControls : "click focusin", // Events used to activate navigation control functionality
|
||||
clickSlideshow : "click", // Event used to activate slideshow play/stop button
|
||||
|
||||
// Video
|
||||
resumeOnVideoEnd : true, // If true & the slideshow is active & a supported video is playing, it will pause the autoplay until the video is complete
|
||||
resumeOnVisible : true, // If true the video will resume playing (if previously paused, except for YouTube iframe - known issue); if false, the video remains paused.
|
||||
addWmodeToObject : "opaque", // If your slider has an embedded object, the script will automatically add a wmode parameter with this setting
|
||||
isVideoPlaying : function(base){ return false; } // return true if video is playing or false if not - used by video extension
|
||||
|
||||
};
|
||||
|
||||
$.fn.anythingSlider = function(options, callback) {
|
||||
|
||||
return this.each(function(){
|
||||
var page, anySlide = $(this).data('AnythingSlider');
|
||||
|
||||
// initialize the slider but prevent multiple initializations
|
||||
if ((typeof(options)).match('object|undefined')){
|
||||
if (!anySlide) {
|
||||
(new $.anythingSlider(this, options));
|
||||
} else {
|
||||
anySlide.updateSlider();
|
||||
}
|
||||
// If options is a number, process as an external link to page #: $(element).anythingSlider(#)
|
||||
} else if (/\d/.test(options) && !isNaN(options) && anySlide) {
|
||||
page = (typeof(options) === "number") ? options : parseInt($.trim(options),10); // accepts " 2 "
|
||||
// ignore out of bound pages
|
||||
if ( page >= 1 && page <= anySlide.pages ) {
|
||||
anySlide.gotoPage(page, false, callback); // page #, autoplay, one time callback
|
||||
}
|
||||
// Accept id or class name
|
||||
} else if (/^[#|.]/.test(options) && $(options).length) {
|
||||
anySlide.gotoPage(options, false, callback);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
|
||||
// Anything Slider Setting
|
||||
ANYTHING.autoPlay = true;
|
||||
ANYTHING.resumeOnVideoEnd = true;
|
||||
ANYTHING.resizeContents = true;
|
||||
ANYTHING.addWmodeToObject = 'transparent';
|
||||
ANYTHING.pauseOnHover = (ANYTHING.pauseOnHover == 'enable')? true: false;
|
||||
ANYTHING.buildNavigation = (ANYTHING.buildNavigation == 'enable')? true: false;
|
||||
ANYTHING.buildArrows = (ANYTHING.buildArrows == 'enable')? true: false;
|
||||
ANYTHING.toggleArrows = (ANYTHING.toggleArrows == 'enable')? true: false;
|
||||
ANYTHING.toggleControls = (ANYTHING.toggleControls == 'enable')? true: false;
|
||||
ANYTHING.buildStartStop = false;
|
||||
ANYTHING.delay = parseInt(ANYTHING.delay);
|
||||
ANYTHING.animationTime = parseInt(ANYTHING.animationTime);
|
||||
|
||||
jQuery('ul.anythingSlider').anythingSlider( ANYTHING );
|
||||
});
|
||||
@@ -0,0 +1,379 @@
|
||||
/*
|
||||
* AnythingSlider Video Controller 1.3 beta for AnythingSlider v1.6+
|
||||
* By Rob Garrison (aka Mottie & Fudgey)
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
(function($) {
|
||||
$.fn.anythingSliderVideo = function(options){
|
||||
|
||||
//Set the default values, use comma to separate the settings, example:
|
||||
var defaults = {
|
||||
videoID : 'asvideo' // id prefix
|
||||
};
|
||||
|
||||
return this.each(function(){
|
||||
// make sure a AnythingSlider is attached
|
||||
var video, tmp, service, sel, base = $(this).data('AnythingSlider');
|
||||
if (!base) { return; }
|
||||
video = base.video = {};
|
||||
// Next update, I may just force users to call the video extension instead of it auto-running on window load
|
||||
// then they can change the video options in that call instead of the base defaults, and maybe prevent the
|
||||
// videos being initialized twice on startup (once as a regular video and second time with the API string)
|
||||
video.options = $.extend({}, defaults, options);
|
||||
|
||||
// check if SWFObject is loaded
|
||||
video.hasSwfo = (typeof(swfobject) !== 'undefined' && swfobject.hasOwnProperty('embedSWF') && typeof(swfobject.embedSWF) === 'function') ? true : false;
|
||||
|
||||
video.list = {};
|
||||
video.hasVid = false;
|
||||
video.hasEmbed = false;
|
||||
video.services = $.fn.anythingSliderVideo.services;
|
||||
video.len = 0; // used to add a unique ID to videos "asvideo#"
|
||||
video.hasEmbedCount = 0;
|
||||
video.hasiframeCount = 0;
|
||||
video.$items = base.$items.filter(':not(.cloned)');
|
||||
|
||||
// find and save all known videos
|
||||
for (service in video.services) {
|
||||
if (typeof(service) === 'string') {
|
||||
sel = video.services[service].selector;
|
||||
video.$items.find(sel).each(function(){
|
||||
tmp = $(this);
|
||||
// save panel and video selector in the list
|
||||
tmp.attr('id', video.options.videoID + video.len);
|
||||
video.list[video.len] = {
|
||||
id : video.options.videoID + video.len++,
|
||||
panel : tmp.closest('.panel')[0],
|
||||
service : service,
|
||||
selector : sel,
|
||||
status : -1 // YouTube uses -1 to mean the video is unstarted
|
||||
};
|
||||
video.hasVid = true;
|
||||
if (sel.match('embed|object')) {
|
||||
video.hasEmbed = true;
|
||||
video.hasEmbedCount++;
|
||||
} else if (sel.match('iframe')) {
|
||||
video.hasiframeCount++;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize each video, as needed
|
||||
$.each(video.list, function(i,s){
|
||||
// s.id = ID, s.panel = slider panel (DOM), s.selector = 'jQuery selector'
|
||||
var tmp, $tar, vidsrc, opts,
|
||||
$vid = $(s.panel).find(s.selector),
|
||||
service = video.services[s.service],
|
||||
api = service.initAPI || '';
|
||||
// Initialize embeded video javascript api using SWFObject, if loaded
|
||||
if (video.hasEmbed && video.hasSwfo && s.selector.match('embed|object')) {
|
||||
$vid.each(function(){
|
||||
// Older IE doesn't have an object - just make sure we are wrapping the correct element
|
||||
$tar = ($(this).parent()[0].tagName === 'OBJECT') ? $(this).parent() : $(this);
|
||||
vidsrc = ($tar[0].tagName === 'EMBED') ? $tar.attr('src') : $tar.find('embed').attr('src') || $tar.children().filter('[name=movie]').attr('value');
|
||||
opts = $.extend(true, {}, {
|
||||
flashvars : null,
|
||||
params : { allowScriptAccess: 'always', wmode : base.options.addWmodeToObject, allowfullscreen : true },
|
||||
attr : { 'class' : $tar.attr('class'), 'style' : $tar.attr('style'), 'data-url' : vidsrc }
|
||||
}, service.embedOpts);
|
||||
$tar.wrap('<div id="' + s.id + '"></div>');
|
||||
// use SWFObject if it exists, it replaces the wrapper with the object/embed
|
||||
swfobject.embedSWF(vidsrc + (api === '' ? '': api + s.id), s.id,
|
||||
$tar.attr('width'), $tar.attr('height'), '10', null,
|
||||
opts.flashvars, opts.params, opts.attr, function(){
|
||||
// run init code if it exists
|
||||
if (service.hasOwnProperty('init')) {
|
||||
video.list[i].player = service.init(base, s.id, i);
|
||||
}
|
||||
if (i >= video.hasEmbedCount) {
|
||||
base.$el.trigger('swf_completed', base); // swf callback
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
} else if (s.selector.match('iframe')) {
|
||||
$vid.each(function(i,v){
|
||||
vidsrc = $(this).attr('src');
|
||||
tmp = (vidsrc.match(/\?/g) ? '' : '?') + '&wmode=' + base.options.addWmodeToObject; // string connector & wmode
|
||||
$(this).attr('src', function(i,r){ return r + tmp + (api === '' ? '': api + s.id); });
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// Returns URL parameter; url: http://www.somesite.com?name=hello&id=11111
|
||||
// Original code from Netlobo.com (http://www.netlobo.com/url_query_string_javascript.html)
|
||||
video.gup = function(n,s){
|
||||
n = n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");
|
||||
var p = (new RegExp("[\\?&]"+n+"=([^&#]*)")).exec(s || window.location.href);
|
||||
return (p===null) ? "" : p[1];
|
||||
};
|
||||
|
||||
// postMessage to iframe - http://benalman.com/projects/jquery-postmessage-plugin/ (FOR IE7)
|
||||
video.postMsg = function(data, vid){
|
||||
var $vid = $('#' + vid);
|
||||
if ($vid.length){
|
||||
$vid[0].contentWindow.postMessage(data, $vid.attr('src').split('?')[0]);
|
||||
}
|
||||
};
|
||||
|
||||
// receive message from iframe
|
||||
// no way to figure out which iframe since the message is from the window
|
||||
video.message = function(e){
|
||||
if (e.data) {
|
||||
if (/infoDelivery/g.test(e.data)) { return; } // ignore youtube video loading spam
|
||||
var data = $.parseJSON(e.data);
|
||||
$.each(video.list, function(i,s){
|
||||
if (video.services[video.list[i].service].hasOwnProperty('message')) {
|
||||
video.services[video.list[i].service].message(base, data);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// toDO = 'cont', 'pause' or 'isPlaying'
|
||||
video.control = function(toDo){
|
||||
var i,
|
||||
s = video.list,
|
||||
slide = (toDo === 'pause') ? base.$lastPage[0] : base.$currentPage[0],
|
||||
isPlaying = false;
|
||||
for (i=0; i < video.len; i++){
|
||||
if (s[i].panel === slide && video.services[s[i].service].hasOwnProperty(toDo)){
|
||||
isPlaying = video.services[s[i].service][toDo](base, s[i].id, i);
|
||||
}
|
||||
}
|
||||
return isPlaying;
|
||||
};
|
||||
|
||||
// iframe event listener
|
||||
if (video.hasiframeCount){
|
||||
if (window.addEventListener){
|
||||
window.addEventListener('message', video.message, false);
|
||||
} else { // IE
|
||||
window.attachEvent('onmessage', video.message, false);
|
||||
}
|
||||
}
|
||||
|
||||
// bind to events
|
||||
base.$el
|
||||
.bind('slide_init', function(){
|
||||
video.control('pause');
|
||||
})
|
||||
.bind('slide_complete', function(){
|
||||
video.control('cont');
|
||||
});
|
||||
|
||||
base.options.isVideoPlaying = function(){ return video.control('isPlaying'); };
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
/* Each video service is set up as follows
|
||||
* service-name : {
|
||||
* // initialization
|
||||
* selector : 'object[data-url*=service], embed[src*=service]', // required: jQuery selector used to find the video ('video' or 'iframe[src*=service]' are other examples)
|
||||
* initAPI : 'string added to the URL to initialize the API', // optional: the string must end with a parameter pointing to the video id (e.g. "&player_id=")
|
||||
* embedOpts : { flashvars: {}, params: {}, attr: {} }, // optional: add any required flashvars, parameters or attributes to initialize the API
|
||||
* // video startup functions
|
||||
* init : function(base, vid, index){ }, // optional: include any additional initialization code here; function called AFTER the embeded video is added using SWFObject
|
||||
* // required functions
|
||||
* cont : function(base, vid, index){ }, // required: continue play if video was previously played
|
||||
* pause : function(base, vid, index){ }, // required: pause ALL videos
|
||||
* message : function(base, data){ }, // required for iframe: process data received from iframe and update the video status for the "isPlaying" function
|
||||
* isPlaying : function(base, vid, index){ } // required: return true if video is playing and return false if not playing (paused or ended)
|
||||
* }
|
||||
*
|
||||
* Function variables
|
||||
* base (object) = plugin base, all video values/functions are stored in base.video
|
||||
* vid (string) is the ID of the video: vid = "asvideo1"; so jQuery needs a "#" in front... "#" + videoID option default ("asvideo") + index (e.g. "1"); each video matching a service will have a unquie vid
|
||||
* index (number) is the unique video number from the vid (starts from zero)
|
||||
*
|
||||
* var list = base.video.list[index]; list will contain:
|
||||
* list.id = vid
|
||||
* list.service = service name (e.g. 'video', 'vimeo1', 'vimeo2', etc)
|
||||
* list.selector = 'jQuery selector' (e.g. 'video', 'object[data-url*=vimeo]', 'iframe[src*=vimeo]', etc)
|
||||
* list.panel = AnythingSlider panel DOM object. So you can target the video using $(list[index].panel).find(list[index].service) or $('#' + vid)
|
||||
* list.status = video status, updated by the iframe event listeners added in the video service "ready" function; see examples below
|
||||
*/
|
||||
|
||||
$.fn.anythingSliderVideo.services = {
|
||||
|
||||
// *** HTML5 video ***
|
||||
video : {
|
||||
selector : 'video',
|
||||
cont : function(base, vid, index){
|
||||
var $vid = $('#' + vid);
|
||||
if ($vid.length && $vid[0].paused && $vid[0].currentTime > 0 && !$vid[0].ended) {
|
||||
$vid[0].play();
|
||||
}
|
||||
},
|
||||
pause : function(base, vid){
|
||||
// pause ALL videos on the page
|
||||
$('video').each(function(){
|
||||
if (typeof(this.pause) !== 'undefined') { this.pause(); } // throws an error in older ie without this
|
||||
});
|
||||
},
|
||||
isPlaying : function(base, vid, index){
|
||||
var $vid = $('#' + vid);
|
||||
// media.paused seems to be the only way to determine if a video is playing
|
||||
return ($vid.length && typeof($vid[0].pause) !== 'undefined' && !$vid[0].paused && !$vid[0].ended) ? true : false;
|
||||
}
|
||||
},
|
||||
|
||||
// *** Vimeo iframe *** isolated demo: http://jsfiddle.net/Mottie/GxwEX/
|
||||
vimeo1 : {
|
||||
selector : 'iframe[src*=vimeo]',
|
||||
initAPI : '&api=1&player_id=', // video ID added to the end
|
||||
cont : function(base, vid, index){
|
||||
if (base.options.resumeOnVisible && base.video.list[index].status === 'pause'){
|
||||
// Commands sent to the iframe originally had "JSON.stringify" applied to them,
|
||||
// but not all browsers support this, so it's just as easy to wrap it in quotes.
|
||||
base.video.postMsg('{"method":"play"}', vid);
|
||||
}
|
||||
},
|
||||
pause : function(base, vid){
|
||||
// pause ALL videos on the page
|
||||
$('iframe[src*=vimeo]').each(function(){
|
||||
base.video.postMsg('{"method":"pause"}', this.id);
|
||||
});
|
||||
},
|
||||
message : function(base, data){
|
||||
// *** VIMEO *** iframe uses data.player_id
|
||||
var index, vid = data.player_id || ''; // vid = data.player_id (unique to vimeo)
|
||||
if (vid !== ''){
|
||||
index = vid.replace(base.video.options.videoID, '');
|
||||
if (data.event === 'ready') {
|
||||
// Vimeo ready, add additional event listeners for video status
|
||||
base.video.postMsg('{"method":"addEventListener","value":"play"}', vid);
|
||||
base.video.postMsg('{"method":"addEventListener","value":"pause"}', vid);
|
||||
base.video.postMsg('{"method":"addEventListener","value":"finish"}', vid);
|
||||
}
|
||||
// update current status - vimeo puts it in data.event
|
||||
if (base.video.list[index]) { base.video.list[index].status = data.event; }
|
||||
}
|
||||
},
|
||||
isPlaying : function(base, vid, index){
|
||||
return (base.video.list[index].status === 'play') ? true : false;
|
||||
}
|
||||
},
|
||||
|
||||
// *** Embeded Vimeo ***
|
||||
// SWFObject adds the url to the object data
|
||||
// using param as a selector, the script above looks for the parent if it sees "param"
|
||||
vimeo2 : {
|
||||
selector : 'object[data-url*=vimeo], embed[src*=vimeo]',
|
||||
embedOpts : { flashvars : { api : 1 } },
|
||||
cont : function(base, vid, index) {
|
||||
if (base.options.resumeOnVisible) {
|
||||
var $vid = $('#' + vid);
|
||||
// continue video if previously played & not finished (api_finish doesn't seem to exist) - duration can be a decimal number, so subtract it and look at the difference (2 seconds here)
|
||||
if (typeof($vid[0].api_play) === 'function' && $vid[0].api_paused() && $vid[0].api_getCurrentTime() !== 0 && ($vid[0].api_getDuration() - $vid[0].api_getCurrentTime()) > 2) {
|
||||
$vid[0].api_play();
|
||||
}
|
||||
}
|
||||
},
|
||||
pause : function(base, vid){
|
||||
// find ALL videos and pause them, just in case
|
||||
$('object[data-url*=vimeo], embed[src*=vimeo]').each(function(){
|
||||
var el = (this.tagName === 'EMBED') ? $(this).parent()[0] : this;
|
||||
if (typeof(el.api_pause) === 'function') {
|
||||
el.api_pause();
|
||||
}
|
||||
});
|
||||
},
|
||||
isPlaying : function(base, vid, index){
|
||||
var $vid = $('#' + vid);
|
||||
return (typeof($vid[0].api_paused) === 'function' && !$vid[0].api_paused()) ? true : false;
|
||||
}
|
||||
},
|
||||
|
||||
// *** iframe YouTube *** isolated demo: http://jsfiddle.net/Mottie/qk5MY/
|
||||
youtube1 : {
|
||||
selector : 'iframe[src*=youtube]',
|
||||
// "iv_load_policy=3" should turn off annotations on init, but doesn't seem to
|
||||
initAPI : '&iv_load_policy=3&enablejsapi=1&playerapiid=',
|
||||
cont : function(base, vid, index){
|
||||
if (base.options.resumeOnVisible && base.video.list[index].status === 2){
|
||||
base.video.postMsg('{"event":"command","func":"playVideo"}', vid);
|
||||
}
|
||||
},
|
||||
pause : function(base, vid, index){
|
||||
// pause ALL videos on the page - in IE, pausing a video means it will continue when next seen =(
|
||||
$('iframe[src*=youtube]').each(function(){
|
||||
// if (this.id !== vid || (this.id === vid && base.video.list[index].status >= 0)) { // trying to fix the continue video problem; this only breaks it
|
||||
base.video.postMsg('{"event":"command","func":"pauseVideo"}', vid);
|
||||
// }
|
||||
});
|
||||
},
|
||||
message : function(base, data){
|
||||
if (data.event === 'infoDelivery') { return; } // ignore youtube video loading spam
|
||||
// *** YouTube *** iframe returns an embeded url (data.info.videoUrl) but no video id...
|
||||
if (data.info && data.info.videoUrl) {
|
||||
// figure out vid for youtube
|
||||
// data.info.videoURL = http://www.youtube.com/watch?v=###########&feature=player_embedded
|
||||
var url = base.video.gup('v', data.info.videoUrl), // end up with ###########, now find it
|
||||
v = $('iframe[src*=' + url + ']'), vid, index;
|
||||
// iframe src changes when watching related videos; so there is no way to tell which video has an update
|
||||
if (v.length) {
|
||||
vid = v[0].id;
|
||||
index = vid.replace(base.video.options.videoID, '');
|
||||
// YouTube ready, add additional event listeners for video status. BUT this never fires off =(
|
||||
// Fixing this may solve the continue problem
|
||||
if (data.event === 'onReady') {
|
||||
base.video.postMsg('{"event":"listening","func":"onStateChange"}', vid);
|
||||
}
|
||||
// Update status, so the "isPlaying" function can access it
|
||||
if (data.event === 'onStateChange' && base.video.list[index]) {
|
||||
// update list with current status; data.info.playerState = YouTube
|
||||
base.video.list[index].status = data.info.playerState;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
isPlaying : function(base, vid, index){
|
||||
var status = base.video.list[index].status;
|
||||
// state: unstarted (-1), ended (0), playing (1), paused (2), buffering (3), video cued (5).
|
||||
return (status === 1 || status > 2) ? true : false;
|
||||
}
|
||||
},
|
||||
|
||||
// *** Embeded YouTube ***
|
||||
// include embed for IE; SWFObject adds the url to the object data attribute
|
||||
youtube2 : {
|
||||
selector : 'object[data-url*=youtube], embed[src*=youtube]',
|
||||
initAPI : '&iv_load_policy=3&enablejsapi=1&version=3&playerapiid=', // video ID added to the end
|
||||
// YouTube - player states: unstarted (-1), ended (0), playing (1), paused (2), buffering (3), video cued (5).
|
||||
cont : function(base, vid, index) {
|
||||
if (base.options.resumeOnVisible) {
|
||||
var $vid = $('#' + vid);
|
||||
// continue video if previously played and not cued
|
||||
if ($vid.length && typeof($vid[0].getPlayerState) === 'function' && $vid[0].getPlayerState() > 0) {
|
||||
$vid[0].playVideo();
|
||||
}
|
||||
}
|
||||
},
|
||||
pause : function(base, vid){
|
||||
// find ALL videos and pause them, just in case
|
||||
$('object[data-url*=youtube], embed[src*=youtube]').each(function(){
|
||||
var el = (this.tagName === 'EMBED') ? $(this).parent()[0] : this;
|
||||
// player states: unstarted (-1), ended (0), playing (1), paused (2), buffering (3), video cued (5).
|
||||
if (typeof(el.getPlayerState) === 'function' && el.getPlayerState() > 0) {
|
||||
// pause video if not autoplaying (if already initialized)
|
||||
el.pauseVideo();
|
||||
}
|
||||
});
|
||||
},
|
||||
isPlaying : function(base, vid){
|
||||
var $vid = $('#' + vid);
|
||||
return (typeof($vid[0].getPlayerState) === 'function' && ($vid[0].getPlayerState() === 1 || $vid[0].getPlayerState() > 2)) ? true : false;
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
|
||||
// Initialize video extension automatically
|
||||
jQuery(window).load(function(){
|
||||
jQuery('.anythingBase').anythingSliderVideo();
|
||||
});
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
*
|
||||
* Uses the built in easing capabilities added In jQuery 1.1
|
||||
* to offer multiple easing options
|
||||
*
|
||||
* TERMS OF USE - jQuery Easing
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright ?? 2008 George McGinley Smith
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
// t: current time, b: begInnIng value, c: change In value, d: duration
|
||||
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
||||
|
||||
jQuery.extend( jQuery.easing,
|
||||
{
|
||||
def: 'easeOutQuad',
|
||||
swing: function (x, t, b, c, d) {
|
||||
//alert(jQuery.easing.default);
|
||||
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
||||
},
|
||||
easeInQuad: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t + b;
|
||||
},
|
||||
easeOutQuad: function (x, t, b, c, d) {
|
||||
return -c *(t/=d)*(t-2) + b;
|
||||
},
|
||||
easeInOutQuad: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t + b;
|
||||
return -c/2 * ((--t)*(t-2) - 1) + b;
|
||||
},
|
||||
easeInCubic: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t + b;
|
||||
},
|
||||
easeOutCubic: function (x, t, b, c, d) {
|
||||
return c*((t=t/d-1)*t*t + 1) + b;
|
||||
},
|
||||
easeInOutCubic: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
||||
return c/2*((t-=2)*t*t + 2) + b;
|
||||
},
|
||||
easeInQuart: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t*t + b;
|
||||
},
|
||||
easeOutQuart: function (x, t, b, c, d) {
|
||||
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
||||
},
|
||||
easeInOutQuart: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
||||
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
||||
},
|
||||
easeInQuint: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t*t*t + b;
|
||||
},
|
||||
easeOutQuint: function (x, t, b, c, d) {
|
||||
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
||||
},
|
||||
easeInOutQuint: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
||||
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
||||
},
|
||||
easeInSine: function (x, t, b, c, d) {
|
||||
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
||||
},
|
||||
easeOutSine: function (x, t, b, c, d) {
|
||||
return c * Math.sin(t/d * (Math.PI/2)) + b;
|
||||
},
|
||||
easeInOutSine: function (x, t, b, c, d) {
|
||||
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
||||
},
|
||||
easeInExpo: function (x, t, b, c, d) {
|
||||
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
|
||||
},
|
||||
easeOutExpo: function (x, t, b, c, d) {
|
||||
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
||||
},
|
||||
easeInOutExpo: function (x, t, b, c, d) {
|
||||
if (t==0) return b;
|
||||
if (t==d) return b+c;
|
||||
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
||||
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
||||
},
|
||||
easeInCirc: function (x, t, b, c, d) {
|
||||
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
||||
},
|
||||
easeOutCirc: function (x, t, b, c, d) {
|
||||
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
||||
},
|
||||
easeInOutCirc: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
||||
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
||||
},
|
||||
easeInElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
||||
},
|
||||
easeOutElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
|
||||
},
|
||||
easeInOutElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
||||
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
|
||||
},
|
||||
easeInBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
return c*(t/=d)*t*((s+1)*t - s) + b;
|
||||
},
|
||||
easeOutBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
||||
},
|
||||
easeInOutBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
||||
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
||||
},
|
||||
easeInBounce: function (x, t, b, c, d) {
|
||||
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
|
||||
},
|
||||
easeOutBounce: function (x, t, b, c, d) {
|
||||
if ((t/=d) < (1/2.75)) {
|
||||
return c*(7.5625*t*t) + b;
|
||||
} else if (t < (2/2.75)) {
|
||||
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
||||
} else if (t < (2.5/2.75)) {
|
||||
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
||||
} else {
|
||||
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
||||
}
|
||||
},
|
||||
easeInOutBounce: function (x, t, b, c, d) {
|
||||
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
|
||||
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
*
|
||||
* TERMS OF USE - EASING EQUATIONS
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright ?? 2001 Robert Penner
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
@@ -0,0 +1,85 @@
|
||||
/*!
|
||||
* Media helper for fancyBox
|
||||
* version: 1.0.0
|
||||
* @requires fancyBox v2.0 or later
|
||||
*
|
||||
* Usage:
|
||||
* $(".fancybox").fancybox({
|
||||
* media: {}
|
||||
* });
|
||||
*
|
||||
* Supports:
|
||||
* Youtube
|
||||
* http://www.youtube.com/watch?v=opj24KnzrWo
|
||||
* http://youtu.be/opj24KnzrWo
|
||||
* Vimeo
|
||||
* http://vimeo.com/25634903
|
||||
* Metacafe
|
||||
* http://www.metacafe.com/watch/7635964/dr_seuss_the_lorax_movie_trailer/
|
||||
* http://www.metacafe.com/watch/7635964/
|
||||
* Dailymotion
|
||||
* http://www.dailymotion.com/video/xoytqh_dr-seuss-the-lorax-premiere_people
|
||||
* Twitvid
|
||||
* http://twitvid.com/QY7MD
|
||||
* Twitpic
|
||||
* http://twitpic.com/7p93st
|
||||
* Instagram
|
||||
* http://instagr.am/p/IejkuUGxQn/
|
||||
* http://instagram.com/p/IejkuUGxQn/
|
||||
* Google maps
|
||||
* http://maps.google.com/maps?q=Eiffel+Tower,+Avenue+Gustave+Eiffel,+Paris,+France&t=h&z=17
|
||||
* http://maps.google.com/?ll=48.857995,2.294297&spn=0.007666,0.021136&t=m&z=16
|
||||
* http://maps.google.com/?ll=48.859463,2.292626&spn=0.000965,0.002642&t=m&z=19&layer=c&cbll=48.859524,2.292532&panoid=YJ0lq28OOy3VT2IqIuVY0g&cbp=12,151.58,,0,-15.56
|
||||
*/
|
||||
(function ($) {
|
||||
//Shortcut for fancyBox object
|
||||
var F = $.fancybox;
|
||||
|
||||
//Add helper object
|
||||
F.helpers.media = {
|
||||
beforeLoad : function(opts, obj) {
|
||||
var href = obj.href || '',
|
||||
type = false,
|
||||
rez;
|
||||
|
||||
if ((rez = href.match(/(youtube\.com|youtu\.be)\/(v\/|u\/|embed\/|watch\?v=)?([^#\&\?]*).*/i))) {
|
||||
href = '//www.youtube.com/embed/' + rez[3] + '?autoplay=1&autohide=1&fs=1&rel=0&enablejsapi=1';
|
||||
type = 'iframe';
|
||||
|
||||
} else if ((rez = href.match(/vimeo.com\/(\d+)\/?(.*)/))) {
|
||||
href = '//player.vimeo.com/video/' + rez[1] + '?hd=1&autoplay=1&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1';
|
||||
type = 'iframe';
|
||||
|
||||
} else if ((rez = href.match(/metacafe.com\/watch\/(\d+)\/?(.*)/))) {
|
||||
href = '//www.metacafe.com/fplayer/' + rez[1] + '/.swf?playerVars=autoPlay=yes';
|
||||
type = 'swf';
|
||||
|
||||
} else if ((rez = href.match(/dailymotion.com\/video\/(.*)\/?(.*)/))) {
|
||||
href = '//www.dailymotion.com/swf/video/' + rez[1] + '?additionalInfos=0&autoStart=1';
|
||||
type = 'swf';
|
||||
|
||||
} else if ((rez = href.match(/twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i))) {
|
||||
href = '//www.twitvid.com/embed.php?autoplay=0&guid=' + rez[1];
|
||||
type = 'iframe';
|
||||
|
||||
} else if ((rez = href.match(/twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i))) {
|
||||
href = '//twitpic.com/show/full/' + rez[1];
|
||||
type = 'image';
|
||||
|
||||
} else if ((rez = href.match(/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i))) {
|
||||
href = '//' + rez[1] + '/p/' + rez[2] + '/media/?size=l';
|
||||
type = 'image';
|
||||
|
||||
} else if ((rez = href.match(/maps\.google\.com\/(\?ll=|maps\/?\?q=)(.*)/i))) {
|
||||
href = '//maps.google.com/' + rez[1] + '' + rez[2] + '&output=' + (rez[2].indexOf('layer=c') ? 'svembed' : 'embed');
|
||||
type = 'iframe';
|
||||
}
|
||||
|
||||
if (type) {
|
||||
obj.href = href;
|
||||
obj.type = type;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}(jQuery));
|
||||
@@ -0,0 +1,157 @@
|
||||
/*!
|
||||
* Thumbnail helper for fancyBox
|
||||
* version: 1.0.4
|
||||
* @requires fancyBox v2.0 or later
|
||||
*
|
||||
* Usage:
|
||||
* $(".fancybox").fancybox({
|
||||
* thumbs: {
|
||||
* width : 50,
|
||||
* height : 50
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* Options:
|
||||
* width - thumbnail width
|
||||
* height - thumbnail height
|
||||
* source - function to obtain the URL of the thumbnail image
|
||||
* position - 'top' or 'bottom'
|
||||
*
|
||||
*/
|
||||
(function ($) {
|
||||
//Shortcut for fancyBox object
|
||||
var F = $.fancybox;
|
||||
|
||||
//Add helper object
|
||||
F.helpers.thumbs = {
|
||||
wrap: null,
|
||||
list: null,
|
||||
width: 0,
|
||||
|
||||
//Default function to obtain the URL of the thumbnail image
|
||||
source: function (el) {
|
||||
var img;
|
||||
|
||||
if ($.type(el) === 'string') {
|
||||
return el;
|
||||
}
|
||||
|
||||
img = $(el).find('img');
|
||||
|
||||
return img.length ? img.attr('src') : el.href;
|
||||
},
|
||||
|
||||
init: function (opts) {
|
||||
var that = this,
|
||||
list,
|
||||
thumbWidth = opts.width || 50,
|
||||
thumbHeight = opts.height || 50,
|
||||
thumbSource = opts.source || this.source;
|
||||
|
||||
//Build list structure
|
||||
list = '';
|
||||
|
||||
for (var n = 0; n < F.group.length; n++) {
|
||||
list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');"></a></li>';
|
||||
}
|
||||
|
||||
this.wrap = $('<div id="fancybox-thumbs"></div>').addClass(opts.position || 'bottom').appendTo('body');
|
||||
this.list = $('<ul>' + list + '</ul>').appendTo(this.wrap);
|
||||
|
||||
//Load each thumbnail
|
||||
$.each(F.group, function (i) {
|
||||
$("<img />").load(function () {
|
||||
var width = this.width,
|
||||
height = this.height,
|
||||
widthRatio, heightRatio, parent;
|
||||
|
||||
if (!that.list || !width || !height) {
|
||||
return;
|
||||
}
|
||||
|
||||
//Calculate thumbnail width/height and center it
|
||||
widthRatio = width / thumbWidth;
|
||||
heightRatio = height / thumbHeight;
|
||||
parent = that.list.children().eq(i).find('a');
|
||||
|
||||
if (widthRatio >= 1 && heightRatio >= 1) {
|
||||
if (widthRatio > heightRatio) {
|
||||
width = Math.floor(width / heightRatio);
|
||||
height = thumbHeight;
|
||||
|
||||
} else {
|
||||
width = thumbWidth;
|
||||
height = Math.floor(height / widthRatio);
|
||||
}
|
||||
}
|
||||
|
||||
$(this).css({
|
||||
width: width,
|
||||
height: height,
|
||||
top: Math.floor(thumbHeight / 2 - height / 2),
|
||||
left: Math.floor(thumbWidth / 2 - width / 2)
|
||||
});
|
||||
|
||||
parent.width(thumbWidth).height(thumbHeight);
|
||||
|
||||
$(this).hide().appendTo(parent).fadeIn(300);
|
||||
|
||||
}).attr('src', thumbSource( F.group[ i ] ));
|
||||
});
|
||||
|
||||
//Set initial width
|
||||
this.width = this.list.children().eq(0).outerWidth(true);
|
||||
|
||||
this.list.width(this.width * (F.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (F.current.index * this.width + this.width * 0.5)));
|
||||
},
|
||||
|
||||
//Center list
|
||||
update: function (opts) {
|
||||
if (this.list) {
|
||||
this.list.stop(true).animate({
|
||||
'left': Math.floor($(window).width() * 0.5 - (F.current.index * this.width + this.width * 0.5))
|
||||
}, 150);
|
||||
}
|
||||
},
|
||||
|
||||
beforeLoad: function (opts) {
|
||||
//Remove self if gallery do not have at least two items
|
||||
if (F.group.length < 2) {
|
||||
F.coming.helpers.thumbs = false;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
//Increase bottom margin to give space for thumbs
|
||||
F.coming.margin[ opts.position === 'top' ? 0 : 2 ] = opts.height + 30;
|
||||
},
|
||||
|
||||
afterShow: function (opts) {
|
||||
//Check if exists and create or update list
|
||||
if (this.list) {
|
||||
this.update(opts);
|
||||
|
||||
} else {
|
||||
this.init(opts);
|
||||
}
|
||||
|
||||
//Set active element
|
||||
this.list.children().removeClass('active').eq(F.current.index).addClass('active');
|
||||
},
|
||||
|
||||
onUpdate: function () {
|
||||
this.update();
|
||||
},
|
||||
|
||||
beforeClose: function () {
|
||||
if (this.wrap) {
|
||||
this.wrap.remove();
|
||||
}
|
||||
|
||||
this.wrap = null;
|
||||
this.list = null;
|
||||
this.width = 0;
|
||||
}
|
||||
}
|
||||
|
||||
}(jQuery));
|
||||
@@ -0,0 +1,105 @@
|
||||
/*! fancyBox v2.0.6 fancyapps.com | fancyapps.com/fancybox/#license */
|
||||
(function(s,l,d,t){var m=d(s),q=d(l),a=d.fancybox=function(){a.open.apply(this,arguments)},u=!1,k=l.createTouch!==t,o=function(a){return"string"===d.type(a)},n=function(b,c){c&&o(b)&&0<b.indexOf("%")&&(b=a.getViewport()[c]/100*parseInt(b,10));return Math.round(b)+"px"};d.extend(a,{version:"2.0.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:!0,autoResize:!k,autoCenter:!k,fitToView:!0,aspectRatio:!1,topRatio:0.5,fixed:!1,scrolling:"auto",
|
||||
wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},keys:{next:[13,32,34,39,40],prev:[8,33,37,38],close:[27]},tpl:{wrap:'<div class="fancybox-wrap"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe class="fancybox-iframe" name="fancybox-frame{rnd}" frameborder="0" hspace="0"'+
|
||||
(d.browser.msie?' allowtransparency="true"':"")+"></iframe>",swf:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{href}" /><embed src="{href}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="100%" height="100%" wmode="transparent"></embed></object>',error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',
|
||||
closeBtn:'<div title="Close" class="fancybox-item fancybox-close"></div>',next:'<a title="Next" class="fancybox-nav fancybox-next"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev"><span></span></a>'},openEffect:"fade",openSpeed:300,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:300,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:300,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",
|
||||
prevSpeed:300,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:{speedIn:0,speedOut:300,opacity:0.8,css:{cursor:"pointer"},closeClick:!0},title:{type:"float"}}},group:{},opts:{},coming:null,current:null,isOpen:!1,isOpened:!1,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(b,c){a.close(!0);b&&!d.isArray(b)&&(b=b instanceof d?d(b).get():[b]);a.isActive=!0;a.opts=d.extend(!0,{},a.defaults,c);d.isPlainObject(c)&&c.keys!==t&&(a.opts.keys=c.keys?
|
||||
d.extend({},a.defaults.keys,c.keys):!1);a.group=b;a._start(a.opts.index||0)},cancel:function(){a.coming&&!1===a.trigger("onCancel")||(a.coming=null,a.hideLoading(),a.ajaxLoad&&a.ajaxLoad.abort(),a.ajaxLoad=null,a.imgPreload&&(a.imgPreload.onload=a.imgPreload.onabort=a.imgPreload.onerror=null))},close:function(b){a.cancel();a.current&&!1!==a.trigger("beforeClose")&&(a.unbindEvents(),!a.isOpen||b&&!0===b[0]?(d(".fancybox-wrap").stop().trigger("onReset").remove(),a._afterZoomOut()):(a.isOpen=a.isOpened=
|
||||
!1,d(".fancybox-item, .fancybox-nav").remove(),a.wrap.stop(!0).removeClass("fancybox-opened"),a.inner.css("overflow","hidden"),a.transitions[a.current.closeMethod]()))},play:function(b){var c=function(){clearTimeout(a.player.timer)},e=function(){c();a.current&&a.player.isActive&&(a.player.timer=setTimeout(a.next,a.current.playSpeed))},f=function(){c();d("body").unbind(".player");a.player.isActive=!1;a.trigger("onPlayEnd")};if(a.player.isActive||b&&!1===b[0])f();else if(a.current&&(a.current.loop||
|
||||
a.current.index<a.group.length-1))a.player.isActive=!0,d("body").bind({"afterShow.player onUpdate.player":e,"onCancel.player beforeClose.player":f,"beforeLoad.player":c}),e(),a.trigger("onPlayStart")},next:function(){a.current&&a.jumpto(a.current.index+1)},prev:function(){a.current&&a.jumpto(a.current.index-1)},jumpto:function(b){a.current&&(b=parseInt(b,10),1<a.group.length&&a.current.loop&&(b>=a.group.length?b=0:0>b&&(b=a.group.length-1)),a.group[b]!==t&&(a.cancel(),a._start(b)))},reposition:function(b,
|
||||
c){var e;a.isOpen&&(e=a._getPosition(c),b&&"scroll"===b.type?(delete e.position,a.wrap.stop(!0,!0).animate(e,200)):a.wrap.css(e))},update:function(b){a.isOpen&&(u||setTimeout(function(){var c=a.current,e=!b||b&&"orientationchange"===b.type;if(u&&(u=!1,c)){if(!b||"scroll"!==b.type||e)c.autoSize&&"iframe"!==c.type&&(a.inner.height("auto"),c.height=a.inner.height()),(c.autoResize||e)&&a._setDimension(),c.canGrow&&"iframe"!==c.type&&a.inner.height("auto");(c.autoCenter||e)&&a.reposition(b);a.trigger("onUpdate")}},
|
||||
200),u=!0)},toggle:function(){a.isOpen&&(a.current.fitToView=!a.current.fitToView,a.update())},hideLoading:function(){q.unbind("keypress.fb");d("#fancybox-loading").remove()},showLoading:function(){a.hideLoading();q.bind("keypress.fb",function(b){27===b.keyCode&&(b.preventDefault(),a.cancel())});d('<div id="fancybox-loading"><div></div></div>').click(a.cancel).appendTo("body")},getViewport:function(){return{x:m.scrollLeft(),y:m.scrollTop(),w:k&&s.innerWidth?s.innerWidth:m.width(),h:k&&s.innerHeight?
|
||||
s.innerHeight:m.height()}},unbindEvents:function(){a.wrap&&a.wrap.unbind(".fb");q.unbind(".fb");m.unbind(".fb")},bindEvents:function(){var b=a.current,c=b.keys;b&&(m.bind("resize.fb orientationchange.fb"+(b.autoCenter&&!b.fixed?" scroll.fb":""),a.update),c&&q.bind("keydown.fb",function(b){var f;f=b.target||b.srcElement;if(!b.ctrlKey&&!b.altKey&&!b.shiftKey&&!b.metaKey&&(!f||!f.type&&!d(f).is("[contenteditable]")))f=b.keyCode,-1<d.inArray(f,c.close)?(a.close(),b.preventDefault()):-1<d.inArray(f,c.next)?
|
||||
(a.next(),b.preventDefault()):-1<d.inArray(f,c.prev)&&(a.prev(),b.preventDefault())}),d.fn.mousewheel&&b.mouseWheel&&1<a.group.length&&a.wrap.bind("mousewheel.fb",function(b,c){var d=b.target||null;if(0!==c&&(!d||0===d.clientHeight||d.scrollHeight===d.clientHeight&&d.scrollWidth===d.clientWidth))b.preventDefault(),a[0<c?"prev":"next"]()}))},trigger:function(b,c){var e,f=c||a[-1<d.inArray(b,["onCancel","beforeLoad","afterLoad"])?"coming":"current"];if(f){d.isFunction(f[b])&&(e=f[b].apply(f,Array.prototype.slice.call(arguments,
|
||||
1)));if(!1===e)return!1;f.helpers&&d.each(f.helpers,function(c,e){if(e&&d.isPlainObject(a.helpers[c])&&d.isFunction(a.helpers[c][b]))a.helpers[c][b](e,f)});d.event.trigger(b+".fb")}},isImage:function(a){return o(a)&&a.match(/\.(jpe?g|gif|png|bmp)((\?|#).*)?$/i)},isSWF:function(a){return o(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(b){var c={},e=a.group[b]||null,f,g,i;if(e&&(e.nodeType||e instanceof d))f=!0,d.metadata&&(c=d(e).metadata());c=d.extend(!0,{},a.opts,{index:b,element:e},d.isPlainObject(e)?
|
||||
e:c);d.each(["href","title","content","type"],function(b,g){c[g]=a.opts[g]||f&&d(e).attr(g)||c[g]||null});"number"===typeof c.margin&&(c.margin=[c.margin,c.margin,c.margin,c.margin]);c.modal&&d.extend(!0,c,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{css:{cursor:"auto"},closeClick:!1}}});a.coming=c;if(!1===a.trigger("beforeLoad"))a.coming=null;else{g=c.type;b=c.href||e;g||(f&&(g=d(e).data("fancybox-type"),g||(g=(g=e.className.match(/fancybox\.(\w+)/))?
|
||||
g[1]:null)),!g&&o(b)&&(a.isImage(b)?g="image":a.isSWF(b)?g="swf":b.match(/^#/)&&(g="inline")),g||(g=f?"inline":"html"),c.type=g);if("inline"===g||"html"===g){if(c.content||(c.content="inline"===g?d(o(b)?b.replace(/.*(?=#[^\s]+$)/,""):b):e),!c.content||!c.content.length)g=null}else b||(g=null);"ajax"===g&&o(b)&&(i=b.split(/\s+/,2),b=i.shift(),c.selector=i.shift());c.href=b;c.group=a.group;c.isDom=f;switch(g){case "image":a._loadImage();break;case "ajax":a._loadAjax();break;case "inline":case "iframe":case "swf":case "html":a._afterLoad();
|
||||
break;default:a._error("type")}}},_error:function(b){a.hideLoading();d.extend(a.coming,{type:"html",autoSize:!0,minWidth:0,minHeight:0,padding:15,hasError:b,content:a.coming.tpl.error});a._afterLoad()},_loadImage:function(){var b=a.imgPreload=new Image;b.onload=function(){this.onload=this.onerror=null;a.coming.width=this.width;a.coming.height=this.height;a._afterLoad()};b.onerror=function(){this.onload=this.onerror=null;a._error("image")};b.src=a.coming.href;(b.complete===t||!b.complete)&&a.showLoading()},
|
||||
_loadAjax:function(){a.showLoading();a.ajaxLoad=d.ajax(d.extend({},a.coming.ajax,{url:a.coming.href,error:function(b,c){a.coming&&"abort"!==c?a._error("ajax",b):a.hideLoading()},success:function(b,c){"success"===c&&(a.coming.content=b,a._afterLoad())}}))},_preloadImages:function(){var b=a.group,c=a.current,e=b.length,f,g,i,h=Math.min(c.preload,e-1);if(c.preload&&!(2>b.length))for(i=1;i<=h;i+=1)if(f=b[(c.index+i)%e],g=f.href||d(f).attr("href")||f,"image"===f.type||a.isImage(g))(new Image).src=g},_afterLoad:function(){a.hideLoading();
|
||||
!a.coming||!1===a.trigger("afterLoad",a.current)?a.coming=!1:(a.isOpened?(d(".fancybox-item, .fancybox-nav").remove(),a.wrap.stop(!0).removeClass("fancybox-opened"),a.inner.css("overflow","hidden"),a.transitions[a.current.prevMethod]()):(d(".fancybox-wrap").stop().trigger("onReset").remove(),a.trigger("afterClose")),a.unbindEvents(),a.isOpen=!1,a.current=a.coming,a.wrap=d(a.current.tpl.wrap).addClass("fancybox-"+(k?"mobile":"desktop")+" fancybox-type-"+a.current.type+" fancybox-tmp "+a.current.wrapCSS).appendTo("body"),
|
||||
a.skin=d(".fancybox-skin",a.wrap).css("padding",n(a.current.padding)),a.outer=d(".fancybox-outer",a.wrap),a.inner=d(".fancybox-inner",a.wrap),a._setContent())},_setContent:function(){var b=a.current,c=b.content,e=b.type,f=b.minWidth,g=b.minHeight,i=b.maxWidth,h=b.maxHeight;switch(e){case "inline":case "ajax":case "html":b.selector?c=d("<div>").html(c).find(b.selector):c instanceof d&&(c.parent().hasClass("fancybox-inner")&&c.parents(".fancybox-wrap").unbind("onReset"),c=c.show().detach(),d(a.wrap).bind("onReset",
|
||||
function(){c.appendTo("body").hide()}));b.autoSize&&(f=d('<div class="fancybox-wrap '+a.current.wrapCSS+' fancybox-tmp"></div>').appendTo("body").css({minWidth:n(f,"w"),minHeight:n(g,"h"),maxWidth:n(i,"w"),maxHeight:n(h,"h")}).append(c),b.width=f.width(),b.height=f.height(),f.width(a.current.width),f.height()>b.height&&(f.width(b.width+1),b.width=f.width(),b.height=f.height()),c=f.contents().detach(),f.remove());break;case "image":c=b.tpl.image.replace("{href}",b.href);b.aspectRatio=!0;break;case "swf":c=
|
||||
b.tpl.swf.replace(/\{width\}/g,b.width).replace(/\{height\}/g,b.height).replace(/\{href\}/g,b.href);break;case "iframe":c=d(b.tpl.iframe.replace("{rnd}",(new Date).getTime())).attr("scrolling",b.scrolling).attr("src",b.href),b.scrolling=k?"scroll":"auto"}if("image"===e||"swf"===e)b.autoSize=!1,b.scrolling="visible";"iframe"===e&&b.autoSize?(a.showLoading(),a._setDimension(),a.inner.css("overflow",b.scrolling),c.bind({onCancel:function(){d(this).unbind();a._afterZoomOut()},load:function(){a.hideLoading();
|
||||
try{this.contentWindow.document.location&&(a.current.height=d(this).contents().find("body").height())}catch(b){a.current.autoSize=!1}a[a.isOpen?"_afterZoomIn":"_beforeShow"]()}}).appendTo(a.inner)):(a.inner.append(c),a._beforeShow())},_beforeShow:function(){a.coming=null;a.trigger("beforeShow");a._setDimension();a.wrap.hide().removeClass("fancybox-tmp");a.bindEvents();a._preloadImages();a.transitions[a.isOpened?a.current.nextMethod:a.current.openMethod]()},_setDimension:function(){var b=a.wrap,c=
|
||||
a.inner,e=a.current,f=a.getViewport(),g=e.margin,i=2*e.padding,h=e.width,j=e.height,r=e.maxWidth+i,k=e.maxHeight+i,l=e.minWidth+i,m=e.minHeight+i,p;f.w-=g[1]+g[3];f.h-=g[0]+g[2];o(h)&&0<h.indexOf("%")&&(h=(f.w-i)*parseFloat(h)/100);o(j)&&0<j.indexOf("%")&&(j=(f.h-i)*parseFloat(j)/100);g=h/j;h+=i;j+=i;e.fitToView&&(r=Math.min(f.w,r),k=Math.min(f.h,k));if(e.aspectRatio){if(h>r&&(h=r,j=(h-i)/g+i),j>k&&(j=k,h=(j-i)*g+i),h<l&&(h=l,j=(h-i)/g+i),j<m)j=m,h=(j-i)*g+i}else h=Math.max(l,Math.min(h,r)),j=Math.max(m,
|
||||
Math.min(j,k));h=Math.round(h);j=Math.round(j);d(b.add(c)).width("auto").height("auto");c.width(h-i).height(j-i);b.width(h);p=b.height();if(h>r||p>k)for(;(h>r||p>k)&&h>l&&p>m;)j-=10,e.aspectRatio?(h=Math.round((j-i)*g+i),h<l&&(h=l,j=(h-i)/g+i)):h-=10,c.width(h-i).height(j-i),b.width(h),p=b.height();e.dim={width:n(h),height:n(p)};e.canGrow=e.autoSize&&j>m&&j<k;e.canShrink=!1;e.canExpand=!1;if(h-i<e.width||j-i<e.height)e.canExpand=!0;else if((h>f.w||p>f.h)&&h>l&&j>m)e.canShrink=!0;a.innerSpace=p-i-
|
||||
c.height()},_getPosition:function(b){var c=a.current,e=a.getViewport(),f=c.margin,d=a.wrap.width()+f[1]+f[3],i=a.wrap.height()+f[0]+f[2],h={position:"absolute",top:f[0]+e.y,left:f[3]+e.x};c.autoCenter&&c.fixed&&!b&&i<=e.h&&d<=e.w&&(h={position:"fixed",top:f[0],left:f[3]});h.top=n(Math.max(h.top,h.top+(e.h-i)*c.topRatio));h.left=n(Math.max(h.left,h.left+0.5*(e.w-d)));return h},_afterZoomIn:function(){var b=a.current,c=b?b.scrolling:"no";if(b&&(a.isOpen=a.isOpened=!0,a.wrap.addClass("fancybox-opened"),
|
||||
a.inner.css("overflow","yes"===c?"scroll":"no"===c?"hidden":c),a.trigger("afterShow"),a.update(),(b.closeClick||b.nextClick)&&a.inner.css("cursor","pointer").bind("click.fb",function(c){if(!d(c.target).is("a")&&!d(c.target).parent().is("a"))a[b.closeClick?"close":"next"]()}),b.closeBtn&&d(b.tpl.closeBtn).appendTo(a.skin).bind("click.fb",a.close),b.arrows&&1<a.group.length&&((b.loop||0<b.index)&&d(b.tpl.prev).appendTo(a.outer).bind("click.fb",a.prev),(b.loop||b.index<a.group.length-1)&&d(b.tpl.next).appendTo(a.outer).bind("click.fb",
|
||||
a.next)),a.opts.autoPlay&&!a.player.isActive))a.opts.autoPlay=!1,a.play()},_afterZoomOut:function(){var b=a.current;a.wrap.trigger("onReset").remove();d.extend(a,{group:{},opts:{},current:null,isActive:!1,isOpened:!1,isOpen:!1,wrap:null,skin:null,outer:null,inner:null});a.trigger("afterClose",b)}});a.transitions={getOrigPosition:function(){var b=a.current,c=b.element,e=b.padding,f=d(b.orig),g={},i=50,h=50;!f.length&&b.isDom&&d(c).is(":visible")&&(f=d(c).find("img:first"),f.length||(f=d(c)));f.length?
|
||||
(g=f.offset(),f.is("img")&&(i=f.outerWidth(),h=f.outerHeight())):(b=a.getViewport(),g.top=b.y+0.5*(b.h-h),g.left=b.x+0.5*(b.w-i));return g={top:n(g.top-e),left:n(g.left-e),width:n(i+2*e),height:n(h+2*e)}},step:function(b,c){var e=c.prop,d,g;if("width"===e||"height"===e)d=Math.ceil(b-2*a.current.padding),"height"===e&&(g=(b-c.start)/(c.end-c.start),c.start>c.end&&(g=1-g),d-=a.innerSpace*g),a.inner[e](d)},zoomIn:function(){var b=a.wrap,c=a.current,e=c.openEffect,f="elastic"===e,g=d.extend({},c.dim,
|
||||
a._getPosition(f)),i=d.extend({opacity:1},g);delete i.position;f?(g=this.getOrigPosition(),c.openOpacity&&(g.opacity=0),a.outer.add(a.inner).width("auto").height("auto")):"fade"===e&&(g.opacity=0);b.css(g).show().animate(i,{duration:"none"===e?0:c.openSpeed,easing:c.openEasing,step:f?this.step:null,complete:a._afterZoomIn})},zoomOut:function(){var b=a.wrap,c=a.current,d=c.openEffect,f="elastic"===d,g={opacity:0};f&&("fixed"===b.css("position")&&b.css(a._getPosition(!0)),g=this.getOrigPosition(),c.closeOpacity&&
|
||||
(g.opacity=0));b.animate(g,{duration:"none"===d?0:c.closeSpeed,easing:c.closeEasing,step:f?this.step:null,complete:a._afterZoomOut})},changeIn:function(){var b=a.wrap,c=a.current,d=c.nextEffect,f="elastic"===d,g=a._getPosition(f),i={opacity:1};g.opacity=0;f&&(g.top=n(parseInt(g.top,10)-200),i.top="+=200px");b.css(g).show().animate(i,{duration:"none"===d?0:c.nextSpeed,easing:c.nextEasing,complete:a._afterZoomIn})},changeOut:function(){var b=a.wrap,c=a.current,e=c.prevEffect,f={opacity:0};b.removeClass("fancybox-opened");
|
||||
"elastic"===e&&(f.top="+=200px");b.animate(f,{duration:"none"===e?0:c.prevSpeed,easing:c.prevEasing,complete:function(){d(this).trigger("onReset").remove()}})}};a.helpers.overlay={overlay:null,update:function(){var a,c;this.overlay.width("100%").height("100%");d.browser.msie||k?(a=Math.max(l.documentElement.scrollWidth,l.body.scrollWidth),c=Math.max(l.documentElement.offsetWidth,l.body.offsetWidth),a=a<c?m.width():a):a=q.width();this.overlay.width(a).height(q.height())},beforeShow:function(b){this.overlay||
|
||||
(b=d.extend(!0,{},a.defaults.helpers.overlay,b),this.overlay=d('<div id="fancybox-overlay"></div>').css(b.css).appendTo("body"),b.closeClick&&this.overlay.bind("click.fb",a.close),a.current.fixed&&!k?this.overlay.addClass("overlay-fixed"):(this.update(),this.onUpdate=function(){this.update()}),this.overlay.fadeTo(b.speedIn,b.opacity))},afterClose:function(a){this.overlay&&this.overlay.fadeOut(a.speedOut||0,function(){d(this).remove()});this.overlay=null}};a.helpers.title={beforeShow:function(b){var c;
|
||||
if(c=a.current.title)c=d('<div class="fancybox-title fancybox-title-'+b.type+'-wrap">'+c+"</div>").appendTo("body"),"float"===b.type&&(c.width(c.width()),c.wrapInner('<span class="child"></span>'),a.current.margin[2]+=Math.abs(parseInt(c.css("margin-bottom"),10))),c.appendTo("over"===b.type?a.inner:"outside"===b.type?a.wrap:a.skin)}};d.fn.fancybox=function(b){var c=d(this),e=this.selector||"",f,g=function(g){var h=this,j=f,k;!g.ctrlKey&&!g.altKey&&!g.shiftKey&&!g.metaKey&&!d(h).is(".fancybox-wrap")&&
|
||||
(g.preventDefault(),g=b.groupAttr||"data-fancybox-group",k=d(h).attr(g),k||(g="rel",k=h[g]),k&&""!==k&&"nofollow"!==k&&(h=e.length?d(e):c,h=h.filter("["+g+'="'+k+'"]'),j=h.index(this)),b.index=j,a.open(h,b))},b=b||{};f=b.index||0;e?q.undelegate(e,"click.fb-start").delegate(e,"click.fb-start",g):c.unbind("click.fb-start").bind("click.fb-start",g);return this};d(l).ready(function(){a.defaults.fixed=d.support.fixedPosition||!(d.browser.msie&&6>=d.browser.version)&&!k})})(window,document,jQuery);
|
||||
|
||||
// transition effect
|
||||
(function ($, F) {
|
||||
F.transitions.resizeIn = function() {
|
||||
var endPos = $.extend({}, F.current.dim, F._getPosition(true));
|
||||
var startPos;
|
||||
|
||||
startPos = F.tmpWrap.position();
|
||||
|
||||
startPos.width = F.tmpWrap.width();
|
||||
startPos.height = F.tmpWrap.height();
|
||||
|
||||
F.inner
|
||||
.css('overflow', 'hidden')
|
||||
.width( F.tmpInner.width() )
|
||||
.height( F.tmpInner.height() )
|
||||
.css('opacity', 0);
|
||||
|
||||
F.wrap.css(startPos).show();
|
||||
|
||||
F.tmpWrap.trigger('onReset').remove();
|
||||
|
||||
F.wrap.animate(endPos, {
|
||||
duration: F.current.nextSpeed,
|
||||
step : F.transitions.step,
|
||||
complete: function() {
|
||||
setTimeout(function() {
|
||||
F.inner.fadeTo("fast", 1, F._afterZoomIn);
|
||||
}, 1);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
F.transitions.resizeOut = function() {
|
||||
if (F.tmpWrap) {
|
||||
F.tmpWrap.stop(true).trigger('onReset').remove();
|
||||
}
|
||||
|
||||
F.tmpWrap = F.wrap.stop(true, true);
|
||||
F.tmpInner = F.inner.stop(true, true);
|
||||
};
|
||||
|
||||
}(jQuery, jQuery.fancybox));
|
||||
|
||||
// theme script
|
||||
jQuery(document).ready(function() {
|
||||
//jQuery('a[href$=".jpg"],a[href$=".png"],a[href$=".gif"]').not('[data-rel="fancybox"]').attr("data-rel", "fancybox");
|
||||
if( ATTR.enable == 'enable' ){
|
||||
jQuery('[data-rel="fancybox"]').fancybox({
|
||||
nextMethod : 'resizeIn',
|
||||
nextSpeed : 250,
|
||||
prevMethod : 'resizeOut',
|
||||
prevSpeed : 250,
|
||||
helpers : {
|
||||
media : {},
|
||||
thumbs : { width: parseInt(ATTR.width), height: parseInt(ATTR.height) }
|
||||
}
|
||||
});
|
||||
}else{
|
||||
jQuery('[data-rel="fancybox"]').fancybox({
|
||||
nextMethod : 'resizeIn',
|
||||
nextSpeed : 250,
|
||||
prevMethod : 'resizeOut',
|
||||
prevSpeed : 250,
|
||||
helpers : {
|
||||
media : {}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* Isotope v1.5.19
|
||||
* An exquisite jQuery plugin for magical layouts
|
||||
* http://isotope.metafizzy.co
|
||||
*
|
||||
* Commercial use requires one-time license fee
|
||||
* http://metafizzy.co/#licenses
|
||||
*
|
||||
* Copyright 2012 David DeSandro / Metafizzy
|
||||
*/
|
||||
(function(a,b,c){"use strict";var d=a.document,e=a.Modernizr,f=function(a){return a.charAt(0).toUpperCase()+a.slice(1)},g="Moz Webkit O Ms".split(" "),h=function(a){var b=d.documentElement.style,c;if(typeof b[a]=="string")return a;a=f(a);for(var e=0,h=g.length;e<h;e++){c=g[e]+a;if(typeof b[c]=="string")return c}},i=h("transform"),j=h("transitionProperty"),k={csstransforms:function(){return!!i},csstransforms3d:function(){var a=!!h("perspective");if(a){var c=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),d="@media ("+c.join("transform-3d),(")+"modernizr)",e=b("<style>"+d+"{#modernizr{height:3px}}"+"</style>").appendTo("head"),f=b('<div id="modernizr" />').appendTo("html");a=f.height()===3,f.remove(),e.remove()}return a},csstransitions:function(){return!!j}},l;if(e)for(l in k)e.hasOwnProperty(l)||e.addTest(l,k[l]);else{e=a.Modernizr={_version:"1.6ish: miniModernizr for Isotope"};var m=" ",n;for(l in k)n=k[l](),e[l]=n,m+=" "+(n?"":"no-")+l;b("html").addClass(m)}if(e.csstransforms){var o=e.csstransforms3d?{translate:function(a){return"translate3d("+a[0]+"px, "+a[1]+"px, 0) "},scale:function(a){return"scale3d("+a+", "+a+", 1) "}}:{translate:function(a){return"translate("+a[0]+"px, "+a[1]+"px) "},scale:function(a){return"scale("+a+") "}},p=function(a,c,d){var e=b.data(a,"isoTransform")||{},f={},g,h={},j;f[c]=d,b.extend(e,f);for(g in e)j=e[g],h[g]=o[g](j);var k=h.translate||"",l=h.scale||"",m=k+l;b.data(a,"isoTransform",e),a.style[i]=m};b.cssNumber.scale=!0,b.cssHooks.scale={set:function(a,b){p(a,"scale",b)},get:function(a,c){var d=b.data(a,"isoTransform");return d&&d.scale?d.scale:1}},b.fx.step.scale=function(a){b.cssHooks.scale.set(a.elem,a.now+a.unit)},b.cssNumber.translate=!0,b.cssHooks.translate={set:function(a,b){p(a,"translate",b)},get:function(a,c){var d=b.data(a,"isoTransform");return d&&d.translate?d.translate:[0,0]}}}var q,r;e.csstransitions&&(q={WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd",transitionProperty:"transitionEnd"}[j],r=h("transitionDuration"));var s=b.event,t;s.special.smartresize={setup:function(){b(this).bind("resize",s.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",s.special.smartresize.handler)},handler:function(a,b){var c=this,d=arguments;a.type="smartresize",t&&clearTimeout(t),t=setTimeout(function(){jQuery.event.handle.apply(c,d)},b==="execAsap"?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Isotope=function(a,c,d){this.element=b(c),this._create(a),this._init(d)};var u=["width","height"],v=b(a);b.Isotope.settings={resizable:!0,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:{opacity:0,scale:.001},visibleStyle:{opacity:1,scale:1},containerStyle:{position:"relative",overflow:"hidden"},animationEngine:"best-available",animationOptions:{queue:!1,duration:800},sortBy:"original-order",sortAscending:!0,resizesContainer:!0,transformsEnabled:!b.browser.opera,itemPositionDataEnabled:!1},b.Isotope.prototype={_create:function(a){this.options=b.extend({},b.Isotope.settings,a),this.styleQueue=[],this.elemCount=0;var c=this.element[0].style;this.originalStyle={};var d=u.slice(0);for(var e in this.options.containerStyle)d.push(e);for(var f=0,g=d.length;f<g;f++)e=d[f],this.originalStyle[e]=c[e]||"";this.element.css(this.options.containerStyle),this._updateAnimationEngine(),this._updateUsingTransforms();var h={"original-order":function(a,b){return b.elemCount++,b.elemCount},random:function(){return Math.random()}};this.options.getSortData=b.extend(this.options.getSortData,h),this.reloadItems(),this.offset={left:parseInt(this.element.css("padding-left")||0,10),top:parseInt(this.element.css("padding-top")||0,10)};var i=this;setTimeout(function(){i.element.addClass(i.options.containerClass)},0),this.options.resizable&&v.bind("smartresize.isotope",function(){i.resize()}),this.element.delegate("."+this.options.hiddenClass,"click",function(){return!1})},_getAtoms:function(a){var b=this.options.itemSelector,c=b?a.filter(b).add(a.find(b)):a,d={position:"absolute"};return this.usingTransforms&&(d.left=0,d.top=0),c.css(d).addClass(this.options.itemClass),this.updateSortData(c,!0),c},_init:function(a){this.$filteredAtoms=this._filter(this.$allAtoms),this._sort(),this.reLayout(a)},option:function(a){if(b.isPlainObject(a)){this.options=b.extend(!0,this.options,a);var c;for(var d in a)c="_update"+f(d),this[c]&&this[c]()}},_updateAnimationEngine:function(){var a=this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,""),b;switch(a){case"css":case"none":b=!1;break;case"jquery":b=!0;break;default:b=!e.csstransitions}this.isUsingJQueryAnimation=b,this._updateUsingTransforms()},_updateTransformsEnabled:function(){this._updateUsingTransforms()},_updateUsingTransforms:function(){var a=this.usingTransforms=this.options.transformsEnabled&&e.csstransforms&&e.csstransitions&&!this.isUsiLine truncated
|
||||
|
||||
jQuery(window).load(function() {
|
||||
var filter_container = jQuery('.portfolio-item-holder');
|
||||
filter_container.each(function(){
|
||||
var my_isotope = jQuery(this);
|
||||
my_isotope.isotope({
|
||||
filter: '.portfolio-item',
|
||||
layoutMode: 'fitRows'
|
||||
});
|
||||
my_isotope.siblings('.portfolio-filter-wrapper').children('ul.portfolio-item-filter').find('a').click(function(e){
|
||||
jQuery(this).addClass("active");
|
||||
jQuery(this).parents("li").siblings().children("a").removeClass("active");
|
||||
|
||||
var select_filter = '.' + jQuery(this).attr('data-value');
|
||||
if( select_filter == '.All' ) select_filter = '.portfolio-item';
|
||||
my_isotope.isotope({ filter: select_filter });
|
||||
|
||||
e.preventDefault();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,79 @@
|
||||
/*global jQuery */
|
||||
/*!
|
||||
* FitVids 1.0
|
||||
*
|
||||
* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
|
||||
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
|
||||
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
|
||||
*
|
||||
* Date: Thu Sept 01 18:00:00 2011 -0500
|
||||
*/
|
||||
|
||||
(function( $ ){
|
||||
|
||||
$.fn.fitVids = function( options ) {
|
||||
var settings = {
|
||||
customSelector: null
|
||||
}
|
||||
|
||||
var div = document.createElement('div'),
|
||||
ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0];
|
||||
|
||||
div.className = 'fit-vids-style';
|
||||
div.innerHTML = '­<style> \
|
||||
.fluid-width-video-wrapper { \
|
||||
width: 100%; \
|
||||
position: relative; \
|
||||
padding: 0; \
|
||||
} \
|
||||
\
|
||||
.fluid-width-video-wrapper iframe, \
|
||||
.fluid-width-video-wrapper object, \
|
||||
.fluid-width-video-wrapper embed { \
|
||||
position: absolute; \
|
||||
top: 0; \
|
||||
left: 0; \
|
||||
width: 100%; \
|
||||
height: 100%; \
|
||||
} \
|
||||
</style>';
|
||||
|
||||
ref.parentNode.insertBefore(div,ref);
|
||||
|
||||
if ( options ) {
|
||||
$.extend( settings, options );
|
||||
}
|
||||
|
||||
return this.each(function(){
|
||||
var selectors = [
|
||||
"iframe[src^='http://player.vimeo.com']",
|
||||
"iframe[src^='http://www.youtube.com']",
|
||||
"iframe[src^='http://www.kickstarter.com']"
|
||||
];
|
||||
|
||||
if (settings.customSelector) {
|
||||
selectors.push(settings.customSelector);
|
||||
}
|
||||
|
||||
var $allVideos = $(this).find(selectors.join(','));
|
||||
|
||||
$allVideos.each(function(){
|
||||
var $this = $(this);
|
||||
if (this.tagName.toLowerCase() == 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
|
||||
var height = this.tagName.toLowerCase() == 'object' ? $this.attr('height') : $this.height(),
|
||||
aspectRatio = height / $this.width();
|
||||
if(!$this.attr('id')){
|
||||
var videoID = 'fitvid' + Math.floor(Math.random()*999999);
|
||||
$this.attr('id', videoID);
|
||||
}
|
||||
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%");
|
||||
$this.removeAttr('height').removeAttr('width');
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
})( jQuery );
|
||||
|
||||
jQuery(document).ready(function(){
|
||||
jQuery(".gdl-page-row-wrapper, .footer-wrapper").fitVids();
|
||||
});
|
||||
@@ -0,0 +1,958 @@
|
||||
/*
|
||||
* jQuery FlexSlider v2.1
|
||||
* http://www.woothemes.com/flexslider/
|
||||
*
|
||||
* Copyright 2012 WooThemes
|
||||
* Free to use under the GPLv2 license.
|
||||
* http://www.gnu.org/licenses/gpl-2.0.html
|
||||
*
|
||||
* Contributing author: Tyler Smith (@mbmufffin)
|
||||
*/
|
||||
|
||||
;(function ($) {
|
||||
|
||||
//FlexSlider: Object Instance
|
||||
$.flexslider = function(el, options) {
|
||||
var slider = $(el),
|
||||
vars = $.extend({}, $.flexslider.defaults, options),
|
||||
namespace = vars.namespace,
|
||||
touch = ("ontouchstart" in window) || window.DocumentTouch && document instanceof DocumentTouch,
|
||||
eventType = (touch) ? "touchend" : "click",
|
||||
vertical = vars.direction === "vertical",
|
||||
reverse = vars.reverse,
|
||||
carousel = (vars.itemWidth > 0),
|
||||
fade = vars.animation === "fade",
|
||||
asNav = vars.asNavFor !== "",
|
||||
methods = {};
|
||||
|
||||
// Store a reference to the slider object
|
||||
$.data(el, "flexslider", slider);
|
||||
|
||||
// Privat slider methods
|
||||
methods = {
|
||||
init: function() {
|
||||
slider.animating = false;
|
||||
slider.currentSlide = vars.startAt;
|
||||
slider.animatingTo = slider.currentSlide;
|
||||
slider.atEnd = (slider.currentSlide === 0 || slider.currentSlide === slider.last);
|
||||
slider.containerSelector = vars.selector.substr(0,vars.selector.search(' '));
|
||||
slider.slides = $(vars.selector, slider);
|
||||
slider.container = $(slider.containerSelector, slider);
|
||||
slider.count = slider.slides.length;
|
||||
// SYNC:
|
||||
slider.syncExists = $(vars.sync).length > 0;
|
||||
// SLIDE:
|
||||
if (vars.animation === "slide") vars.animation = "swing";
|
||||
slider.prop = (vertical) ? "top" : "marginLeft";
|
||||
slider.args = {};
|
||||
// SLIDESHOW:
|
||||
slider.manualPause = false;
|
||||
// TOUCH/USECSS:
|
||||
slider.transitions = !vars.video && !fade && vars.useCSS && (function() {
|
||||
var obj = document.createElement('div'),
|
||||
props = ['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective'];
|
||||
for (var i in props) {
|
||||
if ( obj.style[ props[i] ] !== undefined ) {
|
||||
slider.pfx = props[i].replace('Perspective','').toLowerCase();
|
||||
slider.prop = "-" + slider.pfx + "-transform";
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}());
|
||||
// CONTROLSCONTAINER:
|
||||
if (vars.controlsContainer !== "") slider.controlsContainer = $(vars.controlsContainer).length > 0 && $(vars.controlsContainer);
|
||||
// MANUAL:
|
||||
if (vars.manualControls !== "") slider.manualControls = $(vars.manualControls).length > 0 && $(vars.manualControls);
|
||||
|
||||
// RANDOMIZE:
|
||||
if (vars.randomize) {
|
||||
slider.slides.sort(function() { return (Math.round(Math.random())-0.5); });
|
||||
slider.container.empty().append(slider.slides);
|
||||
}
|
||||
|
||||
slider.doMath();
|
||||
|
||||
// ASNAV:
|
||||
if (asNav) methods.asNav.setup();
|
||||
|
||||
// INIT
|
||||
slider.setup("init");
|
||||
|
||||
// CONTROLNAV:
|
||||
if (vars.controlNav) methods.controlNav.setup();
|
||||
|
||||
// DIRECTIONNAV:
|
||||
if (vars.directionNav) methods.directionNav.setup();
|
||||
|
||||
// KEYBOARD:
|
||||
if (vars.keyboard && ($(slider.containerSelector).length === 1 || vars.multipleKeyboard)) {
|
||||
$(document).bind('keyup', function(event) {
|
||||
var keycode = event.keyCode;
|
||||
if (!slider.animating && (keycode === 39 || keycode === 37)) {
|
||||
var target = (keycode === 39) ? slider.getTarget('next') :
|
||||
(keycode === 37) ? slider.getTarget('prev') : false;
|
||||
slider.flexAnimate(target, vars.pauseOnAction);
|
||||
}
|
||||
});
|
||||
}
|
||||
// MOUSEWHEEL:
|
||||
if (vars.mousewheel) {
|
||||
slider.bind('mousewheel', function(event, delta, deltaX, deltaY) {
|
||||
event.preventDefault();
|
||||
var target = (delta < 0) ? slider.getTarget('next') : slider.getTarget('prev');
|
||||
slider.flexAnimate(target, vars.pauseOnAction);
|
||||
});
|
||||
}
|
||||
|
||||
// PAUSEPLAY
|
||||
if (vars.pausePlay) methods.pausePlay.setup();
|
||||
|
||||
// SLIDSESHOW
|
||||
if (vars.slideshow) {
|
||||
if (vars.pauseOnHover) {
|
||||
slider.hover(function() {
|
||||
if (!slider.manualPlay && !slider.manualPause) slider.pause();
|
||||
}, function() {
|
||||
if (!slider.manualPause && !slider.manualPlay) slider.play();
|
||||
});
|
||||
}
|
||||
// initialize animation
|
||||
(vars.initDelay > 0) ? setTimeout(slider.play, vars.initDelay) : slider.play();
|
||||
}
|
||||
|
||||
// TOUCH
|
||||
if (touch && vars.touch) methods.touch();
|
||||
|
||||
// FADE&&SMOOTHHEIGHT || SLIDE:
|
||||
if (!fade || (fade && vars.smoothHeight)) $(window).bind("resize focus", methods.resize);
|
||||
|
||||
|
||||
// API: start() Callback
|
||||
setTimeout(function(){
|
||||
vars.start(slider);
|
||||
}, 200);
|
||||
},
|
||||
asNav: {
|
||||
setup: function() {
|
||||
slider.asNav = true;
|
||||
slider.animatingTo = Math.floor(slider.currentSlide/slider.move);
|
||||
slider.currentItem = slider.currentSlide;
|
||||
slider.slides.removeClass(namespace + "active-slide").eq(slider.currentItem).addClass(namespace + "active-slide");
|
||||
slider.slides.click(function(e){
|
||||
e.preventDefault();
|
||||
var $slide = $(this),
|
||||
target = $slide.index();
|
||||
if (!$(vars.asNavFor).data('flexslider').animating && !$slide.hasClass('active')) {
|
||||
slider.direction = (slider.currentItem < target) ? "next" : "prev";
|
||||
slider.flexAnimate(target, vars.pauseOnAction, false, true, true);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
controlNav: {
|
||||
setup: function() {
|
||||
if (!slider.manualControls) {
|
||||
methods.controlNav.setupPaging();
|
||||
} else { // MANUALCONTROLS:
|
||||
methods.controlNav.setupManual();
|
||||
}
|
||||
},
|
||||
setupPaging: function() {
|
||||
var type = (vars.controlNav === "thumbnails") ? 'control-thumbs' : 'control-paging',
|
||||
j = 1,
|
||||
item;
|
||||
|
||||
var controlNavWrapper = $('<div class="flex-control-nav-wrapper"></div>');
|
||||
slider.controlNavScaffold = $('<ol class="'+ namespace + 'control-nav ' + namespace + type + '"></ol>');
|
||||
|
||||
if (slider.pagingCount > 1) {
|
||||
for (var i = 0; i < slider.pagingCount; i++) {
|
||||
item = (vars.controlNav === "thumbnails") ? '<img src="' + slider.slides.eq(i).attr("data-thumb") + '"/>' : '<a>' + j + '</a>';
|
||||
slider.controlNavScaffold.append('<li>' + item + '</li>');
|
||||
j++;
|
||||
}
|
||||
}
|
||||
|
||||
// CONTROLSCONTAINER:
|
||||
controlNavWrapper.append(slider.controlNavScaffold);
|
||||
(slider.controlsContainer) ? $(slider.controlsContainer).append(controlNavWrapper) : slider.append(controlNavWrapper);
|
||||
methods.controlNav.set();
|
||||
|
||||
methods.controlNav.active();
|
||||
|
||||
slider.controlNavScaffold.delegate('a, img', eventType, function(event) {
|
||||
event.preventDefault();
|
||||
var $this = $(this),
|
||||
target = slider.controlNav.index($this);
|
||||
|
||||
if (!$this.hasClass(namespace + 'active')) {
|
||||
slider.direction = (target > slider.currentSlide) ? "next" : "prev";
|
||||
slider.flexAnimate(target, vars.pauseOnAction);
|
||||
}
|
||||
});
|
||||
// Prevent iOS click event bug
|
||||
if (touch) {
|
||||
slider.controlNavScaffold.delegate('a', "click touchstart", function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
},
|
||||
setupManual: function() {
|
||||
slider.controlNav = slider.manualControls;
|
||||
methods.controlNav.active();
|
||||
|
||||
slider.controlNav.live(eventType, function(event) {
|
||||
event.preventDefault();
|
||||
var $this = $(this),
|
||||
target = slider.controlNav.index($this);
|
||||
|
||||
if (!$this.hasClass(namespace + 'active')) {
|
||||
(target > slider.currentSlide) ? slider.direction = "next" : slider.direction = "prev";
|
||||
slider.flexAnimate(target, vars.pauseOnAction);
|
||||
}
|
||||
});
|
||||
// Prevent iOS click event bug
|
||||
if (touch) {
|
||||
slider.controlNav.live("click touchstart", function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
},
|
||||
set: function() {
|
||||
var selector = (vars.controlNav === "thumbnails") ? 'img' : 'a';
|
||||
slider.controlNav = $('.' + namespace + 'control-nav li ' + selector, (slider.controlsContainer) ? slider.controlsContainer : slider);
|
||||
},
|
||||
active: function() {
|
||||
slider.controlNav.removeClass(namespace + "active").eq(slider.animatingTo).addClass(namespace + "active");
|
||||
},
|
||||
update: function(action, pos) {
|
||||
if (slider.pagingCount > 1 && action === "add") {
|
||||
slider.controlNavScaffold.append($('<li><a>' + slider.count + '</a></li>'));
|
||||
} else if (slider.pagingCount === 1) {
|
||||
slider.controlNavScaffold.find('li').remove();
|
||||
} else {
|
||||
slider.controlNav.eq(pos).closest('li').remove();
|
||||
}
|
||||
methods.controlNav.set();
|
||||
(slider.pagingCount > 1 && slider.pagingCount !== slider.controlNav.length) ? slider.update(pos, action) : methods.controlNav.active();
|
||||
}
|
||||
},
|
||||
directionNav: {
|
||||
setup: function() {
|
||||
var directionNavScaffold = $('<ul class="' + namespace + 'direction-nav"><li><a class="' + namespace + 'prev" href="#">' + vars.prevText + '</a></li><li><a class="' + namespace + 'next" href="#">' + vars.nextText + '</a></li></ul>');
|
||||
|
||||
// CONTROLSCONTAINER:
|
||||
if (slider.controlsContainer) {
|
||||
$(slider.controlsContainer).append(directionNavScaffold);
|
||||
slider.directionNav = $('.' + namespace + 'direction-nav li a', slider.controlsContainer);
|
||||
} else {
|
||||
slider.append(directionNavScaffold);
|
||||
slider.directionNav = $('.' + namespace + 'direction-nav li a', slider);
|
||||
}
|
||||
|
||||
methods.directionNav.update();
|
||||
|
||||
slider.directionNav.bind(eventType, function(event) {
|
||||
event.preventDefault();
|
||||
var target = ($(this).hasClass(namespace + 'next')) ? slider.getTarget('next') : slider.getTarget('prev');
|
||||
slider.flexAnimate(target, vars.pauseOnAction);
|
||||
});
|
||||
// Prevent iOS click event bug
|
||||
if (touch) {
|
||||
slider.directionNav.bind("click touchstart", function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
},
|
||||
update: function() {
|
||||
var disabledClass = namespace + 'disabled';
|
||||
if (slider.pagingCount === 1) {
|
||||
slider.directionNav.addClass(disabledClass);
|
||||
} else if (!vars.animationLoop) {
|
||||
if (slider.animatingTo === 0) {
|
||||
slider.directionNav.removeClass(disabledClass).filter('.' + namespace + "prev").addClass(disabledClass);
|
||||
} else if (slider.animatingTo === slider.last) {
|
||||
slider.directionNav.removeClass(disabledClass).filter('.' + namespace + "next").addClass(disabledClass);
|
||||
} else {
|
||||
slider.directionNav.removeClass(disabledClass);
|
||||
}
|
||||
} else {
|
||||
slider.directionNav.removeClass(disabledClass);
|
||||
}
|
||||
}
|
||||
},
|
||||
pausePlay: {
|
||||
setup: function() {
|
||||
var pausePlayScaffold = $('<div class="' + namespace + 'pauseplay"><a></a></div>');
|
||||
|
||||
// CONTROLSCONTAINER:
|
||||
if (slider.controlsContainer) {
|
||||
slider.controlsContainer.append(pausePlayScaffold);
|
||||
slider.pausePlay = $('.' + namespace + 'pauseplay a', slider.controlsContainer);
|
||||
} else {
|
||||
slider.append(pausePlayScaffold);
|
||||
slider.pausePlay = $('.' + namespace + 'pauseplay a', slider);
|
||||
}
|
||||
|
||||
methods.pausePlay.update((vars.slideshow) ? namespace + 'pause' : namespace + 'play');
|
||||
|
||||
slider.pausePlay.bind(eventType, function(event) {
|
||||
event.preventDefault();
|
||||
if ($(this).hasClass(namespace + 'pause')) {
|
||||
slider.manualPause = true;
|
||||
slider.manualPlay = false;
|
||||
slider.pause();
|
||||
} else {
|
||||
slider.manualPause = false;
|
||||
slider.manualPlay = true;
|
||||
slider.play();
|
||||
}
|
||||
});
|
||||
// Prevent iOS click event bug
|
||||
if (touch) {
|
||||
slider.pausePlay.bind("click touchstart", function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
},
|
||||
update: function(state) {
|
||||
(state === "play") ? slider.pausePlay.removeClass(namespace + 'pause').addClass(namespace + 'play').text(vars.playText) : slider.pausePlay.removeClass(namespace + 'play').addClass(namespace + 'pause').text(vars.pauseText);
|
||||
}
|
||||
},
|
||||
touch: function() {
|
||||
var startX,
|
||||
startY,
|
||||
offset,
|
||||
cwidth,
|
||||
dx,
|
||||
startT,
|
||||
scrolling = false;
|
||||
|
||||
el.addEventListener('touchstart', onTouchStart, false);
|
||||
function onTouchStart(e) {
|
||||
if (slider.animating) {
|
||||
e.preventDefault();
|
||||
} else if (e.touches.length === 1) {
|
||||
slider.pause();
|
||||
// CAROUSEL:
|
||||
cwidth = (vertical) ? slider.h : slider. w;
|
||||
startT = Number(new Date());
|
||||
// CAROUSEL:
|
||||
offset = (carousel && reverse && slider.animatingTo === slider.last) ? 0 :
|
||||
(carousel && reverse) ? slider.limit - (((slider.itemW + vars.itemMargin) * slider.move) * slider.animatingTo) :
|
||||
(carousel && slider.currentSlide === slider.last) ? slider.limit :
|
||||
(carousel) ? ((slider.itemW + vars.itemMargin) * slider.move) * slider.currentSlide :
|
||||
(reverse) ? (slider.last - slider.currentSlide + slider.cloneOffset) * cwidth : (slider.currentSlide + slider.cloneOffset) * cwidth;
|
||||
startX = (vertical) ? e.touches[0].pageY : e.touches[0].pageX;
|
||||
startY = (vertical) ? e.touches[0].pageX : e.touches[0].pageY;
|
||||
|
||||
el.addEventListener('touchmove', onTouchMove, false);
|
||||
el.addEventListener('touchend', onTouchEnd, false);
|
||||
}
|
||||
}
|
||||
|
||||
function onTouchMove(e) {
|
||||
dx = (vertical) ? startX - e.touches[0].pageY : startX - e.touches[0].pageX;
|
||||
scrolling = (vertical) ? (Math.abs(dx) < Math.abs(e.touches[0].pageX - startY)) : (Math.abs(dx) < Math.abs(e.touches[0].pageY - startY));
|
||||
|
||||
if (!scrolling || Number(new Date()) - startT > 500) {
|
||||
e.preventDefault();
|
||||
if (!fade && slider.transitions) {
|
||||
if (!vars.animationLoop) {
|
||||
dx = dx/((slider.currentSlide === 0 && dx < 0 || slider.currentSlide === slider.last && dx > 0) ? (Math.abs(dx)/cwidth+2) : 1);
|
||||
}
|
||||
slider.setProps(offset + dx, "setTouch");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onTouchEnd(e) {
|
||||
// finish the touch by undoing the touch session
|
||||
el.removeEventListener('touchmove', onTouchMove, false);
|
||||
|
||||
if (slider.animatingTo === slider.currentSlide && !scrolling && !(dx === null)) {
|
||||
var updateDx = (reverse) ? -dx : dx,
|
||||
target = (updateDx > 0) ? slider.getTarget('next') : slider.getTarget('prev');
|
||||
|
||||
if (slider.canAdvance(target) && (Number(new Date()) - startT < 550 && Math.abs(updateDx) > 50 || Math.abs(updateDx) > cwidth/2)) {
|
||||
slider.flexAnimate(target, vars.pauseOnAction);
|
||||
} else {
|
||||
if (!fade) slider.flexAnimate(slider.currentSlide, vars.pauseOnAction, true);
|
||||
}
|
||||
}
|
||||
el.removeEventListener('touchend', onTouchEnd, false);
|
||||
startX = null;
|
||||
startY = null;
|
||||
dx = null;
|
||||
offset = null;
|
||||
}
|
||||
},
|
||||
resize: function() {
|
||||
if (!slider.animating && slider.is(':visible')) {
|
||||
if (!carousel) slider.doMath();
|
||||
|
||||
if (fade) {
|
||||
// SMOOTH HEIGHT:
|
||||
methods.smoothHeight();
|
||||
} else if (carousel) { //CAROUSEL:
|
||||
slider.slides.width(slider.computedW);
|
||||
slider.update(slider.pagingCount);
|
||||
slider.setProps();
|
||||
}
|
||||
else if (vertical) { //VERTICAL:
|
||||
slider.viewport.height(slider.h);
|
||||
slider.setProps(slider.h, "setTotal");
|
||||
} else {
|
||||
// SMOOTH HEIGHT:
|
||||
if (vars.smoothHeight) methods.smoothHeight();
|
||||
slider.newSlides.width(slider.computedW);
|
||||
slider.setProps(slider.computedW, "setTotal");
|
||||
}
|
||||
}
|
||||
},
|
||||
smoothHeight: function(dur) {
|
||||
if (!vertical || fade) {
|
||||
var $obj = (fade) ? slider : slider.viewport;
|
||||
(dur) ? $obj.animate({"height": slider.slides.eq(slider.animatingTo).height()}, dur) : $obj.height(slider.slides.eq(slider.animatingTo).height());
|
||||
}
|
||||
},
|
||||
sync: function(action) {
|
||||
var $obj = $(vars.sync).data("flexslider"),
|
||||
target = slider.animatingTo;
|
||||
|
||||
switch (action) {
|
||||
case "animate": $obj.flexAnimate(target, vars.pauseOnAction, false, true); break;
|
||||
case "play": if (!$obj.playing && !$obj.asNav) { $obj.play(); } break;
|
||||
case "pause": $obj.pause(); break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// public methods
|
||||
slider.flexAnimate = function(target, pause, override, withSync, fromNav) {
|
||||
if (asNav && slider.pagingCount === 1) slider.direction = (slider.currentItem < target) ? "next" : "prev";
|
||||
|
||||
if (!slider.animating && (slider.canAdvance(target, fromNav) || override) && slider.is(":visible")) {
|
||||
if (asNav && withSync) {
|
||||
var master = $(vars.asNavFor).data('flexslider');
|
||||
slider.atEnd = target === 0 || target === slider.count - 1;
|
||||
master.flexAnimate(target, true, false, true, fromNav);
|
||||
slider.direction = (slider.currentItem < target) ? "next" : "prev";
|
||||
master.direction = slider.direction;
|
||||
|
||||
if (Math.ceil((target + 1)/slider.visible) - 1 !== slider.currentSlide && target !== 0) {
|
||||
slider.currentItem = target;
|
||||
slider.slides.removeClass(namespace + "active-slide").eq(target).addClass(namespace + "active-slide");
|
||||
target = Math.floor(target/slider.visible);
|
||||
} else {
|
||||
slider.currentItem = target;
|
||||
slider.slides.removeClass(namespace + "active-slide").eq(target).addClass(namespace + "active-slide");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
slider.animating = true;
|
||||
slider.animatingTo = target;
|
||||
// API: before() animation Callback
|
||||
vars.before(slider);
|
||||
|
||||
// SLIDESHOW:
|
||||
if (pause) slider.pause();
|
||||
|
||||
// SYNC:
|
||||
if (slider.syncExists && !fromNav) methods.sync("animate");
|
||||
|
||||
// CONTROLNAV
|
||||
if (vars.controlNav) methods.controlNav.active();
|
||||
|
||||
// !CAROUSEL:
|
||||
// CANDIDATE: slide active class (for add/remove slide)
|
||||
if (!carousel) slider.slides.removeClass(namespace + 'active-slide').eq(target).addClass(namespace + 'active-slide');
|
||||
|
||||
// INFINITE LOOP:
|
||||
// CANDIDATE: atEnd
|
||||
slider.atEnd = target === 0 || target === slider.last;
|
||||
|
||||
// DIRECTIONNAV:
|
||||
if (vars.directionNav) methods.directionNav.update();
|
||||
|
||||
if (target === slider.last) {
|
||||
// API: end() of cycle Callback
|
||||
vars.end(slider);
|
||||
// SLIDESHOW && !INFINITE LOOP:
|
||||
if (!vars.animationLoop) slider.pause();
|
||||
}
|
||||
|
||||
// SLIDE:
|
||||
if (!fade) {
|
||||
var dimension = (vertical) ? slider.slides.filter(':first').height() : slider.computedW,
|
||||
margin, slideString, calcNext;
|
||||
|
||||
// INFINITE LOOP / REVERSE:
|
||||
if (carousel) {
|
||||
margin = (vars.itemWidth > slider.w) ? vars.itemMargin * 2 : vars.itemMargin;
|
||||
calcNext = ((slider.itemW + margin) * slider.move) * slider.animatingTo;
|
||||
slideString = (calcNext > slider.limit && slider.visible !== 1) ? slider.limit : calcNext;
|
||||
} else if (slider.currentSlide === 0 && target === slider.count - 1 && vars.animationLoop && slider.direction !== "next") {
|
||||
slideString = (reverse) ? (slider.count + slider.cloneOffset) * dimension : 0;
|
||||
} else if (slider.currentSlide === slider.last && target === 0 && vars.animationLoop && slider.direction !== "prev") {
|
||||
slideString = (reverse) ? 0 : (slider.count + 1) * dimension;
|
||||
} else {
|
||||
slideString = (reverse) ? ((slider.count - 1) - target + slider.cloneOffset) * dimension : (target + slider.cloneOffset) * dimension;
|
||||
}
|
||||
slider.setProps(slideString, "", vars.animationSpeed);
|
||||
if (slider.transitions) {
|
||||
if (!vars.animationLoop || !slider.atEnd) {
|
||||
slider.animating = false;
|
||||
slider.currentSlide = slider.animatingTo;
|
||||
}
|
||||
slider.container.unbind("webkitTransitionEnd transitionend");
|
||||
slider.container.bind("webkitTransitionEnd transitionend", function() {
|
||||
slider.wrapup(dimension);
|
||||
});
|
||||
} else {
|
||||
slider.container.animate(slider.args, vars.animationSpeed, vars.easing, function(){
|
||||
slider.wrapup(dimension);
|
||||
});
|
||||
}
|
||||
} else { // FADE:
|
||||
if (!touch) {
|
||||
slider.slides.eq(slider.currentSlide).fadeOut(vars.animationSpeed, vars.easing);
|
||||
slider.slides.eq(target).fadeIn(vars.animationSpeed, vars.easing, slider.wrapup);
|
||||
} else {
|
||||
slider.slides.eq(slider.currentSlide).css({ "opacity": 0, "zIndex": 1 });
|
||||
slider.slides.eq(target).css({ "opacity": 1, "zIndex": 2 });
|
||||
|
||||
slider.slides.unbind("webkitTransitionEnd transitionend");
|
||||
slider.slides.eq(slider.currentSlide).bind("webkitTransitionEnd transitionend", function() {
|
||||
// API: after() animation Callback
|
||||
vars.after(slider);
|
||||
});
|
||||
|
||||
slider.animating = false;
|
||||
slider.currentSlide = slider.animatingTo;
|
||||
}
|
||||
}
|
||||
// SMOOTH HEIGHT:
|
||||
if (vars.smoothHeight) methods.smoothHeight(vars.animationSpeed);
|
||||
}
|
||||
}
|
||||
slider.wrapup = function(dimension) {
|
||||
// SLIDE:
|
||||
if (!fade && !carousel) {
|
||||
if (slider.currentSlide === 0 && slider.animatingTo === slider.last && vars.animationLoop) {
|
||||
slider.setProps(dimension, "jumpEnd");
|
||||
} else if (slider.currentSlide === slider.last && slider.animatingTo === 0 && vars.animationLoop) {
|
||||
slider.setProps(dimension, "jumpStart");
|
||||
}
|
||||
}
|
||||
slider.animating = false;
|
||||
slider.currentSlide = slider.animatingTo;
|
||||
// API: after() animation Callback
|
||||
vars.after(slider);
|
||||
}
|
||||
|
||||
// SLIDESHOW:
|
||||
slider.animateSlides = function() {
|
||||
if (!slider.animating) slider.flexAnimate(slider.getTarget("next"));
|
||||
}
|
||||
// SLIDESHOW:
|
||||
slider.pause = function() {
|
||||
clearInterval(slider.animatedSlides);
|
||||
slider.playing = false;
|
||||
// PAUSEPLAY:
|
||||
if (vars.pausePlay) methods.pausePlay.update("play");
|
||||
// SYNC:
|
||||
if (slider.syncExists) methods.sync("pause");
|
||||
}
|
||||
// SLIDESHOW:
|
||||
slider.play = function() {
|
||||
slider.animatedSlides = setInterval(slider.animateSlides, vars.slideshowSpeed);
|
||||
slider.playing = true;
|
||||
// PAUSEPLAY:
|
||||
if (vars.pausePlay) methods.pausePlay.update("pause");
|
||||
// SYNC:
|
||||
if (slider.syncExists) methods.sync("play");
|
||||
}
|
||||
slider.canAdvance = function(target, fromNav) {
|
||||
// ASNAV:
|
||||
var last = (asNav) ? slider.pagingCount - 1 : slider.last;
|
||||
return (fromNav) ? true :
|
||||
(asNav && slider.currentItem === slider.count - 1 && target === 0 && slider.direction === "prev") ? true :
|
||||
(asNav && slider.currentItem === 0 && target === slider.pagingCount - 1 && slider.direction !== "next") ? false :
|
||||
(target === slider.currentSlide && !asNav) ? false :
|
||||
(vars.animationLoop) ? true :
|
||||
(slider.atEnd && slider.currentSlide === 0 && target === last && slider.direction !== "next") ? false :
|
||||
(slider.atEnd && slider.currentSlide === last && target === 0 && slider.direction === "next") ? false :
|
||||
true;
|
||||
}
|
||||
slider.getTarget = function(dir) {
|
||||
slider.direction = dir;
|
||||
if (dir === "next") {
|
||||
return (slider.currentSlide === slider.last) ? 0 : slider.currentSlide + 1;
|
||||
} else {
|
||||
return (slider.currentSlide === 0) ? slider.last : slider.currentSlide - 1;
|
||||
}
|
||||
}
|
||||
|
||||
// SLIDE:
|
||||
slider.setProps = function(pos, special, dur) {
|
||||
var target = (function() {
|
||||
var posCheck = (pos) ? pos : ((slider.itemW + vars.itemMargin) * slider.move) * slider.animatingTo,
|
||||
posCalc = (function() {
|
||||
if (carousel) {
|
||||
return (special === "setTouch") ? pos :
|
||||
(reverse && slider.animatingTo === slider.last) ? 0 :
|
||||
(reverse) ? slider.limit - (((slider.itemW + vars.itemMargin) * slider.move) * slider.animatingTo) :
|
||||
(slider.animatingTo === slider.last) ? slider.limit : posCheck;
|
||||
} else {
|
||||
switch (special) {
|
||||
case "setTotal": return (reverse) ? ((slider.count - 1) - slider.currentSlide + slider.cloneOffset) * pos : (slider.currentSlide + slider.cloneOffset) * pos;
|
||||
case "setTouch": return (reverse) ? pos : pos;
|
||||
case "jumpEnd": return (reverse) ? pos : slider.count * pos;
|
||||
case "jumpStart": return (reverse) ? slider.count * pos : pos;
|
||||
default: return pos;
|
||||
}
|
||||
}
|
||||
}());
|
||||
return (posCalc * -1) + "px";
|
||||
}());
|
||||
|
||||
if (slider.transitions) {
|
||||
target = (vertical) ? "translate3d(0," + target + ",0)" : "translate3d(" + target + ",0,0)";
|
||||
dur = (dur !== undefined) ? (dur/1000) + "s" : "0s";
|
||||
slider.container.css("-" + slider.pfx + "-transition-duration", dur);
|
||||
}
|
||||
|
||||
slider.args[slider.prop] = target;
|
||||
if (slider.transitions || dur === undefined) slider.container.css(slider.args);
|
||||
}
|
||||
|
||||
slider.setup = function(type) {
|
||||
// SLIDE:
|
||||
if (!fade) {
|
||||
var sliderOffset, arr;
|
||||
|
||||
if (type === "init") {
|
||||
slider.viewport = $('<div class="' + namespace + 'viewport"></div>').css({"overflow": "hidden", "position": "relative"}).appendTo(slider).append(slider.container);
|
||||
// INFINITE LOOP:
|
||||
slider.cloneCount = 0;
|
||||
slider.cloneOffset = 0;
|
||||
// REVERSE:
|
||||
if (reverse) {
|
||||
arr = $.makeArray(slider.slides).reverse();
|
||||
slider.slides = $(arr);
|
||||
slider.container.empty().append(slider.slides);
|
||||
}
|
||||
}
|
||||
// INFINITE LOOP && !CAROUSEL:
|
||||
if (vars.animationLoop && !carousel) {
|
||||
slider.cloneCount = 2;
|
||||
slider.cloneOffset = 1;
|
||||
// clear out old clones
|
||||
if (type !== "init") slider.container.find('.clone').remove();
|
||||
slider.container.append(slider.slides.first().clone().addClass('clone')).prepend(slider.slides.last().clone().addClass('clone'));
|
||||
}
|
||||
slider.newSlides = $(vars.selector, slider);
|
||||
|
||||
sliderOffset = (reverse) ? slider.count - 1 - slider.currentSlide + slider.cloneOffset : slider.currentSlide + slider.cloneOffset;
|
||||
// VERTICAL:
|
||||
if (vertical && !carousel) {
|
||||
slider.container.height((slider.count + slider.cloneCount) * 200 + "%").css("position", "absolute").width("100%");
|
||||
setTimeout(function(){
|
||||
slider.newSlides.css({"display": "block"});
|
||||
slider.doMath();
|
||||
slider.viewport.height(slider.h);
|
||||
slider.setProps(sliderOffset * slider.h, "init");
|
||||
}, (type === "init") ? 100 : 0);
|
||||
} else {
|
||||
slider.container.width((slider.count + slider.cloneCount) * 200 + "%");
|
||||
slider.setProps(sliderOffset * slider.computedW, "init");
|
||||
setTimeout(function(){
|
||||
slider.doMath();
|
||||
slider.newSlides.css({"width": slider.computedW, "float": "left", "display": "block"});
|
||||
// SMOOTH HEIGHT:
|
||||
if (vars.smoothHeight) methods.smoothHeight();
|
||||
}, (type === "init") ? 100 : 0);
|
||||
}
|
||||
} else { // FADE:
|
||||
slider.slides.css({"width": "100%", "float": "left", "marginRight": "-100%", "position": "relative"});
|
||||
if (type === "init") {
|
||||
if (!touch) {
|
||||
slider.slides.eq(slider.currentSlide).fadeIn(vars.animationSpeed, vars.easing);
|
||||
} else {
|
||||
slider.slides.css({ "opacity": 0, "display": "block", "webkitTransition": "opacity " + vars.animationSpeed / 1000 + "s ease", "zIndex": 1 }).eq(slider.currentSlide).css({ "opacity": 1, "zIndex": 2});
|
||||
}
|
||||
}
|
||||
// SMOOTH HEIGHT:
|
||||
if (vars.smoothHeight) methods.smoothHeight();
|
||||
}
|
||||
// !CAROUSEL:
|
||||
// CANDIDATE: active slide
|
||||
if (!carousel) slider.slides.removeClass(namespace + "active-slide").eq(slider.currentSlide).addClass(namespace + "active-slide");
|
||||
}
|
||||
|
||||
slider.doMath = function() {
|
||||
var slide = slider.slides.first(),
|
||||
slideMargin = vars.itemMargin,
|
||||
minItems = vars.minItems,
|
||||
maxItems = vars.maxItems;
|
||||
|
||||
slider.w = slider.width();
|
||||
slider.h = slide.height();
|
||||
slider.boxPadding = slide.outerWidth() - slide.width();
|
||||
|
||||
// CAROUSEL:
|
||||
if (carousel) {
|
||||
slider.itemT = vars.itemWidth + slideMargin;
|
||||
slider.minW = (minItems) ? minItems * slider.itemT : slider.w;
|
||||
slider.maxW = (maxItems) ? maxItems * slider.itemT : slider.w;
|
||||
slider.itemW = (slider.minW > slider.w) ? (slider.w - (slideMargin * minItems))/minItems :
|
||||
(slider.maxW < slider.w) ? (slider.w - (slideMargin * maxItems))/maxItems :
|
||||
(vars.itemWidth > slider.w) ? slider.w : vars.itemWidth;
|
||||
slider.visible = Math.floor(slider.w/(slider.itemW + slideMargin));
|
||||
slider.move = (vars.move > 0 && vars.move < slider.visible ) ? vars.move : slider.visible;
|
||||
slider.pagingCount = Math.ceil(((slider.count - slider.visible)/slider.move) + 1);
|
||||
slider.last = slider.pagingCount - 1;
|
||||
slider.limit = (slider.pagingCount === 1) ? 0 :
|
||||
(vars.itemWidth > slider.w) ? ((slider.itemW + (slideMargin * 2)) * slider.count) - slider.w - slideMargin : ((slider.itemW + slideMargin) * slider.count) - slider.w - slideMargin;
|
||||
} else {
|
||||
slider.itemW = slider.w;
|
||||
slider.pagingCount = slider.count;
|
||||
slider.last = slider.count - 1;
|
||||
}
|
||||
slider.computedW = slider.itemW - slider.boxPadding;
|
||||
}
|
||||
|
||||
slider.update = function(pos, action) {
|
||||
slider.doMath();
|
||||
|
||||
// update currentSlide and slider.animatingTo if necessary
|
||||
if (!carousel) {
|
||||
if (pos < slider.currentSlide) {
|
||||
slider.currentSlide += 1;
|
||||
} else if (pos <= slider.currentSlide && pos !== 0) {
|
||||
slider.currentSlide -= 1;
|
||||
}
|
||||
slider.animatingTo = slider.currentSlide;
|
||||
}
|
||||
|
||||
// update controlNav
|
||||
if (vars.controlNav && !slider.manualControls) {
|
||||
if ((action === "add" && !carousel) || slider.pagingCount > slider.controlNav.length) {
|
||||
methods.controlNav.update("add");
|
||||
} else if ((action === "remove" && !carousel) || slider.pagingCount < slider.controlNav.length) {
|
||||
if (carousel && slider.currentSlide > slider.last) {
|
||||
slider.currentSlide -= 1;
|
||||
slider.animatingTo -= 1;
|
||||
}
|
||||
methods.controlNav.update("remove", slider.last);
|
||||
}
|
||||
}
|
||||
// update directionNav
|
||||
if (vars.directionNav) methods.directionNav.update();
|
||||
|
||||
}
|
||||
|
||||
slider.addSlide = function(obj, pos) {
|
||||
var $obj = $(obj);
|
||||
|
||||
slider.count += 1;
|
||||
slider.last = slider.count - 1;
|
||||
|
||||
// append new slide
|
||||
if (vertical && reverse) {
|
||||
(pos !== undefined) ? slider.slides.eq(slider.count - pos).after($obj) : slider.container.prepend($obj);
|
||||
} else {
|
||||
(pos !== undefined) ? slider.slides.eq(pos).before($obj) : slider.container.append($obj);
|
||||
}
|
||||
|
||||
// update currentSlide, animatingTo, controlNav, and directionNav
|
||||
slider.update(pos, "add");
|
||||
|
||||
// update slider.slides
|
||||
slider.slides = $(vars.selector + ':not(.clone)', slider);
|
||||
// re-setup the slider to accomdate new slide
|
||||
slider.setup();
|
||||
|
||||
//FlexSlider: added() Callback
|
||||
vars.added(slider);
|
||||
}
|
||||
slider.removeSlide = function(obj) {
|
||||
var pos = (isNaN(obj)) ? slider.slides.index($(obj)) : obj;
|
||||
|
||||
// update count
|
||||
slider.count -= 1;
|
||||
slider.last = slider.count - 1;
|
||||
|
||||
// remove slide
|
||||
if (isNaN(obj)) {
|
||||
$(obj, slider.slides).remove();
|
||||
} else {
|
||||
(vertical && reverse) ? slider.slides.eq(slider.last).remove() : slider.slides.eq(obj).remove();
|
||||
}
|
||||
|
||||
// update currentSlide, animatingTo, controlNav, and directionNav
|
||||
slider.doMath();
|
||||
slider.update(pos, "remove");
|
||||
|
||||
// update slider.slides
|
||||
slider.slides = $(vars.selector + ':not(.clone)', slider);
|
||||
// re-setup the slider to accomdate new slide
|
||||
slider.setup();
|
||||
|
||||
// FlexSlider: removed() Callback
|
||||
vars.removed(slider);
|
||||
}
|
||||
|
||||
//FlexSlider: Initialize
|
||||
methods.init();
|
||||
}
|
||||
|
||||
//FlexSlider: Default Settings
|
||||
$.flexslider.defaults = {
|
||||
namespace: "flex-", //{NEW} String: Prefix string attached to the class of every element generated by the plugin
|
||||
selector: ".slides > li", //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril
|
||||
animation: "fade", //String: Select your animation type, "fade" or "slide"
|
||||
easing: "swing", //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported!
|
||||
direction: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical"
|
||||
reverse: false, //{NEW} Boolean: Reverse the animation direction
|
||||
animationLoop: true, //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
|
||||
smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode
|
||||
startAt: 0, //Integer: The slide that the slider should start on. Array notation (0 = first slide)
|
||||
slideshow: true, //Boolean: Animate slider automatically
|
||||
slideshowSpeed: 7000, //Integer: Set the speed of the slideshow cycling, in milliseconds
|
||||
animationSpeed: 600, //Integer: Set the speed of animations, in milliseconds
|
||||
initDelay: 0, //{NEW} Integer: Set an initialization delay, in milliseconds
|
||||
randomize: false, //Boolean: Randomize slide order
|
||||
|
||||
// Usability features
|
||||
pauseOnAction: true, //Boolean: Pause the slideshow when interacting with control elements, highly recommended.
|
||||
pauseOnHover: false, //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
|
||||
useCSS: true, //{NEW} Boolean: Slider will use CSS3 transitions if available
|
||||
touch: true, //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices
|
||||
video: false, //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches
|
||||
|
||||
// Primary Controls
|
||||
controlNav: true, //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage
|
||||
directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false)
|
||||
prevText: "Previous", //String: Set the text for the "previous" directionNav item
|
||||
nextText: "Next", //String: Set the text for the "next" directionNav item
|
||||
|
||||
// Secondary Navigation
|
||||
keyboard: true, //Boolean: Allow slider navigating via keyboard left/right keys
|
||||
multipleKeyboard: false, //{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present.
|
||||
mousewheel: false, //{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel
|
||||
pausePlay: false, //Boolean: Create pause/play dynamic element
|
||||
pauseText: "Pause", //String: Set the text for the "pause" pausePlay item
|
||||
playText: "Play", //String: Set the text for the "play" pausePlay item
|
||||
|
||||
// Special properties
|
||||
controlsContainer: "", //{UPDATED} jQuery Object/Selector: Declare which container the navigation elements should be appended too. Default container is the FlexSlider element. Example use would be $(".flexslider-container"). Property is ignored if given element is not found.
|
||||
manualControls: "", //{UPDATED} jQuery Object/Selector: Declare custom control navigation. Examples would be $(".flex-control-nav li") or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs.
|
||||
sync: "", //{NEW} Selector: Mirror the actions performed on this slider with another slider. Use with care.
|
||||
asNavFor: "", //{NEW} Selector: Internal property exposed for turning the slider into a thumbnail navigation for another slider
|
||||
|
||||
// Carousel Options
|
||||
itemWidth: 0, //{NEW} Integer: Box-model width of individual carousel items, including horizontal borders and padding.
|
||||
itemMargin: 0, //{NEW} Integer: Margin between carousel items.
|
||||
minItems: 0, //{NEW} Integer: Minimum number of carousel items that should be visible. Items will resize fluidly when below this.
|
||||
maxItems: 0, //{NEW} Integer: Maxmimum number of carousel items that should be visible. Items will resize fluidly when above this limit.
|
||||
move: 0, //{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items.
|
||||
|
||||
// Callback API
|
||||
start: function(){}, //Callback: function(slider) - Fires when the slider loads the first slide
|
||||
before: function(){}, //Callback: function(slider) - Fires asynchronously with each slider animation
|
||||
after: function(){}, //Callback: function(slider) - Fires after each slider animation completes
|
||||
end: function(){}, //Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous)
|
||||
added: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is added
|
||||
removed: function(){} //{NEW} Callback: function(slider) - Fires after a slide is removed
|
||||
}
|
||||
|
||||
|
||||
//FlexSlider: Plugin Function
|
||||
$.fn.flexslider = function(options) {
|
||||
if (options === undefined) options = {};
|
||||
|
||||
if (typeof options === "object") {
|
||||
return this.each(function() {
|
||||
var $this = $(this),
|
||||
selector = (options.selector) ? options.selector : ".slides > li",
|
||||
$slides = $this.find(selector);
|
||||
|
||||
if ($slides.length === 1) {
|
||||
$slides.fadeIn(400);
|
||||
if (options.start) options.start($this);
|
||||
} else if ($this.data('flexslider') == undefined) {
|
||||
new $.flexslider(this, options);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// Helper strings to quickly perform functions on the slider
|
||||
var $slider = $(this).data('flexslider');
|
||||
switch (options) {
|
||||
case "play": $slider.play(); break;
|
||||
case "pause": $slider.pause(); break;
|
||||
case "next": $slider.flexAnimate($slider.getTarget("next"), true); break;
|
||||
case "prev":
|
||||
case "previous": $slider.flexAnimate($slider.getTarget("prev"), true); break;
|
||||
default: if (typeof options === "number") $slider.flexAnimate(options, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
|
||||
// Flex Slider Setting
|
||||
FLEX.pauseOnHover = (FLEX.pauseOnHover == 'enable')? true: false;
|
||||
FLEX.pauseOnAction = (FLEX.pauseOnAction == 'enable')? true: false;
|
||||
FLEX.controlNav = (FLEX.controlNav == 'enable')? true: false;
|
||||
FLEX.directionNav = (FLEX.directionNav == 'enable')? true: false;
|
||||
|
||||
jQuery('.flexslider').not('.carousel-included').flexslider({
|
||||
animation: FLEX.animation,
|
||||
slideshowSpeed: parseInt(FLEX.slideshowSpeed),
|
||||
animationSpeed: parseInt(FLEX.animationSpeed),
|
||||
controlNav: FLEX.controlNav,
|
||||
directionNav: FLEX.directionNav,
|
||||
pauseOnHover: FLEX.pauseOnHover,
|
||||
pauseOnAction: FLEX.pauseOnAction,
|
||||
start: function(slider){ jQuery('body').removeClass('loading'); }
|
||||
});
|
||||
|
||||
// carousel slider
|
||||
var flex_carousel = jQuery('.flexslider.carousel-included');
|
||||
flex_carousel.each(function(){
|
||||
var top_slider = (jQuery(this).parents('.gdl-top-slider-wrapper').length > 0);
|
||||
var item_width = parseInt(jQuery(this).attr('data-width'));
|
||||
|
||||
jQuery(this).flexslider({
|
||||
animation: "slide",
|
||||
controlNav: false,
|
||||
animationLoop: false,
|
||||
slideshow: false,
|
||||
itemWidth: item_width,
|
||||
itemMargin: 0
|
||||
});
|
||||
|
||||
jQuery(this).find('ul li').hover(function(){
|
||||
jQuery(this).find('.gdl-caption-overlay').animate({opacity: 0.2}, 200);
|
||||
if( top_slider ){
|
||||
jQuery(this).find('.gdl-slider-caption').slideDown(200);
|
||||
jQuery(this).find('.post-slider-comment').fadeIn(200);
|
||||
}
|
||||
}, function(){
|
||||
jQuery(this).find('.gdl-caption-overlay').animate({opacity: 0.5}, 200);
|
||||
if( top_slider ){
|
||||
jQuery(this).find('.gdl-slider-caption').slideUp(200);
|
||||
jQuery(this).find('.post-slider-comment').fadeOut(200);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
@@ -0,0 +1,715 @@
|
||||
/*
|
||||
* jQuery Nivo Slider v3.0.1
|
||||
* http://nivo.dev7studios.com
|
||||
*
|
||||
* Copyright 2012, Dev7studios
|
||||
* Free to use and abuse under the MIT license.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
var NivoSlider = function(element, options){
|
||||
// Defaults are below
|
||||
var settings = $.extend({}, $.fn.nivoSlider.defaults, options);
|
||||
|
||||
// Useful variables. Play carefully.
|
||||
var vars = {
|
||||
currentSlide: 0,
|
||||
currentImage: '',
|
||||
totalSlides: 0,
|
||||
running: false,
|
||||
paused: false,
|
||||
stop: false,
|
||||
controlNavEl: false
|
||||
};
|
||||
|
||||
// Get this slider
|
||||
var slider = $(element);
|
||||
slider.data('nivo:vars', vars).addClass('nivoSlider');
|
||||
|
||||
// Find our slider children
|
||||
var kids = slider.children();
|
||||
kids.each(function() {
|
||||
var child = $(this);
|
||||
var link = '';
|
||||
if(!child.is('img')){
|
||||
if(child.is('a')){
|
||||
child.addClass('nivo-imageLink');
|
||||
link = child;
|
||||
}
|
||||
child = child.find('img:first');
|
||||
}
|
||||
// Get img width & height
|
||||
var childWidth = (childWidth === 0) ? child.attr('width') : child.width(),
|
||||
childHeight = (childHeight === 0) ? child.attr('height') : child.height();
|
||||
|
||||
if(link !== ''){
|
||||
link.css('display','none');
|
||||
}
|
||||
child.css('display','none');
|
||||
vars.totalSlides++;
|
||||
});
|
||||
|
||||
// If randomStart
|
||||
if(settings.randomStart){
|
||||
settings.startSlide = Math.floor(Math.random() * vars.totalSlides);
|
||||
}
|
||||
|
||||
// Set startSlide
|
||||
if(settings.startSlide > 0){
|
||||
if(settings.startSlide >= vars.totalSlides) { settings.startSlide = vars.totalSlides - 1; }
|
||||
vars.currentSlide = settings.startSlide;
|
||||
}
|
||||
|
||||
// Get initial image
|
||||
if($(kids[vars.currentSlide]).is('img')){
|
||||
vars.currentImage = $(kids[vars.currentSlide]);
|
||||
} else {
|
||||
vars.currentImage = $(kids[vars.currentSlide]).find('img:first');
|
||||
}
|
||||
|
||||
// Show initial link
|
||||
if($(kids[vars.currentSlide]).is('a')){
|
||||
$(kids[vars.currentSlide]).css('display','block');
|
||||
}
|
||||
|
||||
// Set first background
|
||||
var sliderImg = $('<img class="nivo-main-image" src="#" />');
|
||||
sliderImg.attr('src', vars.currentImage.attr('src')).show();
|
||||
slider.append(sliderImg);
|
||||
|
||||
// Detect Window Resize
|
||||
$(window).resize(function() {
|
||||
slider.children('img').width(slider.width());
|
||||
sliderImg.attr('src', vars.currentImage.attr('src'));
|
||||
sliderImg.stop().height('auto');
|
||||
$('.nivo-slice').remove();
|
||||
$('.nivo-box').remove();
|
||||
});
|
||||
|
||||
//Create caption
|
||||
slider.append($('<div class="nivo-caption"></div>'));
|
||||
|
||||
// Process caption function
|
||||
var processCaption = function(settings){
|
||||
var nivoCaption = $('.nivo-caption', slider);
|
||||
if(vars.currentImage.attr('title') != '' && vars.currentImage.attr('title') != undefined){
|
||||
var title = vars.currentImage.attr('title');
|
||||
if(title.substr(0,1) == '#') title = $(title).html();
|
||||
|
||||
if(nivoCaption.css('display') == 'block'){
|
||||
nivoCaption.stop().fadeTo(settings.animSpeed, 0, function(){
|
||||
$(this).html(title);
|
||||
|
||||
/*Using Cufon in title*/
|
||||
if( typeof(Cufon) != 'undefined' ){
|
||||
var gdl_font_fam = nivoCaption.find('.gdl-slider-title').css('font-family');
|
||||
gdl_font_fam = gdl_font_fam.replace(/'/g,"");
|
||||
if( Cufon.hasFont( gdl_font_fam ) ){
|
||||
Cufon.replace(nivoCaption.find('.gdl-slider-title'), {fontFamily: gdl_font_fam});
|
||||
}
|
||||
}
|
||||
$(this).stop().fadeTo(settings.animSpeed, 1);
|
||||
});
|
||||
} else {
|
||||
nivoCaption.html(title);
|
||||
|
||||
/*Using Cufon in title*/
|
||||
if( typeof(Cufon) != 'undefined' ){
|
||||
var gdl_font_fam = nivoCaption.find('.gdl-slider-title').css('font-family');
|
||||
gdl_font_fam = gdl_font_fam.replace(/'/g,"");
|
||||
if( Cufon.hasFont( gdl_font_fam ) ){
|
||||
Cufon.replace(nivoCaption.find('.gdl-slider-title'), {fontFamily: gdl_font_fam});
|
||||
}
|
||||
}
|
||||
nivoCaption.stop().fadeIn(settings.animSpeed);
|
||||
}
|
||||
} else {
|
||||
nivoCaption.stop().fadeOut(settings.animSpeed);
|
||||
}
|
||||
}
|
||||
|
||||
//Process initial caption
|
||||
processCaption(settings);
|
||||
|
||||
// In the words of Super Mario "let's a go!"
|
||||
var timer = 0;
|
||||
if(!settings.manualAdvance && kids.length > 1){
|
||||
timer = setInterval(function(){ nivoRun(slider, kids, settings, false); }, settings.pauseTime);
|
||||
}
|
||||
|
||||
// Add Direction nav
|
||||
if(settings.directionNav){
|
||||
var direction_nav = $('<div class="nivo-directionNav"></div>');
|
||||
var prev_nav = $('<a class="nivo-prevNav">'+ settings.prevText +'</a>');
|
||||
var next_nav = $('<a class="nivo-nextNav">'+ settings.nextText +'</a>');
|
||||
|
||||
direction_nav.append(prev_nav);
|
||||
direction_nav.append(next_nav);
|
||||
slider.after(direction_nav);
|
||||
|
||||
// Hide Direction nav
|
||||
if(settings.directionNavHide){
|
||||
$('.nivo-directionNav', slider).hide();
|
||||
slider.hover(function(){
|
||||
$('.nivo-directionNav', slider).show();
|
||||
}, function(){
|
||||
$('.nivo-directionNav', slider).hide();
|
||||
});
|
||||
}
|
||||
|
||||
prev_nav.click( function(){
|
||||
if(vars.running) { return false; }
|
||||
clearInterval(timer);
|
||||
timer = '';
|
||||
vars.currentSlide -= 2;
|
||||
nivoRun(slider, kids, settings, 'prev');
|
||||
});
|
||||
|
||||
next_nav.click( function(){
|
||||
if(vars.running) { return false; }
|
||||
clearInterval(timer);
|
||||
timer = '';
|
||||
nivoRun(slider, kids, settings, 'next');
|
||||
});
|
||||
}
|
||||
|
||||
// Add Control nav
|
||||
if(settings.controlNav){
|
||||
var controlNavWrapper = $('<div class="nivo-controlNav-wrapper"></div>');
|
||||
|
||||
vars.controlNavEl = $('<div class="nivo-controlNav"></div>');
|
||||
controlNavWrapper.append( vars.controlNavEl );
|
||||
|
||||
slider.after(controlNavWrapper);
|
||||
for(var i = 0; i < kids.length; i++){
|
||||
if(settings.controlNavThumbs){
|
||||
vars.controlNavEl.addClass('nivo-thumbs-enabled');
|
||||
var child = kids.eq(i);
|
||||
if(!child.is('img')){
|
||||
child = child.find('img:first');
|
||||
}
|
||||
if(child.attr('data-thumb')) vars.controlNavEl.append('<a class="nivo-control" rel="'+ i +'"><img src="'+ child.attr('data-thumb') +'" alt="" /></a>');
|
||||
} else {
|
||||
vars.controlNavEl.append('<a class="nivo-control" rel="'+ i +'">'+ (i + 1) +'</a>');
|
||||
}
|
||||
}
|
||||
|
||||
//Set initial active link
|
||||
$('a:eq('+ vars.currentSlide +')', vars.controlNavEl).addClass('active');
|
||||
|
||||
$('a', vars.controlNavEl).bind('click', function(){
|
||||
if(vars.running) return false;
|
||||
if($(this).hasClass('active')) return false;
|
||||
clearInterval(timer);
|
||||
timer = '';
|
||||
sliderImg.attr('src', vars.currentImage.attr('src'));
|
||||
vars.currentSlide = $(this).attr('rel') - 1;
|
||||
nivoRun(slider, kids, settings, 'control');
|
||||
});
|
||||
}
|
||||
|
||||
//For pauseOnHover setting
|
||||
if(settings.pauseOnHover){
|
||||
slider.hover(function(){
|
||||
vars.paused = true;
|
||||
clearInterval(timer);
|
||||
timer = '';
|
||||
}, function(){
|
||||
vars.paused = false;
|
||||
// Restart the timer
|
||||
if(timer === '' && !settings.manualAdvance){
|
||||
timer = setInterval(function(){ nivoRun(slider, kids, settings, false); }, settings.pauseTime);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Event when Animation finishes
|
||||
slider.bind('nivo:animFinished', function(){
|
||||
sliderImg.attr('src', vars.currentImage.attr('src'));
|
||||
vars.running = false;
|
||||
// Hide child links
|
||||
$(kids).each(function(){
|
||||
if($(this).is('a')){
|
||||
$(this).css('display','none');
|
||||
}
|
||||
});
|
||||
// Show current link
|
||||
if($(kids[vars.currentSlide]).is('a')){
|
||||
$(kids[vars.currentSlide]).css('display','block');
|
||||
}
|
||||
// Restart the timer
|
||||
if(timer === '' && !vars.paused && !settings.manualAdvance){
|
||||
timer = setInterval(function(){ nivoRun(slider, kids, settings, false); }, settings.pauseTime);
|
||||
}
|
||||
// Trigger the afterChange callback
|
||||
settings.afterChange.call(this);
|
||||
});
|
||||
|
||||
// Add slices for slice animations
|
||||
var createSlices = function(slider, settings, vars) {
|
||||
if($(vars.currentImage).parent().is('a')) $(vars.currentImage).parent().css('display','block');
|
||||
$('img[src="'+ vars.currentImage.attr('src') +'"]', slider).not('.nivo-main-image,.nivo-control img').width(slider.width()).css('visibility', 'hidden').show();
|
||||
var sliceHeight = ($('img[src="'+ vars.currentImage.attr('src') +'"]', slider).not('.nivo-main-image,.nivo-control img').parent().is('a')) ? $('img[src="'+ vars.currentImage.attr('src') +'"]', slider).not('.nivo-main-image,.nivo-control img').parent().height() : $('img[src="'+ vars.currentImage.attr('src') +'"]', slider).not('.nivo-main-image,.nivo-control img').height();
|
||||
|
||||
for(var i = 0; i < settings.slices; i++){
|
||||
var sliceWidth = Math.round(slider.width()/settings.slices);
|
||||
|
||||
if(i === settings.slices-1){
|
||||
slider.append(
|
||||
$('<div class="nivo-slice" name="'+i+'"><img src="'+ vars.currentImage.attr('src') +'" style="position:absolute; width:'+ slider.width() +'px; height:auto; display:block !important; top:0; left:-'+ ((sliceWidth + (i * sliceWidth)) - sliceWidth) +'px;" /></div>').css({
|
||||
left:(sliceWidth*i)+'px',
|
||||
width:(slider.width()-(sliceWidth*i))+'px',
|
||||
height:sliceHeight+'px',
|
||||
opacity:'0',
|
||||
overflow:'hidden'
|
||||
})
|
||||
);
|
||||
} else {
|
||||
slider.append(
|
||||
$('<div class="nivo-slice" name="'+i+'"><img src="'+ vars.currentImage.attr('src') +'" style="position:absolute; width:'+ slider.width() +'px; height:auto; display:block !important; top:0; left:-'+ ((sliceWidth + (i * sliceWidth)) - sliceWidth) +'px;" /></div>').css({
|
||||
left:(sliceWidth*i)+'px',
|
||||
width:sliceWidth+'px',
|
||||
height:sliceHeight+'px',
|
||||
opacity:'0',
|
||||
overflow:'hidden'
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$('.nivo-slice', slider).height(sliceHeight);
|
||||
sliderImg.stop().animate({
|
||||
height: $(vars.currentImage).height()
|
||||
}, settings.animSpeed);
|
||||
};
|
||||
|
||||
// Add boxes for box animations
|
||||
var createBoxes = function(slider, settings, vars){
|
||||
if($(vars.currentImage).parent().is('a')) $(vars.currentImage).parent().css('display','block');
|
||||
$('img[src="'+ vars.currentImage.attr('src') +'"]', slider).not('.nivo-main-image,.nivo-control img').width(slider.width()).css('visibility', 'hidden').show();
|
||||
var boxWidth = Math.round(slider.width()/settings.boxCols),
|
||||
boxHeight = Math.round($('img[src="'+ vars.currentImage.attr('src') +'"]', slider).not('.nivo-main-image,.nivo-control img').height() / settings.boxRows);
|
||||
|
||||
|
||||
for(var rows = 0; rows < settings.boxRows; rows++){
|
||||
for(var cols = 0; cols < settings.boxCols; cols++){
|
||||
if(cols === settings.boxCols-1){
|
||||
slider.append(
|
||||
$('<div class="nivo-box" name="'+ cols +'" rel="'+ rows +'"><img src="'+ vars.currentImage.attr('src') +'" style="position:absolute; width:'+ slider.width() +'px; height:auto; display:block; top:-'+ (boxHeight*rows) +'px; left:-'+ (boxWidth*cols) +'px;" /></div>').css({
|
||||
opacity:0,
|
||||
left:(boxWidth*cols)+'px',
|
||||
top:(boxHeight*rows)+'px',
|
||||
width:(slider.width()-(boxWidth*cols))+'px'
|
||||
|
||||
})
|
||||
);
|
||||
$('.nivo-box[name="'+ cols +'"]', slider).height($('.nivo-box[name="'+ cols +'"] img', slider).height()+'px');
|
||||
} else {
|
||||
slider.append(
|
||||
$('<div class="nivo-box" name="'+ cols +'" rel="'+ rows +'"><img src="'+ vars.currentImage.attr('src') +'" style="position:absolute; width:'+ slider.width() +'px; height:auto; display:block; top:-'+ (boxHeight*rows) +'px; left:-'+ (boxWidth*cols) +'px;" /></div>').css({
|
||||
opacity:0,
|
||||
left:(boxWidth*cols)+'px',
|
||||
top:(boxHeight*rows)+'px',
|
||||
width:boxWidth+'px'
|
||||
})
|
||||
);
|
||||
$('.nivo-box[name="'+ cols +'"]', slider).height($('.nivo-box[name="'+ cols +'"] img', slider).height()+'px');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sliderImg.stop().animate({
|
||||
height: $(vars.currentImage).height()
|
||||
}, settings.animSpeed);
|
||||
};
|
||||
|
||||
// Private run method
|
||||
var nivoRun = function(slider, kids, settings, nudge){
|
||||
// Get our vars
|
||||
var vars = slider.data('nivo:vars');
|
||||
|
||||
// Trigger the lastSlide callback
|
||||
if(vars && (vars.currentSlide === vars.totalSlides - 1)){
|
||||
settings.lastSlide.call(this);
|
||||
}
|
||||
|
||||
// Stop
|
||||
if((!vars || vars.stop) && !nudge) { return false; }
|
||||
|
||||
// Trigger the beforeChange callback
|
||||
settings.beforeChange.call(this);
|
||||
|
||||
// Set current background before change
|
||||
if(!nudge){
|
||||
sliderImg.attr('src', vars.currentImage.attr('src'));
|
||||
} else {
|
||||
if(nudge === 'prev'){
|
||||
sliderImg.attr('src', vars.currentImage.attr('src'));
|
||||
}
|
||||
if(nudge === 'next'){
|
||||
sliderImg.attr('src', vars.currentImage.attr('src'));
|
||||
}
|
||||
}
|
||||
|
||||
vars.currentSlide++;
|
||||
// Trigger the slideshowEnd callback
|
||||
if(vars.currentSlide === vars.totalSlides){
|
||||
vars.currentSlide = 0;
|
||||
settings.slideshowEnd.call(this);
|
||||
}
|
||||
if(vars.currentSlide < 0) { vars.currentSlide = (vars.totalSlides - 1); }
|
||||
// Set vars.currentImage
|
||||
if($(kids[vars.currentSlide]).is('img')){
|
||||
vars.currentImage = $(kids[vars.currentSlide]);
|
||||
} else {
|
||||
vars.currentImage = $(kids[vars.currentSlide]).find('img:first');
|
||||
}
|
||||
|
||||
// Set active links
|
||||
if(settings.controlNav){
|
||||
$('a', vars.controlNavEl).removeClass('active');
|
||||
$('a:eq('+ vars.currentSlide +')', vars.controlNavEl).addClass('active');
|
||||
}
|
||||
|
||||
// Process caption
|
||||
processCaption(settings);
|
||||
|
||||
// Remove any slices from last transition
|
||||
$('.nivo-slice', slider).remove();
|
||||
|
||||
// Remove any boxes from last transition
|
||||
$('.nivo-box', slider).remove();
|
||||
|
||||
var currentEffect = settings.effect,
|
||||
anims = '';
|
||||
|
||||
// Generate random effect
|
||||
if(settings.effect === 'random'){
|
||||
anims = new Array('sliceDownRight','sliceDownLeft','sliceUpRight','sliceUpLeft','sliceUpDown','sliceUpDownLeft','fold','fade',
|
||||
'boxRandom','boxRain','boxRainReverse','boxRainGrow','boxRainGrowReverse');
|
||||
currentEffect = anims[Math.floor(Math.random()*(anims.length + 1))];
|
||||
if(currentEffect === undefined) { currentEffect = 'fade'; }
|
||||
}
|
||||
|
||||
// Run random effect from specified set (eg: effect:'fold,fade')
|
||||
if(settings.effect.indexOf(',') !== -1){
|
||||
anims = settings.effect.split(',');
|
||||
currentEffect = anims[Math.floor(Math.random()*(anims.length))];
|
||||
if(currentEffect === undefined) { currentEffect = 'fade'; }
|
||||
}
|
||||
|
||||
// Custom transition as defined by "data-transition" attribute
|
||||
if(vars.currentImage.attr('data-transition')){
|
||||
currentEffect = vars.currentImage.attr('data-transition');
|
||||
}
|
||||
|
||||
// Run effects
|
||||
vars.running = true;
|
||||
var timeBuff = 0,
|
||||
i = 0,
|
||||
slices = '',
|
||||
firstSlice = '',
|
||||
totalBoxes = '',
|
||||
boxes = '';
|
||||
|
||||
if(currentEffect === 'sliceDown' || currentEffect === 'sliceDownRight' || currentEffect === 'sliceDownLeft'){
|
||||
createSlices(slider, settings, vars);
|
||||
timeBuff = 0;
|
||||
i = 0;
|
||||
slices = $('.nivo-slice', slider);
|
||||
if(currentEffect === 'sliceDownLeft') { slices = $('.nivo-slice', slider)._reverse(); }
|
||||
|
||||
slices.each(function(){
|
||||
var slice = $(this);
|
||||
slice.css({ 'top': '0px' });
|
||||
if(i === settings.slices-1){
|
||||
setTimeout(function(){
|
||||
slice.animate({opacity:'1.0' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); });
|
||||
}, (100 + timeBuff));
|
||||
} else {
|
||||
setTimeout(function(){
|
||||
slice.animate({opacity:'1.0' }, settings.animSpeed);
|
||||
}, (100 + timeBuff));
|
||||
}
|
||||
timeBuff += 50;
|
||||
i++;
|
||||
});
|
||||
} else if(currentEffect === 'sliceUp' || currentEffect === 'sliceUpRight' || currentEffect === 'sliceUpLeft'){
|
||||
createSlices(slider, settings, vars);
|
||||
timeBuff = 0;
|
||||
i = 0;
|
||||
slices = $('.nivo-slice', slider);
|
||||
if(currentEffect === 'sliceUpLeft') { slices = $('.nivo-slice', slider)._reverse(); }
|
||||
|
||||
slices.each(function(){
|
||||
var slice = $(this);
|
||||
slice.css({ 'bottom': '0px' });
|
||||
if(i === settings.slices-1){
|
||||
setTimeout(function(){
|
||||
slice.animate({opacity:'1.0' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); });
|
||||
}, (100 + timeBuff));
|
||||
} else {
|
||||
setTimeout(function(){
|
||||
slice.animate({opacity:'1.0' }, settings.animSpeed);
|
||||
}, (100 + timeBuff));
|
||||
}
|
||||
timeBuff += 50;
|
||||
i++;
|
||||
});
|
||||
} else if(currentEffect === 'sliceUpDown' || currentEffect === 'sliceUpDownRight' || currentEffect === 'sliceUpDownLeft'){
|
||||
createSlices(slider, settings, vars);
|
||||
timeBuff = 0;
|
||||
i = 0;
|
||||
var v = 0;
|
||||
slices = $('.nivo-slice', slider);
|
||||
if(currentEffect === 'sliceUpDownLeft') { slices = $('.nivo-slice', slider)._reverse(); }
|
||||
|
||||
slices.each(function(){
|
||||
var slice = $(this);
|
||||
if(i === 0){
|
||||
slice.css('top','0px');
|
||||
i++;
|
||||
} else {
|
||||
slice.css('bottom','0px');
|
||||
i = 0;
|
||||
}
|
||||
|
||||
if(v === settings.slices-1){
|
||||
setTimeout(function(){
|
||||
slice.animate({opacity:'1.0' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); });
|
||||
}, (100 + timeBuff));
|
||||
} else {
|
||||
setTimeout(function(){
|
||||
slice.animate({opacity:'1.0' }, settings.animSpeed);
|
||||
}, (100 + timeBuff));
|
||||
}
|
||||
timeBuff += 50;
|
||||
v++;
|
||||
});
|
||||
} else if(currentEffect === 'fold'){
|
||||
createSlices(slider, settings, vars);
|
||||
timeBuff = 0;
|
||||
i = 0;
|
||||
|
||||
$('.nivo-slice', slider).each(function(){
|
||||
var slice = $(this);
|
||||
var origWidth = slice.width();
|
||||
slice.css({ top:'0px', width:'0px' });
|
||||
if(i === settings.slices-1){
|
||||
setTimeout(function(){
|
||||
slice.animate({ width:origWidth, opacity:'1.0' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); });
|
||||
}, (100 + timeBuff));
|
||||
} else {
|
||||
setTimeout(function(){
|
||||
slice.animate({ width:origWidth, opacity:'1.0' }, settings.animSpeed);
|
||||
}, (100 + timeBuff));
|
||||
}
|
||||
timeBuff += 50;
|
||||
i++;
|
||||
});
|
||||
} else if(currentEffect === 'fade'){
|
||||
createSlices(slider, settings, vars);
|
||||
|
||||
firstSlice = $('.nivo-slice:first', slider);
|
||||
firstSlice.css({
|
||||
'width': slider.width() + 'px'
|
||||
});
|
||||
|
||||
firstSlice.animate({ opacity:'1.0' }, (settings.animSpeed*2), '', function(){ slider.trigger('nivo:animFinished'); });
|
||||
} else if(currentEffect === 'slideInRight'){
|
||||
createSlices(slider, settings, vars);
|
||||
|
||||
firstSlice = $('.nivo-slice:first', slider);
|
||||
firstSlice.css({
|
||||
'width': '0px',
|
||||
'opacity': '1'
|
||||
});
|
||||
|
||||
firstSlice.animate({ width: slider.width() + 'px' }, (settings.animSpeed*2), '', function(){ slider.trigger('nivo:animFinished'); });
|
||||
} else if(currentEffect === 'slideInLeft'){
|
||||
createSlices(slider, settings, vars);
|
||||
|
||||
firstSlice = $('.nivo-slice:first', slider);
|
||||
firstSlice.css({
|
||||
'width': '0px',
|
||||
'opacity': '1',
|
||||
'left': '',
|
||||
'right': '0px'
|
||||
});
|
||||
|
||||
firstSlice.animate({ width: slider.width() + 'px' }, (settings.animSpeed*2), '', function(){
|
||||
// Reset positioning
|
||||
firstSlice.css({
|
||||
'left': '0px',
|
||||
'right': ''
|
||||
});
|
||||
slider.trigger('nivo:animFinished');
|
||||
});
|
||||
} else if(currentEffect === 'boxRandom'){
|
||||
createBoxes(slider, settings, vars);
|
||||
|
||||
totalBoxes = settings.boxCols * settings.boxRows;
|
||||
i = 0;
|
||||
timeBuff = 0;
|
||||
|
||||
boxes = shuffle($('.nivo-box', slider));
|
||||
boxes.each(function(){
|
||||
var box = $(this);
|
||||
if(i === totalBoxes-1){
|
||||
setTimeout(function(){
|
||||
box.animate({ opacity:'1' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); });
|
||||
}, (100 + timeBuff));
|
||||
} else {
|
||||
setTimeout(function(){
|
||||
box.animate({ opacity:'1' }, settings.animSpeed);
|
||||
}, (100 + timeBuff));
|
||||
}
|
||||
timeBuff += 20;
|
||||
i++;
|
||||
});
|
||||
} else if(currentEffect === 'boxRain' || currentEffect === 'boxRainReverse' || currentEffect === 'boxRainGrow' || currentEffect === 'boxRainGrowReverse'){
|
||||
createBoxes(slider, settings, vars);
|
||||
|
||||
totalBoxes = settings.boxCols * settings.boxRows;
|
||||
i = 0;
|
||||
timeBuff = 0;
|
||||
|
||||
// Split boxes into 2D array
|
||||
var rowIndex = 0;
|
||||
var colIndex = 0;
|
||||
var box2Darr = [];
|
||||
box2Darr[rowIndex] = [];
|
||||
boxes = $('.nivo-box', slider);
|
||||
if(currentEffect === 'boxRainReverse' || currentEffect === 'boxRainGrowReverse'){
|
||||
boxes = $('.nivo-box', slider)._reverse();
|
||||
}
|
||||
boxes.each(function(){
|
||||
box2Darr[rowIndex][colIndex] = $(this);
|
||||
colIndex++;
|
||||
if(colIndex === settings.boxCols){
|
||||
rowIndex++;
|
||||
colIndex = 0;
|
||||
box2Darr[rowIndex] = [];
|
||||
}
|
||||
});
|
||||
|
||||
// Run animation
|
||||
for(var cols = 0; cols < (settings.boxCols * 2); cols++){
|
||||
var prevCol = cols;
|
||||
for(var rows = 0; rows < settings.boxRows; rows++){
|
||||
if(prevCol >= 0 && prevCol < settings.boxCols){
|
||||
/* Due to some weird JS bug with loop vars
|
||||
being used in setTimeout, this is wrapped
|
||||
with an anonymous function call */
|
||||
(function(row, col, time, i, totalBoxes) {
|
||||
var box = $(box2Darr[row][col]);
|
||||
var w = box.width();
|
||||
var h = box.height();
|
||||
if(currentEffect === 'boxRainGrow' || currentEffect === 'boxRainGrowReverse'){
|
||||
box.width(0).height(0);
|
||||
}
|
||||
if(i === totalBoxes-1){
|
||||
setTimeout(function(){
|
||||
box.animate({ opacity:'1', width:w, height:h }, settings.animSpeed/1.3, '', function(){ slider.trigger('nivo:animFinished'); });
|
||||
}, (100 + time));
|
||||
} else {
|
||||
setTimeout(function(){
|
||||
box.animate({ opacity:'1', width:w, height:h }, settings.animSpeed/1.3);
|
||||
}, (100 + time));
|
||||
}
|
||||
})(rows, prevCol, timeBuff, i, totalBoxes);
|
||||
i++;
|
||||
}
|
||||
prevCol--;
|
||||
}
|
||||
timeBuff += 100;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Shuffle an array
|
||||
var shuffle = function(arr){
|
||||
for(var j, x, i = arr.length; i; j = parseInt(Math.random() * i, 10), x = arr[--i], arr[i] = arr[j], arr[j] = x);
|
||||
return arr;
|
||||
};
|
||||
|
||||
// For debugging
|
||||
var trace = function(msg){
|
||||
if(this.console && typeof console.log !== 'undefined') { console.log(msg); }
|
||||
};
|
||||
|
||||
// Start / Stop
|
||||
this.stop = function(){
|
||||
if(!$(element).data('nivo:vars').stop){
|
||||
$(element).data('nivo:vars').stop = true;
|
||||
trace('Stop Slider');
|
||||
}
|
||||
};
|
||||
|
||||
this.start = function(){
|
||||
if($(element).data('nivo:vars').stop){
|
||||
$(element).data('nivo:vars').stop = false;
|
||||
trace('Start Slider');
|
||||
}
|
||||
};
|
||||
|
||||
// Trigger the afterLoad callback
|
||||
settings.afterLoad.call(this);
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
$.fn.nivoSlider = function(options) {
|
||||
return this.each(function(key, value){
|
||||
var element = $(this);
|
||||
// Return early if this element already has a plugin instance
|
||||
if (element.data('nivoslider')) { return element.data('nivoslider'); }
|
||||
// Pass options to plugin constructor
|
||||
var nivoslider = new NivoSlider(this, options);
|
||||
// Store plugin object in this element's data
|
||||
element.data('nivoslider', nivoslider);
|
||||
});
|
||||
};
|
||||
|
||||
//Default settings
|
||||
$.fn.nivoSlider.defaults = {
|
||||
effect: 'random',
|
||||
slices: 15,
|
||||
boxCols: 8,
|
||||
boxRows: 4,
|
||||
animSpeed: 500,
|
||||
pauseTime: 3000,
|
||||
startSlide: 0,
|
||||
directionNav: true,
|
||||
directionNavHide: true,
|
||||
controlNav: true,
|
||||
controlNavThumbs: false,
|
||||
pauseOnHover: true,
|
||||
manualAdvance: false,
|
||||
prevText: 'Prev',
|
||||
nextText: 'Next',
|
||||
randomStart: false,
|
||||
beforeChange: function(){},
|
||||
afterChange: function(){},
|
||||
slideshowEnd: function(){},
|
||||
lastSlide: function(){},
|
||||
afterLoad: function(){}
|
||||
};
|
||||
|
||||
$.fn._reverse = [].reverse;
|
||||
|
||||
})(jQuery);
|
||||
|
||||
jQuery(window).load(function() {
|
||||
|
||||
// Nivo Slider Setting
|
||||
NIVO.pauseOnHover = (NIVO.pauseOnHover == 'enable')? true: false;
|
||||
NIVO.controlNav = (NIVO.controlNav == 'enable')? true: false;
|
||||
NIVO.directionNav = (NIVO.directionNav == 'enable')? true: false;
|
||||
NIVO.directionNavHide = false;
|
||||
NIVO.animSpeed = parseInt(NIVO.animSpeed);
|
||||
NIVO.pauseTime = parseInt(NIVO.pauseTime);
|
||||
|
||||
jQuery('.nivoSlider').nivoSlider( NIVO );
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
/*!
|
||||
* jQuery Transit - CSS3 transitions and transformations
|
||||
* (c) 2011-2012 Rico Sta. Cruz <rico@ricostacruz.com>
|
||||
* MIT Licensed.
|
||||
*
|
||||
* http://ricostacruz.com/jquery.transit
|
||||
* http://github.com/rstacruz/jquery.transit
|
||||
*/
|
||||
(function(k){k.transit={version:"0.9.9",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:true,useTransitionEnd:false};var d=document.createElement("div");var q={};function b(v){if(v in d.style){return v}var u=["Moz","Webkit","O","ms"];var r=v.charAt(0).toUpperCase()+v.substr(1);if(v in d.style){return v}for(var t=0;t<u.length;++t){var s=u[t]+r;if(s in d.style){return s}}}function e(){d.style[q.transform]="";d.style[q.transform]="rotateY(90deg)";return d.style[q.transform]!==""}var a=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;q.transition=b("transition");q.transitionDelay=b("transitionDelay");q.transform=b("transform");q.transformOrigin=b("transformOrigin");q.transform3d=e();var i={transition:"transitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"};var f=q.transitionEnd=i[q.transition]||null;for(var p in q){if(q.hasOwnProperty(p)&&typeof k.support[p]==="undefined"){k.support[p]=q[p]}}d=null;k.cssEase={_default:"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};k.cssHooks["transit:transform"]={get:function(r){return k(r).data("transform")||new j()},set:function(s,r){var t=r;if(!(t instanceof j)){t=new j(t)}if(q.transform==="WebkitTransform"&&!a){s.style[q.transform]=t.toString(true)}else{s.style[q.transform]=t.toString()}k(s).data("transform",t)}};k.cssHooks.transform={set:k.cssHooks["transit:transform"].set};if(k.fn.jquery<"1.8"){k.cssHooks.transformOrigin={get:function(r){return r.style[q.transformOrigin]},set:function(r,s){r.style[q.transformOrigin]=s}};k.cssHooks.transition={get:function(r){return r.style[q.transition]},set:function(r,s){r.style[q.transition]=s}}}n("scale");n("translate");n("rotate");n("rotateX");n("rotateY");n("rotate3d");n("perspective");n("skewX");n("skewY");n("x",true);n("y",true);function j(r){if(typeof r==="string"){this.parse(r)}return this}j.prototype={setFromString:function(t,s){var r=(typeof s==="string")?s.split(","):(s.constructor===Array)?s:[s];r.unshift(t);j.prototype.set.apply(this,r)},set:function(s){var r=Array.prototype.slice.apply(arguments,[1]);if(this.setter[s]){this.setter[s].apply(this,r)}else{this[s]=r.join(",")}},get:function(r){if(this.getter[r]){return this.getter[r].apply(this)}else{return this[r]||0}},setter:{rotate:function(r){this.rotate=o(r,"deg")},rotateX:function(r){this.rotateX=o(r,"deg")},rotateY:function(r){this.rotateY=o(r,"deg")},scale:function(r,s){if(s===undefined){s=r}this.scale=r+","+s},skewX:function(r){this.skewX=o(r,"deg")},skewY:function(r){this.skewY=o(r,"deg")},perspective:function(r){this.perspective=o(r,"px")},x:function(r){this.set("translate",r,null)},y:function(r){this.set("translate",null,r)},translate:function(r,s){if(this._translateX===undefined){this._translateX=0}if(this._translateY===undefined){this._translateY=0}if(r!==null&&r!==undefined){this._translateX=o(r,"px")}if(s!==null&&s!==undefined){this._translateY=o(s,"px")}this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var r=(this.scale||"1,1").split(",");if(r[0]){r[0]=parseFloat(r[0])}if(r[1]){r[1]=parseFloat(r[1])}return(r[0]===r[1])?r[0]:r},rotate3d:function(){var t=(this.rotate3d||"0,0,0,0deg").split(",");for(var r=0;r<=3;++r){if(t[r]){t[r]=parseFloat(t[r])}}if(t[3]){t[3]=o(t[3],"deg")}return t}},parse:function(s){var r=this;s.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(t,v,u){r.setFromString(v,u)})},toString:function(t){var s=[];for(var r in this){if(this.hasOwnProperty(r)){if((!q.transform3d)&&((r==="rotateX")||(r==="rotateY")||(r==="perspective")||(r==="transformOrigin"))){continue}if(r[0]!=="_"){if(t&&(r==="scale")){s.push(r+"3d("+this[r]+",1)")}else{if(t&&(r==="translatLine truncated
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Pause jQuery plugin v0.1
|
||||
*
|
||||
* Copyright 2010 by Tobia Conforto <tobia.conforto@gmail.com>
|
||||
*
|
||||
* Based on Pause-resume-animation jQuery plugin by Joe Weitzel
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation; either version 2 of the License, or(at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, write to the Free Software Foundation, Inc., 51
|
||||
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
(function(){var e=jQuery,f="jQuery.pause",d=1,b=e.fn.animate,a={};function c(){return new Date().getTime()}e.fn.animate=function(k,h,j,i){var g=e.speed(h,j,i);g.complete=g.old;return this.each(function(){if(!this[f]){this[f]=d++}var l=e.extend({},g);b.apply(e(this),[k,e.extend({},l)]);a[this[f]]={run:true,prop:k,opt:l,start:c(),done:0}})};e.fn.pause=function(){return this.each(function(){if(!this[f]){this[f]=d++}var g=a[this[f]];if(g&&g.run){g.done+=c()-g.start;if(g.done>g.opt.duration){delete a[this[f]]}else{e(this).stop();g.run=false}}})};e.fn.resume=function(){return this.each(function(){if(!this[f]){this[f]=d++}var g=a[this[f]];if(g&&!g.run){g.opt.duration-=g.done;g.done=0;g.run=true;g.start=c();b.apply(e(this),[g.prop,e.extend({},g.opt)])}})}})();
|
||||
|
||||
jQuery(document).ready(function(){
|
||||
var marquee = jQuery("#marquee");
|
||||
var time_multiplier = 20;
|
||||
var current;
|
||||
|
||||
marquee.hover(function(){
|
||||
current.pause();
|
||||
}, function(){
|
||||
current.resume();
|
||||
})
|
||||
|
||||
var reset = function() {
|
||||
current = jQuery(this);
|
||||
var item_width = jQuery(this).outerWidth();
|
||||
|
||||
var time = time_multiplier * jQuery(this).outerWidth();
|
||||
jQuery(this).animate({ 'margin-left': -item_width }, time, 'linear', function(){
|
||||
var clone_item = jQuery(this).clone();
|
||||
clone_item.css({ 'margin-left': '0' });
|
||||
marquee.append(clone_item);
|
||||
|
||||
jQuery(this).remove();
|
||||
reset.call(marquee.children().filter(':first'));
|
||||
});
|
||||
};
|
||||
|
||||
reset.call(marquee.children().filter(':first'));
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
jQuery(document).ready(function(){
|
||||
|
||||
var port_carousel_wrapper = jQuery('.portfolio-carousel-wrapper');
|
||||
|
||||
function carousel_port_init(){
|
||||
port_carousel_wrapper.each(function(){
|
||||
var port_carousel = jQuery(this);
|
||||
var port_holder = port_carousel.children('.portfolio-item-holder');
|
||||
var port_item = port_carousel.find('.portfolio-item');
|
||||
|
||||
port_item.css('float', 'left');
|
||||
|
||||
var child_size;
|
||||
if( port_item.filter(':first').hasClass('three') ){
|
||||
port_holder.attr('data-num', 4);
|
||||
child_size = port_carousel.parents('.row').width() / 4;
|
||||
}else if( port_item.filter(':first').hasClass('four') ){
|
||||
port_holder.attr('data-num', 3);
|
||||
child_size = port_carousel.parents('.row').width() / 3;
|
||||
}else if( port_item.filter(':first').hasClass('six') ){
|
||||
port_holder.attr('data-num', 2);
|
||||
child_size = port_carousel.parents('.row').width() / 2;
|
||||
}
|
||||
|
||||
if( jQuery('html').filter(':first').width() <= '767' ){
|
||||
port_holder.attr('data-num', 1);
|
||||
child_size = port_carousel.parents('.row').width();
|
||||
}
|
||||
|
||||
port_item.css('width', child_size );
|
||||
|
||||
port_holder.attr('data-width', child_size);
|
||||
port_holder.attr('data-max', port_item.length);
|
||||
port_holder.width( port_item.length * child_size );
|
||||
|
||||
var cur_index = parseInt(port_holder.attr('data-index'));
|
||||
port_holder.css({ 'margin-left': -(cur_index * child_size + 10) });
|
||||
});
|
||||
}
|
||||
|
||||
// bind the navigation
|
||||
var port_nav = port_carousel_wrapper.children('.port-nav-wrapper');
|
||||
if( port_nav.length == 0 ){
|
||||
port_nav = port_carousel_wrapper.siblings('.portfolio-carousel-description').children('.port-nav-wrapper');
|
||||
}
|
||||
|
||||
port_nav.children('.port-nav.left').click(function(){
|
||||
var port_holder = jQuery(this).parent('.port-nav-wrapper').siblings('.portfolio-item-holder');
|
||||
if( port_holder.length == 0 ){
|
||||
port_holder = jQuery(this).parent('.port-nav-wrapper').parent().siblings('.portfolio-carousel-wrapper').children('.portfolio-item-holder');
|
||||
}
|
||||
|
||||
var cur_index = parseInt(port_holder.attr('data-index'));
|
||||
|
||||
if( cur_index > 0 ){ cur_index--; }
|
||||
port_holder.attr('data-index', cur_index);
|
||||
port_holder.animate({ 'margin-left': -(cur_index * parseInt(port_holder.attr('data-width')) + 10) });
|
||||
});
|
||||
port_nav.children('.port-nav.right').click(function(){
|
||||
var port_holder = jQuery(this).parent('.port-nav-wrapper').siblings('.portfolio-item-holder');
|
||||
if( port_holder.length == 0 ){
|
||||
port_holder = jQuery(this).parent('.port-nav-wrapper').parent().siblings('.portfolio-carousel-wrapper').children('.portfolio-item-holder');
|
||||
}
|
||||
|
||||
var cur_index = parseInt(port_holder.attr('data-index'));
|
||||
if( cur_index + parseInt(port_holder.attr('data-num')) < parseInt(port_holder.attr('data-max')) ){
|
||||
cur_index++;
|
||||
}
|
||||
|
||||
port_holder.attr('data-index', cur_index);
|
||||
port_holder.animate({ 'margin-left': -(cur_index * parseInt(port_holder.attr('data-width')) + 10) });
|
||||
});
|
||||
|
||||
carousel_port_init();
|
||||
|
||||
//Auto animate
|
||||
//var infiniteLoop = setInterval(function(){
|
||||
// port_nav.children('.port-nav.right').trigger('click');
|
||||
//}, 1000);
|
||||
|
||||
jQuery(window).resize(function(){
|
||||
carousel_port_init();
|
||||
});
|
||||
|
||||
});
|
||||
@@ -0,0 +1,232 @@
|
||||
|
||||
/*
|
||||
* Superfish v1.6.9 - jQuery menu widget
|
||||
* Copyright (c) 2013 Joel Birch
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
*/
|
||||
|
||||
;(function($) {
|
||||
$.fn.superfish = function(op) {
|
||||
|
||||
var sf = $.fn.superfish,
|
||||
c = sf.c,
|
||||
$arrow = $('<span class="' + c.arrowClass + '"> »</span>'),
|
||||
over = function() {
|
||||
var $this = $(this),
|
||||
o = getOptions($this);
|
||||
|
||||
clearTimeout(o.sfTimer);
|
||||
$this.showSuperfishUl().siblings().hideSuperfishUl();
|
||||
},
|
||||
out = function(e) {
|
||||
var $this = $(this),
|
||||
o = getOptions($this);
|
||||
|
||||
if (e.type === 'click' || sf.ios) {
|
||||
$.proxy(close, $this, o)();
|
||||
}
|
||||
else {
|
||||
clearTimeout(o.sfTimer);
|
||||
o.sfTimer = setTimeout($.proxy(close, $this, o), o.delay);
|
||||
}
|
||||
},
|
||||
close = function(o) {
|
||||
o.retainPath = ( $.inArray(this[0], o.$path) > -1);
|
||||
this.hideSuperfishUl();
|
||||
|
||||
if (!this.parents('.' + o.hoverClass).length) {
|
||||
o.onIdle.call(getMenu(this));
|
||||
if (o.$path.length) {
|
||||
$.proxy(over, o.$path)();
|
||||
}
|
||||
}
|
||||
},
|
||||
getMenu = function($el) {
|
||||
return $el.closest('.' + c.menuClass);
|
||||
},
|
||||
getOptions = function($el) {
|
||||
return getMenu($el).data('sf-options');
|
||||
},
|
||||
applyTouchAction = function($menu) {
|
||||
// needed by MS pointer events
|
||||
$menu.css('ms-touch-action', 'none');
|
||||
},
|
||||
applyHandlers = function($menu,o) {
|
||||
var targets = 'li:has(ul)';
|
||||
|
||||
if (!o.useClick) {
|
||||
if ($.fn.hoverIntent && !o.disableHI) {
|
||||
$menu.hoverIntent(over, out, targets);
|
||||
}
|
||||
else {
|
||||
$menu
|
||||
.on('mouseenter', targets, over)
|
||||
.on('mouseleave', targets, out);
|
||||
}
|
||||
}
|
||||
var touchstart = 'MSPointerDown';
|
||||
|
||||
if (!sf.ios) {
|
||||
touchstart += ' touchstart';
|
||||
}
|
||||
if (sf.wp7) {
|
||||
touchstart += ' mousedown';
|
||||
}
|
||||
$menu
|
||||
.on('focusin', 'li', over)
|
||||
.on('focusout', 'li', out)
|
||||
.on('click', 'a', o, clickHandler)
|
||||
.on(touchstart, 'a', touchHandler);
|
||||
},
|
||||
touchHandler = function(e) {
|
||||
var $this = $(this),
|
||||
$ul = $this.siblings('ul');
|
||||
|
||||
if ($ul.length > 0 && $ul.is(':hidden')) {
|
||||
$this.data('follow', false);
|
||||
if (e.type === 'MSPointerDown') {
|
||||
$this.trigger('focus');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
clickHandler = function(e) {
|
||||
var $a = $(this),
|
||||
o = e.data,
|
||||
$submenu = $a.siblings('ul'),
|
||||
follow = ($a.data('follow') === false) ? false : true;
|
||||
|
||||
if ($submenu.length && (o.useClick || !follow)) {
|
||||
e.preventDefault();
|
||||
if ($submenu.is(':hidden')) {
|
||||
$.proxy(over, $a.parent('li'))();
|
||||
}
|
||||
else if (o.useClick && follow) {
|
||||
$.proxy(out, $a.parent('li'), e)();
|
||||
}
|
||||
}
|
||||
},
|
||||
setPathToCurrent = function($menu, o) {
|
||||
return $menu.find('li.' + o.pathClass).slice(0, o.pathLevels)
|
||||
.addClass(o.hoverClass + ' ' + c.bcClass)
|
||||
.filter(function() {
|
||||
return ($(this).children('ul').hide().show().length);
|
||||
}).removeClass(o.pathClass);
|
||||
},
|
||||
addArrows = function($li, o) {
|
||||
if (o.autoArrows) {
|
||||
$li.children('a').each(function() {
|
||||
addArrow( $(this) );
|
||||
});
|
||||
}
|
||||
},
|
||||
addArrow = function($a) {
|
||||
$a.addClass(c.anchorClass).append($arrow.clone());
|
||||
};
|
||||
|
||||
sf.getOptions = getOptions;
|
||||
|
||||
return this.addClass(c.menuClass).each(function() {
|
||||
var $this = $(this),
|
||||
o = $.extend({}, sf.defaults, op),
|
||||
$liHasUl = $this.find('li:has(ul)');
|
||||
|
||||
o.$path = setPathToCurrent($this, o);
|
||||
|
||||
$this.data('sf-options', o);
|
||||
|
||||
addArrows($liHasUl, o);
|
||||
applyTouchAction($this);
|
||||
applyHandlers($this, o);
|
||||
|
||||
$liHasUl.not('.' + c.bcClass).hideSuperfishUl(true);
|
||||
|
||||
o.onInit.call(this);
|
||||
});
|
||||
};
|
||||
|
||||
var sf = $.fn.superfish;
|
||||
sf.o = [];
|
||||
sf.op = {};
|
||||
|
||||
sf.c = {
|
||||
bcClass: 'sf-breadcrumb',
|
||||
menuClass: 'sf-js-enabled',
|
||||
anchorClass: 'sf-with-ul',
|
||||
arrowClass: 'sf-sub-indicator'
|
||||
};
|
||||
sf.defaults = {
|
||||
hoverClass: 'sfHover',
|
||||
pathClass: 'overrideThisToUse',
|
||||
pathLevels: 1,
|
||||
delay: 800,
|
||||
animation: {opacity:'show'},
|
||||
animationOut: {opacity:'hide'},
|
||||
speed: 'normal',
|
||||
speedOut: 'fast',
|
||||
autoArrows: true,
|
||||
disableHI: false, // true disables hoverIntent detection
|
||||
useClick: false,
|
||||
onInit: $.noop, // callback functions
|
||||
onBeforeShow: $.noop,
|
||||
onShow: $.noop,
|
||||
onBeforeHide: $.noop,
|
||||
onHide: $.noop,
|
||||
onIdle: $.noop
|
||||
};
|
||||
sf.ios = /iPhone|iPad|iPod/i.test(navigator.userAgent);
|
||||
sf.wp7 = (function() {
|
||||
var style = document.documentElement.style;
|
||||
return ('behavior' in style && 'fill' in style && /iemobile/i.test(navigator.userAgent));
|
||||
})();
|
||||
$.fn.extend({
|
||||
hideSuperfishUl: function(instant) {
|
||||
if (this.length) {
|
||||
var $this = this,
|
||||
o = sf.getOptions($this),
|
||||
not = (o.retainPath === true) ? o.$path : '',
|
||||
$ul = $this.find('li.' + o.hoverClass).add(this).not(not).removeClass(o.hoverClass).children('ul'),
|
||||
speed = o.speedOut;
|
||||
|
||||
if (instant) {
|
||||
$ul.show();
|
||||
speed = 0;
|
||||
}
|
||||
o.retainPath = false;
|
||||
o.onBeforeHide.call($ul);
|
||||
$ul.stop(true, true).animate(o.animationOut, speed, function() {
|
||||
var $this = $(this);
|
||||
o.onHide.call($this);
|
||||
if (o.useClick) {
|
||||
$this.siblings('a').data('follow', false);
|
||||
}
|
||||
});
|
||||
}
|
||||
return this;
|
||||
},
|
||||
showSuperfishUl: function() {
|
||||
var o = sf.getOptions(this),
|
||||
$this = this.addClass(o.hoverClass),
|
||||
$ul = $this.children('ul');
|
||||
|
||||
o.onBeforeShow.call($ul);
|
||||
$ul.stop(true, true).animate(o.animation, o.speed, function() {
|
||||
o.onShow.call($ul);
|
||||
$this.children('a').data('follow', true);
|
||||
});
|
||||
return this;
|
||||
}
|
||||
});
|
||||
|
||||
if (sf.ios) {
|
||||
// iOS click won't bubble to body, attach to closest possible
|
||||
$(window).load(function() {
|
||||
$('body').children().on('click', $.noop);
|
||||
});
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Supersubs v0.2b - jQuery plugin
|
||||
* Copyright (c) 2008 Joel Birch
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
*
|
||||
* This plugin automatically adjusts submenu widths of suckerfish-style menus to that of
|
||||
* their longest list item children. If you use this, please expect bugs and report them
|
||||
* to the jQuery Google Group with the word 'Superfish' in the subject line.
|
||||
*
|
||||
*/
|
||||
|
||||
;(function($){ // $ will refer to jQuery within this closure
|
||||
|
||||
$.fn.supersubs = function(options){
|
||||
var opts = $.extend({}, $.fn.supersubs.defaults, options);
|
||||
// return original object to support chaining
|
||||
return this.each(function() {
|
||||
// cache selections
|
||||
var $$ = $(this);
|
||||
// support metadata
|
||||
var o = $.meta ? $.extend({}, opts, $$.data()) : opts;
|
||||
// get the font size of menu.
|
||||
// .css('fontSize') returns various results cross-browser, so measure an em dash instead
|
||||
var fontsize = $('<li id="menu-fontsize">—</li>').css({
|
||||
'padding' : 0,
|
||||
'position' : 'absolute',
|
||||
'top' : '-999em',
|
||||
'width' : 'auto'
|
||||
}).appendTo($$).width(); //clientWidth is faster, but was incorrect here
|
||||
// remove em dash
|
||||
$('#menu-fontsize').remove();
|
||||
// cache all ul elements
|
||||
$ULs = $$.find('ul');
|
||||
// loop through each ul in menu
|
||||
$ULs.each(function(i) {
|
||||
// cache this ul
|
||||
var $ul = $ULs.eq(i);
|
||||
// get all (li) children of this ul
|
||||
var $LIs = $ul.children();
|
||||
// get all anchor grand-children
|
||||
var $As = $LIs.children('a');
|
||||
// force content to one line and save current float property
|
||||
var liFloat = $LIs.css('white-space','nowrap').css('float');
|
||||
// remove width restrictions and floats so elements remain vertically stacked
|
||||
var emWidth = $ul.add($LIs).add($As).css({
|
||||
'float' : 'none',
|
||||
'width' : 'auto'
|
||||
})
|
||||
// this ul will now be shrink-wrapped to longest li due to position:absolute
|
||||
// so save its width as ems. Clientwidth is 2 times faster than .width() - thanks Dan Switzer
|
||||
.end().end()[0].clientWidth / fontsize;
|
||||
// add more width to ensure lines don't turn over at certain sizes in various browsers
|
||||
emWidth += o.extraWidth;
|
||||
// restrict to at least minWidth and at most maxWidth
|
||||
if (emWidth > o.maxWidth) { emWidth = o.maxWidth; }
|
||||
else if (emWidth < o.minWidth) { emWidth = o.minWidth; }
|
||||
emWidth += 'em';
|
||||
// set ul to width in ems
|
||||
$ul.css('width',emWidth);
|
||||
// restore li floats to avoid IE bugs
|
||||
// set li width to full width of this ul
|
||||
// revert white-space to normal
|
||||
$LIs.css({
|
||||
'float' : liFloat,
|
||||
'width' : '100%',
|
||||
'white-space' : 'normal'
|
||||
})
|
||||
// update offset position of descendant ul to reflect new width of parent
|
||||
.each(function(){
|
||||
var $childUl = $('>ul',this);
|
||||
var offsetDirection = $childUl.css('left')!==undefined ? 'left' : 'right';
|
||||
$childUl.css(offsetDirection,emWidth);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
};
|
||||
// expose defaults
|
||||
$.fn.supersubs.defaults = {
|
||||
minWidth : 9, // requires em unit.
|
||||
maxWidth : 25, // requires em unit.
|
||||
extraWidth : 0 // extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values
|
||||
};
|
||||
|
||||
})(jQuery); // plugin code ends
|
||||
Reference in new issue
Block a user