-
Notifications
You must be signed in to change notification settings - Fork 926
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 #4279 from galaxyproject/prefs
User Preferences
- Loading branch information
Showing
41 changed files
with
1,084 additions
and
331 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,59 @@ | ||
<!-- | ||
<script async defer data-domain="training.galaxyproject.org" src="https://plausible.galaxyproject.eu/js/plausible.js"></script> | ||
--> | ||
<!-- We let users opt-out, so if they've opted in, we need to append the plausible script to the body --> | ||
|
||
<script> | ||
var scriptElement = document.createElement("script"); | ||
scriptElement.async = true; | ||
scriptElement.defer = true; | ||
scriptElement.setAttribute("data-domain", "training.galaxyproject.org"); | ||
scriptElement.src = "https://plausible.galaxyproject.eu/js/plausible.js"; | ||
|
||
// Appending the script element to the body | ||
if(localStorage.getItem('plausible-opt-out') !== 'opt-out' && navigator.doNotTrack !== "1") { | ||
console.log("Plausible: opt-in"); | ||
// Wait for the document to be available | ||
document.addEventListener("DOMContentLoaded", function(event) { | ||
document.body.appendChild(scriptElement); | ||
}); | ||
} | ||
</script> | ||
|
||
<!-- JavaScript Error Monitoring, and performance tracking. --> | ||
<!-- | ||
<script | ||
src="https://browser.sentry-cdn.com/7.52.1/bundle.tracing.min.js" | ||
integrity="sha384-muuFXKS3752PNA4rPm9Uq6BLvOfV4CXyr9MHDBPvozOJJUWLKkogEFWOIRoVps43" | ||
crossorigin="anonymous" | ||
></script> | ||
--> | ||
<script type="text/javascript"> | ||
Sentry.init({ | ||
dsn: "https://[email protected]/10", | ||
release: "galaxy-training-network@{{ site.git_revision }}", | ||
integrations: [new Sentry.BrowserTracing(), new Sentry.Replay()], | ||
sampleRate: 0.1, | ||
tracesSampleRate: 0.1, | ||
// Capture Replay for no sessions by default | ||
replaysSessionSampleRate: 0.01, | ||
// plus for 1% of sessions with an error | ||
replaysOnErrorSampleRate: 0.01, | ||
// PII OFF | ||
sendDefaultPii: false, // Off by default but just in case. | ||
environment: "{{ jekyll.environment }}", | ||
}); | ||
var scriptElement = document.createElement("script"); | ||
scriptElement.src = "https://browser.sentry-cdn.com/7.52.1/bundle.tracing.min.js"; | ||
scriptElement.integrity = "sha384-muuFXKS3752PNA4rPm9Uq6BLvOfV4CXyr9MHDBPvozOJJUWLKkogEFWOIRoVps43"; | ||
scriptElement.crossOrigin = "anonymous"; | ||
|
||
if(localStorage.getItem('sentry-opt-out') !== 'opt-out' && navigator.doNotTrack !== "1") { | ||
console.log("Sentry: opt-in"); | ||
// Appending the script element to the body | ||
document.addEventListener("DOMContentLoaded", function(event) { | ||
document.body.appendChild(scriptElement); | ||
}); | ||
|
||
Sentry.init({ | ||
dsn: "https://[email protected]/10", | ||
release: "galaxy-training-network@{{ site.git_revision }}", | ||
integrations: [new Sentry.BrowserTracing(), new Sentry.Replay()], | ||
sampleRate: 0.1, | ||
tracesSampleRate: 0.1, | ||
// Capture Replay for no sessions by default | ||
replaysSessionSampleRate: 0.01, | ||
// plus for 1% of sessions with an error | ||
replaysOnErrorSampleRate: 0.01, | ||
// PII OFF | ||
sendDefaultPii: false, // Off by default but just in case. | ||
environment: "{{ jekyll.environment }}", | ||
}); | ||
} | ||
</script> |
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
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 |
---|---|---|
@@ -1,32 +1,7 @@ | ||
/* cyrillic */ | ||
@font-face { | ||
font-family: 'Yanone Kaffeesatz'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url(/training-material/assets/fonts/yanonekaffeesatz/v24/3y9I6aknfjLm_3lMKjiMgmUUYBs04aUXNxt9gW2LIfto9tWZc2GKOnU.woff2) format('woff2'); | ||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | ||
} | ||
/* vietnamese */ | ||
@font-face { | ||
font-family: 'Yanone Kaffeesatz'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url(/training-material/assets/fonts/yanonekaffeesatz/v24/3y9I6aknfjLm_3lMKjiMgmUUYBs04aUXNxt9gW2LIfto9tWZeGGKOnU.woff2) format('woff2'); | ||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; | ||
} | ||
/* latin-ext */ | ||
@font-face { | ||
font-family: 'Yanone Kaffeesatz'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url(/training-material/assets/fonts/yanonekaffeesatz/v24/3y9I6aknfjLm_3lMKjiMgmUUYBs04aUXNxt9gW2LIfto9tWZeWGKOnU.woff2) format('woff2'); | ||
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | ||
} | ||
/* latin */ | ||
@font-face { | ||
font-family: 'Yanone Kaffeesatz'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url(/training-material/assets/fonts/yanonekaffeesatz/v24/3y9I6aknfjLm_3lMKjiMgmUUYBs04aUXNxt9gW2LIfto9tWZd2GK.woff2) format('woff2'); | ||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | ||
font-weight: 100 900; | ||
font-style: normal oblique; | ||
src: url(/training-material/assets/fonts/yanonekaffeesatz/YanoneKaffeesatz-VariableFont_wght.woff2); | ||
} |
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,66 @@ | ||
@font-face { | ||
font-family: "Atkinson Hyperlegible"; | ||
src: url(/training-material/assets/fonts/AtkinsonHyperlegible/Atkinson-Hyperlegible-Regular-102a.woff2); | ||
font-display: swap; | ||
} | ||
|
||
@font-face { | ||
font-family: "Atkinson Hyperlegible"; | ||
src: url(/training-material/assets/fonts/AtkinsonHyperlegible/Atkinson-Hyperlegible-BoldItalic-102a.woff2); | ||
font-weight: bold; | ||
font-style: oblique; | ||
font-display: swap; | ||
} | ||
|
||
@font-face { | ||
font-family: "Atkinson Hyperlegible"; | ||
src: url(/training-material/assets/fonts/AtkinsonHyperlegible/Atkinson-Hyperlegible-Italic-102a.woff2); | ||
font-style: oblique; | ||
font-display: swap; | ||
} | ||
|
||
@font-face { | ||
font-family: "Atkinson Hyperlegible"; | ||
src: url(/training-material/assets/fonts/AtkinsonHyperlegible/Atkinson-Hyperlegible-Bold-102a.woff2); | ||
font-weight: bold; | ||
font-display: swap; | ||
} | ||
|
||
|
||
@font-face { | ||
font-family: "OpenDyslexic"; | ||
src: url(/training-material/assets/fonts/OpenDyslexic/OpenDyslexic-Bold-Italic.woff2); | ||
font-weight: bold; | ||
font-style: oblique; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: "OpenDyslexic"; | ||
src: url(/training-material/assets/fonts/OpenDyslexic/OpenDyslexic-Bold.woff2); | ||
font-weight: bold; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: "OpenDyslexic"; | ||
src: url(/training-material/assets/fonts/OpenDyslexic/OpenDyslexic-Italic.woff2); | ||
font-style: oblique; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: "OpenDyslexic"; | ||
src: url(/training-material/assets/fonts/OpenDyslexic/OpenDyslexic-Regular.woff2); | ||
font-display: swap; | ||
} | ||
|
||
|
||
@font-face { | ||
font-family: "Comic Mono"; | ||
src: url(/training-material/assets/fonts/ComicMono/ComicMono-Bold.ttf); | ||
font-weight: bold; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: "Comic Mono"; | ||
src: url(/training-material/assets/fonts/ComicMono/ComicMono.ttf); | ||
font-display: swap; | ||
} |
Oops, something went wrong.