PageSourceSearch

https://auburn.edu/template/2024/_assets/js/gdpr-cookies.js

js auburn.edu collected 2026-09-24 08:06:13 UTC 1,312 bytes, 48 lines download raw bytes

1// JavaScript Document
2
3$(function(){
4	
5	$('#cookieAcknowledge').on('click',function(){
6		var d = new Date();
7		// set expiration date for one year
8		d.setTime(d.getTime() + (365 * 24 * 60 * 60 * 1000));
9		var expires = "expires="+d.toUTCString();
10		document.cookie = "auburnGDPR=acknowledged; " + expires + "; domain=.auburn.edu; path=/";
11		$("#gdpr").fadeOut();
12	});
13
14	$('#cookieExpire').on('click',function(){
15		document.cookie = "auburnGDPR=deny; expires=Sat, 16 Feb 1980 12:05:00 UTC; domain=.auburn.edu; path=/";
16		$("#curStatus").text("Cookies has expired.");
17		$("#gdpr").fadeOut();
18	});
19	$('#pageRefresh').on('click',function(){
20		window.location.reload(false);
21	});
22
23	var cookieStatus = getCookie("auburnGDPR");
24	if (cookieStatus === "acknowledged") {
25		
26		
27		$("#gdpr").hide();
28        $("#curStatus").text("Cookies were previously acknowledged.");
29
30	} else {
31		$("#gdpr").fadeIn();
32	}
33});
34
35function getCookie(cname) {
36    var name = cname + "=";
37    var ca = document.cookie.split(';');
38    for(var i = 0; i < ca.length; i++) {
39        var c = ca[i];
40        while (c.charAt(0) == ' ') {
41            c = c.substring(1);
42        }
43        if (c.indexOf(name) == 0) {
44            return c.substring(name.length, c.length);
45        }
46    }
47    return "";
48}

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.