This repository has been archived by the owner on May 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
255 lines (220 loc) · 12.3 KB
/
index.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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> -->
<title>Happy Holidays from Shift Medical</title>
<!-- https://davidwalsh.name/blank-favicon -->
<link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon" />
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="cover.css" media="screen" title="no title" charset="utf-8">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- GOOGLE ANALYTICS -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-64524821-3', 'auto');
ga('send', 'pageview');
</script>
<!-- start Mixpanel -->
<script type="text/javascript">
(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a,e,d])};b.__SV=1.2;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f)}})(document,window.mixpanel||[]);
mixpanel.init("ea3d467e24f4e5297592ebdb7484e111");
</script>
<!-- end Mixpanel -->
</head>
<body>
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="row">
<div class="col-lg-12 col-lg-offset-0 col-md-12 col-md-offset-0 col-sm-12 col-sm-offset-0 col-xs-10 col-xs-offset-1 text-center">
<h1 class="cover-heading">Happy Holidays from <a href="https://shiftmedical.com">Shift Medical</a>!</h1>
<p class="lead">Helping organizations like yours manage daily staffing variations without the expensive agencies. <a href="https://shiftmedical.com"><i>Learn more»</i></a></p>
</div>
</div>
<div class="row" style="padding-bottom:40px">
<div style="margin-top:80px" class="image-blurred-edge col-lg-4 col-lg-offset-2 col-md-5 col-md-offset-1 col-sm-4 col-sm-offset-1 hidden-xs text-center">
</div>
<div style="margin-top:20px" class="image-blurred-edge-xs hidden-lg hidden-md hidden-sm col-xs-8 col-xs-offset-2 text-center">
</div>
<div class="col-lg-5 col-lg-offset-1 col-md-6 col-md-offset-1 col-sm-5 col-smcol-xs-offset-1-offset-0 col-xs-10 col-xs-offset-1 text-center">
<div class="row" style="padding-bottom:15px;">
<div class="col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1 col-sm-10 col-sm-offset-1 col-xs-12">
<h3 class="lead" style="margin-bottom:0px">Have a cup of coffee on us!</h3>
<p style="color: rgb(5, 3, 115);margin-bottom:0px"><i>Please fill out the form below to redeem your digital gift card.</i></p>
</div>
</div>
<div class="row">
<div id="formHolder" class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-body">
<form id="callus" target="_self" onsubmit="" action="javascript: postToGoogle()">
<fieldset class="form-group">
<label for="InputName">Your Name</label>
<input type="text" class="form-control" name="InputName" id="InputName" placeholder="First & Last Name">
<small style="color: rgb(5, 3, 115);">We'll never share your name with anyone else.</small>
</fieldset>
<fieldset class="form-group">
<label for="InputEmail">Email Address</label>
<input type="email" class="form-control" name="InputEmail" id="InputEmail" placeholder="E-mail Address">
<small style="color: rgb(5, 3, 115);">We'll never share your email with anyone else.</small>
</fieldset>
<fieldset class="form-group">
<label for="InputPhone">Phone Number</label>
<input type="tel" class="form-control" name="InputPhone" id="InputPhone" placeholder="Phone Number">
<small style="color: rgb(5, 3, 115);">We'll never share your phone number with anyone else.</small>
</fieldset>
<fieldset class="form-group">
<label for="InputOrg">Your Organization's Name</label>
<input type="text" class="form-control" name="InputOrg" id="InputOrg" placeholder="Organization Name">
</fieldset>
<button id="send" type="submit" class="btn btn-primary">Submit</button>
<div class="row">
<div class="col-lg-12 text-right col-md-12 col-sm-12 col-xs-12">
<small style="color: rgb(5, 3, 115);">*one card limit per organization.</small>
</div>
</div>
<div style="width: 100%; display: block; float: right; padding-top: 15px;">
<div class="requestSubmited" style="display:none; text-align: center;">Your information was successfully submitted and your gift card is being sent. Happy Holidays!</div>
<script type="text/javascript">
mixpanel.track_forms("#callus", "Form Submitted Again");
</script>
</div>
</form>
<div>
<a class="btn btn-block btn-primary" id="button_id">Button</a>
<script type="text/javascript">
mixpanel.track_links("#button_id", "Clicked Button", function(ele) { return { type: $(ele).attr('type')}});
</script>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="mastfoot">
<p>© 2015 Shift Medical, Inc.</p>
</div>
</div>
</div>
<!-- SUBMISSION SCRIPT TO PUSH DATA INTO GOOGLE DOC SPREADSHEET -->
<script type="text/javascript">
function postToGoogle(){
var name = $('#InputName').val();
var email = $('#InputEmail').val();
var phone = $('#InputPhone').val();
var org = $('#InputOrg').val();
if ((name !== "") && (email !== "") && (phone !== "") && (org !== "")) {
$.ajax({
url: "https://docs.google.com/a/shiftmedical.com/forms/d/1pXyYx4_PwNUN4hNBSJmazHzZ0NtIGDRVhmKhlo_J-w0/formResponse",
data: {"entry.1447296846" : name, "entry.819991632" : email, "entry.2125901949": phone, "entry.1927266755": org},
type: "POST",
dataType: "xml",
statusCode: {
0: function (){
$('#InputName').val();
$('#InputEmail').val();
$('#InputPhone').val();
$('#InputOrg').val();
$("#formHolder").html("<h3>Success! Your digital coffee card will be sent to the e-mail address that you provided within 24 hours.</h3>");
}
}
});
}
else {
alert('Please fill in all of the required fields to receive your digital gift card. Thanks!');
}
}
</script>
<!-- BOOSTRAP -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<!-- GOOGLE PLACES AUTOFILL -->
<script>
// This example displays an address form, using the autocomplete feature
// of the Google Places API to help users fill in the information.
var placeSearch, autocomplete;
var componentForm = {
name: 'short_name',
street_number: 'short_name',
route: 'long_name',
locality: 'long_name',
administrative_area_level_1: 'short_name',
country: 'long_name',
postal_code: 'short_name'
};
function initAutocomplete() {
// Create the autocomplete object, restricting the search to geographical
// location types.
autocomplete = new google.maps.places.Autocomplete(
/** @type {!HTMLInputElement} */(document.getElementById('InputOrg')),
{types: ['establishment']});
// When the user selects an address from the dropdown, populate the address
// fields in the form.
autocomplete.addListener('place_changed', fillInAddress);
}
// [START region_fillform]
function fillInAddress() {
// Get the place details from the autocomplete object.
var place = autocomplete.getPlace();
for (var component in componentForm) {
document.getElementById(component).value = '';
document.getElementById(component).disabled = false;
}
// Get each component of the address from the place details
// and fill the corresponding field on the form.
for (var i = 0; i < place.address_components.length; i++) {
var addressType = place.address_components[i].types[0];
if (componentForm[addressType]) {
var val = place.address_components[i][componentForm[addressType]];
document.getElementById(addressType).value = val;
}
}
var placeName = 'name';
document.getElementById(placeName).value = place.name;
var placeName = 'InputOrg';
document.getElementById(placeName).value = place.name;
}
// [END region_fillform]
// [START region_geolocation]
// Bias the autocomplete object to the user's geographical location,
// as supplied by the browser's 'navigator.geolocation' object.
function geolocate() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
var geolocation = {
lat: position.coords.latitude,
lng: position.coords.longitude
};
var circle = new google.maps.Circle({
center: geolocation,
radius: position.coords.accuracy
});
autocomplete.setBounds(circle.getBounds());
});
}
}
// [END region_geolocation]
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBoOm4LkeG6McEsvb1FVLKzGfMrFTNVh40&signed_in=true&libraries=places&callback=initAutocomplete"
async defer></script>
</body>
</html>