Skip to content

Options (JavaScript API)

Modify and customize chat widget differently on each page.

html
<script>
  window.screetsxi = {
    appid: "YOUR_APP_ID",

    /* Appearance */
    show: true, // force to show/hide on this page
    leadColor: '#e44444', // primary lead color
    linkColor: '#1292ee', // link and button colors
    pos: "right", // left or right
    offsetX: 25, // px (horizontal offset)
    offsetY: 20, // px (vertical offset)
    starterSize: 60, // px (starter button width)
    popupSize: 388, // px (popup width)

    /* Mobile appearance */
    offsetX_mob: 15, // px (horizontal offset on mobile)
    offsetY_mob: 15, // px (vertical offset on mobile)
    starterSize_mob: 45, // px (starter button width on mobile)
  };
</script>

TIP

You can find APP_ID on "Installation" settings page in your chat console.

Appearance options

Some pages needs different appearance from your other pages.

For instance, you've landing page where another colors is applied. Instead of changing options across whole your website, it's possible to set different colors for specific pages.

PropertyDefaultDescription
showtrueForce to show/hide on this page
leadColor"#e44444"Primary lead color
linkColor"#1292ee"Link and button colors
pos"right"Left or right
offsetX25px (horizontal offset)
offsetY20px (vertical offset)
starterSize60px (starter button width)
popupSize388px (popup width)

Appearance for mobile devices

PropertyDefaultDescription
offsetX_mob15px (horizontal offset on mobile)
offsetY_mob15px (vertical offset on mobile)
starterSize_mob45px (starter button width on mobile)