mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
curly quotes
This commit is contained in:
@@ -440,5 +440,5 @@ include('../globalHTML/header-1.php');
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
<script defer src='/js/creator-9.js'></script>
|
||||
<script defer src='/js/creator-10.js'></script>
|
||||
<?php include('../globalHTML/footer.php'); ?>
|
@@ -508,7 +508,7 @@ function textboxEditor() {
|
||||
document.querySelector('#textbox-editor-height').onchange = (event) => {selectedTextbox.height = (event.target.value / card.height); textEdited();}
|
||||
}
|
||||
function textEdited() {
|
||||
card.text[Object.keys(card.text)[selectedTextIndex]].text = document.querySelector('#text-editor').value;
|
||||
card.text[Object.keys(card.text)[selectedTextIndex]].text = curlyQuotes(document.querySelector('#text-editor').value);
|
||||
drawTextBuffer();
|
||||
}
|
||||
function drawTextBuffer() {
|
||||
@@ -872,6 +872,9 @@ CanvasRenderingContext2D.prototype.drawImageArc = function(image, x, y, width, h
|
||||
function widthToAngle(width, radius) {
|
||||
return width / radius;
|
||||
}
|
||||
function curlyQuotes(input) {
|
||||
return input.replace(/ '/g, ' ‘').replace(/^'/, '‘').replace(/' /g, '’ ').replace(/'$/, '’').replace(/ "/g, ' “').replace(/^"/, '“').replace(/" /g, '” ').replace(/"$/, '”');
|
||||
}
|
||||
//ART TAB
|
||||
function uploadArt(imageSource, otherParams) {
|
||||
art.src = imageSource;
|
Reference in New Issue
Block a user