-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathscript.js
77 lines (69 loc) · 2.29 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
if (site) {
$("#lp_account").attr("disabled", "disabled");
$("#lp_account").val(site);
}
if (site && username) {
$("#lp_username").attr("disabled", "disabled");
$("#lp_username").val(username);
$("#lp_btn_login").hide();
lpTag.identities = [];
lpTag.identities.push(identityFn);
var usernameResult = username;
function identityFn(callback) {
callback({
iss: "LivePerson",
acr: "loa1",
sub: usernameResult
});
}
lpTag.sdes.push({"type": "ctmrinfo", "info": {customerId: usernameResult}});
window.LPJsMethodName = function (callback) {
callback(usernameResult);
};
LPGetAuthenticationToken = function(callback){
callback(usernameResult);
}
}
else {
$("#lp_form").submit(function (e) {
e.preventDefault();
var site = $("#lp_account").val();
var username = $("#lp_username").val();
var href = updateQueryStringParameter(window.location.href, "site", site);
window.location.href = updateQueryStringParameter(href, "username", username);
});
function updateQueryStringParameter(uri, key, value) {
var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i");
var separator = uri.indexOf('?') !== -1 ? "&" : "?";
if (uri.match(re)) {
return uri.replace(re, '$1' + key + "=" + value + '$2');
}
else {
return uri + separator + key + "=" + value;
}
}
}
$('#lp_lnk_setup').click(function () {
var isDescriptionDisplay = $('#lp_account_setup_description').css('display') === 'block';
$('#lp_account_setup_description').css('display', isDescriptionDisplay ? 'none' : 'block');
});
/*
FILE ARCHIVED ON 19:07:52 Dec 05, 2018 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 11:52:28 Feb 04, 2019.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/*
playback timings (ms):
LoadShardBlock: 127.332 (3)
esindex: 0.009
captures_list: 145.036
CDXLines.iter: 13.058 (3)
PetaboxLoader3.datanode: 82.336 (4)
exclusion.robots: 0.436
exclusion.robots.policy: 0.417
RedisCDXSource: 0.71
PetaboxLoader3.resolve: 60.842 (4)
load_resource: 26.998
*/