From 2754bb014f7e60a99a3341aba29c3dba75002f4a Mon Sep 17 00:00:00 2001
From: neodigm <3151842+neodigm@users.noreply.github.com>
Date: Wed, 15 Nov 2023 10:37:52 -0600
Subject: [PATCH] tmpl
---
.../case_conversion/case_conversion__templ.html | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/dist/widgets/case_conversion/case_conversion__templ.html b/dist/widgets/case_conversion/case_conversion__templ.html
index 0003574..59fe1a0 100644
--- a/dist/widgets/case_conversion/case_conversion__templ.html
+++ b/dist/widgets/case_conversion/case_conversion__templ.html
@@ -280,7 +280,8 @@
Share It!
if( eTermFrom && eTermTo ){
if( sAct == "caseTitle" ){
if( eTermFrom.value ){
- let aTxt = eTermFrom.value.split(" ")
+ let sTxt = eTermFrom.value.toLowerCase()
+ let aTxt = sTxt.split(" ")
if( aTxt.length ){
aTxt = aTxt.map( sW => {
const sDoNotCap = ["a", "an", "and", "as", "at", "but", "by", "for", "if", "in", "nor", "of", "off", "on", "or", "per", "so", "the", "to", "up", "via", "with", "yet"]
@@ -291,7 +292,7 @@ Share It!
}
eTermTo.value = aTxt.join(" ")
neodigmToast.q("Case Convert|Title " + eTermFrom.value.length + " characters", "brand")
-this.showResults()
+ this.showResults()
}else{
neodigmToast.q("There is no text to convert.", "danger")
neodigmUtils.robinTheme("danger"); neodigmUtils.shake( "#l-term-from" )
@@ -308,7 +309,7 @@ Share It!
}
eTermTo.value = aTxt.join(" ")
neodigmToast.q("Case Convert|Sentence " + eTermFrom.value.length + " characters", "brand")
-this.showResults()
+ this.showResults()
}else{
neodigmToast.q("There is no text to convert.", "danger")
neodigmUtils.robinTheme("danger"); neodigmUtils.shake( "#l-term-from" )
@@ -324,7 +325,7 @@ Share It!
}
eTermTo.value = aTxt.join(" ")
neodigmToast.q("Case Convert|Lowercase " + eTermFrom.value.length + " characters", "brand")
-this.showResults()
+ this.showResults()
}else{
neodigmToast.q("There is no text to convert.", "danger")
neodigmUtils.robinTheme("danger"); neodigmUtils.shake( "#l-term-from" )
@@ -340,7 +341,7 @@ Share It!
}
eTermTo.value = aTxt.join(" ")
neodigmToast.q("Case Convert|Uppercase " + eTermFrom.value.length + " characters", "brand")
-this.showResults()
+ this.showResults()
}else{
neodigmToast.q("There is no text to convert.", "danger")
neodigmUtils.robinTheme("danger"); neodigmUtils.shake( "#l-term-from" )
@@ -350,7 +351,7 @@ Share It!
if( eTermFrom.value ){
eTermTo.value = eTermFrom.value.split("").reverse().join("")
neodigmToast.q("Text Convert|Reverse " + eTermFrom.value.length + " characters", "brand")
-this.showResults()
+ this.showResults()
}else{
neodigmToast.q("There is no text to convert.", "danger")
neodigmUtils.robinTheme("danger"); neodigmUtils.shake( "#l-term-from" )
@@ -360,7 +361,7 @@ Share It!
if( eTermFrom.value ){
eTermTo.value = case_conversion.getTinyType( eTermFrom.value )
neodigmToast.q("Text Convert|Tiny Type " + eTermFrom.value.length + " characters", "brand")
-this.showResults()
+ this.showResults()
}else{
neodigmToast.q("There is no text to convert.", "danger")
neodigmUtils.robinTheme("danger"); neodigmUtils.shake( "#l-term-from" )