merging the final gematro version updates and adding autoloading themes

This commit is contained in:
malonehunter committed 2023-10-02 11:29:32 -04:00
1 parent b60a7320ab
commit 42d7052a37
11 files changed
+103 -36

No files matched your search

+12 -7
View File
@@ -300,6 +300,7 @@ function updateCipherChart(curCipher) {
}
curCiphCol = (optColoredCiphers) ? 'color: hsl('+curCipher.H+' '+curCipher.S+'% '+curCipher.L+'% / 1)' : ''
curCiphFaintCol = (optColoredCiphers) ? 'color: hsl('+curCipher.H+' '+curCipher.S+'% '+curCipher.L+'% / 0.25)' : ''
curGradCol = (optColoredCiphers) ? 'hsl('+curCipher.H+' '+curCipher.S+'% '+curCipher.L+'% / 0.2)' : 'hsl(0 0% 0% / 0.1)'
var o = 'background: var(--body-bg-accent);'
@@ -316,11 +317,15 @@ function updateCipherChart(curCipher) {
$("#ChartSpot").attr("style", o);
o = '<table id="ChartTable">'
o += '<tbody><tr>'
o += '<tbody>'
o += '<td colspan="' + curCipher.cArr.length + '">'
o += '<tr>'
o += '<td id="spaceChartBtn" style="font-size: 150%; font-weight: 500; '+curCiphFaintCol+'">-</td>' // Space
o += '<td id="capsNameChartBtn" colspan="' + (Math.ceil(curCipher.cArr.length / 2) - 2) + '">'
o += '<font style="font-size: 150%; font-weight: 500; '+curCiphCol+'">' + curCipher.cipherName + '</font>'
o += '</td></tr><tr>'
o += '</td>'
o += '<td id="backspaceChartBtn" style="font-size: 150%; font-weight: 500; '+curCiphFaintCol+'">&#8592;</td>' // Backspace
o += '</tr><tr>'
var halfL = curCipher.cArr.length / 2
for (var x = 0; x < curCipher.cArr.length; x++) {
@@ -331,7 +336,7 @@ function updateCipherChart(curCipher) {
}
o += '</tr><tr>'
}
o += '<td class="ChartChar" font style="'+curCiphCol+'">' + String.fromCodePoint(curCipher.cArr[x]) + '</td>'
o += (showCapsCipherChart && !curCipher.caseSensitive) ? '<td class="ChartChar" font style="'+curCiphCol+'">' + String.fromCodePoint(curCipher.cArr[x]).toUpperCase() + '</td>' : '<td class="ChartChar" font style="'+curCiphCol+'">' + String.fromCodePoint(curCipher.cArr[x]) + '</td>'
}
if (curCipher.cArr.length % 2 == 1) { o += '<td class="ChartChar" font style="'+curCiphCol+'"></td>' } // empty character cell to make even rows
o += '</tr><tr>'
@@ -351,15 +356,15 @@ function updateCipherChartGemCard(impName = breakCipher) {
return
}
curCiphCol = (optColoredCiphers) ? 'color: hsl('+curCipher.H+' '+curCipher.S+'% '+curCipher.L+'% / 1)' : ''
curGradCol = (optColoredCiphers) ? 'hsl('+curCipher.H+' '+curCipher.S+'% '+curCipher.L+'% / 0.2)' : 'hsl(0 0% 0% / 0.1)'
var cSpot
for (x = 0; x < cipherList.length; x++) {
if (cipherList[x].cipherName == impName) { cSpot = x; break; }
}
curCipher = cipherList[cSpot]
curCiphCol = (optColoredCiphers) ? 'color: hsl('+curCipher.H+' '+curCipher.S+'% '+curCipher.L+'% / 1)' : ''
curGradCol = (optColoredCiphers) ? 'hsl('+curCipher.H+' '+curCipher.S+'% '+curCipher.L+'% / 0.2)' : 'hsl(0 0% 0% / 0.1)'
// gradient table background based on cipher color
o = '<table id="ChartTable" style="background: var(--body-bg-accent);">'
if (optGradientCharts) {