Banner

This parameter allows you to display a promotional banner

Implementation



Available parameters

Parameter libParameter WebDescription
banner.mobileImgbannerMobileImgSend the url of the promotional banner in mobile (optional)
By default nothing is shown
banner.desktopImgbannerDesktopImgSend the url of the promotional banner in desktop (optional)
By default nothing is shown

Code

<!DOCTYPE html>
<head>
    <title>LSW v3 Embed</title>
</head>
<body>
    <div id="instaleap-lsw-v3"></div>
</body>

<script src="https://xandar-lsw-v3.instaleap.io/lib/chat.js"></script>
<script>
    const params = {
        job: "myJob",
        token: "myToken",
        container: "#instaleap-lsw-v3",                  
        banner: {
          mobileImg: "url",
          desktopImg: "url",
        }
    }
    window.instaleap.chat.render(params)
</script>
</html>
https://xandar-lsw-v3.instaleap.io/chat?job=myJoB&token=myToken&bannerDesktopImg=url&bannerMobileImg=url

Demo


🤓

NOTE: Please do not modify the Demo, this is a visual aid.


bannerDesktopImg

bannerMobileImg