forked from seaskymonster/web-reference-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CallingCard.html
204 lines (179 loc) · 9.93 KB
/
CallingCard.html
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!DOCTYPE html>
<html lang="en-US">
<head>
<link rel='stylesheet' href="assets/css/style.css" type='text/css' media='all' />
<link rel='stylesheet' href="assets/css/style-custom.css" type='text/css' media='all' />
<link rel='stylesheet' href="assets/css/bbpress.css" type='text/css' media='all' />
<body onload="initialize()" class="home page page-id-11 page-template page-template-template-front-page page-template-template-front-page-php">
<!-- #header -->
<header id="header" class="clearfix" role="banner">
<div class="ht-container">
<div id="header-inner" class="clearfix">
<!-- #logo -->
<div id="logo">
<a title="Acme" href="index.html">
<i class="icon logo" >ACME</i>
</a>
</div>
<!-- /#logo -->
<!-- #primary-nav -->
<nav id="primary-nav" role="navigation" class="clearfix">
<ul id="menu-primary-nav" class="nav sf-menu clearfix">
<li class="menu-item "><a href="#">Domains</a></li>
<li class="menu-item "><a href="#">Websites</a></li>
<li class="menu-item "><a href="#">Email</a></li>
<li class="menu-item "><a href="#">Marketing</a></li>
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children "><a href="#">Support +</a>
<ul class="sub-menu">
<li class="menu-item"><a href="support1.html">Support1</a></li>
<li class="menu-item"><a href="support2.html">Support2</a></li>
<li class="menu-item"><a href="support3.html">Support3</a></li>
<li class="menu-item "><a href="CallingCard.html">Calling Card</a></li>
</ul>
</li>
</ul>
</nav>
<!-- #primary-nav -->
</div>
</div>
</header>
<!-- /#header -->
<!-- #page-header -->
<div id="page-header"class="clearfix" style="text-align:left">
<div class="ht-container">
<h1>Calling Card</h1>
<p>Need help with an Acme product?</p>
</div>
</div>
<!-- /#page-header -->
<!-- #breadcrumbs -->
<div id="page-subnav" class="clearfix">
<div class="ht-container">
<div id="breadcrumbs"><a href="#Calling Card">Home</a><span class="sep">/</span>Calling Card</div></div>
</div>
<!-- /#breadcrumbs -->
<!-- #primary -->
<div id="primary" class="sidebar-off clearfix">
<div class="ht-container">
<!-- #content -->
<section id="content" role="main">
<article id="post-33" class="post-33 page type-page status-publish hentry">
<div class="modal2">
<div style="width: 500px; height: 30px; padding: 5px 15px; border: 0px; border-radius: 2px 2px 0px 0px; background: rgb(99, 99, 99);cursor: move;">
<span style="color: rgb(243, 243, 243); font-size: 15px; font-weight: bold; line-height: 15px;">Get Live Help</span>
<span id="close_live_help"title="Hide" style="cursor: pointer; width: 15px; height: 15px; color: rgb(243, 243, 243); position: absolute; top: 2px; right: 10px; font-weight: bold; text-align: center;">x</span>
</div>
<div style="position:absolute;width:530px;height:510px;" id="container_for_live_support"></div>
</div>
<div class="content">
</div>
</article>
</section>
<!-- #content -->
</div>
</div>
<!-- #primary -->
<!-- #footer-bottom -->
<footer id="footer" class="clearfix">
<div id="footer-widgets" class="clearfix">
<div class="ht-container">
<div class="row">
<div id="text-3" class="column col-third widget widget_text"><h4 class="widget-title"><span>About Acme</span></h4>
<div class="textwidget"><p>Acme is a domain register and web hosting company.</p>
<p>Grow your business by settings up a website and email accounts.</p>
</div>
</div>
<div id="st_blog_widget-3" class="column col-third widget st_blog_widget">
<h4 class="widget-title"><span>Latest News</span></h4>
<ul class="clearfix">
<li class="clearfix has_thumb">
<div class="entry-thumb">
<a href="" rel="nofollow">
<img width="60" height="60" src="http://dr57u1lgwukd1.cloudfront.net/supportdesk/wp-content/uploads/sites/2/2013/03/photodune-4086091-hard-work-m-60x60.jpg?d6b1d9" class="attachment-post-thumbnail wp-post-image" alt="photodune-4086091-hard-work-m" /> </a>
</div>
<a class="entry-title" href="" rel="bookmark">Take The Hardwork Out Of Support</a>
<div class="entry-meta"><time datetime="2013-03-18">March 18, 2013</time></div>
</li>
<li class="clearfix has_thumb">
<div class="entry-thumb">
<a href="" rel="nofollow">
<img width="60" height="60" src="http://dr57u1lgwukd1.cloudfront.net/supportdesk/wp-content/uploads/sites/2/2013/03/photodune-369921-handshaking-m-60x60.jpg?d6b1d9" class="attachment-post-thumbnail wp-post-image" alt="Handshaking" /> </a>
</div>
<a class="entry-title" href="" rel="bookmark">Our New Partnership With Handshake</a>
<div class="entry-meta"><time datetime="2013-03-18">March 18, 2013</time></div>
</li>
</ul>
</div>
<div id="categories-3" class="column col-third widget widget_categories"><h4 class="widget-title"><span>News Categories</span></h4> <ul>
<li class="cat-item cat-item-2"><a href="" >Announcements</a></li>
<li class="cat-item cat-item-3"><a href="" >How-To</a></li>
<li class="cat-item cat-item-4"><a href="" >Strategy</a></li>
</ul>
</div>
</div>
</div>
</div>
<div id="footer-bottom" class="clearfix">
<div class="ht-container">
<small id="copyright" role="contentinfo">Copyright © A Hero Theme.</small>
<nav id="footer-nav" role="navigation">
<ul class="nav-footer clearfix">
<li class="menu-item menu-item-type-post_type menu-item-object-page current_page_item"><a href="index.html">Home</a></li>
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children"><a href="#">Domains</a></li>
<li class="menu-item menu-item-type-custom menu-item-object-custom "><a href="#">Websites</a></li>
<li class="menu-item menu-item-type-custom menu-item-object-custom "><a href="#">Email</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page "><a href="#">Marketing</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page "><a href="support1.html">Support</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page "><a href="CallingCard.html">Calling Card</a></li>
</ul>
<p class="nav-footer clearfix">Use of this site is subject to <a href="https://github.com/seaskymonster/web-reference-app/blob/master/Nexus%20Connect%20JavaScript%20Reference%20App%20EULA%202015-10-13.pdf">Terms and Conditions</a> and <a href="http://www.support.com/legal/site-privacy-policy/">Privacy Policy</a></p>
</nav>
</div>
</div>
</footer>
<!-- /#footer-bottom -->
<script src="assets/js/jquery.min.js"></script>
<script src="https://static.nexus.support.com/client/v1/nexus-connect-sdk.js"></script>
<script>
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
};
function initialize() {
var token = localStorage.getItem('token');
if(!token) {
token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0IjoibXljb21wYW55IiwiZCI6Im5leHVzLnN1cHBvcnQuY29tIiwicHJtIjpbImxvZzoqIiwic2Vzc2lvbjpjb25uZWN0Il0sImp0aSI6IjYyMDhlYTRhLWJiZWEtNDQwYi05MjUzLTljYWJjYWNhMzMyYiIsImFwcCI6ImNydW1TUyIsInZlciI6ImNydW1TUyAxLjAiLCJwbHQiOiJicm93c2VyIiwiaWF0IjoxNDQzNTU1MDI1LCJhdWQiOlsiYXBwIiwiYXBpIl0sImlzcyI6IlN1cHBvcnQuY29tIn0.3qN0m6izKRyWGaP334yV-kudFTtZ6jQCpTM2Ne-wB9Y';
}
if(token) {
console.log(token);
try {
NexusConnectSDK.initialize(token);
return token;
}catch(e){
console.log(e);
$("#jwt_token_error").append(html);
}
}else{
$("#jwt_token_error").append(html);
}
};
$(document).ready(function() {
var token = initialize();
var fname = "John";
var lname = "Doe";
var email = '[email protected]';
var phone = Math.floor(Math.random() * 10000000000);
var externalId = Math.floor((Math.random() * 10000));
NexusConnectSDK.setEmail(email).setFirstName(fname).setLastName(lname).setPhone(phone).setExternalId(externalId);
NexusConnectSDK.showLiveHelp(document.getElementById('container_for_live_support'), {
'phone': '(408)-830-7906',
'skill': 'Sales',
'remoteConnectionType': 'remote'
});
$('.modal').show();
});
</script>
</body>
</html>