(function(){ class SPZCustomToast extends SPZ.BaseElement { constructor(element) { super(element); } isLayoutSupported(layout) { return layout === SPZCore.Layout.LOGIC; } buildCallback(){ /* this.registerAction('showToast', (invocation) => { console.info('[showToast]',invocation.args ); }); */ console.info('[build toast]', ); window.customToast = (message, type) => { const msg = (type == 'error'? '❗ ' : "😀 ") + message; const toast = document.querySelector('#custom_solution_toast'); SPZ.whenApiDefined(toast).then(apis=>{ apis.showToast(msg, 3000); }) } } } SPZ.defineElement('spz-custom-toast', SPZCustomToast); })() class SpzCustomProductImpression extends SPZ.BaseElement { constructor(element) { super(element); } isLayoutSupported(layout) { return true; } mountCallback() { const script = this.element; let isInView = false; const rootSelecter = script.getAttribute('root-selector') || 'spz-product-snippet'; const root = script.closest(rootSelecter); const callback = (entries, observer) => { entries.forEach(entry => { if (entry.isIntersecting && !isInView) { isInView = true; window.csTracker.track('impression', { name: this.element.getAttribute('product-title'), id: this.element.getAttribute('product-id'), }); window.csTracker.track('function_expose', { event_name: 'function_expose', event_type: 'expose', event_info: JSON.stringify({ skit_user_id: window.csTracker.getSkitUid(), product_ids: [this.element.getAttribute('product-id')], expose_type: 1 }), }, ['sa']); console.log('Product in view', this.element.getAttribute('product-id')); } }) }; const observer = new IntersectionObserver(callback, { threshold: 1 }); observer.observe(root); } } SPZ.defineElement('spz-custom-product-impression', SpzCustomProductImpression);

  • Log in
  • Create an account
  • All
  • More links
All

  • All
  • Log in
  • Create an account
  • (function(){ let w = window.innerWidth; function setHeaderCssVar() { const headerEle = document.getElementById('shoplaza-section-header'); if(!headerEle){ return }; document.body.style.setProperty('--window-height', `${window.innerHeight}px`); document.body.style.setProperty('--header-height', `${headerEle.clientHeight}px`); const mdScorllHideEle = headerEle.querySelector('.header__mobile .header__scroll_hide'); if (mdScorllHideEle) { document.body.style.setProperty('--header-scroll-hide-height-md', `${mdScorllHideEle.clientHeight}px`); } const pcScorllHideEle = headerEle.querySelector('.header__desktop .header__scroll_hide'); if (pcScorllHideEle) { document.body.style.setProperty('--header-scroll-hide-height-pc', `${pcScorllHideEle.clientHeight}px`); } } function handlResize() { if(w == window.innerWidth){return}; w = window.innerWidth; setHeaderCssVar(); }; function init(){ setHeaderCssVar(); window.removeEventListener('resize', window._theme_header_listener) window._theme_header_listener = handlResize; window.addEventListener('resize', window._theme_header_listener); } init(); })();

    Featured collection

    View more >>
    View more

    The Unforgettable Love

    from $0.00 $9.90

    I think my wife wants to kill me.S2

    from $0.00 $9.90

    The Billionaire’s Vow

    from $0.00 $9.90

    Marry The Wrong Bride

    from $0.00 $9.90

    The Winter Veil

    from $0.00 $9.90

    Billionaire Daughter’s Love Triangle

    from $0.00 $9.90

    Married To A Stranger

    from $0.00 $9.90

    Collateral Hearts

    from $0.00 $9.90

    Undercovered Heart

    from $0.00 $9.90

    Featured collection

    View more >>
    View more

    Married To A Stranger

    from $0.00 $9.90

    One Night, One Forever

    from $0.00 $9.90

    The Escaping Mistres

    from $0.00 $9.90

    Do Not Deceive Me

    from $0.00 $9.90

    I Think My Wife Wants To Kill Me

    from $0.00 $9.90

    On One Condition

    from $0.00 $9.90

    If Only You Were Mine

    from $0.00 $9.90

    The Billionaire’s Vow

    from $0.00 $9.90

    Marry The Wrong Bride

    from $0.00 $9.90

    Products list

    Married To A Stranger

    from $0.00 $9.90

    One Night, One Forever

    from $0.00 $9.90

    I Think My Wife Wants To Kill Me

    from $0.00 $9.90

    Do Not Deceive Me

    from $0.00 $9.90

    The Escaping Mistres

    from $0.00 $9.90

    Marry The Wrong Bride

    from $0.00 $9.90

    The Marriage Contract

    from $0.00 $9.90

    On One Condition

    from $0.00 $9.90

    Married To A Stranger

    from $0.00 $9.90

    One Night, One Forever

    from $0.00 $9.90

    I Think My Wife Wants To Kill Me

    from $0.00 $9.90

    Do Not Deceive Me

    from $0.00 $9.90

    The Escaping Mistres

    from $0.00 $9.90

    Marry The Wrong Bride

    from $0.00 $9.90

    The Marriage Contract

    from $0.00 $9.90

    On One Condition

    from $0.00 $9.90

    Destined To Be

    from $0.00 $9.90
    View more

    ABOUT

    • Terms of Service
    • Privacy Policy
    • Cancellation Policy

    ABOUT

    • Terms of Service
    • Privacy Policy
    • Cancellation Policy

    CONTACT US

    • support@idrama.co

    CONTACT US

    • support@idrama.co
     All Rights Reserved. 2025 iDrama Inc
    Add 'iDrama' to the desktop.
    Add 'iDrama iOS' to the desktop
    1. Click on the toolbar 2. Select “Add to Home Screen”.