Skip to content

Instantly share code, notes, and snippets.

{
"Client.All.AgentTyping": "担当者がメッセージを入力中です...",
"Client.All.Close": "閉じる",
"Client.All.ConfirmEndSession": "このチャットを終了されますか?",
"Client.All.EmailChat": "チャットをEメールで送信",
"Client.All.EndSession": "チャットを終了する",
"Client.All.ErrorNoEmail": "Please enter an email address.",
"Client.All.ErrorNoMessage": "Please enter a message.",
"Client.All.ErrorUndefined": "申し訳ございません。問題が発生しました。",
"Client.All.FailedReconnect": "Reconnect failed",
{
"Client.All.AgentTyping": "Agent is Typing...",
"Client.All.Close": "Close",
"Client.All.ConfirmEndSession": "Would you like to end this chat session?",
"Client.All.EmailChat": "Email Chat",
"Client.All.EndSession": "End Session",
"Client.All.ErrorNoEmail": "Please enter an email address.",
"Client.All.ErrorNoMessage": "Please enter a message.",
"Client.All.ErrorUndefined": "Sorry, something went wrong!",
"Client.All.FailedReconnect": "Reconnect failed",
@grantmiller
grantmiller / lp-mobile-unsupported-basic.html
Last active December 14, 2015 07:29
for basic html async integrations... please add the "chatDisabled : true" to your configuration
<script type="text/javascript">
/* LP Mobile JS Configuration */
var _LP_CFG_ = {
app_id : "YOUR_MOBILE_SITE_ID",
options : {
chatDisabled : true
}
};
/* End of Configuration */
</script>
@grantmiller
grantmiller / lp-native-ios-strings
Created February 12, 2013 00:12
LP Mobile Native iOS Strings to be translated
"LIOEmailPlaceholder" = "[email protected]";
"LIOAltChatViewController.EmailChatButton" = "Email Chat";
"LIOAltChatViewController.EndSessionButton" = "End Session";
"LIOAltChatViewController.ReconnectionLabel" = "Reconnecting...";
"LIOAltChatViewController.ReconnectionHideButton" = "Hide";
"LIOAltChatViewController.LocalNameLabel" = "Me";
"LIOAltChatViewController.AgentTypingNotification" = "Agent is typing...";
"LIOChatBubbleView.LinkAlert" = "Are you sure you want to leave the app and visit \"%@\"?";
@grantmiller
grantmiller / Chinese TC native strings
Created February 8, 2013 18:55
LP Mobile Strings traditional chinese
"LIOEmailPlaceholder" = "[email protected]";
"LIOAltChatViewController.EmailChatButton" = "Email Chat";
"LIOAltChatViewController.EndSessionButton" = "End Session";
"LIOAltChatViewController.ReconnectionLabel" = "Reconnecting...";
"LIOAltChatViewController.ReconnectionHideButton" = "Hide";
"LIOAltChatViewController.LocalNameLabel" = "Me";
"LIOAltChatViewController.AgentTypingNotification" = "Agent is typing...";
"LIOChatBubbleView.LinkAlert" = "Are you sure you want to leave the app and visit \"%@\"?";
@grantmiller
grantmiller / lp-mobile-strings.erl
Last active December 11, 2015 23:59
Chinese SC Strings for LP Mobile iOS
"LIOEmailPlaceholder" = "[email protected]";
"LIOAltChatViewController.EmailChatButton" = "电邮谘询";
"LIOAltChatViewController.EndSessionButton" = "结束会话";
"LIOAltChatViewController.ReconnectionLabel" = "正在重新连接...";
"LIOAltChatViewController.ReconnectionHideButton" = "隐藏";
"LIOAltChatViewController.LocalNameLabel" = "我";
"LIOAltChatViewController.AgentTypingNotification" = "客户服务代表正在输入...";
"LIOChatBubbleView.LinkAlert" = "您要离开这个应用程式,然后浏览\"%@\"吗?";
- (id)lookIOManager:(LIOLookIOManager *)aManager linkViewForURL:(NSURL *)aURL
{
if ([[aURL host] isEqualToString:@"product"])
{
NSString *numString = [aURL lastPathComponent];
if ([numString length])
{
int productId = [numString intValue];
if (productId < 6 && productId >= 0)
{
<!-- NEW LIVE PERSON CODE -->
<script type="text/javascript">
/* LP Mobile JS Configuration */
var _LP_CFG_ = {
app_id : "f2c05834",
options : {
// All configuration options defined in here
extras : function() { // A static dictionary or a function that returns a dictionary of custom variables
var extras = {'keyCode': '000016726'};
return extras;
@grantmiller
grantmiller / gist:4004997
Last active October 12, 2015 09:17
LP Mobile Web Integration Async: Basic
<script type="text/javascript">
/* LP Mobile JS Configuration */
var _LP_CFG_ = {
app_id : "YOUR_MOBILE_SITE_ID"
};
/* End of Configuration */
</script>
@grantmiller
grantmiller / gist:4004805
Last active October 12, 2015 09:18
LP Mobile Aysnc Advanced Integration Options
<script type="text/javascript">
/* LP Mobile JS Configuration */
var _LP_CFG_ = {
app_id : "YOUR_MOBILE_SITE_ID",
options : {
// All configuration options defined in here
//chatDisabled : true, // Only to be used on unsupported pages
triggerSelector : '.help-btn', // Replace with a selector to your help button(s)
extras : function() { // A static dictionary or a function that returns a dictionary of custom variables
var extras = {'varName1': 'varValue1',