From da1b844e46a114436042816eb84411dcbcf302d9 Mon Sep 17 00:00:00 2001
From: Kyle <41976328+ImKyle4815@users.noreply.github.com>
Date: Sat, 13 Apr 2019 14:34:29 -0700
Subject: [PATCH] css
---
data/main.js | 15 ++++
index.html | 232 ++++++++++++++++++++++++++++++---------------------
2 files changed, 150 insertions(+), 97 deletions(-)
diff --git a/data/main.js b/data/main.js
index 7b383ecc..0be5eff6 100644
--- a/data/main.js
+++ b/data/main.js
@@ -2,6 +2,21 @@
// Card Conjurer, by Kyle Burton //
//============================================//
//Hi there :D
+window.onscroll = function() {scrollFunction()};
+window.onresize = function() {scrollFunction()}
+
+function scrollFunction() {
+ if (window.innerWidth > 900) {
+ if (document.body.scrollTop < 70) {
+ document.getElementById("header").style.maxHeight = 100 - document.body.scrollTop + "px";
+ } else {
+ document.getElementById("header").style.maxHeight = "30px";
+ }
+ } else {
+ document.getElementById("header").style.maxHeight = "80px";
+ }
+}
+scrollFunction()
//============================================//
// Anything I Like to Change Often :) //
diff --git a/index.html b/index.html
index f8b6ce69..ec3867ae 100644
--- a/index.html
+++ b/index.html
@@ -14,7 +14,7 @@
-
+
@@ -25,7 +25,7 @@
+
+
+
+
+
+
+
-
-
+
Frame
Text
@@ -74,19 +82,8 @@
Advanced
Download
Planeswalker
-
-