-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #520 from byuweb/feat/privacy
feat/privacy
- Loading branch information
Showing
15 changed files
with
7,473 additions
and
5,417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/*** BYU MeruData Cookie Consent Banner and Cookie AutoBlocking ***/ | ||
;(function () { | ||
const byuMerudataID = "c5d6912a-d8fc-4138-8d1d-6daeb3056f57" | ||
const merudataUrl = "https://ccm.merudata.app/assets/" | ||
const host = window.location.hostname | ||
|
||
if (!host.includes("localhost") && !host.includes("-dev")) { | ||
// Load the config file | ||
let scriptConfig = document.createElement("script") | ||
scriptConfig.src = merudataUrl + byuMerudataID + "/ccmconfig.js" | ||
scriptConfig.onload = function () { | ||
// Load the script file | ||
let script = document.createElement("script") | ||
script.src = merudataUrl + byuMerudataID + "/d_ccm.min.js" | ||
document.head.appendChild(script) | ||
|
||
// Load the stylesheet file | ||
let stylesheet = document.createElement("link") | ||
stylesheet.rel = "stylesheet" | ||
stylesheet.href = merudataUrl + byuMerudataID + "/ccm.min.css" | ||
stylesheet.media = "print" | ||
stylesheet.onload = function() { | ||
this.media = 'all' | ||
} | ||
document.head.appendChild(stylesheet) | ||
} | ||
document.head.appendChild(scriptConfig); | ||
} | ||
})() |
Oops, something went wrong.