Developers & Integrators

'Emote It' Sentiment Poll

The Emugu "Emote It" button allows users to express real sentiment on any content or item on any 3rd party web-site. This can be anything from news, events, food, music, technology, pop culture, politics, products, services, people, and many more. Integration is seamless and easy, and provides you real insights in real-time.


Basic Requirement

To use the Emote It feature, you need to include the following in your html page:

  • jQuery 1+ (or higher)
  • Emugu's Emote-It Script
  • Emugu's Emote-It CSS

These can be added to your <head>...</head> section. See sample code fragment below:

<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="//www.emugu.com/rsc/plugs/xpoll/js/emoteit.js"></script>
<link rel="stylesheet" type="text/css" href="//www.emugu.com/rsc/plugs/xpoll/css/xpoll.css">

Basic Poll Sample

A quick and simple poll with all available sentiment options. The poll is associated with the page's url address.

<div id="emoteit"></div>
<script>
 (new EmoteIt()).add({ id: 'emoteit' }).load();
</script>
Program, Content, News, Events...

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget magna vitae tellus condimentum sollicitudin quis a leo.


Multiple Polls Sample

If a page contains multiple entries (ie. products, services, articles, etc.), you can name each entry with a custom and unique identifier. The identifier should be unique for the web server hosting the page.

<div id="emoteit1"></div>
...
<div id="emoteit2"></div>
<script>
 (new EmoteIt())
          .add({ id: 'emoteit1', entry: 'product-a' })
          .add({ id: 'emoteit2', entry: 'product-b' })
          .load();
</script>
Product A
Product B

Sentiment Type Sample

The list of sentiment options can be tailored for a particular entry.

<div id="emoteit"></div>
<script>
 (new EmoteIt()).add({
          id: 'emoteit',
          entry: 'my entry',
          polltype: EmoteIt.prototype.KPOLL_HAPPY_SAD
     }).load();
</script>
List of poll types:
  • KPOLL_ALL (0) - (Default) All sentiments and intensities
  • KPOLL_BASIC (1) - Basic sentiments only
  • KPOLL_HAPPY_SAD (2) - Range of happy to sad sentiments
  • KPOLL_POS_NEG (3) - Positive or negative sentiments
  • KPOLL_LOVE_HATE (4) - Range of love and hate sentiments
  • ...
For custom or user-defined sentiments, please contact Emugu Help Desk with request.
My Health...

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget magna vitae tellus condimentum sollicitudin quis a leo.


Sentiment w/ Location Sample

Location tracking by default is disabled. It may be enabled by setting the 'gps' flag. If enabled, location information will be sent only if the end-user gives permission per browser protocol. Host (or integrator) of poll should inform user if and why they are requesting for location.

<div id="emoteit"></div>
<script>
 (new EmoteIt()).add({
          id: 'emoteit',
          entry: 'my entry',
          polltype: EmoteIt.prototype.KPOLL_HAPPY_SAD,
          gps: true
     }).load();
</script>
My Sentiment...

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget magna vitae tellus condimentum sollicitudin quis a leo.


Auto Sentiment w/ Div Attributes

Emote It can also be initialized without additonal scripting through DIV attributes. The DIV must have the class .emoteit-auto .

<div id="my_auto_1" class="emoteit-auto" 
   data-entry="my entry 1" data-polltype="1" data-gps="0" ></div>
<div id="my_auto_2" class="emoteit-auto"
   data-entry="my entry 2" data-polltype="2" data-gps="0" ></div>
<div id="my_auto_3" class="emoteit-auto"
   data-entry="my entry 3" data-polltype="3" data-gps="0" ></div>

Customizations

'Emote It' sentiment poll supports a range of customizations to allow developers and integrations to better integrate sentiment polling into their own web interface or application with ease. For more information please send request to Emugu Help Desk with your particular use case or scenario.

Contact Us

Questions & Support

Have questions or need support? Please send your request to Emugu Help Desk.