File Editor
Directories:
.. (Back)
Files:
brightcove.min.asset.php
brightcove.min.js
jmpress.min.asset.php
jmpress.min.js
jmpress.min.js.LICENSE.txt
main.min.asset.php
main.min.js
quiz.min.asset.php
quiz.min.js
recipes-printthis.min.asset.php
recipes-printthis.min.js
recipes-printthis.min.js.LICENSE.txt
recipes.min.asset.php
recipes.min.js
slideshow-shortcode.min.asset.php
slideshow-shortcode.min.js
Create New File
Create
Edit File: main.min.js
!function(s){var t={fullscreen:!1,hash:{use:!1},mouse:{clickSelects:!1},keyboard:{use:!0},animation:{transitionDuration:"1s"},presentationMode:!1,stepSelector:".step",duration:{defaultValue:0}};function e(e){var i,o,n,l;(i=this).wrapper=s(e),i.slideshow=s(".presentation",e),i.navLeft=s(".nav-arrow-left",e),i.navRight=s(".nav-arrow-right",e),i.expandButton=s(".nav-fullscreen-button",e),i.overlay=s(".autoplay-overlay",e),i.fullscreen=!1,i.autoPlaying=!1,i.autoplayTime=parseFloat(i.slideshow.attr("data-autoplay"),10)||0,i.wrapper.css({width:i.slideshow.width(),height:i.slideshow.height()}),o=i.slideshow.attr("duration")||"1s",t.animation.transitionDuration=o,i.autoplayTime&&(i.autoplayTime+=1e3*parseFloat(o,10)),o="opacity "+o,n={width:i.slideshow.width(),height:i.slideshow.height(),"-webkit-transition":o,"-moz-transition":o,"-ms-transition":o,"-o-transition":o,transition:o},s(".step",i.slideshow).each((function(t,e){s(e).css(n)})),s(".step.fadebullets li",i.slideshow).each((function(t,e){s(e).attr("data-jmpress","fade")})),s(window).resize((function(){i.fullscreen&&i.resizePresentation()})),i.navLeft.on("click",(function(){return i.slideshow.jmpress("prev"),i.overlay.css("opacity",0),!1})),i.navRight.on("click",(function(){return i.slideshow.jmpress("next"),i.overlay.css("opacity",0),!1})),i.slideshow.on("click",(function(){return i.setAutoplay(!0),!1})),i.slideshow.on("focusout",(function(){i.setAutoplay(!1)})),(l=/MSIE\s(\d+)\.\d+/.exec(navigator.userAgent))&&parseInt(l[1],10)<10?(i.expandButton.remove(),i.expandButton=null):i.expandButton.on("click",(function(){return i.setFullscreen(!i.fullscreen),!1})),s(window).on("keydown",(function(s){27===s.which&&i.setFullscreen(!1)})),i.slideshow.jmpress(t),i.slideshow.jmpress("initialized")&&(i.slideshow.css("display",""),i.overlay.css("display",""),s(".not-supported-msg",i.wrapper).remove()),i.setFullscreen(!1)}s.extend(e.prototype,{resizePresentation:function(){var t,e,i,o,n,l;e=(i=this.slideshow.jmpress("settings")).animation.transitionDuration,i.animation.transitionDuration="0s",this.slideshow.jmpress("reselect"),t=1,o={top:0,left:0,zoom:1},this.fullscreen&&(n=s(window).width()/this.slideshow.width(),l=s(window).height()/this.slideshow.height(),t=Math.min(n,l),o.top=(s(window).height()-t*this.slideshow.height())/2,o.left=(s(window).width()-t*this.slideshow.width())/2),this.slideshow.css("-moz-transform")||this.slideshow.css("-ms-transform")?(o.top+=(t-1)*this.slideshow.height()/2,o.left+=(t-1)*this.slideshow.width()/2,t="scale("+t+")",s.extend(o,{"-moz-transform":t,"-ms-transform":t,transform:t})):(o.top/=t,o.left/=t,o.zoom=t),this.slideshow.css(o),i.animation.transitionDuration=e,this.slideshow.jmpress("reselect")},setFullscreen:function(t){this.fullscreen=t,this.setAutoplay(!1),t&&(this.scrollVert=s(window).scrollTop(),this.scrollHoriz=s(window).scrollLeft(),s(window).scrollTop(0),s(window).scrollLeft(0)),s("html").toggleClass("presentation-global-fullscreen",t),s("body").toggleClass("presentation-global-fullscreen",t),this.wrapper.toggleClass("presentation-wrapper-fullscreen",t),this.wrapper.parents().each((function(e,i){s(i).toggleClass("presentation-wrapper-fullscreen-parent",t)})),this.resizePresentation(),t||(s(window).scrollTop(this.scrollVert),s(window).scrollLeft(this.scrollHoriz))},setAutoplay:function(s){var t,e=this;e.autoPlaying!==s&&(t=s&&e.autoplayTime>0?e.autoplayTime:0,e.slideshow.jmpress("settings").duration.defaultValue=t,t?(e.slideshow.jmpress("next"),e.overlay.css("opacity",0)):e.slideshow.jmpress("reselect"),e.autoPlaying=s)}}),s(document).ready((function(){s(".presentation-wrapper").map((function(){new e(this)}))}))}(jQuery);
Save Changes
Rename File
Rename