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 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
var canvas = document.getElementById("canvas")
var card = canvas.getContext("2d")
@@ -148,6 +160,7 @@ function cardClock() {
card.moveTo(0, titleX)
card.lineTo(cardWidth, titleX)
card.stroke()
console.log("debugging")
}
}
@@ -975,4 +988,4 @@ function downloadCardImage(linkElement) {
//============================================//
// Log it! //
//============================================//
console.log("The main.js file has finished loading.")
console.log("The main.js file has finished loading.")