Coder Social home page Coder Social logo

jquery-hipchat-plugin's Introduction

jQuery HipChat Plugin

The jQuery HipChat Plugin is a jQuery plugin that embeds a minimal HipChat chat UI into the target page, allowing visitor to anonymously chat in a HipChat room that has public access enabled.

Requirements

  • jQuery probably any version

Getting Started

  1. Load jQuery and the plugin:

     <!-- use local jQuery if you prefer -->
     <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js" type="text/javascript"></script>
     <script src="jquery.hipchat.js" type="text/javascript"></script>
    
  2. Find your HipChat room's guest access URL:

    1. Visit the HipChat room you want to allow guest access to
    2. Click the checkbox next to "Guest access is off" if guest access is not already allowed.
    3. Right-click on the guest access URL
  3. On document ready, invoke the plugin, replacing "YOUR_GUEST_ACCESS_URL" with the copied value from above:

     $(function() {
       $('.any-div-class').hipChatPanel({
         url: "YOUR_GUEST_ACCESS_URL",
         timezone: "PST"
       });
     });
    
  4. When you reload the page, it should now have a "Chat" button that, when clicked, allows visitors to chat in your room anonymously!

Screenshots

Chat button Chat panel
Chat button Chat panel

Options

url The guest access URL for the Hipchat room. Required.
timezone The timezone for message time rendering. Can be hardcoded or determined via something like jstz. Required.
welcome The welcome message you want to show to visitors as the first message in the chat window. Optional.
noframes Content to include when iframes are disabled in the browser. Optional.
width The width of the iframe, defaults to 100%. Optional.
height The height of the iframe. Optional.

License

This project is available under the Apache License, Version 2

jquery-hipchat-plugin's People

Contributors

mrdon avatar pbojinov avatar rbergman avatar

Watchers

 avatar  avatar

Forkers

rbbrioso28

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.