npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ember-cli-zopim-live-chat

v1.1.1

Published

Plugin for ember-cli that injects Zopim Live chat code into HTML content.

Downloads

3

Readme

ember-cli-zopim-live-chat

Plugin for ember-cli that injects Zopim Live chat code into HTML content.

Installation

To install simply run:

npm install --save-dev ember-cli-zopim-live-chat

Configuration

index.html

Add {{content-for 'zopim'}} to your index.html file, just above the </body> tag.

Important, this will be below where vendor.js is included.

config/environment.js

The zopim code will be injected only if ENV.zopim.id is defined. For instance, to enable the code in only the production environment:

if (environment === 'production') {
  ENV.zopim = {
    id: 'xxx'
  };
}

Where do I find the value for id?

Zopim provides a Javascript snippet which contains your id.

Everything after the ? and before ; in the following portion of the snippet is your id:

$.src='//v2.zopim.com/?[this-is-your-id]';z.t=+new Date;$.

Config parameters

ENV.zopim.window

  • offsetVertical: Set the vertical offset of the chat window from the edge of the browser window
    • Allowed value Integer pixel value
  • offsetHorizontal: Set the horizontal offset of the chat window from the edge of the browser window in pixels
    • Allowed value Integer pixel value
  • position: Set position of the chat window.
    • Allowed values: br (Bottom right), bl (Bottom left), tr (Top right), tl (Top left)
  • size: Set the size of the chat window.
    • Allowed values: small, medium, large.
  • title: Set the title of the chat window.
    • Allowed value: String title.

Example:

if (environment === 'production') {
  ENV.zopim = {
    id: 'xxx',
    window: {
      offsetVertical: 100,
      offsetHorizontal: 120,
      position: 'br',
      size: 'small',
      title: 'Chat Support'
    }
  };
}

ENV.zopim.bubble

  • color: Set the color of the chat bubble.
    • Allowed value hexadecimal color (‘#3300cc’)

Example:

if (environment === 'production') {
  ENV.zopim = {
    id: 'xxx',
    bubble: {
      color: '#3300cc'
    }
  };
}