Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ep_chat_always_on_screen_and_tokbox_link

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ep_chat_always_on_screen_and_tokbox_link - npm Package Compare versions

Comparing version 0.0.1 to 0.0.3

2

package.json
{
"name": "ep_chat_always_on_screen_and_tokbox_link",
"description": "Chat on screen and link to tokbox based on URL param",
"version": "0.0.1",
"version": "0.0.3",
"author": {

@@ -6,0 +6,0 @@ "name": "John McLear",

@@ -11,3 +11,3 @@ Always shows chat on the screen and if a URL param of av=yes is set then it displays a link to tokbox

"ep_chat_always_on_screen_and_tobox_link": "http://linktotokbox.com/whabtever"
"ep_tokbox_link": "http://linktotokbox.com/whabtever"

@@ -14,3 +14,10 @@ var chat_always_on_screen_and_tokbox_link = {

$("#chattext").css("bottom", "100px");
$("#chatinputbox > form").html("");
var textarea = '<textarea id="chatinput" style="width:185px;height:90px;padding-left:2px;padding-top:2px;" placeholder="Type Here to Chat"></textarea>';
$("#chatinputbox > form").html(textarea);
$("#chatinput").keyup(function(e){
if(e.which == 13){
chat.send();
}
});

@@ -20,11 +27,12 @@ var tokbox_link = clientVars.tokbox_link;

if (chat_always_on_screen_and_tokbox_link.getURLParameter("av")){ // is it set?
var link = tokbox_link + "?string="+location.href;
var markup = '<p id="tokboxStart" style="cursor:pointer; cursor:hand;text-align:center;text-size:10px;font-weight:bold;text-transform:uppercase;padding-bottom:8px;">START VIDEO/AUDIO CHAT</p>';
$(markup).insertBefore("#chatinput");
$("#tokboxStart").click(function(){
window.open(link, 'utilization', 'height=700,width=350,scrollbars=1');
});
$("#chattext").css("bottom", "120px");
if(chat_always_on_screen_and_tokbox_link.getURLParameter("av") === "YES"){
var link = tokbox_link + "?string="+location.href;
var markup = '<p id="tokboxStart" style="cursor:pointer; cursor:hand;text-align:center;text-size:10px;font-weight:bold;text-transform:uppercase;padding-bottom:8px;">START VIDEO/AUDIO CHAT</p>';
$(markup).insertBefore("#chatinput");
$("#tokboxStart").click(function(){
window.open(link, 'utilization', 'height=700,width=350,scrollbars=1');
});
$("#chattext").css("bottom", "120px");
}
}

@@ -31,0 +39,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc