PageSourceSearch

https://www.strasbourg.info/js/default.js

js strasbourg.info collected 2026-10-02 19:09:39 UTC 1,728 bytes, 67 lines download raw bytes

1var $ = jQuery.noConflict();
2
3var CookieBar = {
4		cookieName: "strasbourg.info.accepted",
5		cookieDomain: "strasbourg.info",
6
7
8		
9		expire: function(){
10		    // EXPIRE:
11		    document.cookie = this.cookieName + "=yes; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/; domain="+this.cookieDomain;
12		    
13		},
14		setCookie: function(name, value, expireDays) {
15			var d = new Date();
16		    d.setTime(d.getTime() + (expireDays*24*60*60*1000));
17		    var expires = "expires="+d.toUTCString();
18		    document.cookie = name + "=" + value + "; " + expires + "; path=/; domain="+this.cookieDomain;
19
20		    
21		},
22		isAccepted: function() {
23			var cookies = document.cookie.split(";");
24			console.log("check accepted cookies: ");
25			console.log(cookies);
26
27			for(var i = 0; i < cookies.length; i++) {
28				var cookie = $.trim(cookies[i]).split("=");
29//				console.log(".. trying: "+cookie);
30				if($.trim(cookie[0]) == this.cookieName) return true;
31			}
32			return false;
33		},
34		accept: function(){
35			this.setCookie(this.cookieName, "yes", 365);
36			$("#cookiesbox").hide();
37		},
38		check: function() {
39			if(this.isAccepted()){
40//				console.log("cookies accepted");
41//				$("#cookiesbox").hide();
42			}
43			else {
44//				console.log("cookies NOT accepted");
45				$("#cookiesbox").show();
46			}
47		}
48	};
49$(document).ready(function() {
50	$("#cookiesbox").hide();
51	
52//	CookieBar.expire();
53	CookieBar.check();
54	
55	$('.about a.image-popup').magnificPopup({ 
56	  	type: 'image',
57	  	image: { 
58			titleSrc: 'alt'
59	  	}
60	});
61
62	$('#show-mobile-menu').on('click', function(e) {
63		e.preventDefault();
64		jQuery(this).toggleClass('revealed');
65		jQuery('#leftside').toggleClass('reveal');
66	});
67});

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.