ep_chat_always_on_screen_and_tokbox_link
Advanced tools
Comparing version 0.0.1 to 0.0.3
{ | ||
"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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3761
70