This file contains hidden or 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
.unselectable { | |
-moz-user-select: none; | |
-webkit-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} | |
.all { | |
-moz-user-select: all; | |
-webkit-user-select: all; |
This file contains hidden or 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
/* PREVENT TRANSITIONS ON WINDOW RESIZE | |
taken from https://stackoverflow.com/questions/38526764/disable-css-transitions-on-window-resize */ | |
<script> | |
(function() { | |
const classes = document.body.classList; | |
let timer = 0; | |
window.addEventListener('resize', function () { | |
if (timer) { | |
clearTimeout(timer); | |
timer = null; |
This file contains hidden or 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
// Since we know the length of out is the same as in, isn't it better | |
// to pre-create out with a fixed length rather than calling append in | |
// a loop? I think append will double its capacity when needed. |
This file contains hidden or 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
// Calculation on load because otherwise IOS devices return an unreliable height variable ( different values at different places ) | |
window.addEventListener("load", () => { | |
// See stackoverflow post https://stackoverflow.com/a/1147768 | |
let height = Math.max( | |
document.body.scrollHeight, | |
document.body.offsetHeight, | |
html.clientHeight, | |
html.scrollHeight, | |
html.offsetHeight | |
); |
This file contains hidden or 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
Hinweis: Als Name für den initialen Branch wurde 'master' benutzt. Dieser | |
Hinweis: Standard-Branchname kann sich ändern. Um den Namen des initialen Branches | |
Hinweis: zu konfigurieren, der in allen neuen Repositories verwendet werden soll und | |
Hinweis: um diese Warnung zu unterdrücken, führen Sie aus: | |
Hinweis: | |
Hinweis: git config --global init.defaultBranch <Name> | |
Hinweis: | |
Hinweis: Häufig gewählte Namen statt 'master' sind 'main', 'trunk' und | |
Hinweis: 'development'. Der gerade erstellte Branch kann mit diesem Befehl | |
Hinweis: umbenannt werden: |