瀏覽代碼

fix null element error

Sv443 3 年之前
父節點
當前提交
569e39b525
共有 2 個文件被更改,包括 51 次插入1 次删除
  1. 50 0
      css/error.css
  2. 1 1
      js/index.js

+ 50 - 0
css/error.css

@@ -0,0 +1,50 @@
+/* #MARKER vars and shit */
+
+:root {
+	--line-height: calc(100% + 4px);
+}
+
+.noselect {
+    -webkit-touch-callout: none;
+    -webkit-user-select: none;
+    -khtml-user-select: none;
+    -moz-user-select: none;
+    -ms-user-select: none;
+    user-select: none;
+}
+
+.mimica {
+    cursor: pointer;
+}
+
+a:not(.noul), .mimica:not(.noul) {
+    color: #8f9aff;
+    text-decoration: none;
+}
+
+a:not(.noul):hover, .mimica:not(.noul):hover {
+    color: #bcc2ff;
+    text-decoration: underline;
+}
+
+/* #MARKER other */
+
+body {
+	background-color: #282c34;
+	font-family: "Roboto", "Segoe UI", "Arial", sans-serif;
+	font-size: 22px;
+	color: white;
+	line-height: var(--line-height);
+	text-align: center;
+}
+
+main {
+	display: inline-block;
+	margin-top: 30px;
+}
+
+h2#error {
+	color: orangered;
+	margin-bottom: 25px;
+}
+

+ 1 - 1
js/index.js

@@ -173,5 +173,5 @@ function consentGranted()
 
 function consentDenied()
 {
-    document.getElementById("cookie_consent").style.display = "none";
+    document.getElementById("cookie-consent").style.display = "none";
 }