1 (function(){ 2 if (document.readyState === "loading") { 3 document.addEventListener("DOMContentLoaded", run); 4 } else { 5 run(); 6 } 7 8 function run(){ 9 10 if(shouldRender()){ 11 let parent = ''; 12 let wrapper = document.createElement('div'); 13 wrapper.id = '__cookie-consent-wrapper'; 14 15 if (parent !== '' && document.getElementById(parent) !== null) { 16 document.getElementById(parent).appendChild(wrapper); 17 }else{ 18 document.body.appendChild(wrapper); 19 } 20 21 wrapper.innerHTML = '<div id=__cookie-consent-styles style=display:none><style>#__cookie-consent,#__cookie-consent *{color:#fff;font-family:Arial,sans-serif;font-weight:400;line-height:1.2;margin:0;padding:0;z-index:3000000000}@keyframes slideup{0%{bottom:-70px}100%{bottom:0}}#__cookie-consent{animation-name:slideup;animation-delay:1s;animation-duration:.5s;animation-fill-mode:forwards;animation-iteration-count:1;animation-timing-function:ease;
21background:rgba(101,101,101,.9);bottom:-70px;height:70px;left:0;min-width:320px;position:fixed;right:0;width:100%}#__cookie-consent-table{display:table;width:100%}#__cookie-consent-left,#__cookie-consent-right{display:table-cell;font-size:13px;height:70px;vertical-align:middle}#__cookie-consent-left{line-height:1.2;padding:0 15px;text-align:left}#__cookie-consent-right{padding:0 15px 0 0;text-align:right}#__cookie-consent-button{background:#51a9b1;border-radius:4px;border:1px solid #6c6c6c;cursor:pointer;padding:5px 15px;white-space:nowrap}#__cookie-consent-button:hover{background:#55b8c0}#__cookie-consent-link{color:#bdf4f8;text-decoration:none}#__cookie-consent-link:hover{border-bottom:1px dashed #bdf4f8;color:#bdf4f8}@media all and (max-width:600px){#__cookie-consent-left{font-size:10px}#__cookie-consent-button{font-size:12px}#__cookie-consent-button span:before{clear:both;content:\'\';display:table}}</style></div><div id=__cookie-consent><div id=__cookie-consent-table><div id=__cookie-consent-left>This website uses cookies to optimize your experience with our services on the site, as described in our <a href=http://www.wolfram.com/legal/privacy/wolfram-research.html target=_blank id=__cookie-consent-link>Privacy Policy</a>.</div><div id=__cookie-consent-right><button id=__cookie-consent-button type=button>Accept <span>& Close</span></span></button></div></div></div>'; 22 23 document.getElementById('__cookie-consent-button').addEventListener('click', closeClicked, false); 24 } 25 26 function closeClicked(e){ 27 wrapper = document.getElementById('__cookie-consent-wrapper'); 28 if (wrapper !== null) { 29 wrapper.style.display = 'none'; 30 wrapper.outerHTML = ''; 31 } 32 33 setCookie(); 34 } 35 36 function shouldRender(){ 37 let cookies = {}; 38 let rawCookies = document.cookie.split(';'); 39 for (let i = 0; i < rawCookies.length; i++) { 40 let bits = rawCookies[i].split('='); 41 cookies[bits[0].trim()] = bits[1].trim(); 42 } 43 44 if(cookies.hasOwnProperty('__cookie_consent')){ 45 let cookieValue = cookies['__cookie_consent']; 46 if(cookieValue == 0){ 47 return true; 48 }else{ 49 return false; 50 } 51 }else{ 52 return true; 53 } 54 } 55 56 function setCookie(){ 57 let domain = 'wolfram.com'; 58 let expire = new Date(); 59 expire.setSeconds(expire.getSeconds() + 31536000); 60 document.cookie = '__cookie_consent=1;' + 'expires=' + expire + ';domain=' + domain + ';path=/'; 61 } 62 } 63 })(window);
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.