various improvements

This commit is contained in:
Kyle
2020-12-26 10:49:37 -08:00
parent bb8fddcb45
commit 773e6ecddb
6 changed files with 10 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ ErrorDocument 404 /404.php
<IfModule mod_headers.c> <IfModule mod_headers.c>
#YEAR #YEAR
<filesMatch "\.(png|svg|ttf)$"> <filesMatch "\.(png|svg|ttf|ico)$">
Header set Cache-Control "max-age=31536000, public" Header set Cache-Control "max-age=31536000, public"
</filesMatch> </filesMatch>
#MONTH #MONTH

View File

@@ -325,6 +325,12 @@
Between hosting fees and paying for the domain, running Card Conjurer can take its toll. Plus, as a student on a tight budget, it can be hard to afford Magic. If you've enjoyed using Card Conjurer and would like to help me out, please consider joining my <a style='color: #f96854;' href="https://www.patreon.com/KyleBurton" target='_blank'>Patreon</a>. And if you'd like to make a one-time donation instead, I have a <a style='color: #3b7bbf;' href="https://www.paypal.me/kyleburtondonate" target='_blank'>PayPal</a> as well. Any assistance is greatly appreciated, even if it's simply checking out my <a style='color: #00aced;' href="https://twitter.com/ImKyle4815" target='_blank'>Twitter</a>! Between hosting fees and paying for the domain, running Card Conjurer can take its toll. Plus, as a student on a tight budget, it can be hard to afford Magic. If you've enjoyed using Card Conjurer and would like to help me out, please consider joining my <a style='color: #f96854;' href="https://www.patreon.com/KyleBurton" target='_blank'>Patreon</a>. And if you'd like to make a one-time donation instead, I have a <a style='color: #3b7bbf;' href="https://www.paypal.me/kyleburtondonate" target='_blank'>PayPal</a> as well. Any assistance is greatly appreciated, even if it's simply checking out my <a style='color: #00aced;' href="https://twitter.com/ImKyle4815" target='_blank'>Twitter</a>!
</h4> </h4>
</div> </div>
<div class='layer readable-background margin-bottom-large'>
<h1 class='center margin-bottom'>Have feedback?</h1>
<h4>
Whether you've found a bug, want to request a feature, or have some criticism to offer, I'd love to hear it! If there's anything you'd like to let me know, please don't hesitate to contact me via email at <a href='mailto:cardconjurermtg@gmail.com' target='_blank'>cardconjurermtg@gmail.com</a>.
</h4>
</div>
</div> </div>
<script defer src='/js/creator.js'></script> <script defer src='/js/creator.js'></script>
<?php include('../globalHTML/footer.php'); ?> <?php include('../globalHTML/footer.php'); ?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@@ -650,7 +650,7 @@ function writeText(textObject, targetContext) {
currentX = savedTextXPosition; currentX = savedTextXPosition;
} }
} else if (possibleCode.includes('ptshift')) { } else if (possibleCode.includes('ptshift')) {
if (card.frames.findIndex(element => element.name.toLowerCase().includes('power/toughness')) >= 0 || card.version.includes('planeswalker') || card.version.includes('commanderLegends')) { if (card.frames.findIndex(element => element.name.toLowerCase().includes('power/toughness')) >= 0 || card.version.includes('planeswalker') || card.version == 'commanderLegends' || card.version == 'm21') {
ptShift[0] = scaleWidth(parseFloat(possibleCode.replace('ptshift', '').split(',')[0])); ptShift[0] = scaleWidth(parseFloat(possibleCode.replace('ptshift', '').split(',')[0]));
ptShift[1] = scaleHeight(parseFloat(possibleCode.split(',')[1])); ptShift[1] = scaleHeight(parseFloat(possibleCode.split(',')[1]));
} }

View File

@@ -13,7 +13,8 @@ availableFrames = [
{name:'Black Power/Toughness', src:'/img/frames/storybook/storybookPTB.png', bounds:bounds}, {name:'Black Power/Toughness', src:'/img/frames/storybook/storybookPTB.png', bounds:bounds},
{name:'Red Power/Toughness', src:'/img/frames/storybook/storybookPTR.png', bounds:bounds}, {name:'Red Power/Toughness', src:'/img/frames/storybook/storybookPTR.png', bounds:bounds},
{name:'Green Power/Toughness', src:'/img/frames/storybook/storybookPTG.png', bounds:bounds}, {name:'Green Power/Toughness', src:'/img/frames/storybook/storybookPTG.png', bounds:bounds},
{name:'Colorless Power/Toughness', src:'/img/frames/storybook/storybookPTC.png', bounds:bounds} {name:'Colorless Power/Toughness', src:'/img/frames/storybook/storybookPTC.png', bounds:bounds},
{name:'Holo Stamp', src:'/img/frames/storybook/holo.png', bounds:{x:0.4507, y:0.9129, width:0.0987, height:0.0386}}
]; ];
//disables/enables the "Load Frame Version" button //disables/enables the "Load Frame Version" button
document.querySelector('#loadFrameVersion').disabled = false; document.querySelector('#loadFrameVersion').disabled = false;