Initiostar...
I got it to work following Acorn's thread. It shows up great on the wide version which is the default! But now on the main and mobile nothing will display. I placed the <span id = “variant0”></span> etc. on each variant (0 for mobile, 1 for main and 3 for wide)
I'm wondering if in the website body code portion (const bkpt = [960, 10000] that I may have the widths incorrect?
My site variants: Mobile 480px up to 720 / Main 960 for between 720-1120 / Wide 1280 for 1120 and above.
My site html:
<script>
var chkVrnt;
const bkpt = [640, 1120, 16000];
function chkWidth(bp) { return bp >
window.innerWidth; }
var vrnt = bkpt.findIndex(chkWidth);
var form = $('#wrapper').appendTo('#variant' + vrnt);
window.onresize = function() {
vrnt = bkpt.findIndex(chkWidth);
if (chkVrnt != vrnt) {
//console.log("Viewport Width: " +
window.innerWidth + " - Breakpoint: " + chkVrnt + "/" + vrnt);
vrnt = bkpt.findIndex(chkWidth);
form = $('#wrapper').appendTo('#variant' + vrnt);
chkVrnt = bkpt.findIndex(chkWidth);
}
}
</script>
Did I mess something up? Thanks.
This is the page:
https://lpscu.com/my-mortgage.htm
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
Thanks. Made that change but it didn't correct anything. For the <span id = “variant0”></span> I have those placeholders off the page, on the widget page. That shouldn't matter, should it?
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
Confirmed that is correct. Still won't show up. Interesting that nothing on mouseoff layer will show on mobile version. Only a gray bar that is on page background. Is my widget code correct with the wrapper:
<span id =”variant1”>
<div id="wrapper" style="width: 100%; height: auto;">
<script src='https://widget.ellieservices.com/latest/launcher.js'></script>
<div class="em-widget"
data-width="100%"
data-height="800px"
data-min-height="800px"
data-site-id="7633173807"
data-config='{"externalLoginWindow":"false"}'
data-name="ecc-borrower-portal"
data-aria-label="Borrower Portal"
>
</div>
</span>
Thanks!
You are probably getting nothing as you haven't ended the outer <div> at all.
Without seeing your design, is this code in Main?Code:<span id =”variant1”> <div id="wrapper" style="width: 100%; height: auto;"> <script src='https://widget.ellieservices.com/latest/launcher.js'></script> <div class="em-widget" data-width="100%" data-height="800px" data-min-height="800px" data-site-id="7633173807" data-config='{"externalLoginWindow":"false"}' data-name="ecc-borrower-portal" data-aria-label="Borrower Portal" > </div> </div> </span>
If so, it probably should be variant2 as well.
Do just correct one thing at a time though.
Acorn
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
It's in the wide variant and not in main or mobile. I'll only add it to main and see if it shows up.
Bookmarks