PageSourceSearch

https://lecendrillonrestaurant.com/wp-content/themes/lecendrillon/js/app.js

js lecendrillonrestaurant.com collected 2026-10-08 03:28:03 UTC 9,082 bytes, 436 lines download raw bytes

1$(document).ready(function(){
2	
3// 	$(document).foundation();
4
5	function toggleMenu(menu){
6		var menu = document.getElementById(menu);
7		if(menu.dataset.opened == "no"){
8			/*menu.style.transform = "perspective(800px) rotateX(0deg)"*/;
9			menu.style.transform = "translateX(0%)";
10			menu.dataset.opened = "yes";
11			return false;
12		} else {
13			/*menu.style.transform = "perspective(800px) rotateX(90deg)";*/
14			menu.style.transform = "translateX(-100%)";
15			menu.dataset.opened = "no";
16		}
17	}
18
19
20	$('#hamburger').on("click",function(){
21		$(this).toggleClass("ouvert");
22		$("html").toggleClass("ouvert");
23	});
24
25//     $('.slideshow').cycle();
26
27    /*if ($window.width() > 768) {*/
28
29        $(document).scroll(function () {
30            var $window = $(window);
31            var scrollTop = $(window).scrollTop();
32            if (scrollTop > 5) {
33                $('header').addClass("sticky");
34            } else {
35                $('header').removeClass("sticky");
36            }
37
38
39            var stickyNavTop = 406;
40
41            if ($window.width() > 768) {
42
43                if (scrollTop + 65 > stickyNavTop) {
44                    $('header').addClass("menu_top");
45                } else {
46                    $('header').removeClass("menu_top");
47                }
48                ;
49            }
50
51        });
52
53   /* }*/
54
55
56
57
58    var menuSlider = $('.bxslider').bxSlider({
59        adaptiveHeight: true,
60        easing: 'easeInOutBack',
61        infiniteLoop: false,
62        hideControlOnEnd: true,
63        startSlide: 0,
64        pager: false,
65        touchEnabled:false,
66        onSlideBefore: function(){
67            var curSlide = menuSlider.getCurrentSlide();
68            $('#menuPager span').removeClass('active');
69            //$('html:not(:animated),body:not(:animated)').animate({scrollTop: 1600 },500);
70            switch(curSlide){
71                case 0: $('#menuPagerManger').addClass('active'); break;
72                case 1: $('#menuPagerBoire').addClass('active'); break;
73
74            }
75        }
76    });
77
78
79    $('#menuPagerManger').bind({
80        'click': function(){
81            menuSlider.goToSlide(0);
82            $('#menuPager span').removeClass('active');
83            $(this).addClass('active');
84        }
85    });
86    $('#menuPagerBoire').bind({
87        'click': function(){
88            menuSlider.goToSlide(1);
89            $('#menuPager span').removeClass('active');
90            $(this).addClass('active');
91        }
92    });
93    var $window = $(window);
94    if ($window.width() > 1200) {
95
96        $('.bxslider2').bxSlider({
97            minSlides: 1,
98            maxSlides: 3,
99            moveSlides: 1,
100            slideWidth: 250,
101            slideMargin: 70,
102            nextSelector: '#next',
103            prevSelector: '#prev', nextText: '',
104            prevText: '',
105            pager: false
106        });
107    }
108    if ($window.width() < 1200 && $window.width() > 767 ) {
109
110        $('.bxslider2').bxSlider({
111            minSlides: 1,
112            maxSlides: 2,
113            moveSlides: 1,
114            slideWidth: 250,
115            slideMargin: 30,
116            nextSelector: '#next',
117            prevSelector: '#prev', nextText: '',
118            prevText: '',
119            pager: false
120        });
121    }
122    if ($window.width() < 768) {
123
124        $('.bxslider2').bxSlider({
125            minSlides: 1,
126            maxSlides: 1,
127            moveSlides: 1,
128            slideWidth: 150,
129            slideMargin: 30,
130            nextSelector: '#next',
131            prevSelector: '#prev', nextText: '',
132            prevText: '',
133            pager: false
134        });
135    }
136
137
138
139
140});
141
142if(document.getElementById('map')){
143	map = new google.maps.Map(document.getElementById('map'), {
144		center: {lat:46.827218, lng:  -71.230374},
145		scrollwheel : false,
146		disableDefaultUI : true,
147		zoom: 16,
148		styles: [
149			{
150				"featureType": "all",
151				"elementType": "labels.text.fill",
152				"stylers": [
153					{
154						"color": "#ffffff"
155					}
156				]
157			},
158			{
159				"featureType": "all",
160				"elementType": "labels.text.stroke",
161				"stylers": [
162					{
163						"color": "#000000"
164					},
165					{
166						"lightness": 13
167					}
168				]
169			},
170			{
171				"featureType": "administrative",
172				"elementType": "geometry.fill",
173				"stylers": [
174					{
175						"color": "#000000"
176					}
177				]
178			},
179			{
180				"featureType": "administrative",
181				"elementType": "geometry.stroke",
182				"stylers": [
183					{
184						"color": "#26c5dc"
185					},
186					{
187						"lightness": 14
188					},
189					{
190						"weight": 1.4
191					}
192				]
193			},
194			{
195				"featureType": "landscape",
196				"elementType": "all",
197				"stylers": [
198					{
199						"color": "#4f3f21"
200					}
201				]
202			},
203			{
204				"featureType": "poi",
205				"elementType": "geometry",
206				"stylers": [
207					{
208						"color": "#1e1809"
209					},
210					{
211						"lightness": 5
212					}
213				]
214			},
215			{
216				"featureType": "road.highway",
217				"elementType": "geometry.fill",
218				"stylers": [
219					{
220						"color": "#000000"
221					}
222				]
223			},
224			{
225				"featureType": "road.highway",
226				"elementType": "geometry.stroke",
227				"stylers": [
228					{
229						"color": "#dab072"
230					},
231					{
232						"lightness": 25
233					}
234				]
235			},
236			{
237				"featureType": "road.highway",
238				"elementType": "labels",
239				"stylers": [
240					{
241						"saturation": "-50"
242					},
243					{
244						"lightness": "7"
245					}
246				]
247			},
248			{
249				"featureType": "road.highway.controlled_access",
250				"elementType": "labels",
251				"stylers": [
252					{
253						"saturation": "-50"
254					}
255				]
256			},
257			{
258				"featureType": "road.arterial",
259				"elementType": "geometry.fill",
260				"stylers": [
261					{
262						"color": "#000000"
263					}
264				]
265			},
266			{
267				"featureType": "road.arterial",
268				"elementType": "geometry.stroke",
269				"stylers": [
270					{
271						"color": "#dab072"
272					},
273					{
274						"lightness": 16
275					}
276				]
277			},
278			{
279				"featureType": "road.arterial",
280				"elementType": "labels",
281				"stylers": [
282					{
283						"saturation": "-50"
284					},
285					{
286						"lightness": "17"
287					}
288				]
289			},
290			{
291				"featureType": "road.local",
292				"elementType": "geometry",
293				"stylers": [
294					{
295						"color": "#060606"
296					}
297				]
298			},
299			{
300				"featureType": "road.local",
301				"elementType": "labels",
302				"stylers": [
303					{
304						"saturation": "-50"
305					}
306				]
307			},
308			{
309				"featureType": "transit",
310				"elementType": "all",
311				"stylers": [
312					{
313						"color": "#dab072"
314					}
315				]
316			},
317			{
318				"featureType": "transit",
319				"elementType": "labels",
320				"stylers": [
321					{
322						"saturation": "0"
323					}
324				]
325			},
326			{
327				"featureType": "transit.line",
328				"elementType": "labels",
329				"stylers": [
330					{
331						"saturation": "0"
332					}
333				]
334			},
335			{
336				"featureType": "transit.station.rail",
337				"elementType": "labels.text.fill",
338				"stylers": [
339					{
340						"color": "#ffffff"
341					}
342				]
343			},
344			{
345				"featureType": "transit.station.rail",
346				"elementType": "labels.text.stroke",
347				"stylers": [
348					{
349						"weight": "1"
350					},
351					{
352						"lightness": "0"
353					},
354					{
355						"color": "#000000"
356					}
357				]
358			},
359			{
360				"featureType": "transit.station.rail",
361				"elementType": "labels.icon",
362				"stylers": [
363					{
364						"weight": "1"
365					}
366				]
367			},
368			{
369				"featureType": "water",
370				"elementType": "all",
371				"stylers": [
372					{
373						"color": "#000000"
374					}
375				]
376			}
377		]
378	});
379
380	var contentString = '<div id="content">' +
381		'<div id="siteNotice">' +
382		'</div>' +
383		'<h3 id="firstHeading" class="firstHeading">Le Cendrillon</h3>' +
384		'<div id="bodyContent">' +
385		'1039, 3E AVENUE<br> ' +
386		'QUÉBEC QC G1L 2X3<br>' +
387		'418 914-9838' +
388		'</div>' +
389		'</div>';
390
391	var infowindow = new google.maps.InfoWindow({
392		content: contentString
393	});
394
395	var baseURL = window.location.origin;
396
397	// var pin = baseURL + '/wp-content/themes/lecendrillon/images/pin.png';
398	// var pin = baseURL + '/wp-content/themes/lecendrillon/images/logo-map-cendrillon.svg';
399	var pin = {
400		url: baseURL + '/wp-content/themes/lecendrillon/images/logo-map-cendrillon.svg',
401		// This marker is 78.3 pixels wide by 100 pixels high.
402		size: new google.maps.Size(78.3, 100),
403		// The origin for this image is (0, 0).
404		origin: new google.maps.Point(0, 0),
405		// The anchor for this image is the base of the pointed end at (20, 50).
406		anchor: new google.maps.Point(39, 100),
407	}
408	var pin_planque = {
409		url: baseURL + '/wp-content/themes/lecendrillon/images/pin_planque.png',
410		// This marker is 70 pixels wide by 76 pixels high.
411		size: new google.maps.Size(70, 76),
412		// The origin for this image is (0, 0).
413		origin: new google.maps.Point(0, 0),
414		// The anchor for this image is the base of the pointed end at (20, 50).
415		anchor: new google.maps.Point(35, 0),
416	}
417
418	var cendrillon = new google.maps.Marker({
419		position: {lat: 46.826674, lng: -71.230178},
420		map: map,
421		title: 'Le Cendrillon',
422		animation: google.maps.Animation.DROP,
423		icon: pin
424	});
425
426	// var planque = new google.maps.Marker({
427	//     position: {lat: 46.825955, lng: -71.230171},
428	//     map: map,
429	//     title: 'La Planque',
430	//     icon: pin_planque
431	// });
432
433	cendrillon.addListener('click', function () {
434		infowindow.open(map, cendrillon);
435	});
436}

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.