fix
| Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB | 
| @@ -8,6 +8,7 @@ function initiate() { | |||||||
| 	window.version = {} | 	window.version = {} | ||||||
| 	window.cardWidth = 744; | 	window.cardWidth = 744; | ||||||
| 	window.cardHeight = 1039; | 	window.cardHeight = 1039; | ||||||
|  |     window.creditColor = ""; | ||||||
|     if (window.location.search != "") { |     if (window.location.search != "") { | ||||||
|         var parameters = window.location.search.replace('?', '').split('&'); |         var parameters = window.location.search.replace('?', '').split('&'); | ||||||
|         for (var i = 0; i < parameters.length; i ++) { |         for (var i = 0; i < parameters.length; i ++) { | ||||||
| @@ -17,6 +18,9 @@ function initiate() { | |||||||
|             } else if (targetParameter[0] == 'height') { |             } else if (targetParameter[0] == 'height') { | ||||||
|                 cardHeight = parseInt(targetParameter[1]); |                 cardHeight = parseInt(targetParameter[1]); | ||||||
|             } |             } | ||||||
|  |             if (targetParameter[0] == 'creditColor') { | ||||||
|  |                 window.creditColor = "{fontcolor" + targetParameter[1] + "}"; | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     window.whichTextIndex = 0; |     window.whichTextIndex = 0; | ||||||
| @@ -993,7 +997,7 @@ function loadSampleImages() { | |||||||
|         sampleImage.src = "data/site/images/samples/" + randomIndex + ".png"; |         sampleImage.src = "data/site/images/samples/" + randomIndex + ".png"; | ||||||
|     } |     } | ||||||
|     //Donate card stuff! |     //Donate card stuff! | ||||||
|     var cardWishlist = [["Thrasios, Triton Hero", "https://img.scryfall.com/cards/large/front/2/1/21e27b91-c7f1-4709-aa0d-8b5d81b22a0a.jpg?1562391653"], ["Arcane Signet", "https://img.scryfall.com/cards/large/front/8/4/84128e98-87d6-4c2f-909b-9435a7833e63.jpg?1572482845"], ["Kenrith, the Returned King", "https://img.scryfall.com/cards/large/front/5/6/56c1227e-bea7-47cb-bbec-389a3d585af5.jpg?1571282458"], ["Ramunap Excavator", "https://img.scryfall.com/cards/large/front/9/0/90a54d18-8403-441d-a115-ee462fabdabb.jpg?1562806928"], ["Meloku the Clouded Mirror", "https://img.scryfall.com/cards/large/front/a/1/a19601ac-48a7-40c2-9159-af15af8520ca.jpg?1561968062"]]; |     var cardWishlist = [["Thrasios, Triton Hero", "https://img.scryfall.com/cards/large/front/2/1/21e27b91-c7f1-4709-aa0d-8b5d81b22a0a.jpg?1562391653"], ["Riku of Two Reflections", "https://img.scryfall.com/cards/large/front/7/1/716d0b3b-bac9-4fb8-882e-bd6171864043.jpg?1562916032"], ["Kenrith, the Returned King", "https://img.scryfall.com/cards/large/front/5/6/56c1227e-bea7-47cb-bbec-389a3d585af5.jpg?1571282458"], ["Ramunap Excavator", "https://img.scryfall.com/cards/large/front/9/0/90a54d18-8403-441d-a115-ee462fabdabb.jpg?1562806928"], ["Meloku the Clouded Mirror", "https://img.scryfall.com/cards/large/front/a/1/a19601ac-48a7-40c2-9159-af15af8520ca.jpg?1561968062"]]; | ||||||
|     var randomWishlistCard = cardWishlist[Math.floor(Math.random() * cardWishlist.length)]; |     var randomWishlistCard = cardWishlist[Math.floor(Math.random() * cardWishlist.length)]; | ||||||
|     document.getElementById("wishlistCardName").innerHTML = randomWishlistCard[0]; |     document.getElementById("wishlistCardName").innerHTML = randomWishlistCard[0]; | ||||||
|     var wishlistCardImage = new Image(); |     var wishlistCardImage = new Image(); | ||||||
|   | |||||||
| Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.3 MiB | 
| Before Width: | Height: | Size: 954 KiB After Width: | Height: | Size: 928 KiB | 
| Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.2 MiB | 
| @@ -46,7 +46,7 @@ function m15BottomInfo() { | |||||||
| 			copyrightShift = scale(19); | 			copyrightShift = scale(19); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	bottomInfoContext.writeText("\u2122 & \u00a9 " + date.getFullYear() + " Wizards of the Coast", cardWidth / 2, scale(980 + copyrightShift), scale(322), 0, "mplantin", scale(17), "white", "oneLine=true,textAlign='right'") | 	bottomInfoContext.writeText(creditColor + "\u2122 & \u00a9 " + date.getFullYear() + " Wizards of the Coast", cardWidth / 2, scale(980 + copyrightShift), scale(322), 0, "mplantin", scale(17), "white", "oneLine=true,textAlign='right'") | ||||||
| 	cardImageUpdated() | 	cardImageUpdated() | ||||||
| } | } | ||||||
| // setTimeout(m15BottomInfo, 250) | // setTimeout(m15BottomInfo, 250) | ||||||
|   | |||||||
 Kyle
					Kyle