You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
1.2 KiB
1 lines
1.2 KiB
var EXPO=EXPO||{};EXPO.profile=EXPO.profile||{},EXPO.profile.calendar?console.warn("WARNING: EXPO.profile.calendar is already defined!"):EXPO.profile.calendar=function(){var o=(EXPO.common,{});return o.opt={},$(function(){}),o.init=function(o){$.extend(this.opt,o);var t=$("#"+this.opt.scrollBoxId),l=$("#"+this.opt.calenadrId),e=l.find("td."+this.opt.currentDayClass).index()*this.opt.cellWidth,s=$("#"+this.opt.scrollLeftId),i=$("#"+this.opt.scrollRightId),n=$("."+this.opt.calendarToggleClass);scrollStep=this.opt.cellWidth*this.opt.cellsToScroll,$(window).load(function(){t.mCustomScrollbar({axis:"y",horizontalScroll:!0,advanced:{autoScrollOnFocus:!1,updateOnContentResize:!1,updateOnBrowserResize:!1}}),t.mCustomScrollbar("scrollTo",e)}),s.on("click",function(){t.mCustomScrollbar("scrollTo","+="+scrollStep)}),i.on("click",function(){t.mCustomScrollbar("scrollTo","-="+scrollStep)}),n.on("click",function(){var o=$(this),t=o.closest(".ep-sect"),l=t.children("div.ep-sect-body");return t.hasClass("eps-opened")?(i.hide(),s.hide(),l.stop().animate({height:0,opacity:0},300,function(){t.removeClass("eps-opened")})):(i.show(),s.show(),l.stop().animate({height:"auto",opacity:1},300,function(){t.addClass("eps-opened")})),!1})},o}(); |