Skip to content

Commit

Permalink
agent qr
Browse files Browse the repository at this point in the history
  • Loading branch information
neodigm committed Nov 18, 2023
1 parent 5e35af9 commit 1e1bd0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dist/neodigm55__v3_1.js
Original file line number Diff line number Diff line change
Expand Up @@ -1600,10 +1600,10 @@ class NeodigmAgent {
console.log( " ~~~ ~~~ oPackCmp , oFetchConf | " , oPackCmp , oFetchConf )
const oResp = await fetch( neodigmOpt.API_baseURI + neodigmOpt.API_ver + "/wdgt/sndbx/create/", oFetchConf )
const jsResp = await oResp.json();
if( jsResp && jsResp?.guid ){
jsResp.guid = neodigmOpt.API_baseURI + neodigmOpt.API_ver + "/wdgt/qr/" + jsResp.guid
if( jsResp && jsResp?.qr_uri ){
jsResp.qr_uri = neodigmOpt.API_baseURI + neodigmOpt.API_ver + "/wdgt/qr/" + jsResp.qr_uri
}
console.log( " ~~~ ~~~ jsResp.guid | " , jsResp.guid )
console.log( " ~~~ ~~~ jsResp.qr_uri | " , jsResp.qr_uri )
if( jsResp && fCB ) fCB( jsResp )
}
}
Expand Down
3 changes: 2 additions & 1 deletion dist/widgets/case_conversion/case_conversion__templ.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
<p class="readampm">You’ve copied the link, now follow through. Paste it into an email, Slack, or scan the QR code. Share it!</p>
<br>
<div class="l-qr-cntr h-center">
<img class="" style="" alt="QR Code" src="https://a55-wtt-api-v1.onrender.com/v1/wdgt/qr/999">
<img id="js-img__qr--uri" alt="QR Code">
</div>
<br>
<a id="js-wtt-sndbxshare-pup-cta__Done--id" class="" data-n55-enchanted-cta data-n55-wired4sound-click="10" data-n55-enchanted-cta-size="xsmall" data-n55-theme="ghost" data-n55-enchanted-cta-ambient="" data-n55-enchanted-cta-dont-touch="true"
Expand Down Expand Up @@ -338,6 +338,7 @@
if( eTermFrom && eTermTo ){
neodigmAgent.sandboxShare( "case_conversion", {"l-term-from": eTermFrom.value, "l-term-to": eTermTo.value }, ( jsResp )=>{
elInp = document.getElementById("wtt-sndbxshare-txtar__uri--id")
console.log( " ~~~~~ ~~~~~~ jsResp | " , jsResp )
if( elInp && jsResp && jsResp?.data ){
elInp.value = jsResp.data
neodigmUtils.typeOn({"q1st": "#wtt-sndbxshare-fb__facet1", "msg": "Many Thanks for Sharing|You Share the Best Stuff!","uniqueDelay": 59})
Expand Down

0 comments on commit 1e1bd0d

Please sign in to comment.