<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">function initMap(){console.log("start autocomplete");var t=document.getElementById("js-header-form__input"),e=document.getElementById("js-header-form__input--query"),n=document.getElementById("js-header-form__input--lat"),o=document.getElementById("js-header-form__input--lng"),i=new google.maps.places.Autocomplete(t,{types:["geocode"],componentRestrictions:{country:"us"}});if(i.addListener("place_changed",function(){console.log("place selected");var t=i.getPlace();console.log(t),"undefined"!=typeof t.formatted_address&amp;&amp;(e.value=t.formatted_address,n.value=t.geometry.location.lat(),o.value=t.geometry.location.lng())}),"undefined"==typeof myLatLng)return!1;console.log("start map");var a;a=document.getElementById("js-map-box");for(var s=new google.maps.Map(a,{zoom:4,center:myLatLng,scrollwheel:!1}),l=new google.maps.LatLngBounds,r=new google.maps.InfoWindow({content:""}),c=0;c&lt;points.length;c++){var f=new google.maps.LatLng(points[c][1],points[c][2]);l.extend(f),markers[c]=new google.maps.Marker({position:f,map:s,title:points[c][0]}),google.maps.event.addListener(markers[c],"click",function(t,e){return function(){r.setContent(e),r.open(s,t)}}(markers[c],points[c][3]))}if("undefined"!=typeof myMapZoom?(s.setCenter(l.getCenter()),s.setZoom(myMapZoom)):s.setCenter(l.getCenter(),s.fitBounds(l)),"undefined"!=typeof myCircle){myCircle.map=s;new google.maps.Circle(myCircle)}if("undefined"!=typeof myNeedDirectionsAutocomplete){var u=new google.maps.DirectionsRenderer,d=new google.maps.DirectionsService;u.setMap(s),u.setPanel(document.getElementById("directionsPanel"));var h=document.getElementById("js-directions-form__input"),m=new google.maps.places.Autocomplete(h,{types:["geocode"],componentRestrictions:{country:"us"}});m.addListener("place_changed",function(){console.log("place selected");var t=m.getPlace();if(console.log(t),"undefined"!=typeof t.formatted_address){var e={lat:t.geometry.location.lat(),lng:t.geometry.location.lng()},n=myLatLng,o={origin:e,destination:n,travelMode:google.maps.TravelMode.DRIVING};d.route(o,function(t,e){e==google.maps.DirectionsStatus.OK&amp;&amp;u.setDirections(t)})}})}}!function(){function t(t,e,n){return t.call.apply(t.bind,arguments)}function e(t,e,n){if(!t)throw Error();if(2&lt;arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,o),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function n(o,i,a){return n=Function.prototype.bind&amp;&amp;-1!=Function.prototype.bind.toString().indexOf("native code")?t:e,n.apply(null,arguments)}function o(t,e){this.a=t,this.m=e||t,this.c=this.m.document}function i(t,e,n,o){if(e=t.c.createElement(e),n)for(var i in n)n.hasOwnProperty(i)&amp;&amp;("style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return o&amp;&amp;e.appendChild(t.c.createTextNode(o)),e}function a(t,e,n){t=t.c.getElementsByTagName(e)[0],t||(t=document.documentElement),t.insertBefore(n,t.lastChild)}function s(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)}function l(t,e,n){e=e||[],n=n||[];for(var o=t.className.split(/\s+/),i=0;i&lt;e.length;i+=1){for(var a=!1,s=0;s&lt;o.length;s+=1)if(e[i]===o[s]){a=!0;break}a||o.push(e[i])}for(e=[],i=0;i&lt;o.length;i+=1){for(a=!1,s=0;s&lt;n.length;s+=1)if(o[i]===n[s]){a=!0;break}a||e.push(o[i])}t.className=e.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function r(t,e){for(var n=t.className.split(/\s+/),o=0,i=n.length;o&lt;i;o++)if(n[o]==e)return!0;return!1}function c(t){if("string"==typeof t.f)return t.f;var e=t.m.location.protocol;return"about:"==e&amp;&amp;(e=t.a.location.protocol),"https:"==e?"https:":"http:"}function f(t){return t.m.location.hostname||t.a.location.hostname}function u(t,e,n){function o(){c&amp;&amp;s&amp;&amp;l&amp;&amp;(c(r),c=null)}e=i(t,"link",{rel:"stylesheet",href:e,media:"all"});var s=!1,l=!0,r=null,c=n||null;ot?(e.onload=function(){s=!0,o()},e.onerror=function(){s=!0,r=Error("Stylesheet failed to load"),o()}):setTimeout(function(){s=!0,o()},0),a(t,"head",e)}function d(t,e,n,o){var a=t.c.getElementsByTagName("head")[0];if(a){var s=i(t,"script",{src:e}),l=!1;return s.onload=s.onreadystatechange=function(){l||this.readyState&amp;&amp;"loaded"!=this.readyState&amp;&amp;"complete"!=this.readyState||(l=!0,n&amp;&amp;n(null),s.onload=s.onreadystatechange=null,"HEAD"==s.parentNode.tagName&amp;&amp;a.removeChild(s))},a.appendChild(s),setTimeout(function(){l||(l=!0,n&amp;&amp;n(Error("Script load timeout")))},o||5e3),s}return null}function h(){this.a=0,this.c=null}function m(t){return t.a++,function(){t.a--,p(t)}}function g(t,e){t.c=e,p(t)}function p(t){0==t.a&amp;&amp;t.c&amp;&amp;(t.c(),t.c=null)}function v(t){this.a=t||"-"}function y(t,e){this.c=t,this.f=4,this.a="n";var n=(e||"n4").match(/^([nio])([1-9])$/i);n&amp;&amp;(this.a=n[1],this.f=parseInt(n[2],10))}function w(t){return j(t)+" "+(t.f+"00")+" 300px "+_(t.c)}function _(t){var e=[];t=t.split(/,\s*/);for(var n=0;n&lt;t.length;n++){var o=t[n].replace(/['"]/g,"");-1!=o.indexOf(" ")||/^\d/.test(o)?e.push("'"+o+"'"):e.push(o)}return e.join(",")}function b(t){return t.a+t.f}function j(t){var e="normal";return"o"===t.a?e="oblique":"i"===t.a&amp;&amp;(e="italic"),e}function E(t){var e=4,n="n",o=null;return t&amp;&amp;((o=t.match(/(normal|oblique|italic)/i))&amp;&amp;o[1]&amp;&amp;(n=o[1].substr(0,1).toLowerCase()),(o=t.match(/([1-9]00|normal|bold)/i))&amp;&amp;o[1]&amp;&amp;(/bold/i.test(o[1])?e=7:/[1-9]00/.test(o[1])&amp;&amp;(e=parseInt(o[1].substr(0,1),10)))),n+e}function x(t,e){this.c=t,this.f=t.m.document.documentElement,this.h=e,this.a=new v("-"),this.j=!1!==e.events,this.g=!1!==e.classes}function k(t){t.g&amp;&amp;l(t.f,[t.a.c("wf","loading")]),N(t,"loading")}function C(t){if(t.g){var e=r(t.f,t.a.c("wf","active")),n=[],o=[t.a.c("wf","loading")];e||n.push(t.a.c("wf","inactive")),l(t.f,n,o)}N(t,"inactive")}function N(t,e,n){t.j&amp;&amp;t.h[e]&amp;&amp;(n?t.h[e](n.c,b(n)):t.h[e]())}function B(){this.c={}}function L(t,e,n){var o,i=[];for(o in e)if(e.hasOwnProperty(o)){var a=t.c[o];a&amp;&amp;i.push(a(e[o],n))}return i}function I(t,e){this.c=t,this.f=e,this.a=i(this.c,"span",{"aria-hidden":"true"},this.f)}function T(t){a(t.c,"body",t.a)}function A(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+_(t.c)+";"+("font-style:"+j(t)+";font-weight:"+(t.f+"00")+";")}function S(t,e,n,o,i,a){this.g=t,this.j=e,this.a=o,this.c=n,this.f=i||3e3,this.h=a||void 0}function M(t,e,n,o,i,a,s){this.v=t,this.B=e,this.c=n,this.a=o,this.s=s||"BESbswy",this.f={},this.w=i||3e3,this.u=a||null,this.o=this.j=this.h=this.g=null,this.g=new I(this.c,this.s),this.h=new I(this.c,this.s),this.j=new I(this.c,this.s),this.o=new I(this.c,this.s),t=new y(this.a.c+",serif",b(this.a)),t=A(t),this.g.a.style.cssText=t,t=new y(this.a.c+",sans-serif",b(this.a)),t=A(t),this.h.a.style.cssText=t,t=new y("serif",b(this.a)),t=A(t),this.j.a.style.cssText=t,t=new y("sans-serif",b(this.a)),t=A(t),this.o.a.style.cssText=t,T(this.g),T(this.h),T(this.j),T(this.o)}function D(){if(null===at){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);at=!!t&amp;&amp;(536&gt;parseInt(t[1],10)||536===parseInt(t[1],10)&amp;&amp;11&gt;=parseInt(t[2],10))}return at}function W(t,e,n){for(var o in it)if(it.hasOwnProperty(o)&amp;&amp;e===t.f[it[o]]&amp;&amp;n===t.f[it[o]])return!0;return!1}function H(t){var e,n=t.g.a.offsetWidth,o=t.h.a.offsetWidth;(e=n===t.f.serif&amp;&amp;o===t.f["sans-serif"])||(e=D()&amp;&amp;W(t,n,o)),e?nt()-t.A&gt;=t.w?D()&amp;&amp;W(t,n,o)&amp;&amp;(null===t.u||t.u.hasOwnProperty(t.a.c))?F(t,t.v):F(t,t.B):P(t):F(t,t.v)}function P(t){setTimeout(n(function(){H(this)},t),50)}function F(t,e){setTimeout(n(function(){s(this.g.a),s(this.h.a),s(this.j.a),s(this.o.a),e(this.a)},t),0)}function O(t,e,n){this.c=t,this.a=e,this.f=0,this.o=this.j=!1,this.s=n}function R(t){0==--t.f&amp;&amp;t.j&amp;&amp;(t.o?(t=t.a,t.g&amp;&amp;l(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),N(t,"active")):C(t.a))}function q(t){this.j=t,this.a=new B,this.h=0,this.f=this.g=!0}function $(t,e,o,i,a){var s=0==--t.h;(t.f||t.g)&amp;&amp;setTimeout(function(){var t=a||null,r=i||null||{};if(0===o.length&amp;&amp;s)C(e.a);else{e.f+=o.length,s&amp;&amp;(e.j=s);var c,f=[];for(c=0;c&lt;o.length;c++){var u=o[c],d=r[u.c],h=e.a,m=u;h.g&amp;&amp;l(h.f,[h.a.c("wf",m.c,b(m).toString(),"loading")]),N(h,"fontloading",m),h=null,null===st&amp;&amp;(st=!!window.FontFace&amp;&amp;(!(m=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent))||42&lt;parseInt(m[1],10))),h=st?new S(n(e.g,e),n(e.h,e),e.c,u,e.s,d):new M(n(e.g,e),n(e.h,e),e.c,u,e.s,t,d),f.push(h)}for(c=0;c&lt;f.length;c++)f[c].start()}},0)}function G(t,e,n){var o=[],i=n.timeout;k(e);var o=L(t.a,n,t.c),a=new O(t.c,e,i);for(t.h=o.length,e=0,n=o.length;e&lt;n;e++)o[e].load(function(e,n,o){$(t,a,e,n,o)})}function Z(t,e){this.c=t,this.a=e}function z(t,e,n){var o=c(t.c);return t=(t.a.api||"fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/,""),o+"//"+t+"/"+e+".js"+(n?"?v="+n:"")}function K(t,e){this.c=t,this.a=e}function U(t,e,n){t?this.c=t:this.c=e+lt,this.a=[],this.f=[],this.g=n||""}function V(t,e){for(var n=e.length,o=0;o&lt;n;o++){var i=e[o].split(":");3==i.length&amp;&amp;t.f.push(i.pop());var a="";2==i.length&amp;&amp;""!=i[1]&amp;&amp;(a=":"),t.a.push(i.join(a))}}function J(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var e=t.a.length,n=[],o=0;o&lt;e;o++)n.push(t.a[o].replace(/ /g,"+"));return e=t.c+"?family="+n.join("%7C"),0&lt;t.f.length&amp;&amp;(e+="&amp;subset="+t.f.join(",")),0&lt;t.g.length&amp;&amp;(e+="&amp;text="+encodeURIComponent(t.g)),e}function Q(t){this.f=t,this.a=[],this.c={}}function X(t){for(var e=t.f.length,n=0;n&lt;e;n++){var o=t.f[n].split(":"),i=o[0].replace(/\+/g," "),a=["n4"];if(2&lt;=o.length){var s,l=o[1];if(s=[],l)for(var l=l.split(","),r=l.length,c=0;c&lt;r;c++){var f;if(f=l[c],f.match(/^[\w-]+$/)){var u=ut.exec(f.toLowerCase());if(null==u)f="";else{if(f=u[2],f=null==f||""==f?"n":ft[f],u=u[1],null==u||""==u)u="4";else var d=ct[u],u=d?d:isNaN(u)?"4":u.substr(0,1);f=[f,u].join("")}}else f="";f&amp;&amp;s.push(f)}0&lt;s.length&amp;&amp;(a=s),3==o.length&amp;&amp;(o=o[2],s=[],o=o?o.split(","):s,0&lt;o.length&amp;&amp;(o=rt[o[0]])&amp;&amp;(t.c[i]=o))}for(t.c[i]||(o=rt[i])&amp;&amp;(t.c[i]=o),o=0;o&lt;a.length;o+=1)t.a.push(new y(i,a[o]))}}function Y(t,e){this.c=t,this.a=e}function tt(t,e){this.c=t,this.a=e}function et(t,e){this.c=t,this.f=e,this.a=[]}var nt=Date.now||function(){return+new Date},ot=!!window.FontFace;v.prototype.c=function(t){for(var e=[],n=0;n&lt;arguments.length;n++)e.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return e.join(this.a)},S.prototype.start=function(){var t=this.c.m.document,e=this,n=nt(),o=new Promise(function(o,i){function a(){nt()-n&gt;=e.f?i():t.fonts.load(w(e.a),e.h).then(function(t){1&lt;=t.length?o():setTimeout(a,25)},function(){i()})}a()}),i=new Promise(function(t,n){setTimeout(n,e.f)});Promise.race([i,o]).then(function(){e.g(e.a)},function(){e.j(e.a)})};var it={D:"serif",C:"sans-serif"},at=null;M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.o.a.offsetWidth,this.A=nt(),H(this)};var st=null;O.prototype.g=function(t){var e=this.a;e.g&amp;&amp;l(e.f,[e.a.c("wf",t.c,b(t).toString(),"active")],[e.a.c("wf",t.c,b(t).toString(),"loading"),e.a.c("wf",t.c,b(t).toString(),"inactive")]),N(e,"fontactive",t),this.o=!0,R(this)},O.prototype.h=function(t){var e=this.a;if(e.g){var n=r(e.f,e.a.c("wf",t.c,b(t).toString(),"active")),o=[],i=[e.a.c("wf",t.c,b(t).toString(),"loading")];n||o.push(e.a.c("wf",t.c,b(t).toString(),"inactive")),l(e.f,o,i)}N(e,"fontinactive",t),R(this)},q.prototype.load=function(t){this.c=new o(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,G(this,new x(this.c,t),t)},Z.prototype.load=function(t){function e(){if(i["__mti_fntLst"+n]){var o,a=i["__mti_fntLst"+n](),s=[];if(a)for(var l=0;l&lt;a.length;l++){var r=a[l].fontfamily;void 0!=a[l].fontStyle&amp;&amp;void 0!=a[l].fontWeight?(o=a[l].fontStyle+a[l].fontWeight,s.push(new y(r,o))):s.push(new y(r))}t(s)}else setTimeout(function(){e()},50)}var n=this.a.projectId,o=this.a.version;if(n){var i=this.c.m;d(this.c,z(this,n,o),function(n){n?t([]):e()}).id="__MonotypeAPIScript__"+n}else t([])},K.prototype.load=function(t){var e,n,o=this.a.urls||[],i=this.a.families||[],a=this.a.testStrings||{},s=new h;for(e=0,n=o.length;e&lt;n;e++)u(this.c,o[e],m(s));var l=[];for(e=0,n=i.length;e&lt;n;e++)if(o=i[e].split(":"),o[1])for(var r=o[1].split(","),c=0;c&lt;r.length;c+=1)l.push(new y(o[0],r[c]));else l.push(new y(o[0]));g(s,function(){t(l,a)})};var lt="//fonts.googleapis.com/css",rt={latin:"BESbswy",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},ct={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ft={i:"i",italic:"i",n:"n",normal:"n"},ut=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/,dt={Arimo:!0,Cousine:!0,Tinos:!0};Y.prototype.load=function(t){var e=new h,n=this.c,o=new U(this.a.api,c(n),this.a.text),i=this.a.families;V(o,i);var a=new Q(i);X(a),u(n,J(o),m(e)),g(e,function(){t(a.a,a.c,dt)})},tt.prototype.load=function(t){var e=this.a.id,n=this.c.m;e?d(this.c,(this.a.api||"https://use.typekit.net")+"/"+e+".js",function(e){if(e)t([]);else if(n.Typekit&amp;&amp;n.Typekit.config&amp;&amp;n.Typekit.config.fn){e=n.Typekit.config.fn;for(var o=[],i=0;i&lt;e.length;i+=2)for(var a=e[i],s=e[i+1],l=0;l&lt;s.length;l++)o.push(new y(a,s[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(r){}t(o)}},2e3):t([])},et.prototype.load=function(t){var e=this.f.id,n=this.c.m,o=this;e?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[e]=function(e,n){for(var i=0,a=n.fonts.length;i&lt;a;++i){var s=n.fonts[i];o.a.push(new y(s.name,E("font-weight:"+s.weight+";font-style:"+s.style)))}t(o.a)},d(this.c,c(this.c)+(this.f.api||"//f.fontdeck.com/s/css/js/")+f(this.c)+"/"+e+".js",function(e){e&amp;&amp;t([])})):t([])};var ht=new q(window);ht.a.c.custom=function(t,e){return new K(e,t)},ht.a.c.fontdeck=function(t,e){return new et(e,t)},ht.a.c.monotype=function(t,e){return new Z(e,t)},ht.a.c.typekit=function(t,e){return new tt(e,t)},ht.a.c.google=function(t,e){return new Y(e,t)};var mt={load:n(ht.load,ht)};"function"==typeof define&amp;&amp;define.amd?define(function(){return mt}):"undefined"!=typeof module&amp;&amp;module.exports?module.exports=mt:(window.WebFont=mt,window.WebFontConfig&amp;&amp;ht.load(window.WebFontConfig))}(),function(){for(var t,e=function(){},n=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeline","timelineEnd","timeStamp","trace","warn"],o=n.length,i=window.console=window.console||{};o--;)t=n[o],i[t]||(i[t]=e)}(),function(){function t(t){"loading"!=document.readyState?t():document.addEventListener?document.addEventListener("DOMContentLoaded",t):document.attachEvent("onreadystatechange",function(){"loading"!=document.readyState&amp;&amp;t()})}function e(t,e,n){t.addEventListener?t.addEventListener(e,n):t.attachEvent("on"+e,function(){n.call(t)})}function n(t,e){if(t.classList)t.classList.toggle(e);else{for(var n=t.className.split(" "),o=-1,i=n.length;i--;)n[i]===e&amp;&amp;(o=i);o&gt;=0?n.splice(o,1):n.push(e),t.className=n.join(" ")}}function o(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function i(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}t(function(){console.log("js start"),console.log("----------------"),console.log("");var t=document.getElementById("js-header__menu--box"),a=document.getElementById("js-header__menu--btn"),s=document.getElementById("js-header__search--box"),l=document.getElementById("js-header__search--btn"),r=document.getElementById("js-article__header-bg-box");null!==a&amp;&amp;e(a,"click",function(){n(a,"l-header__btn--active"),n(t,"l-header__item--active")}),null!==l&amp;&amp;e(l,"click",function(){n(l,"l-header__btn--active"),n(s,"c-header-form--active")}),null!==r&amp;&amp;document.documentElement.clientWidth&gt;=1128&amp;&amp;(console.log("Have paralax"),e(window,"scroll",function(t){var e=document.body.scrollTop;r.style.top=0-.25*e+"px"}));var c=document.getElementsByClassName("js-nav__select");if(null!==c)for(var f=0;f&lt;=c.length-1;f++){var u=c[f].querySelectorAll("div"),d=c[f].querySelectorAll("select");null!==u&amp;&amp;null!==d&amp;&amp;(u=u[0],d=d[0],u.innerHTML=d.options[d.options.selectedIndex].text,e(d,"change",function(){this.parentNode.querySelectorAll("div")[0].innerHTML=this.options[this.options.selectedIndex].text,location.href=this.options[this.options.selectedIndex].value}))}if("undefined"==typeof myNeedAddReview)console.log("no myNeedAddReview");else{for(var h,m=document.getElementsByClassName("js-add-rev__star"),g=document.getElementsByClassName("js-add-rev__text"),p=document.getElementsByClassName("js-add-rev__btn"),f=0;f&lt;=p.length-1;f++)h=p[f].getAttribute("href"),e(p[f],"mouseleave",function(){for(var t=0;t&lt;=m.length-1;t++)i(m[t],"p-item-add-review__star--active"),m[t].innerHTML="&amp;#9734;";for(var e=0;e&lt;=g.length-1;e++)g[e].innerHTML=g[e].getAttribute("data-default-text")});for(var f=0;f&lt;=m.length-1;f++)e(m[f],"mouseover",function(){for(var t=this.getAttribute("data-star-number"),e=0;e&lt;=m.length-1;e++)m[e].getAttribute("data-star-number")&lt;=t?(o(m[e],"p-item-add-review__star--active"),m[e].innerHTML="&amp;#9733;"):(i(m[e],"p-item-add-review__star--active"),m[e].innerHTML="&amp;#9734;");for(var n=0;n&lt;=g.length-1;n++)g[n].innerHTML=this.getAttribute("data-star-text");for(var n=0;n&lt;=p.length-1;n++)p[n].href=h+"?mark="+t})}if("undefined"==typeof myNeedCategoriesEdit)console.log("no Need Categories Edit");else{var v=document.getElementsByClassName("js-cat__add-btn"),y=document.getElementsByClassName("js-cat__del-btn"),w=document.getElementById("js-cat__box"),_="";_+='&lt;div class="c-form__two-item c-form__two-item--wide"&gt;',_+='&lt;select name="categories[]" class="c-form__input c-form__input--select"&gt;',_+='&lt;option value="0"&gt;---&lt;/option&gt;';for(var b=0;b&lt;=myAllCategories.length-1;b++)_+='&lt;option value="'+myAllCategories[b].id+'"&gt;'+myAllCategories[b].name+"&lt;/option&gt;";_+="&lt;/select&gt;",_+="&lt;/div&gt;",_+='&lt;div class="c-form__two-item"&gt;',_+='&lt;div class="c-form__input c-form__input--submit js-cat__del-btn"&gt;Delete&lt;/div&gt;',_+="&lt;/div&gt;";var j=document.createElement("div");j.classList.add("c-form__two"),j.innerHTML=_;for(var f=0;f&lt;=v.length-1;f++)e(v[f],"click",function(t){var n=j.cloneNode(!0);w.appendChild(n),console.log("Click add category"),y=document.getElementsByClassName("js-cat__del-btn");for(var o=0;o&lt;=y.length-1;o++)e(y[o],"click",function(t){console.log("Click DEL category ");var e=this.parentNode.parentNode;e.parentNode.removeChild(e),t.preventDefault()});t.preventDefault()});for(var f=0;f&lt;=y.length-1;f++)e(y[f],"click",function(t){console.log("Click DEL category ");var e=this.parentNode.parentNode;e.parentNode.removeChild(e),t.preventDefault()})}if("undefined"==typeof myNeedGallery)console.log("no Need Gallery Edit");else{for(var E=document.getElementsByClassName("js-gallery__item"),x=document.getElementById("js-gallery__img"),k=document.getElementById("js-gallery__modal-bg"),C=document.getElementById("js-gallery__modal-content"),N=document.getElementById("js-gallery__modal-close"),f=0;f&lt;=E.length-1;f++)e(E[f],"click",function(t){console.log("Click gallery item"),x.src=this.getAttribute("data-src"),k.style.display="block",C.style.display="flex"});e(N,"click",function(t){k.style.display="none",C.style.display="none"})}var B=document.getElementById("js-header__form-select-box--text"),L=document.getElementById("js-header__form-select-box--select");e(L,"change",function(){B.innerHTML=L.options[L.options.selectedIndex].text});for(var I=document.getElementsByClassName("js-share__btn"),T=document.getElementById("js-share__modal-bg"),A=document.getElementById("js-share__modal-content"),S=document.getElementById("js-share__modal-close"),f=0;f&lt;=I.length-1;f++)e(I[f],"click",function(t){console.log("Click share"),T.style.display="block",A.style.display="flex"});e(S,"click",function(t){T.style.display="none",A.style.display="none"});for(var M=document.getElementsByClassName("c-modal__bg"),D=document.getElementsByClassName("c-modal__content"),f=0;f&lt;=D.length-1;f++)e(D[f],"click",function(t){console.log("Click modal Bg"),this.style.display="none";for(var e=0;e&lt;=M.length-1;e++)M[e].style.display="none"});e(document,"keydown",function(t){if(27==t.keyCode){for(var e=0;e&lt;=D.length-1;e++)D[e].style.display="none";for(var n=0;n&lt;=M.length-1;n++)M[n].style.display="none"}})})}();</pre></body></html>