{"version":3,"sources":["bower_components/js-cookie/src/js.cookie.js","js/app.js"],"names":["factory","registeredInModuleLoader","define","amd","exports","module","OldCookies","window","Cookies","api","noConflict","extend","i","result","arguments","length","attributes","key","decode","s","replace","decodeURIComponent","init","converter","set","value","document","path","defaults","expires","Date","toUTCString","JSON","stringify","test","e","write","encodeURIComponent","String","escape","stringifiedAttributes","attributeName","split","cookie","get","json","jar","cookies","parts","slice","join","charAt","name","read","parse","getJSON","remove","withConverter","closeMenu","$","removeClass","whichTransitionEvent","t","el","createElement","transitions","transition","OTransition","MozTransition","WebkitTransition","undefined","style","wRatio","width","height","wWidth","menuTimeout","ready","localStorage","getItem","body","classList","add","click","setItem","hide","flickity","cellAlign","pageDots","contain","imagesLoaded","selectedAttraction","friction","accessibility","each","this","addEventListener","transitionEvent","contains","bind","this_id","attr","addClass","scrollTop","stopPropagation","target","closest","mouseover","mouseout"],"mappings":"CAOE,SAAUA,GACX,GAAIC,EASJ,IARsB,kBAAXC,SAAyBA,OAAOC,MAC1CD,OAAOF,GACPC,GAA2B,GAEL,gBAAZG,WACVC,OAAOD,QAAUJ,IACjBC,GAA2B,IAEvBA,EAA0B,CAC9B,GAAIK,GAAaC,OAAOC,QACpBC,EAAMF,OAAOC,QAAUR,GAC3BS,GAAIC,WAAa,WAEhB,MADAH,QAAOC,QAAUF,EACVG,KAGR,WACD,QAASE,KAGR,IAFA,GAAIC,GAAI,EACJC,KACGD,EAAIE,UAAUC,OAAQH,IAAK,CACjC,GAAII,GAAaF,UAAWF,EAC5B,KAAK,GAAIK,KAAOD,GACfH,EAAOI,GAAOD,EAAWC,GAG3B,MAAOJ,GAGR,QAASK,GAAQC,GAChB,MAAOA,GAAEC,QAAQ,mBAAoBC,oBAGtC,QAASC,GAAMC,GACd,QAASd,MAET,QAASe,GAAKP,EAAKQ,EAAOT,GACzB,GAAwB,mBAAbU,UAAX,CAIAV,EAAaL,GACZgB,KAAM,KACJlB,EAAImB,SAAUZ,GAEiB,gBAAvBA,GAA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E,QAAQ2C,SAAS,aACjB3C,EAAE,UAAU2C,SAAS,QACpB3C,EAAE,UAAU4C,UAAU,GACvB5C,EAAE,WAAayC,GAASE,SAAS,QAChC3C,EAAE,WAAayC,GAASxC,YAAY,UAErCzB,EAAEqE,oBAGH7C,EAAEpD,QAAQ4E,MAAM,SAAShD,GACnBwB,EAAExB,EAAEsE,QAAQC,QAAQ,UAAU3F,QAClC2C,cAIDC,EAAE,UAAUwC,KAAK,QAASzC,WAE1BC,EAAE,UAAUgD,UAAU,WACnBhD,EAAE,UAAU2C,SAAS,WAEtB3C,EAAE,UAAUiD,SAAS,WACpBjD,EAAE,UAAUC,YAAY,YA2C9B,IAAIqC,iBAAkBpC","file":"main.js","sourcesContent":["/*!\n * JavaScript Cookie v2.2.1\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;(function (factory) {\n\tvar registeredInModuleLoader;\n\tif (typeof define === 'function' && define.amd) {\n\t\tdefine(factory);\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (typeof exports === 'object') {\n\t\tmodule.exports = factory();\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (!registeredInModuleLoader) {\n\t\tvar OldCookies = window.Cookies;\n\t\tvar api = window.Cookies = factory();\n\t\tapi.noConflict = function () {\n\t\t\twindow.Cookies = OldCookies;\n\t\t\treturn api;\n\t\t};\n\t}\n}(function () {\n\tfunction extend () {\n\t\tvar i = 0;\n\t\tvar result = {};\n\t\tfor (; i < arguments.length; i++) {\n\t\t\tvar attributes = arguments[ i ];\n\t\t\tfor (var key in attributes) {\n\t\t\t\tresult[key] = attributes[key];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tfunction decode (s) {\n\t\treturn s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);\n\t}\n\n\tfunction init (converter) {\n\t\tfunction api() {}\n\n\t\tfunction set (key, value, attributes) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tattributes = extend({\n\t\t\t\tpath: '/'\n\t\t\t}, api.defaults, attributes);\n\n\t\t\tif (typeof attributes.expires === 'number') {\n\t\t\t\tattributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);\n\t\t\t}\n\n\t\t\t// We're using \"expires\" because \"max-age\" is not supported by IE\n\t\t\tattributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n\n\t\t\ttry {\n\t\t\t\tvar result = JSON.stringify(value);\n\t\t\t\tif (/^[\\{\\[]/.test(result)) {\n\t\t\t\t\tvalue = result;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\n\t\t\tvalue = converter.write ?\n\t\t\t\tconverter.write(value, key) :\n\t\t\t\tencodeURIComponent(String(value))\n\t\t\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n\n\t\t\tkey = encodeURIComponent(String(key))\n\t\t\t\t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)\n\t\t\t\t.replace(/[\\(\\)]/g, escape);\n\n\t\t\tvar stringifiedAttributes = '';\n\t\t\tfor (var attributeName in attributes) {\n\t\t\t\tif (!attributes[attributeName]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstringifiedAttributes += '; ' + attributeName;\n\t\t\t\tif (attributes[attributeName] === true) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Considers RFC 6265 section 5.2:\n\t\t\t\t// ...\n\t\t\t\t// 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n\t\t\t\t// character:\n\t\t\t\t// Consume the characters of the unparsed-attributes up to,\n\t\t\t\t// not including, the first %x3B (\";\") character.\n\t\t\t\t// ...\n\t\t\t\tstringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n\t\t\t}\n\n\t\t\treturn (document.cookie = key + '=' + value + stringifiedAttributes);\n\t\t}\n\n\t\tfunction get (key, json) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar jar = {};\n\t\t\t// To prevent the for loop in the first place assign an empty array\n\t\t\t// in case there are no cookies at all.\n\t\t\tvar cookies = document.cookie ? document.cookie.split('; ') : [];\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i < cookies.length; i++) {\n\t\t\t\tvar parts = cookies[i].split('=');\n\t\t\t\tvar cookie = parts.slice(1).join('=');\n\n\t\t\t\tif (!json && cookie.charAt(0) === '\"') {\n\t\t\t\t\tcookie = cookie.slice(1, -1);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tvar name = decode(parts[0]);\n\t\t\t\t\tcookie = (converter.read || converter)(cookie, name) ||\n\t\t\t\t\t\tdecode(cookie);\n\n\t\t\t\t\tif (json) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcookie = JSON.parse(cookie);\n\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t}\n\n\t\t\t\t\tjar[name] = cookie;\n\n\t\t\t\t\tif (key === name) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\n\t\t\treturn key ? jar[key] : jar;\n\t\t}\n\n\t\tapi.set = set;\n\t\tapi.get = function (key) {\n\t\t\treturn get(key, false /* read as raw */);\n\t\t};\n\t\tapi.getJSON = function (key) {\n\t\t\treturn get(key, true /* read as json */);\n\t\t};\n\t\tapi.remove = function (key, attributes) {\n\t\t\tset(key, '', extend(attributes, {\n\t\t\t\texpires: -1\n\t\t\t}));\n\t\t};\n\n\t\tapi.defaults = {};\n\n\t\tapi.withConverter = init;\n\n\t\treturn api;\n\t}\n\n\treturn init(function () {});\n}));\n","// GLOBAL VARIABLES ------------------------------------------------\nvar wRatio = $(window).width() / $(window).height();\nvar wWidth = $(window).width();\nvar menuTimeout;\n\n// ON DOCUMENT READY ------------------------------------------------\n$(document).ready(function() {\n\n // customCookieBar();\n\n\t// delays a fraction of second the cookie popup \n // setTimeout(function(){\n\t// $('.cookies').css('opacity', 1);\n\t// }, 500);\n\n\t// checks if local storage has cookie \n if (!!localStorage.getItem('cookieconsent')) {\n document.body.classList.add('cookieconsent')\n } \n else {\n $('.cookies-button').click(function() {\n localStorage.setItem('cookieconsent', 'ok')\n $('.cookies').hide();\n });\n }\n\n\t$('.slideshow').flickity({\n\t cellAlign: 'left',\n\t pageDots: false,\n\t contain: true,\n imagesLoaded: true,\n\t selectedAttraction: 0.06,\n\t friction: 0.6,\n accessibility: false\n\t});\n\n //Watch for transition ends\n $( \".menu\" ).each(function() {\n this.addEventListener(transitionEvent, function() {\n if(!this.classList.contains('open')) {\n this.classList.add('hidden')\n }\n })\n });\n\n $('[data-menu-id]').bind('click', function(e) {\n\tvar this_id = $(this).attr('data-menu-id');\n\t$('body').addClass('no-scroll');\n \t$('.menus').addClass('open');\n $('.menus').scrollTop(0);\n \t$('.menus .' + this_id).addClass('open');\n $('.menus .' + this_id).removeClass('hidden');\n \n \te.stopPropagation();\n });\n\n $(window).click(function(e) {\n\t if (!$(e.target).closest('.menus').length) {\n\t \tcloseMenu();\n\t }\n });\n\n $('.close').bind('click', closeMenu);\n\n $('.close').mouseover(function() {\n \t\t$('.menus').addClass('nudge');\n \t});\n $('.close').mouseout(function() {\n \t\t$('.menus').removeClass('nudge');\n \t});\n\n});\n\nfunction closeMenu() {\n var openMenu = $('.menu.open')\n $('body').removeClass('no-scroll');\n $('.menus').removeClass('open nudge');\n $('.menu').removeClass('open');\n}\n\nfunction whichTransitionEvent(){\n var t,\n el = document.createElement(\"fakeelement\");\n\n var transitions = {\n \"transition\" : \"transitionend\",\n \"OTransition\" : \"oTransitionEnd\",\n \"MozTransition\" : \"transitionend\",\n \"WebkitTransition\": \"webkitTransitionEnd\"\n }\n\n for (t in transitions){\n if (el.style[t] !== undefined){\n return transitions[t];\n }\n }\n}\n\n// function customCookieBar() {\n// \tif ( $('#cookies-bar').length > 0 ) {\n// \t\tif ( !Cookies.get('accepted_cookies') ) {\n// \t\t\t$('#cookies-bar').fadeIn();\n// \t\t}\n\n// \t\t$('.cookies-button').on('click', function () {\n// \t\t\tCookies.set('accepted_cookies', 'true', {expires: $('#cookies-bar').data('notice-keep-hidden-for-n-days')});\n// \t\t\t$('#cookies-bar').css('display', 'none')\n// \t\t});\n// \t}\n// }\n\nvar transitionEvent = whichTransitionEvent();\n"],"sourceRoot":"/source/"}