This commit is contained in:
Kyle
2018-12-15 13:09:21 -08:00
parent 090e35125b
commit ef13bdf89d
2 changed files with 20 additions and 7 deletions

View File

@@ -14,6 +14,18 @@ var typeRightShift = 0
var textBaselineShift = 0 var textBaselineShift = 0
var imagesToLoad var imagesToLoad
//Determine browser
var isChrome = navigator.userAgent.indexOf('Chrome') > -1
var isExplorer = navigator.userAgent.indexOf('MSIE') > -1
var isFirefox = navigator.userAgent.indexOf('Firefox') > -1
var isSafari = navigator.userAgent.indexOf("Safari") > -1
if (isChrome == true && isSafari == true) {
isSafari = false
}
if (isSafari == true) {
textBaselineShift = -6
}
//Set up canvas //Set up canvas
var canvas = document.getElementById("canvas") var canvas = document.getElementById("canvas")
var card = canvas.getContext("2d") var card = canvas.getContext("2d")
@@ -148,6 +160,7 @@ function cardClock() {
card.moveTo(0, titleX) card.moveTo(0, titleX)
card.lineTo(cardWidth, titleX) card.lineTo(cardWidth, titleX)
card.stroke() card.stroke()
console.log("debugging")
} }
} }

View File

@@ -514,11 +514,11 @@
:root { :root {
/*Regular*/ /*Regular*/
--color-a: #073c00; --color-a: #073c00;
--color-b: #073c0040; /*073c0040*/ --color-b: #073c0020; /*073c0020*/
--color-c: #095700; --color-c: #095700;
--color-d: #0e720040; /*0e720040*/ --color-d: #0e720040; /*0e720040*/
--color-e: #0e7200; --color-e: #0e7200;
--color-gray: #00000080; --color-gray: #00000060;
} }
/*Page-wide styling*/ /*Page-wide styling*/
@@ -579,8 +579,8 @@ html {
margin-top: 4px; margin-top: 4px;
padding: 24px; padding: 24px;
border-radius: 36px; border-radius: 36px;
border: 1px solid var(--color-c); border: 2px solid var(--color-d);
background-color: var(--color-b); background-color: var(--color-gray);
} }
.cmm, .extras { .cmm, .extras {
display: none; display: none;
@@ -760,13 +760,13 @@ a:hover, a:active {
text-align: center; text-align: center;
} }
.donateGrid.grid > div { .donateGrid.grid > div {
background: var(--color-gray); background: black;
font-size: 1.7em; font-size: 1.7em;
cursor: pointer; cursor: pointer;
padding: 0px; padding: 0px;
} }
.donateGrid.grid > div:hover { .donateGrid.grid > div:hover {
background: black; background: var(--color-b);
} }
.donateGrid > div > img { .donateGrid > div > img {
position: relative; position: relative;