diffore
9/29/2017 - 2:26 PM

AD widget API

<!--do not modify this script -->
<div class='Nanorep_loadingData' id='NanorepProxyContainer' style='position:absolute;top:-500px;left:0px;'></div>
<script type='text/javascript'>var _nRepData = _nRepData || []; _nRepData['kb'] = '24218399'; _nRepData['float'] = {account: 'nisim', cdcVersion: 3, cdcFrame: '', scriptVersion: '2.19.2.2',  events:
     {
          userStartedTyping: function(){alert("user started typing");}}
     }
/* API here */;
(function(){var windowLoadFunc = function(){var _nRepData = window._nRepData || [];_nRepData['windowLoaded'] = true;if (typeof(_nRepData['windowOnload']) === 'function') _nRepData['windowOnload']();};if (window.attachEvent)window.attachEvent('onload', windowLoadFunc);else if (window.addEventListener)window.addEventListener('load', windowLoadFunc, false);var sc = document.createElement('script');sc.type = 'text/javascript';sc.async = true;sc.defer = true;sc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'my.Nanorep.com/widget/scripts/float.js';var _head = document.getElementsByTagName('head')[0];_head.appendChild(sc);})();
</script>
// Widget loaded:
load: function(){alert("widget loaded!");}
// User started typing:
userStartedTyping: function(){alert("user started typing");}
// User asked a question:
query: function(query, isAutoQuestion){alert("user asked: " + query + ". is
auto ? : " + isAutoQuestion);}
// Incoming search results:
incomingSearchResults: function(hasResults){alert("incoming search results.
has results: " + hasResults);}
// User performed escalation:
escalation: function(type, query){alert("Escalation occurred. type: " + type
+ ". user query: " + query);}
// User clicked 'Like':
like : function(query, answer){alert("User liked the answer: " + answer + "
for the query: " + query);}