{"size": 16532, "ext": "js", "max_stars_repo_path": "app/js/css_main.js", "max_stars_repo_name": "SupriyaSgn/teacherSurvey_Frontend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/js/css_main.js", "max_issues_repo_name": "SupriyaSgn/teacherSurvey_Frontend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/js/css_main.js", "max_forks_repo_name": "SupriyaSgn/teacherSurvey_Frontend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 8266.0, "max_line_length": 10490, "alphanum_fraction": 0.6758407936}
function addressToTags(){var a=$("#custAddress"),b=a.val();if("Enter Locality/Area"==b||"Select Restaurants"==b)return""==$(".tagArea").html()&&setTimeout(function(){$("#custAddress").val(b)},10),!1;b=$.trim(b).length;var d=(parseInt(a.css("padding-left")),7*b+40);b>0&&($(".tagArea").append('<div class="addressTag" rel="'+d+'"><div class="locality_html">'+a.val()+'</div> <div class="close remove_locality_tag">X</div> </div>'),$("#custAddress").val(""),$("#custAddress").hasClass("pickupSelect"),adjustHeight(),$("#custAddress").css("padding-left",getTagsWidth())),addressTagCount(),$("#custAddress").hasClass("pickupSelect")||$("#custAddress").val("Enter Locality/Area")}function adjustHeight(){var a=parseInt($(".deliveryAddress .tagArea").outerHeight()),b=$(window).width(),c=b>=768?30:15;a>40?($(".orderform .tagareaWrap").css({height:a+c+"px"}),$(".homeContainer").length>0&&b>992&&$(".orderform .selectCity").css({height:a+c+"px"})):($(".orderform .tagareaWrap").css({height:""}),$(".homeContainer").length>0&&b>992&&$(".orderform .selectCity").css({height:""}))}function is_touch_device(){try{return document.createEvent("TouchEvent"),"click"}catch(a){return"mouseenter"}}function isHidden(a){return"hidden"==a.css("visibility")}function adjustSection(){var a=$(window).scrollTop(),b=getSection(a),c=navigator.userAgent.toLowerCase(),d=c.match(/(iphone|ipod|ipad)/);d&&(a<100?$(".headerBottom .optionMenu").hide().css({visibility:"hidden"}):$(".headerBottom .optionMenu").show().css({visibility:"visible"})),null!==b?0==scrollTrigger&&($(".submenuDiv .optionMenu").show(),$(".optionMenu a").removeClass("active"),$('a[href$="#'+b+'"]').addClass("active")):$(".submenuDiv .optionMenu").hide()}function buildSections(){$(".topContainer .optionMenu li a").each(function(){var a=$(this),b=a.attr("href").split("#")[1];$target=$("#"+b),$target.length&&(topPos=$target.offset().top,sections[b]=Math.round(topPos))})}function getSection(a){var b=null;Math.round($(window).height()),parseInt($(".submenuDiv").outerHeight()),this.headerMiddleHeight;if($(window).width()>767)var f=parseInt($(".headerContainer").outerHeight());else var f=parseInt($(".headerBottom").outerHeight());var g=a+(f+80);for(var h in sections)sections[h]<g&&(b=h);return b}function limitLines(a,b){if(window.event?keynum=b.keyCode:b.which&&(keynum=b.which),13==keynum){if(lines==a.rows)return!1;lines++}}function addressTagCount(){}function getTagsWidth(){var a=0,b=0,c=$(".custom-combobox",".selectLocation").width()-10,d=$(".custom-combobox a",".selectLocation").width();return c-=d,$(".addressTag",".tagArea").length>0?($(".addressTag",".tagArea").each(function(){var c=5*b;a+=parseInt($(this).outerWidth()),a+=c,b++}),a+=$("#custAddress").hasClass("pickupSelect")?40:28):a+=$("#custAddress").hasClass("pickupSelect")?35:28,a>c?c:a}function coverImgheight(){var a=$(".headerContainer").outerHeight(),b=$(".footerContainer").outerHeight(),c=a+b;winHeight=$(window).height(),finalHeight=winHeight-c,ww>=767&&winHeight>1e3?$(".paymentContainer").css({height:finalHeight+"px"}):$(".paymentContainer").css({height:"auto"}),winHeight<767?$(".smContainer").css("height","auto"):$(".smContainer").css({height:finalHeight+"px"}),$(window).width()>=768&&$(window).width()<992?$(".deliverAddress").css("height",$(".summary").css("height")):$(".deliverAddress").removeAttr("style")}function tabHeight(){$(window).width()>992&&$(".paymentContainer").css({minHeight:$(".paymentContainer").outerHeight()+"px"});var a=450;$("ul.resp-tabs-list").css({height:a+"px"})}function deleteCookie(){$.removeCookie("olo_offer_close",{path:"/",domain:"."+document.domain}),$.removeCookie("banner_offer_close",{path:"/",domain:"."+document.domain})}var previous_qty="",current_qty="",previousQty={},maxProductLimit=25,matched,browser;jQuery.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.])/.exec(a)||/(webkit)[ \/]([\w.])/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.])/.exec(a)||/(msie) ([\w.])/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.])|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},matched=jQuery.uaMatch(navigator.userAgent),browser={},matched.browser&&(browser[matched.browser]=!0,browser.version=matched.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0),jQuery.browser=browser,$.extend($.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return $.easing[$.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInBounce:function(a,b,c,d,e){return d-$.easing.easeOutBounce(a,e-b,0,d,e)+c}});var winHeight,ww=$(window).width(),sections=[],scrollTrigger=!1;$(document).ready(function(){$(".coverImg").css({backgroundSize:"cover",minHeight:"560px"}),coverImgheight(),$("#slide").length>0&&$("#slide").popup({pagecontainer:".bodyContainer",opentransitionend:function(){},closetransitionend:function(){$(".loginPopup .loginLeft,.loginPopup .loginRight,.loginPopup h2").show(),$(".loginPopup .forgetPass,.loginPopup .newUser,.loginPopup h2.newUserHd").hide(),$("html").css("overflow","auto")}});var a=new Date,b=a.getMonth()+1,c=a.getDate(),d=a.getFullYear(),e=c+"/"+b+"/"+d,f=!1,g=!1;$("#dob").length>0&&$("#dob").datetimepicker({onGenerate:function(a){jQuery(this).addClass("dob")},maxDate:e,timepicker:!1,format:"d/m/Y",yearRange:"-90:+0"}),$(document).on("focusin","#dob",function(a){0==f?(f=!0,$(".xdsoft_datetimepicker").removeClass("hide")):(f=!1,$(".xdsoft_datetimepicker").addClass("hide"))}),$(document).on("focusin","#anniversary",function(a){0==g?(g=!0,$(".xdsoft_datetimepicker").removeClass("hide")):(g=!1,$(".xdsoft_datetimepicker").addClass("hide"))}),$("#anniversary").length>0&&$("#anniversary").datetimepicker({onGenerate:function(a){jQuery(this).addClass("anniversary")},maxDate:e,timepicker:!1,format:"d/m/Y",yearRange:"-90:+0"}),$("#fade").length>0&&$("#fade").popup({transition:"all 0.3s",scrolllock:!0}),$("#fadeCP").length>0&&$("#fadeCP").popup({transition:"all 0.3s",scrolllock:!0,onopen:function(){$("#updatePasswordCaptcha").attr("src",baseurl+"/getSecondCaptcha")}}),$(".backtologin").click(function(a){a.preventDefault(),$(".login-header").show(),$(".newUserHd").hide(),$(this).hasClass("signupScreen")&&($(this).parents().find(".loginLeft").show(),$(this).parents().find(".loginRight").show(),$(this).parents().find(".newUser").hide()),$(this).hasClass("forgotScreen")&&($(this).parents().find(".loginLeft").show(),$(this).parents().find(".loginRight").show(),$(this).parents().find(".forgetPass").hide()),$(this).hasClass("passwdScreen")&&($(this).parents().find(".loginLeft").hide(),$(this).parents().find(".loginRight").hide(),$(this).parents().find(".newUser").show(),$("#slide").popup("show"))}),$(".signup a").click(function(a){a.preventDefault(),$(this).parents().find(".loginLeft").hide(),$(this).parents().find(".loginRight").hide(),$(this).parents().find(".newUser").show(),setTimeout(function(){},1e3)}),$(".forget").click(function(a){$(this).parents().find(".loginLeft").hide(),$(this).parents().find(".loginRight").hide(),$(this).parents().find(".popupWrap h2").hide(),$(this).parents().find(".popupWrap h2.newUserHd").show(),$(this).parents().find(".forgetPass").show(),$("#captcha").attr("src",baseurl+"/getcaptcha"),a.preventDefault()}),$(document).on("click","#ziptoolTipOpen",function(a){a.stopPropagation(),$(".closeStoreLocator").length>0&&$(".closeStoreLocator").hide(),$(this).parents().find(".zipTool").fadeIn(function(){$(document).bind("touchstart focusin click",function(a){$(a.target).closest(".zipTool").length||($(document).unbind(".zipTool"),$(".zipTool").fadeOut("fast"))})}),a.preventDefault()}),$(document).on("click",".zipToolClose",function(a){a.preventDefault(),$(this).parents().find(".zipTool").fadeOut(),$(".closeStoreLocator").length>0&&$(".closeStoreLocator").show()}),$("#selectLocation").focus(function(){$(".slText").hide(),$("#locationListWrap").show(),$(document).bind("touchstart focusin.slText click.slText",function(a){$(a.target).closest(".slText, #selectLocation").length||($(document).unbind(".slText"),$(".slText").fadeIn("fast"),$("#locationListWrap").fadeOut("fast"))})}),$(".slText").click(function(a){$("#selectLocation").trigger("focus"),a.preventDefault()}),$("#pickup").focus(function(){$("#pickupList").show(),$(document).bind("touchstart focusin click",function(a){$(a.target).closest("#pickupList, #pickup").length||($(document).unbind("#pickupList"),$("#pickupList").fadeOut("fast"))})}),$("#pickupList").bind("click touchstart",function(){$("#pickupList").fadeOut("fast"),$(document).unbind("#pickupList")}),$(".userButton").click(function(){return $(this).toggleClass("active"),$(this).parent().find(".userlink").slideToggle(),!1}),$(document).on("click",".plusBtn",function(a){var b=$(this).parents(".qty").find("input"),c=parseInt(b.val());current_qty=c,!isNaN(c)&&c<maxProductLimit&&b.val(c+1),a.preventDefault()}),$(document).on("click",".minusBtn",function(a){var b=$(this).parents(".qty").find("input"),c=parseInt(b.val());previous_qty=c,!isNaN(c)&&c>1&&b.val(c-1),a.preventDefault()});var h,j=is_touch_device();$(document).on(j,".pizzaType .pizzaBox",function(){clearTimeout(h);var a=$(this);a.addClass("active");var b=$(".contenthover",a),c=b.outerHeight();isHidden(b)&&(b.css({bottom:"-"+c+"px",visibility:"visible"}),h=setTimeout(function(){a.children(".contenthover").stop().animate({bottom:"0px"},200),setTimeout(function(){a.hasClass("active")||a.children(".contenthover").stop().animate({bottom:"-"+c+"px"},200,function(){b.css({visibility:"hidden"})})},1e3)},500))}),$(document).on("mouseleave",".pizzaBox",function(){var a=$(this);a.removeClass("active");var b=$(".contenthover",a),c=b.outerHeight();$(this).children(".contenthover").stop().animate({bottom:"-"+c+"px"},200,function(){b.css({visibility:"hidden"})})}),$(document).on("click",".offerstripClose",function(){var a=location.pathname,b=a.split("/");return b=b[1],"menu"==b?$(".mid-body-menu").addClass("offerStripViewMenu"):"review"==b?$(".mid-body-all").addClass("offerStripViewReview"):$(".mid-body-homepage").addClass("offerStripViewIndex"),$.cookie("olo_offer_close", 1, { path: "/", domain: "." + document.domain })
,$(".offerstrip").slideUp(),!1}),$(document).on("touchstart",function(a){$(".contenthover").length>0&&0==$(a.target).parents(".pizzaBox").length&&($(".contenthover").css({visibility:"hidden"}),$(".pizzaBox.active").removeClass("active"))});$(".csWrap").height();$("#cs").click(function(a){$(document).height(),$(window).height();$(this).parent().toggleClass("active"),$(".csWrap").animate({height:"toggle"},500),a.preventDefault()}),values=new Array,i=0,jQuery("input[type=text],input[type=email],textarea").each(function(){values[i]=jQuery(this).val(),jQuery(this).attr("dval",i),i++}),jQuery("input[type=text],input[type=email],textarea").focus(function(){dval=jQuery(this).attr("dval"),val=jQuery(this).val(),val==values[dval]&&jQuery(this).val("")}),jQuery("input[type=text],textarea").blur(function(){dval=jQuery(this).attr("dval"),val=jQuery(this).val(),""==val&&jQuery(this).val(values[dval])}),$(document).on("focusin","#custAddress",function(a){"Enter Locality/Area"!=$(this).val()&&"Select Restaurants"!=$(this).val()||$(this).val("")}),$(document).on("focusout","#custAddress",function(a){0==$(".addressTag").length&&""==$(this).val()&&($("#custAddress").hasClass("pickupSelect")&&0==$(".addressTag").length?$(this).val("Select Restaurants"):0==completeLocality&&$(this).val("Enter Locality/Area"))}),$(document).on("keyup","#custAddress",function(a){addressTagCount()}),$(document).on("focusout","#custAddress",function(a){var b=$(this);setTimeout(function(){var a=b.val(),c=$(".orderSelection input:checked").val();return"Enter Locality/Area"==a||"Select Restaurants"==a?(""==$(".tagArea").html()&&$("#custAddress").val(a),!1):void(0==$(".addressTag").length&&""==a&&("home-delivery"==c&&0==completeLocality&&$("#custAddress").val("Enter Locality/Area"),"pick-up"==c&&0==$(".addressTag").length&&$("#custAddress").val("Select Restaurants")))},10)});var m=!0;$(window).scroll(function(){if($(this).scrollTop()>0){if($(this).scrollTop()>80)if(1==m){var a=$.trim($("#pizza").children(".topContainer").children(".optionMenu").html());$(".submenuDiv").children(".layout").children(".topContainer").children(".optionMenu").html(a),$(".submenuDiv").children(".layout").children(".topContainer").children(".optionMenu").css({display:"block",visibility:"visible"}),m=!1}else $(".submenuDiv").show();$(window).width()>992&&0==$(".addressLeftContent:visible").length&&$(".headerMiddle").slideUp(),0==$(".pizza-customisation-slide:visible").length&&0==$(".combo-customisation-slide:visible").length&&$(".submenuDiv").show()}else $(window).width()>992&&0==$(".addressLeftContent:visible").length&&$(".headerMiddle").slideDown(),$(".submenuDiv").hide()}),$("#orderMenu").length>0&&$("#orderMenu").onePageNav({currentClass:"current",changeHash:!1,scrollSpeed:1e3,easing:"easeInOutCubic",scrollThreshold:.28,newLoc:defaultCurrentHeaderCategory}),$("#orderMenu > li > a").click(function(a){$(".headerMiddle").removeClass("hide"),$(window).width()<993&&$(".navbar-toggle").trigger("click")}),$(document).on("click",".optionMenu li a",function(a){a.preventDefault(),scrollTrigger=!0,$("li",$(this).parents(".optionMenu")).not($(this).parent()).find("a").removeClass("active"),$(this).addClass("active");var b=$(this),c="#"+b.attr("href").split("#")[1],d=$(c).offset().top;if($(window).width()>767)var e=parseInt($(".headerContainer").outerHeight());else var e=parseInt($(".headerBottom").outerHeight());$("html, body").animate({scrollTop:d-(e+30)},750,function(){setTimeout(function(){scrollTrigger=!1},10)})}),$(document).on("click",".ysoButton a",".ysoBox",function(a){a.preventDefault();var b=$(this),c=b.parent().prev();b.hasClass("open")?(b.removeClass("open"),$("span",b).html("MORE"),c.mCustomScrollbar("disable",!0)):($(this).addClass("open"),$("span",b).html("LESS"),1==$(this).data("enabled")?c.mCustomScrollbar("update"):($(this).data("enabled",1),c.mCustomScrollbar({scrollButtons:{enable:!0},theme:"light-thick",scrollbarPosition:"outside"})))}),$(document).on("click","h5 a",".ysoList .itemName",function(a){a.preventDefault();var b=$(this),c=$(this).parents(".ysoList"),d=$(this).parent().next();"none"==d.css("display")&&($(".itemContent",c).hide(),$("h5 a",c).removeClass("open"),b.addClass("open"),d.slideDown())}),$(".slide_close_banner").click(function(){$("#popup_offer_banner").popup("hide")});var n=$.cookie("banner_offer_close");n?$("#popup_offer_banner").popup("hide"):($("#popup_offer_banner").popup("show"),$.cookie("banner_offer_close",1,{path:"/",domain:"."+document.domain}))}),document.addEventListener("touchmove",adjustSection,!1),$(window).scroll(function(){adjustSection()}),$(window).load(function(){buildSections()}),$(window).resize(function(){coverImgheight(),buildSections()});var keynum,lines=1;$(document).ready(function(){var a=0,b=0;setInterval(function(){$("ul.preloader li span").fadeOut(),0===b&&($(".oldPassword").val(""),b++),7===a&&(a=0),a++,$("#li"+a).find("span").fadeIn()},350),$(".paymentMode").length>0&&($(".bankName").click(function(a){$(".bankName").removeClass("active"),$(this).addClass("active")}),$("#parentHorizontalTab").easyResponsiveTabs({type:"default",width:"auto",fit:!0,tabidentify:"hor_1",activate:function(a){var b=$(this),c=$("#nested-tabInfo"),d=$("span",c);d.text(b.text()),c.show()}}),$("#ChildVerticalTab_1").easyResponsiveTabs({type:"vertical",width:"auto",fit:!0,tabidentify:"ver_1",activetab_bg:"#fff",inactive_bg:"#F5F5F5",active_border_color:"#c1c1c1",active_content_border_color:"#5AB1D0"}),$("#paymentTab").easyResponsiveTabs({type:"vertical",width:"auto",fit:!0,closed:"accordion",tabidentify:"hor_1",activate:function(a){var b=$(this),c=$("#nested-tabInfo2"),d=$("span",c);d.text(b.text()),c.show(),tabHeight(),coverImgheight()}})),"undefined"!=typeof flag&&flag===!0&&(deleteCookie(),location.reload())}),$(window).load(function(){tabHeight()}),$(window).resize(function(){var a=$(window).width();tabHeight(),$("#custAddress").css({paddingLeft:getTagsWidth()}),adjustHeight(),$(".homeContainer").length>0&&a<993&&$(".orderform .selectCity").css({height:""})});