highlight transparencies

This commit is contained in:
Kyle
2022-03-31 19:46:35 -07:00
parent 7e04827c53
commit 5186841067
2 changed files with 14 additions and 1 deletions

View File

@@ -185,10 +185,15 @@ include('../globalHTML/header-1.php');
</div>
<div class='readable-background padding'>
<h5 class='input-description margin-bottom'>Show guidelines for text, art, watermark, and set symbols</h5>
<label class='checkbox-container input'>Guidelines
<label class='checkbox-container input margin-bottom'>Guidelines
<input id='show-guidelines' type='checkbox' onchange='drawCard();'>
<span class='checkmark'></span>
</label>
<h5 class='input-description margin-bottom'>Highlight transparencies in card</h5>
<label class='checkbox-container input'>Transparencies
<input id='highlight-transparencies' type='checkbox' onchange='toggleCardBackgroundColor(this.checked);'>
<span class='checkmark'></span>
</label>
</div>
</div>
<div id='creator-menu-text' class='hidden'>

View File

@@ -2151,6 +2151,14 @@ function drawNewGuidelines() {
//draw to card
drawCard();
}
//HIGHLIGHT TRANSPARENCIES
function toggleCardBackgroundColor(highlight) {
if (highlight) {
previewCanvas.style["background-color"] = "#ff007fff";
} else {
previewCanvas.style["background-color"] = "#0000";
}
}
//Various loaders
function imageURL(url, destination, otherParams) {
var imageurl = url;