1/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/pages.js. */ 2!function(e){e(document).ready(function(){var s={},n,c,d,f,h,t=e('body');var I=function(){var i=e('.krpano-link'),t;e.each(i,function(i,s){e(s).bind({click:function(){var i=e(s).data('panos');t=new krpanoHandler({images:i})}})})},i=function(i){var s,n=e('.'+i+'-filter'),l=window.location.hash,t=e('#main-wrapper .view ul.list-'+i),c=t.find(' > li.item'),d=t.find('img'),f=0;t.addClass('isLoading');e.each(e('.'+i+'-filter-term li, .'+i+'-filter-type li'),function(i,s){var n=e(s),l=t.find('li'+n.attr('data-filter')).length;n.find('span.count').append(' ('+l+')');n.find('a').click(function(e){e.preventDefault()});if(!l){n.addClass('disable')}});var a=function(){t.isotope({itemSelector:'.item',masonry:{columnWidth:i==='news'&&c.length>1?'li.item:not(.first)':'li.item'}});if(l.length){s=l.substr(3,l.length-3);s=s.toLowerCase();s=n.find('li.'+s);if(s.hasClass('disable'))s=n.find('li.all');s.addClass('active');o(s,i,t)} 3else{n.find('li.all').addClass('active')};if(i==='gallery'){r(t)};n.find('li').click(function(){var s=e(this);s.parents('.'+i+'-filter').find('li').removeClass('active');s.addClass('active');o(s,i,t)})};t.imagesLoaded().always(function(){a();t.removeClass('isLoading').addClass('isReady');I()})},o=function(i,t,l){var o=e(i).parents('.'+t+'-filter').attr('data-filter-group');s[o]=e(i).attr('data-filter');n='';for(var a in s){n+=s[a]};l.isotope({filter:n});if(t==='gallery'){r(l)}},r=function(i){var l=[],t=i.data('isotope'),a=i.find('a');t=t['filteredItems'];for(var s=0;s<t.length;s++){var n=e(t[s].element).find('a');l.push({url:n.attr('href'),caption:n.attr('data-fresco-caption')})};a.off().click(function(i){i.preventDefault();var s=e(this),t=l.concat();e.each(t,function(e,i){if(i.url===s.attr('href')&&e!==0){if(t[0]!==i){t.unshift(i);t.splice((e+1),1)}}});Fresco.show(t,{thumbnails:!0,effects:!1})})},k=function(){if(!e('body').hasClass('crtReunion')){e('.timeline-container').rcTimeline();console.info('frise init')}},b={init:function(){var i=this;i.section=e('.frise-section'),i.timeline=e('.timeline-frise-verticale'),i.timelineContainer=i.timeline.find('ul'),i.timelineItem=i.timeline.find('li'),i.posTimeline=i.timeline.offset().top,i.offsetTimeline=i.timeline.find('.timeline-frise-verticale-container').height(),i.nbItems=i.timelineItem.length,i.displayItems=(e(window).width()>1000)?7:(e(window).width()<1000&&e(window).width()>768)?5:3,i.timelineItemWidth=i.timelineItem.width(),i.timelineActiveItem,i.clsDisplayItems='displayAll',i.clickMove=0,i.cls='active',i.clsFixed='fixed',i.clsFirst='firstVisible',i.clsLast='lastVisible',i.delay=1000,i.isSmartphone=(e(window).width()<768)?!0:!1,i.clsSmartphone='isVisible',i.timerClick,i.timerResize,i.optsSimpleslider={size:'auto',nbElPerSlide:1,nbByStep:1,autoplay:!1,duration:550,PNnav:!0,hideNav:!1,navButton:!1,useSwipe:!0};i.initSimpleslider(i.optsSimpleslider);i.resizeListener();i.initTimeline();i.timelineClickListener();if(i.isSmartphone){i.section.first().addClass(i.clsSmartphone)} 4else{i.friseScrollListener()}},initSimpleslider:function(i){this.section.each(function(t,s){var n=e(this).find('ul.sliderFriseVerticale');if(n.children('li').length>1){n.simpleSlider(i)}})},initTimeline:function(){if(this.nbItems>this.displayItems){this.timelineContainer.css({width:this.timelineItemWidth*this.nbItems}).parent().addClass('hiddenItems');this.timelineItem.first().addClass(this.clsFirst);this.timelineItem.eq(this.displayItems-1).addClass(this.clsLast)}},showArrowOnSides:function(){this.timelineContainer.parent().removeClass('items-left').removeClass('items-right');if(this.timelineItem.eq(0).hasClass(this.clsFirst)){this.timelineContainer.parent().removeClass('items-left').addClass('items-right')} 5else if(this.timelineItem.eq(this.nbItems-1).hasClass(this.clsLast)){this.timelineContainer.parent().removeClass('items-right').addClass('items-left')}},timelineClickListener:function(){var i=this;i.timeline.find('a').unbind('click').on('click',function(t){t.preventDefault();var s=e(this),n=e(s.attr('href')),l=Math.round(n.offset().top)-i.offsetTimeline;
5s.parent().addClass(i.cls).siblings().removeClass(i.cls);if(i.isSmartphone){n.addClass(i.clsSmartphone).siblings().removeClass(i.clsSmartphone)} 6else{i.clickMove=1;clearTimeout(i.timerClick);i.timerClick=setTimeout(function(){i.clickMove=0},i.delay+200);e('html,body').animate({'scrollTop':l+'px'},i.delay)};i.handleHiddenItems(s.parent())})},friseScrollListener:function(){var i=this;e(window).on('scroll',function(s){var n=(t.scrollTop()>0)?t.scrollTop():e('html').scrollTop();if(n>i.posTimeline){i.timeline.addClass(i.clsFixed)} 7else{i.timeline.removeClass(i.clsFixed)};i.section.each(function(){if(n>=(e(this).offset().top-i.offsetTimeline)&&n<=(e(this).offset().top+e(this).height()-i.offsetTimeline)&&i.clickMove!=1){i.timeline.find('.'+i.cls).removeClass(i.cls);i.timelineActiveItem=e('a[href="#'+e(this).attr('id')+'"]').parent();i.timelineActiveItem.addClass(i.cls);i.handleHiddenItems(i.timelineActiveItem)}})})},handleHiddenItems:function(e){if(this.nbItems>this.displayItems){if(e.hasClass(this.clsFirst)&&!e.is(':first-child()')){this.showItems(e,'left')} 8else if(e.hasClass(this.clsLast)&&!e.is(':last-child()')){this.showItems(e,'right')};this.showArrowOnSides()}},showItems:function(i,t){var a=this.timelineItem.index(e('.'+this.clsFirst)),o=this.timelineItem.index(e('.'+this.clsLast)),r=parseInt(this.timelineContainer.css('margin-left'),10),s,n,l;this.timelineItem.closest('.'+this.clsFirst).removeClass(this.clsFirst);this.timelineItem.closest('.'+this.clsLast).removeClass(this.clsLast);switch(t){case'left':if(a>=(this.displayItems-1)){s=this.displayItems-2;n=a-(this.displayItems-2);l=a+1} 9else{s=a;n=0;l=this.displayItems-1};break;case'right':if((this.nbItems-o)>=this.displayItems){s=-(this.displayItems-2);n=o-1;l=o+(this.displayItems-2)} 10else{s=-(this.nbItems-o-1);n=this.nbItems-this.displayItems;l=this.nbItems-1};break};this.timelineContainer.css({marginLeft:r+this.timelineItemWidth*s});this.timelineItem.eq(n).addClass(this.clsFirst);this.timelineItem.eq(l).addClass(this.clsLast)},resizeListener:function(){var i=this;e(window).resize(function(t){clearTimeout(i.timerResize);i.timerResize=setTimeout(function(){i.isSmartphone=(e(window).width()<768)?!0:!1;i.displayItems=(e(window).width()>1000)?7:(e(window).width()<1000&&e(window).width()>768)?5:3;i.initSimpleslider(i.optsSimpleslider);i.initTimeline();i.timelineClickListener();if(i.isSmartphone){i.section.first().addClass(i.clsSmartphone)} 11else{i.friseScrollListener()}},300)})}};var C=function(){e('.travelmode span').click(function(){var i=e('#edit-travelmode-key-1'),t=e(this).attr('data-name');e('.travelmode span').removeClass('checked');e(this).addClass('checked');i.val(t)});e('.form-item-travelextras-key-1 input').click(function(){if(e(this).is(':checked')){e(this).parent().addClass('checked')} 12else{e(this).parent().removeClass('checked')}})},y=function(){var i=e('.view-recherche .item-list ul');clearTimeout(c);c=setTimeout(function(){i.isotope({itemSelector:'.views-row',masonry:{columnWidth:'li.views-row'}})},5000)},a={init:function(){var i=this;i.responsiveRegion=e('#responsive');i.scrollContainer=i.responsiveRegion.find('.scrollContainer');i.buttons={openBtn:i.responsiveRegion.find('.btn_open'),closeBtn:i.responsiveRegion.find('.btn_close')};i.allLinks=i.responsiveRegion.find('li a, .back_homepage a');i.classOpen='opened';i.isOpen=!1;i.scrollContainer.height(e(window).height());i.allLinks.each(function(i,t){var s=e(this),n=s.attr('class'),l=s.attr('href');s.parent().attr('class',n);s.on('tap',function(e){e.preventDefault();window.location.href=l})});i.initIScroll();i.initButtonsBehaviours()},initIScroll:function(){window.myScroll=new IScroll('.scrollContainer',{mouseWheel:!0,scrollbars:!0,tap:!0});h=!0},initButtonsBehaviours:function(){var e=this;e.buttons.openBtn.off('click').on('click',function(){e.toggleMenu.call(e)});e.buttons.closeBtn.off('click').on('click',function(){e.toggleMenu.call(e)})},toggleMenu:function(){this.responsiveRegion[this.isOpen?'removeClass':'addClass'](this.classOpen);this.isOpen?this.removeClickListener():this.registerClickListener();this.isOpen=!this.isOpen},registerClickListener:function(){var i=this;e(window).on('click.menu',function(t){if(i.isOpen&&!e(t.target).closest('#responsive').length){t.preventDefault();i.toggleMenu()}})},removeClickListener:function(){e(window).off('click.menu')}};var l=function(){var i=e('#places'),n=i.find('.btn_open'),l=i.find('.btn_close'),t='opened',s='closed';n.on({click:function(){i.addClass(t);i.removeClass(s)}});l.on({click:function(){i.removeClass(t);i.addClass(s)}});f=!0},m=function(){e(window).resize(function(){if(e(window).width()<1025){if(e('.region-responsive .block-menu-block').length&&!f){l()};if(e('.region-responsive .block-menu-block').length&&!h){a.init()}}})},u=function(){var t=e('.language-switcher-locale-url'),i=function(){var i=window.location.hash;if(!i){return};e.each(t.find('a'),function(t,s){var o='',l=e(s),n=l.attr('href');if(n.indexOf('#!')===-1){l.attr('href',n+i)} 13else{var a=n.split('#!')[1];if(a!==i.substr(2,i.length)){l.attr('href',n.split('#!')[0]+i)}}})};i();window.onhashchange=i},p=function(){t.on('click','.carousel-control',function(){e(this).closest('.carousel').carousel(e(this).data('slide'));return!1})},v=function(){if(t.hasClass('node-type-comment-venir'))e('.getdirections_form input[type="text"]').attr('placeholder',Drupal.t('Indicate your place of departure'))},g=function(){if(t.find('.view-liens-enfants').hasClass('view-display-id-block_5')){t.find('.view-liens-enfants').find('li.views-row > a.has-descendant ').on('click',function(i){i.preventDefault();e(this).parent().toggleClass('closed');e(this).parent().find('.menu').slideToggle()})}},w=function(){if(e('.list-gallery-page').length){i('gallery')} 14else if(e('.list-brochures.list-brochures-page').length){i('brochures')} 15else if(e('.list-recettes').length){i('recettes')} 16else if(e('.list-espaces_communautaires-page').length){i('espace
16s_communautaires')} 17else if(e('.list-annuaire.list-annuaire-page').length){i('annuaire')} 18else if(e('.blog-page').length){i('blog')} 19else if(e('.news-page').length){i('news')} 20else if(e('.page-view-sejour').length){i('sejour')} 21else if(e('.agenda-page').length){i('agenda')} 22else if(e('.boutique-page').length){i('boutique')} 23else if(e('.liensutiles-page').length){i('lienutile')};if(e('.view-frise').length){k()};if(e('.view-frise-verticale').length){clearTimeout(d);d=setTimeout(function(){b.init()},500)};if(e('.getdirections_form').length){C()};if(e(window).width()<1025&&e('.region-responsive .block-menu-block').length){a.init()};if(e(window).width()<1000&&e('.lieux-list-container').length){l()};m();u();p();v();g()};w();e('.field-collection-item.type-accordion .collapse').collapse();if(e('body').hasClass('apirender')){e('.navbar-nav > li.dropdown > a, .navbar-flex-nav > li.dropdown > a').on('click',function(e){e.preventDefault()})}})}(jQuery);; 24/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/pages.js. */;/*})'"*/ 25/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/filters.js. */ 26!function(i){i(document).ready(function(){var e={},a,o,r,s,l,c=i('body');var n=function(n){var u='.'+n+'-filter',d=i(u),a=d.find('li'),e=i('#main-wrapper .view ul.list-'+n),p=e.find('li'),v=i('.termList-reset'),t='',o='active',l='disable',c=!0;e.addClass('isLoading');r();s(t);c=!1;e.removeClass('isLoading');a.on('click','a',function(n){var e=i(this),a=e.closest('li');n.preventDefault();m(a);g();s(t);r()});v.click(function(){C();s(t);r()});function m(i){i.toggleClass(o).siblings().removeClass(o)};function f(i){return i.attr('data-filter')};function g(){var n=[];a.filter('.active').each(function(t,e){n.push(f(i(e)))});t=n.length>1?n.join(''):n.toString()};function h(i,n){return e.find('li'+i+n)};function r(){a.each(function(n,a){var e=i(a),r=f(e),s=e.find('span.count'),u=h(t,r),o=u.length;s.text(' ('+o+')');if(c&&!o){e.remove();return} 27else if(!o){e.addClass(l)}})};function C(){t='';a.removeClass(o+' '+l)};function s(i){e.isotope({itemSelector:'.item',masonry:{columnWidth:'li.item'},filter:i})}},t=function(){if(i('.hasTermList').length){n('termList')}};t()})}(jQuery);; 28/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/filters.js. */;/*})'"*/ 29/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/lieux.js. */ 30!function(e){e(document).ready(function(){var o,t;window.RaccourciLieux=function(t){var o=this.defaults();this.config=e.extend({},o,t);this.init()};RaccourciLieux.prototype.init=function(){var e=this;this.map=null;this.bounds=new google.maps.LatLngBounds();this.places=null;this.markers=[];this.gmMarkers=[];this.markerClusterer=null;this.openedWindow=new google.maps.InfoWindow({maxWidth:e.config.infowindowOpts.width});this.fullscreen=!1;this.initMap();this.setStyles();this.addMarkers();this.zoomHandler();this.uiBehaviorsInit()};RaccourciLieux.prototype.initMap=function(){var e=this,t=e.config.mapOptions;e.places=e.indexArray(e.config.myPlaces);var i={mapTypeId:google.maps.MapTypeId.ROADMAP,zoomControl:t.displayZoomControls,zoomControlOptions:{style:google.maps.ZoomControlStyle[t.controlsStyle],position:google.maps.ControlPosition[t.controlsPosition]},mapTypeControl:t.displayMapTypeControls,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle[t.typeControls],position:google.maps.ControlPosition[t.typePosition]},rotateControl:!1,panControl:!1};var n,s,o;if(window.DrupalAngularConfig.mapProviderConfig)o=window.DrupalAngularConfig.mapProviderConfig.ignKey;if(o){s='GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2';n=new google.maps.ImageMapType({getTileUrl:function(e,t){var o='https://wxs.ign.fr/cartes/geoportail/wmts?LAYER='+s+'&SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX='+t+'&TILEROW='+e.y+'&TILECOL='+e.x+'&FORMAT=image/png';return o},tileSize:new google.maps.Size(256,256),name:'IGN',maxZoom:18});i.mapTypeId='IGNLayer';i.mapTypeControlOptions={mapTypeIds:['IGNLayer']}};e.map=new google.maps.Map(document.getElementById(e.config.mapId),i);if(o)e.map.mapTypes.set('IGNLayer',n);google.maps.event.addListener(e.map,'tilesloaded',function(){if(typeof(t.onMapLoaded)==='function')t.onMapLoaded();google.maps.event.clearListeners(e.map,'tilesloaded')})};RaccourciLieux.prototype.zoomHandler=function(){var t=this;google.maps.event.addListener(t.map,'mousedown',function(){i()});function i(){t.map.setOptions({scrollwheel:!0})};function o(){t.map.setOptions({scrollwheel:!1})};e('body').on('mousedown',function(i){var n=e(i.target).parents('#'+t.config.mapId).length>0;if(!n){o()}});e(window).scroll(function(){o()})};RaccourciLieux.prototype.setStyles=function(){var e=this;if(e.config.styles)e.map.setOptions({styles:e.config.styles})};RaccourciLieux.prototype.addMarkers=function(t){var n=this,i=t,s;n.markers=[];n.gmMarkers=[];if(!t)i=n.places;for(var o in i){i[o].latitude=parseFloat(i[o].latitude);i[o].longitude=parseFloat(i[o].longitude);var r,c=new google.maps.LatLng(i[o].latitude,i[o].longitude);if(n.config.customIcons&&i[o].taxonomie.length){var s=i[o].icone.split('.'),l=i[o].taxonomie.toLowerCase().replace(/ /g,''),a;s.splice((s.length-1),0,'-'+l+'.');a=s.join('');if(n.config.customIconDebug){console.warn('/**************************/');console.warn('path to icon should be',a);console.warn('/**************************/')}};
30r=new google.maps.Marker({flat:!0,position:c,draggable:!1,clickable:!0,title:i[o].title,icon:a||i[o].icone});n.markers[i[o].id]=r;n.gmMarkers.push(r);n.clickHandler({infowindow:e('#infowindow-'+i[o].id).html()||'',marker:r,id:i[o].id})};if(n.config.useClusters){n.setClusters()} 31else{for(o in n.markers){if(n.markers.hasOwnProperty(o)){n.markers[o].setMap(n.map)}}};n.fitCurrentBounds()};RaccourciLieux.prototype.fitCurrentBounds=function(){var e=this;e.bounds=new google.maps.LatLngBounds();for(i in e.markers){e.bounds.extend(e.markers[i].position)};e.map.fitBounds(e.bounds)};RaccourciLieux.prototype.clickHandler=function(e){var t=this;if(t.config.useInfoWindows){google.maps.event.addListener(e.marker,'click',t.openWindow(e.infowindow,t.map,e.marker,e.id))} 32else{google.maps.event.addListener(e.marker,'click',function(){if(typeof(t.config.clickCallback)==='function')config.clickCallback();t.showPlace(e.id)})}};RaccourciLieux.prototype.openWindow=function(e,t,n,s){var i=this;return function(){i.closeWindow();clearTimeout(o);var r=new google.maps.LatLng(n.getPosition().lat(),n.getPosition().lng());i.map.panTo(r);i.inCluster(n).always(function(n){i.openedWindow.setContent(e);i.selectItem(s);setTimeout(function(){i.openedWindow.open(t,n)},200);clearTimeout(o)})}};RaccourciLieux.prototype.checkCluster=function(e){var n=this,s=n.markerClusterer.clusters_,l=!1;clearTimeout(o);for(var a in s){var i=s[a].markers_;if(i&&i.length>1){for(var r in i){if(i[r].title===e.title){if(i[r].map===null){l=!0;n.map.fitBounds(s[a].bounds_);o=setTimeout(function(){n.checkCluster(e)},500)} 33else{t.resolve(e)}}}}};if(!l){t.reject(e)}};RaccourciLieux.prototype.inCluster=function(o){var i=this;t=e.Deferred();setTimeout(function(){i.config.useClusters?i.checkCluster(o):t.reject(o)},500);return t.promise()};RaccourciLieux.prototype.closeWindow=function(){var e=this;if(e.openedWindow){e.openedWindow.close();e.openedWindow.setContent(null)}};RaccourciLieux.prototype.setClusters=function(){var e=this;c=e.config.clusterOpts;if(e.markerClusterer)e.markerClusterer.clearMarkers();var t=[{url:e.config.cluster_url,height:c.clusterWidth,width:c.clusterHeight,textColor:c.clusterTextColor,textSize:c.clusterTextSize},{url:e.config.cluster_url,height:c.clusterWidth,width:c.clusterHeight,textColor:c.clusterTextColor,textSize:c.clusterTextSize},{url:e.config.cluster_url,height:c.clusterWidth,width:c.clusterHeight,textColor:c.clusterTextColor,textSize:c.clusterTextSize}];
33if(e.config.mapOptions.useClusters){e.markerClusterer=new MarkerClusterer(e.map,e.gmMarkers,{styles:t,maxZoom:15})}};RaccourciLieux.prototype.uiBehaviorsInit=function(){var t=this;t.list=e('.'+t.config.classes.listDivs);t.listWrapper=e('.'+t.config.classes.listWrapper);t.attachBehaviors()};RaccourciLieux.prototype.attachBehaviors=function(){var t=this;t.fullscreenBtn=e('.'+t.config.classes.btnFullscreen);t.list.unbind().bind({click:function(){t.listItemBehaviour(e(this))}});if(t.fullscreenBtn.length&&t.config.useFullscreen){t.fullscreenBtn.text(t.config.fullscreenTexts.full);t.fullscreenBtn.unbind().bind({click:function(){t.toggleFullscreen()}})};if(t.fullscreenBtn.length&&t.config.autoFullscreen){t.toggleFullscreen()};if(t.config.useTaxonomy)t.taxonomyUiHandler()};RaccourciLieux.prototype.listItemBehaviour=function(t){var o=this,t=e(t),i=t.attr('id');if(o.config.useInfoWindows){google.maps.event.trigger(o.markers[i],'click')} 34else{o.showPlace(i)}};RaccourciLieux.prototype.toggleFullscreen=function(){var t=this,i=e('.'+t.config.classes.globalWrapper),o='hasFullscreenMap';t.fullscreen=!t.fullscreen;if(t.fullscreen){e(window).bind({keyup:function(e){switch(e.keyCode){case 27:t.toggleFullscreen();break}}});t.fullscreenBtn.text(t.config.fullscreenTexts.back);e('body').addClass(o)} 35else{e(window).unbind('keyup');t.fullscreenBtn.text(t.config.fullscreenTexts.full);e('body').removeClass(o)};i.toggleClass('fullscreen');google.maps.event.trigger(t.map,'resize');t.map.fitBounds(t.bounds);if(t.config.useTaxonomy){setTimeout(function(){t.setListContainerHeight();t.updateOpenedElement()},500)}};RaccourciLieux.prototype.taxonomyUiHandler=function(){var o=this,s=e('.'+o.config.classes.taxoItems),i=e('.'+o.config.classes.taxoItems),n=e('.'+o.config.classes.btnReset),t={c:'closed',o:'opened',a:'active',p:'poor'};e(window).unbind('resize').bind({resize:function(){o.setListContainerHeight();o.updateOpenedElement()}});setTimeout(function(){o.setListContainerHeight();if(i.length<2){i.click();o.listWrapper.parent().addClass(t.p)}},500);i.unbind().bind({click:function(){var i=e(this);if(!i.hasClass(t.o)){i.closest('.lieux-list-wrapper').find('.'+t.o).removeClass(t.o).addClass(t.c);i.toggleClass(t.c+' '+t.o);o.sortMarkers(i.data('name'),i.data('parent'));n.removeClass(t.a);o.getMaxHeight(i.find('ul'));o.initScrollable(i.find('ul'))}}});n.unbind().bind({click:function(){var n=e(this);if(!n.hasClass(t.a)){n.addClass(t.a);i.parent().find('.'+t.o).removeClass(t.o).addClass(t.c);o.sortMarkers()}}})};RaccourciLieux.prototype.updateOpenedElement=function(){var t=this,o=e('.'+t.config.classes.taxoItems);e.each(o,function(o,i){var i=e(i);if(i.hasClass('opened')){t.getMaxHeight(i.find('ul'));t.initScrollable(i.find('ul'))}})};RaccourciLieux.prototype.setListContainerHeight=function(){var o=this,i=e('.'+o.config.classes.listContainer),t=e('.'+o.config.classes.taxoWrapper),n=i.outerHeight()-(t.offset().top-i.offset().top);t.height(Math.round(n));chLength=t.find('> li').length;if(chLength>1){o.initScrollable(t)}};RaccourciLieux.prototype.sortMarkers=function(e,t){var o=this;if(!e){o.cleanMap();o.addMarkers();return};var i=o.filterFn(o.places,'filter',e,t);o.cleanMap();o.addMarkers(i)};RaccourciLieux.prototype.cleanMap=function(){for(i in this.gmMarkers){this.gmMarkers[i].setMap(null);this.gmMarkers[i]=null}};RaccourciLieux.prototype.filterFn=function(t,o,n,s){var r=[];for(i in t){if(!s){if(e.inArray(n,t[i][o])!==-1){r.push(t[i])}} 36else{if(e.inArray(n,t[i][o])!==-1&&e.inArray(s,t[i][o])!==-1){r.push(t[i])}}};return r};RaccourciLieux.prototype.showPlace=function(t){var o=this,s='lieux_',r='_description',n=['title','body','taxonomie'],i=o.places[t];newPos=new google.maps.LatLng(i.latitude,i.longitude);content=e('<div/>');o.selectItem(t);if(i.icone)o.createDOMElement('img',{id:s+'image'+r,src:i.icon},content);for(t in n){o.createDOMElement('span',{id:s+n[t]+r,html:i[n[t]]},content)};e('html, body').animate({'scrollTop':e('#'+o.config.mapId).offset().top-10},o.config.animSpeed,function(){var t=e('#'+o.config.ids.placeDesc);if(t.length){t.fadeOut(o.config.animSpeed,function(){t.empty().html(content).fadeIn(o.config.animSpeed,function(){o.setMapPosition(newPos,11)})})} 37else{o.setMapPosition(newPos,11)}})};RaccourciLieux.prototype.selectItem=function(t){var o='marker-opened';e.each(this.list,function(t,i){e(i).parent().removeClass(o)});e('#'+t).parent().addClass(o)};RaccourciLieux.prototype.createDOMElement=function(t,o,i){return e('<'+t+'/>',o).appendTo(i)};RaccourciLieux.prototype.setMapPosition=function(e,t){this.map.getStreetView().setVisible(!1);this.map.panTo(e);this.map.setZoom(t)};RaccourciLieux.prototype.indexArray=function(e){var o=[];for(var t in e){o[e[t].id]=e[t]};return o};RaccourciLieux.prototype.getMaxHeight=function(t){var o=this,i,s=t.parents('ul').find('> .'+o.config.classes.taxoItems),n=0;e.each(s,function(t,o){n+=e(o).find('.lieux-taxonomy-name').outerHeight()});i=e('.'+o.config.classes.listWrapper).outerHeight()-n;t.css('max-height',i)};RaccourciLieux.prototype.defaults=function(){var e='lieux';return{animSpeed:200,mapId:'lieux_map_canvas',useFullscreen:!0,autoFullscreen:!0,classes:{globalWrapper:e+'-global-wrapper',listDivs:e+'-item-wrapper',taxoItems:e+'-taxonomy-item',taxoName:e+'-taxonomy-name',taxoWrapper:e+'-taxo-wrapper',btnReset:e+'-sh
37ow-all',btnFullscreen:e+'-map-fullscreen',listWrapper:e+'-list-wrapper',listContainer:e+'-list-container',},ids:{placeDesc:e+'_description_lieu',centerMap:e+'_center_map'},mapOptions:{useClusters:!0,displayZoomControls:!0,displayMapTypeControls:!0,controlsPosition:'LEFT_CENTER',controlsStyle:'DEFAULT',typeControls:'DEFAULT',typePosition:'TOP_LEFT',clickCallback:null,onMapLoaded:null},useClusters:!0,clusterOpts:{clusterWidth:32,clusterHeight:32,clusterTextColor:'#FFF',clusterTextSize:10,clusterAnchor:[16,0],},infowindowOpts:{width:290},fullscreenTexts:{back:Drupal.t('Back'),full:Drupal.t('Fullscreen')},scrollOpts:{mouseWheel:!0,mouseWheelPixels:200,scrollInertia:350,advanced:{updateOnContentResize:!0,updateOnBrowserResize:!0,}},scrollFix:30,}}})}(jQuery);; 38/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/lieux.js. */;/*})'"*/ 39/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/captive.js. */ 40;if(window.location.href.indexOf('captive=true')!==-1){sessionStorage.setItem('captive',!0)};if(sessionStorage.getItem('captive')==='true'){console.log('%cCaptive mode enabled','color: green;');var elements=document.getElementsByClassName('hide-captive');for(var i=0;i<elements.length;i++){elements[i].parentNode.removeChild(elements[i])}};; 41/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/captive.js. */;/*})'"*/ 42/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/sheetSelector.js. */
43!function(s){s(document).ready(function(){var i=s('.isSlick .field-collection-item.type-sheets_selection'),o=function(o,e){var i=o.children().attr('class');slidesToShowXs=1;slidesToShowLxs=2;slidesToShowSm=2;slidesToShowMd=3;slidesToShowLg=4;slidesToShowXlg=4;if(i.indexOf('col-sm-6')!=-1){slidesToShowMd=2;if(!s('body').hasClass('fullwidth-sheetselector')){slidesToShowLg=2;slidesToShowXlg=2}};if(i.indexOf('col-sm-6')!=-1){slidesToShowMd=2};if(i.indexOf('col-sm-4')!=-1){slidesToShowSm=3;slidesToShowLg=3;slidesToShowXlg=3};if(i.indexOf('col-sm-3')!=-1){slidesToShowSm=4};if(i.indexOf('col-md-3')!=-1){slidesToShowMd=4};if(i.indexOf('col-lg-2')!=-1){slidesToShowLg=6;slidesToShowXlg=6};if(i.indexOf('col-xlg-2')!=-1){slidesToShowXlg=6};if(s('body').hasClass('node-type-simplenews')){slidesToShowMd=2;slidesToShowLg=2;slidesToShowXlg=2};var l={mobileFirst:!0,infinite:!1,slidesToShow:slidesToShowXs,slidesToScroll:1,prevArrow:'<span class="slick-prev icon icon-font-nav-prev"></span>',nextArrow:'<span class="slick-next icon icon-font-nav-next"></span>',arrows:!0,responsive:[{breakpoint:560,settings:{slidesToShow:slidesToShowLxs,}},{breakpoint:768,settings:{slidesToShow:slidesToShowSm,}},{breakpoint:992,settings:{slidesToShow:slidesToShowMd,}},{breakpoint:1200,settings:{slidesToShow:slidesToShowLg,}},{breakpoint:1400,settings:{slidesToShow:slidesToShowXlg,}},]};if(e){l.slide=e};o.slick(l)},e=setInterval(function(){var l='.angular-block',n=i.find(l).length;if(n){clearInterval(e);i.each(function(){var i=s(this).find('.angular-block').length,e=s(this).find('> div');if(i>3){o(e,l)}})}},500),l=setInterval(function(){var e=i.find('.selector').length;if(e){clearInterval(l);i.each(function(){var e=s(this).find('.selector').children().length,i=s(this).find('.selector');if(e>3){o(i);i.find('.rc_lego .infos').matchHeight({byRow:!0})}})}},500),n=setInterval(function(){var i=s('.selector.isSlick').length;if(i){clearInterval(n);s('.selector.isSlick').each(function(){var e=s(this).children().length,i=s(this);if(e>2){o(i);i.find('.rc_lego .infos').matchHeight({byRow:!0})}})}},500)})}(jQuery);; 44/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/sheetSelector.js. */;/*})'"*/ 45/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/textSlider.js. */ 46!function(e){e(document).ready(function(){e('.field-collection-item.type-text_slider').each(function(){var t=e(this),n=t.find('.text-slides-wrapper');n.slick({mobileFirst:!0,infinite:!1,slidesToShow:1,slidesToScroll:1,dots:!0,easing:'easeInOutBack',customPaging:function(e,t){var n=e.$slides[t]['childNodes'][1]['childNodes'][1]['childNodes'][1]['innerText'];return'<button type="button" data-role="none" role="button" tabindex="0"><span class="bar before"></span><span class="text">'+n+'</span><span class="bar after"></span></button>'},})})})}(jQuery);; 47/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/textSlider.js. */;/*})'"*/ 48/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/contentSelector.js. */ 49!function(e){e(document).ready(function(){e('.field-collection-item.type-fieldCol_contentSelect').each(function(){var o=e(this),i=o.find('.slider_wrapper');i.slick({autoplay:!1,slidesToShow:1,slidesToScroll:1,arrows:!0,})})})}(jQuery);; 50/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/contentSelector.js. */;/*})'"*/ 51/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/jquery.matchHeightStarter.js. */ 52!function(t){t(document).ready(function(){t('.main-container').each(function(){var h=t(this),c=t(window).width();h.find('.matchlxs').each(function(){if(c>=425&&c<=767){t('.matchlxs').matchHeight()}});h.find('.matchlxsSm').each(function(){if(c>=425&&c<=991){t('.matchlxsSm').matchHeight()}});h.find('.matchlxsMd').each(function(){if(c>=425&&c<=1199){t('.matchlxsMd').matchHeight()}});h.find('.matchlxsLg').each(function(){if(c>=425&&c<=1399){t('.matchlxsLg').matchHeight()}});h.find('.matchlxsXlg').each(function(){if(c>=425){t('.matchlxsXlg').matchHeight()}});h.find('.matchsm').each(function(){if(c>=768&&c<=991){t('.matchsm').matchHeight()}});h.find('.matchsmMd').each(function(){if(c>=768&&c<=1199){t('.matchsmMd').matchHeight()}});h.find('.matchsmLg').each(function(){if(c>=768&&c<=1399){t('.matchsmLg').matchHeight()}});h.find('.matchsmXlg').each(function(){if(c>=768){t('.matchsmXlg').matchHeight()}});h.find('.matchmd').each(function(){if(c>=992&&c<=1199){t('.matchmd').matchHeight()}});h.find('.matchmdLg').each(function(){if(c>=992&&c<=1399){t('.matchmdLg').matchHeight()}});h.find('.matchmdXlg').each(function(){if(c>=992){t('.matchmdXlg').matchHeight()}});h.find('.matchlg').each(function(){if(c>=1200&&c<=1399){t('.matchlg').matchHeight()}});h.find('.matchlgXlg').each(function(){if(c>=1200){t('.matchlgXlg').matchHeight()}});h.find('.matchxlg').each(function(){if(c>=1399){t('.matchxlg').matchHeight()}})})})}(window.jQuery);; 53/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/jquery.matchHeightStarter.js. */;/*})'"*/ 54/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/backtoTop.js. */ 55(function(o){o(document).ready(function(){if(o('#backtoTop').length){var a=100,n=function(){var n=o(window).scrollTop();if(n>a){o('#backtoTop').addClass('show')} 56else{o('#backtoTop').removeClass('show')}};n();o(window).on('scroll',function(){n()});o('#backtoTop').on('click',function(n){n.preventDefault();o('html,body').animate({scrollTop:0},700)})}})})(jQuery);; 57/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/backtoTop.js. */;/*})'"*/ 58/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/cookies.js. */ 59!(function(e,o,i,s){e.getScript('https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.
59cookie.min.js',function(t,f,p){var u=!1,c=e('body'),n=e('<div role="dialog" aria-live="polite" class="rgpd-cookies-toolbox '+cookieconsent_settings.global.position+'" />'),l=e('<div role="dialog" aria-live="polite" class="rgpd-cookies-revoke"><span class="loader"></span><span class="revoke-label">'+cookieconsent_settings.global.revoke_label+'</span></div>');n.appendTo('body');l.appendTo('body');b();var a=Cookies.getJSON('woody_cookieconsent'),r=[];if(typeof a=='undefined'||a==null){a={};d(!0)} 60else{v(a);l.addClass('visible');c.addClass('cookies-revoke')};if(typeof cookieconsent_settings.force!=='undefined'&&cookieconsent_settings.force.length>=1){cookieconsent_settings.force.forEach(function(e){h(e,'enable')})};o.onscroll=function(e){if((o.innerHeight+o.scrollY)>=i.body.offsetHeight){c.addClass('fullScrolled')} 61else{c.removeClass('fullScrolled')}};function d(visible=!0){if(!u){y(visible)} 62else{if(visible){n.addClass('visible');n.find('.cookies-global').addClass('visible');n.find('.cookies-solutions').removeClass('visible');l.removeClass('visible');l.find('.loader').removeClass('visible');c.removeClass('cookies-revoke');Cookies.remove('woody_cookieconsent')} 63else{n.removeClass('visible');l.addClass('visible');c.addClass('cookies-revoke');Cookies.set('woody_cookieconsent',a,{expires:365},{secure:!0});v(a)}}};function b(){l.click(function(){e(this).find('.loader').addClass('visible');m();d(!0)})};function g(){n.find('.cookies-solutions .solution-item .switch-input').each(function(){var o=e(this);if(a[o.attr('name')]===!0){o.prop('checked',!0)}}).on('change',function(){var o=e(this);a[o.attr('name')]=o.prop('checked');if(!e(this).prop('checked')){n.find('.cookies-solutions.visible .switch-all .switch-input').prop('checked',!1)}});n.find('.cookie-button.deny').on('click',function(){n.find('.cookies-solutions .switch-input').each(function(){e(this).prop('checked',!1).change()});d(!1)});n.find('.cookie-button.allow').on('click',function(){n.find('.cookies-solutions .switch-input').each(function(){e(this).prop('checked',!0).change()});d(!1)});n.find('.cookie-button.customize').on('click',function(){n.find('.cookies-solutions:nth-of-type(1)').addClass('visible');n.find('.cookies-global').removeClass('visible')});n.find('.cookies-solutions .switch-all .switch-input').on('change',function(){var o=e(this).prop('checked');n.find('.cookies-solutions.visible .solution-item .switch-input').each(function(){e(this).prop('checked',o).change()})});n.find('.cookie-button.allow-all').on('click',function(){n.find('.cookies-solutions.visible .switch-input:not(:checked)').each(function(){e(this).prop('checked',!0).change()})});n.find('.cookie-button.navigate').on('click',function(){var i=e(this).data('current'),goto=e(this).data('goto');if(goto=='submit'){d(!1)} 64else if(goto=='globals'){n.find('.cookies-global').addClass('visible');n.find('.cookies-solutions.'+i).removeClass('visible')} 65else{n.find('.cookies-global').removeClass('visible');n.find('.cookies-solutions.'+i).removeClass('visible');n.find('.cookies-solutions.'+goto).addClass('visible')}})};function y(o){e.ajax({method:'GET',url:'/ajax/cookies',dataType:'json',data:{lang:cookieconsent_settings.lang},success:function(e){if(typeof e.options.customize!=='undefined'&&e.toolbox.length){n.html(e.toolbox);u=!0;g();d(o)} 66else{k()}},error:function(e){console.error('Unable to create cookie toolbox. An error has occured : '+e);k()}})};function k(){n.remove();l.remove();c.removeClass('cookies-revoke')};function v(events={}){Object.entries(events).forEach(([event,status])=>{status=(status)?'enable':'disable';h(event,status)})};function h(e,status='enable'){var t=(status=='enable')?!0:!1;if(o.dataLayer==s){o.dataLayer=[]};if(status=='disable'||r.indexOf(e)==-1){o.dataLayer.push({'event':e+'_'+status,[e]:t});o.dataLayer.push({'event':e+'_'+status+'_'+cookieconsent_settings.lang,[e]:t});if(status=='enable'){r.push(e)} 67else{delete r[e]};if(e=='google_analytics'){if(status=='enable'){if(o.ga_ready!==!0){o.ga_ready=!0;var n=new Event('ga_ready');i.dispatchEvent(n)};o.ga_ready=!0} 68else{o.ga_ready=!1}};if(e=='at_internet'){if(status=='enable'){o.at_internet_ready=!0} 69else{o.at_internet_ready=!1}};
69if(o.ga_ready||o.at_internet_ready||o.umami!=s){if(o.eskalad_ready!==!0){o.eskalad_ready=!0;var n=new Event('eskalad_ready');i.dispatchEvent(n)};o.eskalad_ready=!0} 70else{o.eskalad_ready=!1}} 71else{}};function m(){var a=i.cookie.split('; ');for(var n=0;n<a.length;n++){var s=o.location.hostname.split('.');while(s.length>0){var t=encodeURIComponent(a[n].split(';')[0].split('=')[0])+'=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain='+s.join('.')+' ;path=',e=location.pathname.split('/');i.cookie=t+'/';while(e.length>0){i.cookie=t+e.join('/');e.pop()};s.shift()}}}})})(jQuery,window,document);; 72/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/cookies.js. */;/*})'"*/ 73/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/simpleSliderField.js. */ 74!function(s){s(document).ready(function(){s('.slickSliderWrapper.imgPager').each(function(){var a=s(this),c=a.attr('id'),n=a.find('.slickSlider'),e=a.find('.slickPager'),i=n.find('li'),r=i.size();if(e.length==1){n.slick({autoplay:!0,pauseOnHover:!1,speed:800,cssEase:'ease-in-out',fade:!0,focusOnSelect:!0,arrow:!0,prevArrow:'<span class="slick-arrow slick-prev icon icon-font-nav-prev"></span>',nextArrow:'<span class="slick-arrow slick-next icon icon-font-nav-next"></span>',asNavFor:'.slickPager',});e.slick({autoplay:!0,slidesToShow:r,focusOnSelect:!0,asNavFor:'.slickSlider',})} 75else{n.slick({autoplay:!0,speed:800,cssEase:'ease-in-out',arrows:!0,prevArrow:'<span class="slick-arrow slick-prev icon icon-font-nav-prev"></span>',nextArrow:'<span class="slick-arrow slick-next icon icon-font-nav-next"></span>'})}})})}(jQuery);; 76/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/simpleSliderField.js. */;/*})'"*/ 77/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/trackFocus.js. */ 78!function(e){e(document).ready(function(){var e;function o(){document.body.addEventListener('focusin',t);document.body.addEventListener('focusout',d);document.body.addEventListener('keydown',n);document.body.addEventListener('mousedown',n)};function n(n){e=(n.type==='mousedown')};function t(n){if(e){n.target.classList.add('focus-mouse')}};function d(e){e.target.classList.remove('focus-mouse')};o()})}(jQuery);; 79/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/trackFocus.js. */;/*})'"*/ 80/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/covid-alert.js. */ 81!(function(d,n){d(document).ready(function(){d('#covid19').modal('show')})})(jQuery);; 82/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/covid-alert.js. */;/*})'"*/ 83/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/jquery.youtubeAutoPlay.js. */ 84!function(e){e(document).ready(function(){var r=e('iframe[src*="youtube.com"]');if(r.length!==0){var i=document.createElement('script');i.src='https://www.youtube.com/iframe_api';var t=document.getElementsByTagName('script')[0];t.parentNode.insertBefore(i,t);window.onYouTubeIframeAPIReady=function(){r.each(function(){var t=o(e(this).attr('src')),n=a('list',e(this).attr('src'));if(t!=!1){e('<div class="iframe-responsive-wrapper"><img class="iframe-ratio" src="data:image/gif;base64,R0lGODlhEAAJAIAAAP///wAAACH5BAEAAAAALAAAAAAQAAkAAAIKhI+py+0Po5yUFQA7"/><div id="playerYoutubeAutoplay_'+t+'"></div></div>').insertAfter(e(this));e(this).remove();var r={'autoplay':1,'controls':1,'rel':0,'showinfo':1,'modestbranding':1,'loop':1};if(n!=!1){r.list=n} 85else{r.playlist=t};var i=new YT.Player('playerYoutubeAutoplay_'+t,{height:'100%',width:'100%',videoId:t,playerVars:r,events:{'onReady':s,}})};function s(t){i.mute();if(e(window).width()>768){i.playVideo()} 86else{i.stopVideo()}}})}};function o(e){var i=/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i,t=e.match(i);console.info(t);return(t[1].length)?t[1]:!1};function a(e,t){if(!t){t=window.location.href};e=e.replace(/[\[\]]/g,'\\$&');var r=new RegExp('[?&]'+e+'(=([^&#]*)|&|#|$)'),i=r.exec(t);if(!i)return!1;if(!i[2])return'';return decodeURIComponent(i[2].replace(/\+/g,' '))}})}(window.jQuery);; 87/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/jquery.youtubeAutoPlay.js. */;/*})'"*/ 88/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/jquery.ChildrensQuickLinks.js. */ 89!function(e){e(document).ready(function(){e('#childrens_quicklinks').prependTo('.field-collection-item.type-text:first-of-type')})}(window.jQuery);; 90/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/jquery.ChildrensQuickLinks.js. */;/*})'"*/ 91/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/jquery.tableResponsive.js. */ 92!function(e){e(document).ready(function(){e(".field-collection-item table").each(function(){$this=e(this);$this.addClass("table table-striped");$this.wrap("<div class='table-responsive'></div>")})})}(window.jQuery);; 93/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/themes/raccourci/js/jquery.tableResponsive.js. */;/*})'"*/ 94/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/ot-suisse-normande/themes/theme_base/js/globalScript.js. */ 95(function(e){e(document).ready(function(){var a=function(){e('.krumo-root').on('click',function(){console.warn('success');
95e(this).siblings('.krumo-nest').css({'display':'block !important'})})};a();var o=e('#block-boxes-angular-search-form');o.find('input#edit-submit').mouseover(function(){o.find('input#edit-query').toggleClass('search-open')});var s=e('body'),t=function(){var o=e('body'),n=e('#header-wrapper nav'),t=n.find('li.depth-1'),a=!1,r=!1,u=!1,l=!1,s='menuActive',f='menuOpened',i='menuFirstOpen';t.on('mouseenter mouseleave',function(o){var n=e(this);if(b(o)){if(g(n)){o.preventDefault()};d(n)}});n.on('mouseenter',function(){clearTimeout(l)});n.on('mouseleave',function(){l=setTimeout(function(){c()},1400)});o.on('click',function(e){if(k(e)){c()}});function d(e){if(!h(e)){C(e)} 96else{c()}};function v(e){e.addClass(s);a=!0};function m(){t.removeClass(s);a=!1};function p(){if(!a){o.addClass(i)} 97else{o.removeClass(i)}};function C(e){clearTimeout(u);p();m();v(e);r=setTimeout(function(){o.addClass(f)},100)};function c(){clearTimeout(r);m();o.removeClass(i);u=setTimeout(function(){o.removeClass(f)},200)};function h(e){return e.hasClass(s)};function T(e){e.wrap('<div class="js-menu-preventCollapse" />').parent().css({'height':n.outerHeight()})};function g(e){return e.children().length>1};function b(o){return e(o.target).is('a.depth-1')||o.target.closest('a.depth-1')};function k(o){return e(o.target).closest(t).length!==1}};t();var n=function(){e('#about-map_france').click(function(){e('.about-map-img').removeClass().addClass('about-map-img france');e('.footer-active').each(function(o){e(this).removeClass()});e(this).addClass('footer-active')});e('#about-map_normandie').click(function(){e('.about-map-img').removeClass().addClass('about-map-img normandie');e('.footer-active').each(function(o){e(this).removeClass()});e(this).addClass('footer-active')});e('#about-map_calvados').click(function(){e('.about-map-img').removeClass().addClass('about-map-img calvados');e('.footer-active').each(function(o){e(this).removeClass()});e(this).addClass('footer-active')})};n();e(window).scroll(function(){var o=e(window).scrollTop();if(o>=50){e('#logo').addClass('scroll')} 98else{e('#logo').removeClass('scroll')}})})})(jQuery);; 99/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/ot-suisse-normande/themes/theme_base/js/globalScript.js. */;/*})'"*/ 100/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/all/modules/custom/raccourci_overads/jquery.overads.js. */ 101!(function(e){function n(n,i){return e(n).not(i).length==0&&e(i).not(n).length==0};function i(e,n,t){var i=new Date();i.setTime(i.getTime()+t*60*60*1000);var o='expires='+i.toUTCString();document.cookie=e+'='+n+'; '+o};function t(e){var t=e+'=',o=document.cookie.split(';');for(var i=0;i<o.length;i++){var n=o[i];while(n.charAt(0)==' ')n=n.substring(1);if(n.indexOf(t)==0)return n.substring(t.length,n.length)};return''};e.shuffle=function(e){for(var i,t,n=e.length;n;i=parseInt(Math.random()*n),t=e[--n],e[n]=e[i],e[i]=t);return e};e.fn.createBanner=function(n){e.each(e('.overads, .overbump'),function(t){var i=e(this);i.on('click','.overads-close',function(){i.removeClass('open')});i.on('click','.overbump-close',function(){i.removeClass('open')});if(n){if(n.title!=''){var o=n.title} 102else if(n.url!=''){var o=n.url} 103else{var o=n.nid};i.each(function(){if(typeof ga==='function'){ga('rc.send','event','PUB','show',o,null,{'nonInteraction':1})};window.dataLayer.push({'event':'woody_global','data':{'lang':DrupalAngularConfig.lang,'ga':{'category':'PUB','action':'show','label':o,'non_interaction':!0}}})});i.find('.item-container').on('click',function(){if(typeof ga==='function'){ga('rc.send','event','PUB','click',o)};window.dataLayer.push({'event':'woody_global','data':{'lang':DrupalAngularConfig.lang,'ga':{'category':'PUB','action':'click','label':o,'non_interaction':!1}}})});if(n.heading!==''){i.find('.item-title').html(n.heading)};if(n.url!==''){i.find('.item-container').attr('href',n.url);i.find('.item-container').attr('target','_blank')};if(n.desc!==''){i.find('.item-description').html(n.desc)} 104else{i.find('.item-description').remove()};if(n.heading==''&&n.desc==''){i.find('.item-content').remove()};i.find('.item-img img').attr('src',n.image).attr('alt',n.title).attr('title',n.title)} 105else{i.remove()};if(n.position){var r=n.position;e('body').addClass('overads-'+r)};i.addClass('open');if(n.hideTimeOut){var a=setTimeout(function(){i.removeClass('open');clearTimeout(a)},15000)}})};e.getJSON('/'+Drupal.settings.pathPrefix+'json/overads',function(o){if
105(o!=undefined&&o.items!=undefined){var s=e.shuffle(o.items),a=window.location.pathname,r=[];e.each(s,function(i,t){var o=t.show,l=t.hide,s=t.home;if(s){o.push('/')};e.each(o,function(e,i){if(i==a){if(l.indexOf(a)==-1){r=t}} 106else if(i.indexOf('/*')){i=i.replace('/*','');var o=i.split('/'),s=a.split('/');if(i.indexOf(a)&&l.indexOf(a)==-1&&(n(o,s)||n(o.slice(0,-1),s))){r=t}}})});var l=t('noOveradsForTwoHours');if(!e.isEmptyObject(r)&&!l){e('.overads, .overbump').createBanner(r);if(r.displayCookie){i('noOveradsForTwoHours',1,2)}} 107else{e('.overads, .overbump').remove()}}})})(window.jQuery);; 108/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/all/modules/custom/raccourci_overads/jquery.overads.js. */;/*})'"*/ 109/* Source and licensing information for the line(s) below can be found at https://www.suisse-normande-tourisme.com/sites/ot-suisse-normande/themes/theme_base/js/pages.js. */ 110(function(n){n(document).ready(function(){var n=function(){};n()})})(jQuery);; 111/* Source and licensing information for the above line(s) can be found at https://www.suisse-normande-tourisme.com/sites/ot-suisse-normande/themes/theme_base/js/pages.js. */;/*})'"*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.