-
Notifications
You must be signed in to change notification settings - Fork 0
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 #81 from rosenpass/alice/video
Alice/video
- Loading branch information
Showing
18 changed files
with
708 additions
and
24 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
let codeListings = document.querySelectorAll('.highlight > pre'); | ||
|
||
for (let index = 0; index < codeListings.length; index++) | ||
{ | ||
const codeSample = codeListings[index].querySelector('code'); | ||
const copyButton = document.createElement("button"); | ||
copyButton.setAttribute('type', 'button'); | ||
copyButton.onclick = function() { copyCode(codeSample, copyButton); }; | ||
copyButton.classList.add('code-copy'); | ||
copyButton.setAttribute('data-toggle', 'tooltip'); | ||
copyButton.setAttribute('title', 'Copy to clipboard'); | ||
copyButton.innerHTML = '<i class="fa fa-copy"></i>'; | ||
const buttonDiv = document.createElement('div'); | ||
buttonDiv.classList.add('click-to-copy'); | ||
buttonDiv.append(copyButton); | ||
codeListings[index].insertBefore(buttonDiv, codeSample); | ||
new bootstrap.Tooltip(copyButton); | ||
} | ||
function copyCode(codeSample, button) | ||
{ | ||
navigator.clipboard.writeText(codeSample.textContent.trim()); | ||
const tooltipInstance = bootstrap.Tooltip.getInstance(button); | ||
tooltipInstance.setContent({ '.tooltip-inner': 'Copied!' }); | ||
tooltipInstance.show(); | ||
setTimeout(() => { | ||
tooltipInstance.setContent({ '.tooltip-inner': 'Copy to clipboard' }); | ||
tooltipInstance.hide(); | ||
}, 3000); | ||
} |
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 |
---|---|---|
|
@@ -60,23 +60,21 @@ Datenschutzerklärung / Data Protection Policy Statement | |
|
||
Our Data Protection Policy (Datenschutzerklärung) is stated hereunto, in German, as Germany is our legal lieu de affaires. The German text is legally binding. We provide a summary for our English-speaking audience here: | ||
|
||
You may always direct your inquiries regarding your personal data to [email protected] | ||
Note that we are a non-commercial research project. We try to answer any such mail with priority. This does not affect your rights to complain with the responsible Data Protection Autorities. We would, however, encourage you to e-mail us first in case of any complaint or uncertainty. | ||
You may direct your inquiries regarding your personal data to [email protected]. | ||
Please note that, whilst we endeavour to answer all inquries promptly, we are a non-commercial research project. This does not affect your right to file a complaint with the responsible Data Protection Autorities. We would, however, request that you e-mail us first in case of any complaint or uncertainty so that we may seek to resolve it ourselves. | ||
|
||
We aim at processing as little personal information on our visitors as technically possible. We do not use cookie consent tools as we only use technically essential cookies and logs and delete them in due course. | ||
|
||
We have signed an Auftragsverarbeitungsvertrag (Order processing contract according to GDPR) with our hoster and direct our instructions and settings accordingly, as far as this is technically possible. | ||
|
||
We do not use third-party services on this website that would require a prior consent from your side, as far as we know. We retain the right of error and ask for immediate notification in case of uncertainties. | ||
Any third-party services, that would require the user to consent to data sharing, used on this website are clearly marked and do not activate, nor send user data, prior to that consent. We welcome any notification of unmarked services and/or behaviours that we have overlooked. | ||
|
||
The responsible contact person for any such inquiries is stated in the Datenschutzerklärung below. | ||
|
||
However, on this website, we link to third-party websites/service whose data protection policies we don't have any control or influence over. Consult their respective data protection statements. We do not take any responsibilities for content oder data usage by websites that are linked on this site. | ||
On this website, we dolink to third-party websites/service whose data protection policies we don't have any control or influence over. Please consult their respective data protection statements as appropriate. We do not accept any responsibility for content or data usage by external websites linked on this site. | ||
|
||
By using our website, you consent to our Privacy Policy and agree to its terms. | ||
|
||
Very welcome! | ||
Project Rosenpass | ||
|
||
{{< /blocks/section >}} | ||
|
||
|
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,105 @@ | ||
{{ $needKaTeX := or .Site.Params.katex.enable .Params.math .Params.chem -}} | ||
{{ $needmhchem := or .Site.Params.katex.mhchem.enable .Params.chem -}} | ||
{{ $needmermaid := .Site.Params.mermaid.enable -}} | ||
{{ if ge hugo.Version "0.93.0" -}} | ||
{{ with .Site.Params.mermaid }} | ||
{{ $needmermaid = true }} | ||
{{ end }} | ||
{{ $needKaTeX = or $needKaTeX (.Page.Store.Get "hasKaTeX") (.Page.Store.Get "hasmhchem") -}} | ||
{{ $needmhchem = or $needmhchem (.Page.Store.Get "hasmhchem") -}} | ||
{{ $needmermaid = or $needmermaid (.Page.Store.Get "hasmermaid") -}} | ||
{{ else -}} | ||
{{ if or $needKaTeX $needmhchem $needmermaid -}} | ||
{{ warnf "Outdated Hugo version %s, consider upgrading to make full use of all theme features" hugo.Version }} | ||
{{ end -}} | ||
{{ end -}} | ||
|
||
{{ if .Site.Params.markmap.enable -}} | ||
<style> | ||
.markmap > svg { | ||
width: 100%; | ||
height: 300px; | ||
} | ||
</style> | ||
<script> | ||
window.markmap = { | ||
autoLoader: { | ||
manual: true, | ||
onReady() { | ||
const { autoLoader, builtInPlugins } = window.markmap; | ||
autoLoader.transformPlugins = builtInPlugins.filter(plugin => plugin.name !== 'prism'); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
<script src="https://cdn.jsdelivr.net/npm/markmap-autoloader"></script> | ||
{{ end -}} | ||
|
||
{{ if .Site.Params.plantuml.enable -}} | ||
<script src='{{ "js/deflate.js" | relURL }}'></script> | ||
{{ end -}} | ||
|
||
{{ if $needKaTeX -}} | ||
{{/* load stylesheet and scripts for KaTeX support */ -}} | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" | ||
integrity="sha512-6VMVcy7XQNyarhVuiL50FzpgCFKsyTd6YO93aaQEyET+BNaWvj0IgKR86Bf6+AmWczxAcSnL+JGjo+iStgO1gQ==" crossorigin="anonymous"> | ||
{{/* The loading of KaTeX is deferred to speed up page rendering */ -}} | ||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" | ||
integrity="sha512-b9IKj4LCNrtCPBhceRcoYOHWW/S2q9fpl7iAJlyxYpykRj1SKM7FE9+E0NEnJ8g8ni47LBr2GuX9qzg/xeuwzQ==" | ||
crossorigin="anonymous"> | ||
</script> | ||
{{ if $needmhchem -}} | ||
{{/* To add support for displaying chemical equations and physical units, load the mhchem extension: */ -}} | ||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/mhchem.min.js" | ||
integrity="sha512-V1hl0fnOXW6Cdqe5ZVqtw8TBpJVpu3XRDRQti96j/04+tMarPrCdXEUE3UdfvfKYTpOn9DV4zEZBVr0HhDiuiQ==" | ||
crossorigin="anonymous"> | ||
</script> | ||
{{ end -}} | ||
{{/* To automatically render math in text elements, include the auto-render extension: */ -}} | ||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" | ||
integrity="sha512-iWiuBS5nt6r60fCz26Nd0Zqe0nbk1ZTIQbl3Kv7kYsX+yKMUFHzjaH2+AnM6vp2Xs+gNmaBAVWJjSmuPw76Efg==" crossorigin="anonymous" | ||
{{ printf "onload='renderMathInElement(%s, %s);'" (( $.Page.Site.Params.katex.html_dom_element | default "document.body" ) | safeJS ) ( printf "%s" ( $.Page.Site.Params.katex.options | jsonify )) | safeHTMLAttr }}> | ||
</script> | ||
{{ end -}} | ||
|
||
{{ $jsBs := resources.Get "vendor/bootstrap/dist/js/bootstrap.bundle.js" -}} | ||
{{ $jsBase := resources.Get "js/base.js" -}} | ||
{{ $jsAnchor := resources.Get "js/anchor.js" -}} | ||
{{ $jsSearch := resources.Get "js/search.js" | resources.ExecuteAsTemplate "js/search.js" .Site.Home -}} | ||
{{ $jsMermaid := resources.Get "js/mermaid.js" | resources.ExecuteAsTemplate "js/mermaid.js" . -}} | ||
{{ $jsMarkmap := resources.Get "js/markmap.js" | resources.ExecuteAsTemplate "js/markmap.js" . -}} | ||
{{ $jsPlantuml := resources.Get "js/plantuml.js" | resources.ExecuteAsTemplate "js/plantuml.js" . -}} | ||
{{ $jsDrawio := resources.Get "js/drawio.js" | resources.ExecuteAsTemplate "js/drawio.js" . -}} | ||
{{ if .Site.Params.offlineSearch -}} | ||
{{ $jsSearch = resources.Get "js/offline-search.js" -}} | ||
{{ end -}} | ||
|
||
{{ $jsArray := slice $jsBs $jsBase $jsAnchor $jsSearch $jsPlantuml $jsMarkmap $jsDrawio -}} | ||
|
||
{{ if $needmermaid -}} | ||
{{ $jsArray = $jsArray | append $jsMermaid -}} | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js" integrity="sha512-IX+bU+wShHqfqaMHLMrtwi4nK6W/Z+QdZoL4kPNtRxI2wCLyHPMAdl3a43Fv1Foqv4AP+aiW6hg1dcrTt3xc+Q==" crossorigin="anonymous"></script> | ||
{{ end -}} | ||
|
||
{{ $js := $jsArray | resources.Concat "js/main.js" -}} | ||
{{ if hugo.IsProduction -}} | ||
{{ $js := $js | minify | fingerprint -}} | ||
<script src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.Integrity }}" crossorigin="anonymous"></script> | ||
{{ else -}} | ||
<script src="{{ $js.RelPermalink }}"></script> | ||
{{ end -}} | ||
|
||
{{ if .Site.Params.prism_syntax_highlighting -}} | ||
<script src='{{ "js/prism.js" | relURL }}'></script> | ||
{{ else -}} | ||
{{ $c2cJS := resources.Get "js/click-to-copy.js" -}} | ||
{{ if hugo.IsProduction -}} | ||
{{ $c2cJS = $c2cJS | minify | fingerprint -}} | ||
{{ end -}} | ||
<script defer src="{{ $c2cJS.RelPermalink }}" {{ with $c2cJS.Data.Integrity -}} | ||
integrity="{{ . }}" {{ end -}} | ||
crossorigin="anonymous"></script> | ||
{{ end -}} | ||
|
||
<script src='{{ "js/tabpane-persist.js" | relURL }}'></script> | ||
{{ partial "hooks/body-end.html" . -}} |
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
Oops, something went wrong.