text: $(document).ready(function(){function t(t){$(".success-box").fadeIn(200),$(".success-box div.text-message").html("<span>"+t+"</span>")}$(".trigger").each(function(){$(this).click(function(){return $(this).next().addClass("open"),!1})}),$("a.btn-close").click(function(){$(this).parents(".modal-wrapper").removeClass("open")}),$("a.span-close").click(function(){$(this).parents(".modal-wrapper").removeClass("open")}),$(".accordion-thumb").click(function(){$(this).next(".accordion-panel").slideToggle()}),$(".accordion-item").click(function(){$(this).children(".accordion__panel--history").slideToggle()}),$(".weekly_schedule").each(function(){$(this).click(function(){var t="<?php echo site_url('student/find_coaches/schedule_detail'); ?>/"+this.value;""!=this.value&&($("#schedule-loading").show(),$(".txt").hide(),$("#result_"+this.value).load(t,function(){$("#schedule-loading").hide()}))})}),$(".graph__bar__each").each(function(){var t=$(this).data("value")/125*100;$(this).css("width",t+"%"),$(this).data("value")>=100&&$(this).css("background","linear-gradient(-136deg, rgb(73, 197, 254) 0%, rgb(121, 231, 68) 92%)")}),$(".burger__menu").click(function(){$(".menu__bar").toggleClass("clicked"),$(".menu__bar").hasClass("clicked")?$(".mobile__nav").addClass("act"):$(".mobile__nav").removeClass("act")}),$("ul.tabs li").click(function(){var t=$(this).attr("data-tab");$("ul.tabs li").removeClass("current"),$(".tab-content").fadeOut(50),$(this).addClass("current"),$("#"+t).fadeIn(1e3).css("display","flex")}),$(".tabs div").click(function(){var t=$(this).attr("data-tab");$(".tabs div").removeClass("current"),$(".tab-content").fadeOut(300),$(this).addClass("current"),$("#"+t).delay(300).fadeIn(300)}),$(function(){$(".calendar").datepicker({dateFormat:"dd - MM - yy",firstDay:1}),$(document).on("click",".date-picker .input",function(t){$(this).parents(".date-picker").toggleClass("open")}),$(".calendar").on("change",function(){var t=$(this),e=t.val();t.parents(".date-picker").find(".result").children("span").html(e)})}),function(t,e,n,i){"use strict";var a=t("html");a.on("click.ui.dropdown",".js-dropdown",function(e){e.preventDefault(),t(this).toggleClass("is-open")}),a.on("click.ui.dropdown",".js-dropdown [data-dropdown-value]",function(e){e.preventDefault();var n=t(this),i=n.parents(".js-dropdown");i.find(".js-dropdown__input").val(n.data("dropdown-value")),i.find(".js-dropdown__current").text(n.text())}),a.on("click.ui.dropdown",function(e){t(e.target).parents().hasClass("js-dropdown")||t(".js-dropdown").removeClass("is-open")})}(jQuery,window,document),jQuery(function(t){t("#town").on("change",function(){"1"===t(this).val()?(t(".alt1").show(1==this.value),t(".alt2").hide(),t(".alt3").hide(),t(".alt4").hide()):"2"===t(this).val()?(t(".alt2").show(2==this.value),t(".alt1").hide(),t(".alt3").hide(),t(".alt4").hide()):"3"===t(this).val()?(t(".alt3").show(3==this.value),t(".alt1").hide(),t(".alt2").hide(),t(".alt4").hide()):"4"===t(this).val()?(t(".alt4").show(4==this.value),t(".alt1").hide(),t(".alt2").hide(),t(".alt3").hide()):"0"===t(this).val()&&(t(".alt1").hide(),t(".alt2").hide(),t(".alt3").hide(),t(".alt4").hide())})}),$("#stars li").on("mouseover",function(){var t=parseInt($(this).data("value"),10);$(this).parent().children("li.star").each(function(e){e<t?$(this).addClass("hover"):$(this).removeClass("hover")})}).on("mouseout",function(){$(this).parent().children("li.star").each(function(t){$(this).removeClass("hover")})}),$("#stars li").on("click",function(){var e=parseInt($(this).data("value"),10),n=$(this).parent().children("li.star");for(i=0;i<n.length;i++)$(n[i]).removeClass("selected");for(i=0;i<e;i++)$(n[i]).addClass("selected");var a=parseInt($("#stars li.selected").last().data("value"),10),o="";o=" "+a+" stars.",t(o)}),$(".fa-times").click(function(){$(".dashboard__notif").remove()});$("#noti__counter").css({opacity:0}).text(13).css({top:"10px",right:"5px"}).animate({opacity:1},500),$("#noti__button").click(function(){return $("#notifications").fadeToggle("fast","linear",function(){$("#notifications").is(":hidden")&&$("#noti__button").css("background-color","rgb(59, 74, 116)")}),$("#noti__counter").fadeOut("slow"),!1}),$(document).click(function(){$("#notifications").hide(),$("#noti__counter").is(":hidden")&&$("#noti__button").css("background-color","#2E467C")}),$("#notifications").click(function(){return!1}),$("#logout__button").click(function(){return $("#logout__box").fadeToggle("fast","linear",function(){$("#logout__box").is(":hidden")&&$("#logout__button").css("background-color","#2E467C")}),$("#logout__counter").fadeOut("slow"),!1}),$(document).click(function(){$("#logout__box").hide(),$("#logout__counter").is(":hidden")&&$("#logout__button").css("background-color","#2E467C")}),$("#logout__box").click(function(){return!1})});