PageSourceSearch

https://www.ville-valbonne.fr/wp-content/cache/min/6/wp-content/th…/js/citeo.utilities.js?ver=1781819514

js ville-valbonne.fr collected 2026-10-01 11:55:00 UTC 6,605 bytes, 23 lines download raw bytes

1function toCamelCase(string){return string.replace(/[-_]([a-z])/g,function(g){return g[1].toUpperCase()})}
2function dataAttrToParams(initParams,newParams){delete newParams.ride;delete newParams.toggle;$.each(newParams,function(index,val){var newIndex=toCamelCase(index);initParams[newIndex]=newParams[index]});return initParams}
3function throttle(callback,delay){var last;var timer;return function(){var context=this;var now=+new Date();var args=arguments;if(last&&now<last+delay){clearTimeout(timer);timer=setTimeout(function(){last=now;callback.apply(context,args)},delay)}else{last=now;callback.apply(context,args)}}}
4function debounce(callback,delay){var timer;return function(){var args=arguments;var context=this;clearTimeout(timer);timer=setTimeout(function(){callback.apply(context,args)},delay)}}
5function is_front_page(){if($('body').hasClass('home')){return!0}else{return!1}}
6function equalize($items,resizable){if(typeof resizable=='undefined'){resizable=!0}
7$items.css('height','auto');var maxHeight=0;$items.each(function(index,el){if($(el).outerHeight()>maxHeight){maxHeight=$(el).outerHeight()}});if(maxHeight>0){$items.css('height',maxHeight)}
8$(window).on('load',function(){setTimeout(function(){equalize($items,resizable)},150)});if(resizable){window.addEventListener('resize',debounce(function(e){equalize($items,!1)},300))}}
9function coverflowCarousel($carousel,breakpoint){if(typeof breakpoint=='undefined'){breakpoint=1200}
10if(typeof $carousel!=='undefined'){if($(window).width()>(breakpoint-1)){if(!$carousel.hasClass('owl-carousel-coverflow')){$carousel.addClass('owl-carousel-coverflow')}
11$carousel.removeClass('owl-carousel-inline').find('.main-active').removeClass('main-active');setTimeout(function(){var $activeItem=$carousel.find('.owl-item.active'),activeLength=$activeItem.length;if(activeLength>1){$activeItem.eq(Math.ceil(activeLength/2-1)).addClass('main-active')}},1)}else{$carousel.removeClass('owl-carousel-coverflow').addClass('owl-carousel-inline')}}}
12$(function(){if($.fn.owlCarousel){$('[data-ride="owl-carousel"]').each(function(){var initParams={autoplaySpeed:750,dotsSpeed:450,autoplayTimeout:5000,autoplayHoverPause:!0,autoplay:!1,dots:!1,navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'],nav:!0,items:1,loop:!0},newParams=$(this).data();newParams=dataAttrToParams(initParams,newParams);$(this).owlCarousel(newParams)})}
13if($.fn.FatMenu){$('[data-toggle="fatmenu"]').each(function(index,el){var initParams={pushOnShow:!1,overlay:!0,mobileBreakpoint:1200,BackButtonContent:'<i class="fa fa-angle-left"></i> Retour',},newParams=$(this).data();newParams=dataAttrToParams(initParams,newParams);$(this).FatMenu(newParams)})}
14$('[data-equalize]').each(function(index,el){var $el=$(el),children=$(el).data('equalize'),$modals=$el.parents('.modal');if($el.find(children).length){if($modals.length>0){$modals.on('shown.bs.modal',function(event){equalize($el.find(children))})}else{equalize($el.find(children))}}});$('[data-toggle="offcanvas"]').on('click',function(event){event.preventDefault()});$('[data-toggle="popover"]').popover();$('.panel-collapse').on('show.bs.collapse',function(){var id=$(this).attr('id');$('[href="#'+id+'"]').addClass('active')}).on('hide.bs.collapse',function(){var id=$(this).attr('id');$('[href="#'+id+'"]').removeClass('active')});function fixSocialShare(){var $socialFixed=$('.social-toolbar-fixed'),$article=$('.article'),breakpoint=$socialFixed.data('breakpoint');if(typeof breakpoint=='undefined'){breakpoint=1350}
15$socialFixed.each(function(index,el){var $el=$(el);if($el.parents('.modal').length){$el.removeClass('social-toolbar-fixed').removeData("bs.affix").removeClass("affix affix-top affix-bottom").removeAttr("style")}else{if($(window).width()>breakpoint){if($article.length){var affixTop=130,articleHeight=$article.outerHeight(),articleTop=$article.offset().top-affixTop,articleBottom=articleTop+affixTop-15+articleHeight,documentLength=$(document).outerHeight(),aTop=articleTop,aBottom=documentLength-articleBottom;if(articleHeight>360){$el.addClass('social-toolbar-fixed').affix({offset:{top:aTop,bottom:aBottom,}}).on('affix.bs.affix',function(){$(this).css({'width':$(this).outerWidth()})})}else{$el.removeClass('social-toolbar-fixed')}}}else{$el.removeClass('social-toolbar-fixed').removeData("bs.affix").removeClass("affix affix-top affix-bottom").removeAttr("style")}}})}
16function fixBackToTop(){var $backToTop=$('#back-to-top');if($backToTop.length){if(($(window).height()+100)<$(document).height()){$backToTop.removeClass('hidden').affix({offset:{top:100,}})}}}
17function fixNavigation(){var $nav=$('#layout-navigation');if($nav.data('affix')){var top=$nav.offset().top;$nav.affix({offset:{top:top}})}}
18$(window).on('load',function(event){fixNavigation();fixBackToTop();fixSocialShare();$('.gallery').each(function(index,el){equalize($(el).find('.gallery-item'))});$(window).on('resize',throttle(function(e){fixSocialShare()},100)).resize()});$('.sharer').click(function(e){e.preventDefault();v_this=$(this);var leftPosition,topPosition;leftPosition=(window.screen.width/2)-((width/2)+10);topPosition=(window.screen.height/2)-((height/2)+50);var width=520;var height=350;var windowFeatures='status=no,height='+height+',width='+width+',resizable=yes,left='+leftPosition+',top='+topPosition+',screenX='+leftPosition+',screenY='+topPosition+',toolbar=no,menubar=no,scrollbars=no,location=no,directories=no';var t=document.title;if(v_this.data('share-network')=='facebook'){window.open('http://www.facebook.com/sharer.php?u='+v_this.data('share-link')+'&t='+v_this.data('share-title'),'sharer',windowFeatures)}
19if(v_this.data('share-network')=='google'){window.open('https://plus.google.com/share?url=='+v_this.data('share-link'),'sharer',windowFeatures)}
20if(v_this.data('share-network')=='twitter'){window.open('https://twitter.com/intent/tweet?url='+v_this.data('share-link')+'&amp;text='+v_this.data('share-title'),'sharer',windowFeatures)}
21if(v_this.data('share-network')=='mail'){window.open(v_this.attr('href'),'sharer',windowFeatures)}
22if(v_this.data('share-network')=='linkedin'){window.open('https://www.linkedin.com/shareArticle?mini=true&url='+v_this.data('share-link')+'&title='+v_this.data('share-title'),'sharer',windowFeatures)}
23return!1});var $modal=$('.modal'),$layoutMain=$('.layout-main');$modal.on('show.bs.modal',function(e){$(this).clone().attr('id','print_modal').addClass('visible-print-block in').appendTo('body');$layoutMain.addClass('hidden-print')});$modal.on('hide.bs.modal',function(e){$('#print_modal').remove();$layoutMain.removeClass('hidden-print')})})

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.