Eliminate common CSS and JS
This commit is contained in:
parent
3e147c3f15
commit
36eb270d1e
36
index.html
36
index.html
|
@ -16,29 +16,7 @@
|
|||
integrity="sha256-l85OmPOjvil/SOvVt3HnSSjzF1TUMyT9eV0c2BzEGzU=" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/milligram/1.3.0/milligram.min.css"
|
||||
integrity="sha256-Ro/wP8uUi8LR71kwIdilf78atpu8bTEwrK5ZotZo+Zc=" crossorigin="anonymous" />
|
||||
|
||||
<style>
|
||||
html {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
position: relative;
|
||||
|
||||
padding-top: 5rem;
|
||||
padding-bottom: 9rem; /* Footer paddings + 1 */
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
|
||||
padding-top: 5rem;
|
||||
padding-bottom: 3rem;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="https://static.fwdekker.com/css/milligram-common.css" crossorigin="anonymous" />
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrapper">
|
||||
|
@ -111,6 +89,7 @@
|
|||
<!-- Scripts -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js"
|
||||
integrity="sha256-oSgtFCCmHWRPQ/JmR4OoZ3Xke1Pw4v50uh6pLcu+fIc=" crossorigin="anonymous"></script>
|
||||
<script src="https://static.fwdekker.com/js/common.js" crossorigin="anonymous"></script>
|
||||
<script>
|
||||
//////
|
||||
///
|
||||
|
@ -118,17 +97,6 @@
|
|||
///
|
||||
//////
|
||||
|
||||
const $ = query => document.querySelector(query);
|
||||
|
||||
const doAfterLoad = fun => {
|
||||
const oldOnLoad = window.onload || (() => {
|
||||
});
|
||||
window.onload = (() => {
|
||||
oldOnLoad();
|
||||
fun();
|
||||
});
|
||||
};
|
||||
|
||||
const repeat = (value, length) => {
|
||||
const zeroArray = [];
|
||||
for (let i = 0; i < length; i++)
|
||||
|
|
Loading…
Reference in New Issue