PageSourceSearch

https://www.rock-up.co.uk/lib/s_bb90d6ccf76028c9.js

js rock-up.co.uk collected 2026-10-06 09:57:30 UTC 11,040 bytes, 38 lines download raw bytes

1/*! js-cookie v3.0.5 | MIT */
2!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var t=function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});return t}));
3;
4 
5
6;function hkSeeMore(){$('.hk-icons-see-more .fa-plus-circle').on('click',function(){$('.hk-see-more').css({"height":"initial"});$('.hk-icons-see-more .fa-plus-circle').hide();$('.hk-icons-see-more .fa-minus-circle').show();$('.hk-calc-see-more').hide();$('.hk-missions').css({'paddingBottom':40});});$('.hk-see-more .fa-minus-circle').on('click',function(){$('.hk-see-more').css({"height":120});$('.hk-see-more .fa-plus-circle').show();$('.hk-see-more .fa-minus-circle').hide();$('.hk-calc-see-more').show();$('.hk-missions').css({'paddingBottom':0});});}
7function initRollerOverlay(rollerUrl,selector){document.querySelectorAll(selector).forEach(btn=>{btn.addEventListener('click',(event)=>{event.preventDefault();let dataRollerSplit=btn.dataset.roller.split(',');let parameters={};if(btn.dataset.roller){dataRollerSplit.forEach(data=>{let dataSplit=data.split(':');let key=dataSplit[0].trim();let value=dataSplit[1].trim();parameters[key]=value;});if(rollerUrl){RollerCheckout.setCheckoutUrl(rollerUrl);RollerCheckout.show(parameters);}else{console.error('No url roller found on center');}}else{console.error('No data set found on item');}});});}
8window.renderBreadcrumb=function(index,itemId,listener,establishment){switch(index){case'confirmation':index=5;break;case'payment':index=4;break;default:if(typeof index==='string')
9index=3;break;}
10$('#breadcrumb').html('<div class="container"><div class="row"><div class="col"><nav aria-label="breadcrumb"><ol class="breadcrumb justify-content-center"></ol></nav></div></div></div>');var html='';var renderBreadcrumbItem=function(cIndex,index,url,title){var disabled=cIndex<index;return'<li class="breadcrumb-item'+(cIndex===index?' active':'')+'"><a href="'+(disabled?'#':url)+'" '+(disabled?'class="disabled"':'')+'><span class="breadcrumb-item__index">'+index+'</span><span class="breadcrumb-item__title">'+title+'</span></a></li>';};var calendars=null,bI=1;html+=renderBreadcrumbItem(index,bI++,'https\u003A\/\/www.rock\u002Dup.co.uk\/products',"Venue");html+=renderBreadcrumbItem(index,bI++,'https\u003A\/\/www.rock\u002Dup.co.uk\/products'+(establishment?'?center='+establishment:''),"Product");html+=renderBreadcrumbItem(index,bI++,'#no_booking_page'+(itemId?'?item='+itemId:''),"Modalities");html+=renderBreadcrumbItem(index,bI++,'#no_shop_page',"Payment");html+=renderBreadcrumbItem(index,bI++,'#',"Confirmation");$('.breadcrumb').html(html);if(listener){$('.breadcrumb a').on('click',function(){listener(establishment);});}};class Center{constructor(id,establishment,url,openInNewTab,name,x,y,isZoom,hasAddress){this._id=id;this._establishment=establishment;this._url=url;this._openInNewTab=openInNewTab;this._name=name;this._x=x;this._y=y;this._color=hasAddress?"#E2001A":"#000";
10this._isZoom=isZoom;this.snap;this.circle;this.circletwo;this.line;this.text;}
11generateSnap(snap,callback){this.snap=snap;this.generateCircletwo();this.generateCircle();this.generateLine();this.generateText();var that=this
12this.circle.click(function(){callback(that._establishment);}).mouseover(function(){that.display();}).mouseout(function(){that.hide();});if(Modernizr.touchevents){this.tText(1);}}
13generateCircle(){this.circle=this.snap.circle(this._x,this._y,8);this.circle.attr({fill:this._color});}
14generateCircletwo(){this.circletwo=this.snap.circle(this._x,this._y,10)
15this.circletwo.attr({fill:"transparent",stroke:this._color,opacity:0})}
16generateLine(){this.line=this.snap.paper.line(this._x+5,this._y-10,this._x+9,this._y-18).attr({stroke:this._color,strokeWidth:1,opacity:0});}
17generateText(){this.text=this.snap.paper.text(this._x+10,this._y-19,this._name);this.text.attr({class:'textLink',href:this._url,fill:this._color,opacity:0});}
18display(){this.tCircle(1);if(!Modernizr.touchevents){this.tText(1);}
19else{this.tText(1);};}
20hide(){this.tCircle(0);if(!Modernizr.touchevents){this.tText(0);}
21else{this.tText(0);};}
22tCircle(opacity){this.circletwo.animate({opacity:opacity},200);};tText(opacity){this.line.animate({opacity:opacity},200);this.text.animate({opacity:opacity},200);};}
23window.centersMap=[];function createMap(callback){if(!$('.mapfrance').length)return;$('.mapfrance').show();var snap=Snap("#france");centersMap.forEach(function(center){if(!center._isZoom){center.generateSnap(snap,callback)}})}
24function createZoomMap(callback){if(!$('.mapzoom').length)return;$('.mapzoom').show();var snap=Snap("#zoom");centersMap.forEach(function(center){if(center._isZoom){center.generateSnap(snap,callback)}})}
25function callbackFunction(establishment){var centerMap=centersMap.find(function(e){return e._establishment==establishment}),url=centerMap._url;if(centerMap._openInNewTab){window.open(url,'_blank');}else{window.location.href=url;}};window.initEstablishmentMap=function(callback,noListener){if(!callback){callback=callbackFunction}
26createMap(callback);createZoomMap(callback);$('.establishment-open a').add('.establishment-not-open a').on('mouseenter',function(){var establishment=$(this).attr('data-id');var center=centersMap.find(function(c){return c._establishment==establishment;});center.display();});$('.establishment-open a').add('.establishment-not-open a').on('mouseleave',function(){var establishment=$(this).attr('data-id');var center=centersMap.find(function(c){return c._establishment==establishment;});center.hide();})
27if(!noListener){$('#establishment-map a').on('click',function(evt){evt.preventDefault();callback($(this).attr('data-id'));});}};$(function(){var hash=window.location.hash;if(hash)$(hash).scrollTo();initEstablishmentMap();const rollerUrl="";initRollerOverlay(rollerUrl,'.btn[data-roller]');});class Popup{constructor(popupType){this.popupType=popupType;if(document.getElementsByClassName(this.popupType)[0]){this.popupShow();this.popupClose();}}
28popupShow(){if(!Cookies.get(this.popupType)){document.getElementsByClassName(this.popupType)[0].classList.remove('d-none');document.querySelector('body').classList.add('hasPopup')}}
29popupClose(){const filterClass=['popup-close','popup-btn'];const popupType=this.popupType;document.getElementsByClassName(this.popupType)[0].addEventListener('click',function(event){const match=filterClass.some(function(value){return event.target.classList.contains(value);});if(match){this.classList.add('popup-hide');document.querySelector('body').classList.remove('hasPopup');Cookies.set(popupType,'didClose',{expires:parseInt(this.querySelector('.popup-wrapper').dataset.popupExpire)});setTimeout(()=>{this.classList.add('d-none');},"1000");}});}}
30document.addEventListener('DOMContentLoaded',()=>{});function mobileDetection(){const navBirthday=document.querySelector('.nav-birthday a');if(!$('.navbar-toggler')[0].offsetParent){$('.navbar-left .dropdown-menu').parent().addClass('dropdown dropdown-hover');removeHtagUrl(navBirthday);}else{$('.navbar-left .dropdown-menu').parent().removeClass('dropdown dropdown-hover');addHtagUrl(navBirthday);}}
31var resizeBlankItem=function($menu){var $blankItem=$menu.find('.blank-item');$blankItem.css({width:0});var blankW=$(window).width()-$menu.find('.navbar-nav').width()-210;if(blankW<0)blankW=0;$blankItem.css({width:blankW});};function addFixedMenu(offsetHeight){const navbarHapik=document.querySelector('.navbar-hapik');const productsMenu=document.querySelector('.products-menu');let mainModuleTop=offsetHeight+"px";if(window.scrollY>offsetHeight){navbarHapik.classList.add('fixed');if(productsMenu){productsMenu.classList.add('fixed');productsMenu.style.top=offsetHeight+"px";mainModuleTop=navbarHapik.offsetHeight+productsMenu.offsetHeight+"px";}
32document.querySelector('.main-module').style.paddingTop=mainModuleTop;}else{navbarHapik.classList.remove('fixed');if(productsMenu){productsMenu.classList.remove('fixed');}
33document.querySelector('.main-module').style.paddingTop="";}}
34function addHtagUrl(element){if(element){const url=new URL(element.href);url.hash='section-map';element.href=url.href;}}
35function removeHtagUrl(element){if(element){const url=new URL(element.href);url.hash="";element.href=url.href;}}
36$(function(){const offsetHeight=document.querySelector('.navbar-hapik').offsetHeight;mobileDetection();addFixedMenu(offsetHeight);$(window).on('resize',function(){const offsetHeight=document.querySelector('.navbar-hapik').offsetHeight;mobileDetection();addFixedMenu(offsetHeight);});window.addEventListener('scroll',function(){addFixedMenu(offsetHeight);});var html="";$menu=$('.navbar-collapse');setTimeout(function(){resizeBlankItem($menu);},1);setTimeout(function(){resizeBlankItem($menu);},100);setTimeout(function(){resizeBlankItem($menu);},500);setTimeout(function(){resizeBlankItem($menu);},1000);$(window).on('resize',function(){resizeBlankItem($menu);});if(ENV.isLoggedIn){var firstName=ENV.connectedContact.firstName;$('.connected-user-name').text(firstName||"My account");html+='<a class="dropdown-item" href="#no_useraccount_page" title="My account">My account</a>';html+='<a class="dropdown-item" href="#no_useraccount_page" title="Log-out">Log-out</a>';if(Modernizr.touchevents)$('.nav-item-user > a').attr('href','#').attr('data-bs-toggle','dropdown');}
37else{html+='<a class="dropdown-item" href="#no_useraccount_page" title="Log in">Log in</a>';html+='<a class="dropdown-item" href="#no_useraccount_page" title="Create an account">Create an account</a>';}
38$('.dropdown-menu-user').html(html);});

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.