Browse Source

some reorganization

pull/1/head
Ellpeck 2 years ago
parent
commit
7aced5c274
  1. 6
      index.html
  2. 6
      scripts/main.js
  3. 0
      scripts/showdown-prettify.js
  4. 0
      style/dark.css
  5. 2
      style/prettify-dark.css
  6. 2
      style/prettify.css
  7. 0
      style/pride.css
  8. 0
      style/style.css

6
index.html

@ -12,8 +12,8 @@
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
<link rel="stylesheet" href="lib/prettify.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="style/prettify.css">
<link rel="stylesheet" href="style/style.css">
<link rel="icon" href="favicon.ico">
<meta name="og:title" content="Ellpeck.de">
@ -29,7 +29,7 @@
<script src="https://cdn.jsdelivr.net/npm/showdown@1.9.0/dist/showdown.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/prettify.js"></script>
<script src="lib/showdown-prettify.js"></script>
<script src="scripts/showdown-prettify.js"></script>
<script src="scripts/main.js"></script>
</head>

6
scripts/main.js

@ -3,11 +3,11 @@ let cookieNotification = getCookie("notification") !== "true";
let pride = new Date().getMonth() == 5;
if (dark) {
document.write('<link rel="stylesheet" href="dark.css">')
document.write('<link rel="stylesheet" href="lib/prettify-dark.css">')
document.write('<link rel="stylesheet" href="style/dark.css">')
document.write('<link rel="stylesheet" href="style/prettify-dark.css">')
}
if (pride)
document.write('<link rel="stylesheet" href="pride.css">')
document.write('<link rel="stylesheet" href="style/pride.css">')
$(function () {
let openModals = function (hash) {

0
lib/showdown-prettify.js → scripts/showdown-prettify.js

0
dark.css → style/dark.css

2
lib/prettify-dark.css → style/prettify-dark.css

@ -55,7 +55,7 @@ ol.linenums {
}
pre.prettyprint {
border-radius: 10px;
border-radius: 5px;
}
.prettyprint {

2
lib/prettify.css → style/prettify.css

@ -134,7 +134,7 @@ projection {
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
border-radius: 10px;
border-radius: 5px;
}
.prettyprint {

0
pride.css → style/pride.css

0
style.css → style/style.css

Loading…
Cancel
Save