PageSourceSearch

https://careers.ccs.spokane.edu/assets/sites/cookie_check-7c05e3c9.js

js spokane.edu collected 2026-09-24 09:43:54 UTC 1,278 bytes, 32 lines download raw bytes

1import {CookieUtils} from 'sites/cookie_utils'
2import {BootstrapWrapper} from 'sites/bootstrap_wrapper'
3
4//would be better in Stimulus
5document.addEventListener('clinch:document_ready', () => {
6  if (!CookieUtils.isCookieAllowed()) {
7    const closeButton = BootstrapWrapper.returnVersionedAnswer(
8      () => `<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close"><span aria-hidden="true">&times;</span></button>`,
9      () => `<button type="button" class="btn-close" data-dismiss="toast" data-bs-dismiss="toast" aria-label="Close"></button>`
10    )
11
12    const html = `
13    <div class="toast hide alert alert-danger bg-danger" role="alert" aria-live="assertive" aria-atomic="true" data-delay="10000">
14     <div class="toast-header">
15       <div id="flash_notification" class="message">${js_vars.i18n.enable_cookies}</div>
16       ${closeButton}
17     </div>
18    </div>`
19
20    const toastElement = document.querySelector('.toast')
21    if (toastElement) {
22      toastElement.remove()
23    }
24    const pageBody = document.querySelector('.page-body')
25    if (pageBody) {
26      const div = document.createElement('div')
27      div.innerHTML = html
28      pageBody.prepend(div)
29      BootstrapWrapper.showToast(document.querySelector('.toast'))
30    }
31  }
32});

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.