mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 13:21:41 -05:00
fixes
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
//Cycles through a rainbow!
|
||||
setInterval(changeColor, 100)
|
||||
var regularAdjust = -60
|
||||
var regularAdjust = 60
|
||||
var lightAdjust = 100
|
||||
var lightLead = 100
|
||||
var lightLead = 128
|
||||
var currentColorIndex = 0
|
||||
function changeColor() {
|
||||
var colors = indexToColor(currentColorIndex)
|
||||
document.documentElement.style.setProperty("--shifting-color-1", "rgb(" + parseInt(colors[0] + regularAdjust) + "," + parseInt(colors[1] + regularAdjust) + "," + parseInt(colors[2] + regularAdjust) + ")")
|
||||
var lightColors = indexToColor(currentColorIndex + lightLead)
|
||||
document.documentElement.style.setProperty("--shifting-color-1-light", "rgb(" + parseInt(lightColors[0] + lightAdjust) + "," + parseInt(lightColors[1] + lightAdjust) + "," + parseInt(lightColors[2] + lightAdjust) + ")")
|
||||
currentColorIndex += colorJumpSize = 153 / 60 //The second number is how many seconds it takes to do a full loop
|
||||
currentColorIndex += colorJumpSize = 153 / 120 //The second number is how many seconds it takes to do a full loop
|
||||
}
|
||||
function indexToColor(colorIndex) {
|
||||
var red = 0, green = 0, blue = 0
|
||||
|
@@ -372,9 +372,9 @@ CanvasRenderingContext2D.prototype.writeText = function(text = "", textX = 0, te
|
||||
//It may be a code
|
||||
wordToWrite = ""
|
||||
possibleCodeLower = splitString[i].toLowerCase().replace("{", "").replace("}", "")
|
||||
if (possibleCodeLower == "line" && !oneline) {
|
||||
if (possibleCodeLower == "line" && !oneLine) {
|
||||
finishLine = true
|
||||
} else if (possibleCodeLower == "linenospace" && ! oneline) {
|
||||
} else if (possibleCodeLower == "linenospace" && ! oneLine) {
|
||||
finishLine = true
|
||||
} else if (possibleCodeLower == "bar" || possibleCodeLower == "flavor") {
|
||||
finishLine = true
|
||||
|
@@ -40,6 +40,7 @@
|
||||
--shifting-color-1-light: #c8ff64;
|
||||
--light-color: #eee;
|
||||
--dark-color: #333;
|
||||
--clear-light: #1111;
|
||||
}
|
||||
footer {
|
||||
background-color: var(--dark-color);
|
||||
@@ -192,8 +193,9 @@ footer a:hover {
|
||||
color: black;
|
||||
font-size: 2em;
|
||||
text-align: center;
|
||||
margin: 3em 0px;
|
||||
}
|
||||
.layer:nth-child(even) {
|
||||
.layer { /*:nth-child(even)*/
|
||||
background-color: var(--light-color);
|
||||
background-image: url(images/layerBackground.png);
|
||||
background-position: center;
|
||||
@@ -221,7 +223,7 @@ footer a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.donate > div {
|
||||
background-color: #1111;
|
||||
background-color: var(--clear-light);
|
||||
border-radius: 2em;
|
||||
font: 2em belerenbsc;
|
||||
}
|
||||
|
24
index.html
24
index.html
@@ -59,7 +59,7 @@
|
||||
<div class="tooltip"><input type="number" class="input number" id="inputCardArtNameNumber" onchange="inputCardArtNameNumber(this.value)" value="" min="1" max="1" placeholder="Which Art From Card Name"><span class="tooltiptext">Select which art to use (from the entered card name)</span></div>
|
||||
</div>
|
||||
<div>
|
||||
<div style="text-align: center; margin: 0.18em 0px">Placement & Zoom:</div>
|
||||
<div style="text-align: center; margin: 0.18em 0px">Placement & Zoom:</div>
|
||||
<div class="tooltip"><input type="number" class="input number" value="0" id="inputCardArtX" oninput="updateCardCanvas()"><span class="tooltiptext">Shift art to the right</span></div>
|
||||
<div class="tooltip"><input type="number" class="input number" value="0" id="inputCardArtY" oninput="updateCardCanvas()"><span class="tooltiptext">Shift art down</span></div>
|
||||
<div class="tooltip"><input type="number" class="input number" value="100" step="0.1" min="0" id="inputCardArtZoom" oninput="updateCardCanvas()"><span class="tooltiptext">Art zoom level</span></div>
|
||||
@@ -149,18 +149,16 @@
|
||||
This version of the website is currently a work in progress, so it doesn't have all the features the original Card Conjurer had. If you'd like to go back to the old version, <a href="old/index.html">click here</a>.
|
||||
</div>
|
||||
</div>
|
||||
<div class="layer">
|
||||
<div class="title">How You Can Help</div>
|
||||
<div class="paragraph indent">
|
||||
I hope that you found Card Conjurer useful! If you did, you can help me out tremendously by using one of the following referral links:
|
||||
</div>
|
||||
<div class="autoGrid donate">
|
||||
<!-- <div onclick="window.open('https://www.paypal.me/kyleburtondonate', '_blank');" style="color:rgb(0,37,134);">PayPal<img src="data/site/icons/paypal.png"></div> -->
|
||||
<div onclick="window.open('https://pucatrade.com/invite/gift/186748', '_blank');" style="color:#3d213a;">PucaTrade<img src="data/site/icons/pucatrade.png"></div>
|
||||
<!-- <div onclick="window.open('https://twitter.com/ImKyle4815', '_blank');" style="color:rgb(0,174,239);">@ImKyle4815<img src="data/site/icons/twitter.png"></div> -->
|
||||
<div onclick="window.open('https://www.massdrop.com/?referer=LNWNLL', '_blank');" style="color:#ffffff;">Massdrop<img src="data/site/icons/massdrop.png"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="layer">-->
|
||||
<!-- <div class="title">How You Can Help</div>-->
|
||||
<!-- <div class="paragraph indent">-->
|
||||
<!-- I hope that you found Card Conjurer useful! If you did, you can help me out tremendously by using one of the following referral links:-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="autoGrid donate">-->
|
||||
<!-- <div onclick="window.open('https://pucatrade.com/invite/gift/186748', '_blank');" style="color:#3d213a;">PucaTrade<img src="data/site/icons/pucatrade.png"></div>-->
|
||||
<!-- <div onclick="window.open('https://www.massdrop.com/?referer=LNWNLL', '_blank');" style="color:#ffffff;">Massdrop<img src="data/site/icons/massdrop.png"></div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="layer">
|
||||
<div class="title">Have Any Questions?</div>
|
||||
<div class="paragraph indent">
|
||||
|
Reference in New Issue
Block a user