Skip to content

Commit

Permalink
tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
neodigm committed Nov 15, 2023
1 parent 13b2119 commit 2754bb0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions dist/widgets/case_conversion/case_conversion__templ.html
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ <h4 class="h-center readampm__caption">Share It!</h4>
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"]
Expand All @@ -291,7 +292,7 @@ <h4 class="h-center readampm__caption">Share It!</h4>
}
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" )
Expand All @@ -308,7 +309,7 @@ <h4 class="h-center readampm__caption">Share It!</h4>
}
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" )
Expand All @@ -324,7 +325,7 @@ <h4 class="h-center readampm__caption">Share It!</h4>
}
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" )
Expand All @@ -340,7 +341,7 @@ <h4 class="h-center readampm__caption">Share It!</h4>
}
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" )
Expand All @@ -350,7 +351,7 @@ <h4 class="h-center readampm__caption">Share It!</h4>
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" )
Expand All @@ -360,7 +361,7 @@ <h4 class="h-center readampm__caption">Share It!</h4>
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" )
Expand Down

0 comments on commit 2754bb0

Please sign in to comment.