retreaverjs-rails 0.2.20 → 0.2.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/retreaverjs/rails/version.rb +1 -1
- data/package.json +1 -1
- data/src/retreaver/campaign.js +45 -9
- data/vendor/assets/javascripts/retreaver.js +45 -9
- data/vendor/assets/javascripts/retreaver.min.js +2 -2
- data/vendor/documentation/javascript/dev/Retreaver.Campaign.html +654 -0
- data/vendor/documentation/javascript/dev/Retreaver.Number.html +1615 -0
- data/vendor/documentation/javascript/dev/Retreaver.html +330 -0
- data/vendor/documentation/javascript/dev/campaign.js.html +268 -0
- data/vendor/documentation/javascript/dev/global.html +232 -0
- data/vendor/documentation/javascript/dev/index.html +67 -0
- data/vendor/documentation/javascript/dev/number.js.html +274 -0
- data/vendor/documentation/javascript/dev/retreaver.js.html +84 -0
- data/vendor/documentation/javascript/dev/scripts/linenumber.js +17 -0
- data/vendor/documentation/javascript/dev/scripts/prettify/Apache-License-2.0.txt +202 -0
- data/vendor/documentation/javascript/dev/scripts/prettify/lang-css.js +2 -0
- data/vendor/documentation/javascript/dev/scripts/prettify/prettify.js +28 -0
- data/vendor/documentation/javascript/dev/styles/jsdoc-default.css +290 -0
- data/vendor/documentation/javascript/dev/styles/prettify-jsdoc.css +111 -0
- data/vendor/documentation/javascript/dev/styles/prettify-tomorrow.css +132 -0
- data/vendor/documentation/javascript/v1/Retreaver.Campaign.html +3 -3
- data/vendor/documentation/javascript/v1/Retreaver.Number.html +1 -1
- data/vendor/documentation/javascript/v1/Retreaver.html +1 -1
- data/vendor/documentation/javascript/v1/campaign.js.html +46 -10
- data/vendor/documentation/javascript/v1/global.html +2 -2
- data/vendor/documentation/javascript/v1/index.html +1 -1
- data/vendor/documentation/javascript/v1/number.js.html +1 -1
- data/vendor/documentation/javascript/v1/retreaver.js.html +1 -1
- metadata +17 -2
@@ -0,0 +1,132 @@
|
|
1
|
+
/* Tomorrow Theme */
|
2
|
+
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
|
3
|
+
/* Pretty printing styles. Used with prettify.js. */
|
4
|
+
/* SPAN elements with the classes below are added by prettyprint. */
|
5
|
+
/* plain text */
|
6
|
+
.pln {
|
7
|
+
color: #4d4d4c; }
|
8
|
+
|
9
|
+
@media screen {
|
10
|
+
/* string content */
|
11
|
+
.str {
|
12
|
+
color: #718c00; }
|
13
|
+
|
14
|
+
/* a keyword */
|
15
|
+
.kwd {
|
16
|
+
color: #8959a8; }
|
17
|
+
|
18
|
+
/* a comment */
|
19
|
+
.com {
|
20
|
+
color: #8e908c; }
|
21
|
+
|
22
|
+
/* a type name */
|
23
|
+
.typ {
|
24
|
+
color: #4271ae; }
|
25
|
+
|
26
|
+
/* a literal value */
|
27
|
+
.lit {
|
28
|
+
color: #f5871f; }
|
29
|
+
|
30
|
+
/* punctuation */
|
31
|
+
.pun {
|
32
|
+
color: #4d4d4c; }
|
33
|
+
|
34
|
+
/* lisp open bracket */
|
35
|
+
.opn {
|
36
|
+
color: #4d4d4c; }
|
37
|
+
|
38
|
+
/* lisp close bracket */
|
39
|
+
.clo {
|
40
|
+
color: #4d4d4c; }
|
41
|
+
|
42
|
+
/* a markup tag name */
|
43
|
+
.tag {
|
44
|
+
color: #c82829; }
|
45
|
+
|
46
|
+
/* a markup attribute name */
|
47
|
+
.atn {
|
48
|
+
color: #f5871f; }
|
49
|
+
|
50
|
+
/* a markup attribute value */
|
51
|
+
.atv {
|
52
|
+
color: #3e999f; }
|
53
|
+
|
54
|
+
/* a declaration */
|
55
|
+
.dec {
|
56
|
+
color: #f5871f; }
|
57
|
+
|
58
|
+
/* a variable name */
|
59
|
+
.var {
|
60
|
+
color: #c82829; }
|
61
|
+
|
62
|
+
/* a function name */
|
63
|
+
.fun {
|
64
|
+
color: #4271ae; } }
|
65
|
+
/* Use higher contrast and text-weight for printable form. */
|
66
|
+
@media print, projection {
|
67
|
+
.str {
|
68
|
+
color: #060; }
|
69
|
+
|
70
|
+
.kwd {
|
71
|
+
color: #006;
|
72
|
+
font-weight: bold; }
|
73
|
+
|
74
|
+
.com {
|
75
|
+
color: #600;
|
76
|
+
font-style: italic; }
|
77
|
+
|
78
|
+
.typ {
|
79
|
+
color: #404;
|
80
|
+
font-weight: bold; }
|
81
|
+
|
82
|
+
.lit {
|
83
|
+
color: #044; }
|
84
|
+
|
85
|
+
.pun, .opn, .clo {
|
86
|
+
color: #440; }
|
87
|
+
|
88
|
+
.tag {
|
89
|
+
color: #006;
|
90
|
+
font-weight: bold; }
|
91
|
+
|
92
|
+
.atn {
|
93
|
+
color: #404; }
|
94
|
+
|
95
|
+
.atv {
|
96
|
+
color: #060; } }
|
97
|
+
/* Style */
|
98
|
+
/*
|
99
|
+
pre.prettyprint {
|
100
|
+
background: white;
|
101
|
+
font-family: Menlo, Monaco, Consolas, monospace;
|
102
|
+
font-size: 12px;
|
103
|
+
line-height: 1.5;
|
104
|
+
border: 1px solid #ccc;
|
105
|
+
padding: 10px; }
|
106
|
+
*/
|
107
|
+
|
108
|
+
/* Specify class=linenums on a pre to get line numbering */
|
109
|
+
ol.linenums {
|
110
|
+
margin-top: 0;
|
111
|
+
margin-bottom: 0; }
|
112
|
+
|
113
|
+
/* IE indents via margin-left */
|
114
|
+
li.L0,
|
115
|
+
li.L1,
|
116
|
+
li.L2,
|
117
|
+
li.L3,
|
118
|
+
li.L4,
|
119
|
+
li.L5,
|
120
|
+
li.L6,
|
121
|
+
li.L7,
|
122
|
+
li.L8,
|
123
|
+
li.L9 {
|
124
|
+
/* */ }
|
125
|
+
|
126
|
+
/* Alternate shading for lines */
|
127
|
+
li.L1,
|
128
|
+
li.L3,
|
129
|
+
li.L5,
|
130
|
+
li.L7,
|
131
|
+
li.L9 {
|
132
|
+
/* */ }
|
@@ -389,7 +389,7 @@ Calls campaign.request_number
|
|
389
389
|
|
390
390
|
<dt class="tag-source">Source:</dt>
|
391
391
|
<dd class="tag-source"><ul class="dummy"><li>
|
392
|
-
<a href="campaign.js.html">retreaver/campaign.js</a>, <a href="campaign.js.html#
|
392
|
+
<a href="campaign.js.html">retreaver/campaign.js</a>, <a href="campaign.js.html#line242">line 242</a>
|
393
393
|
</li></ul></dd>
|
394
394
|
|
395
395
|
|
@@ -589,7 +589,7 @@ Calls campaign.request_number
|
|
589
589
|
|
590
590
|
<dt class="tag-source">Source:</dt>
|
591
591
|
<dd class="tag-source"><ul class="dummy"><li>
|
592
|
-
<a href="campaign.js.html">retreaver/campaign.js</a>, <a href="campaign.js.html#
|
592
|
+
<a href="campaign.js.html">retreaver/campaign.js</a>, <a href="campaign.js.html#line164">line 164</a>
|
593
593
|
</li></ul></dd>
|
594
594
|
|
595
595
|
|
@@ -645,7 +645,7 @@ Calls campaign.request_number
|
|
645
645
|
<br clear="both">
|
646
646
|
|
647
647
|
<footer>
|
648
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul
|
648
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul 25 2024 17:49:42 GMT+0300 (EEST)
|
649
649
|
</footer>
|
650
650
|
|
651
651
|
<script> prettyPrint(); </script>
|
@@ -1606,7 +1606,7 @@ with per-visitor numbers enabled.
|
|
1606
1606
|
<br clear="both">
|
1607
1607
|
|
1608
1608
|
<footer>
|
1609
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul
|
1609
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul 25 2024 17:49:42 GMT+0300 (EEST)
|
1610
1610
|
</footer>
|
1611
1611
|
|
1612
1612
|
<script> prettyPrint(); </script>
|
@@ -318,7 +318,7 @@
|
|
318
318
|
<br clear="both">
|
319
319
|
|
320
320
|
<footer>
|
321
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul
|
321
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul 25 2024 17:49:42 GMT+0300 (EEST)
|
322
322
|
</footer>
|
323
323
|
|
324
324
|
<script> prettyPrint(); </script>
|
@@ -118,7 +118,8 @@
|
|
118
118
|
}
|
119
119
|
|
120
120
|
function handle_true_call_integration(number) {
|
121
|
-
trueCallConfig = get_integration_config(number, "truecall.com");
|
121
|
+
const trueCallConfig = get_integration_config(number, "truecall.com");
|
122
|
+
|
122
123
|
if (typeof(trueCallConfig) == "undefined") {
|
123
124
|
return;
|
124
125
|
}
|
@@ -137,20 +138,49 @@
|
|
137
138
|
})();
|
138
139
|
}
|
139
140
|
|
140
|
-
const
|
141
|
-
|
142
|
-
|
143
|
-
resolve(window.TrueCall.getId())
|
141
|
+
const trueCallInterval = setInterval(function() {
|
142
|
+
if (window.TrueCall) {
|
143
|
+
window.TrueCall.setDID(number.get("number")).then(function() {
|
144
144
|
clearInterval(trueCallInterval);
|
145
|
+
return window.TrueCall.getIdAsync();
|
146
|
+
}).then(function(trueCallId) {
|
147
|
+
const tags = {};
|
148
|
+
tags[trueCallConfig["tagName"]] = trueCallId;
|
149
|
+
number.replace_tags(tags);
|
150
|
+
});
|
151
|
+
}
|
152
|
+
}, trueCallConfig["checkIntervalMs"]);
|
153
|
+
}
|
154
|
+
|
155
|
+
function handle_red_track_integration(number) {
|
156
|
+
const redTrackConfig = get_integration_config(number, "red_track");
|
157
|
+
|
158
|
+
if (typeof(redTrackConfig) == "undefined") {
|
159
|
+
return;
|
160
|
+
}
|
161
|
+
|
162
|
+
function getRedTrackClickID(name) {
|
163
|
+
const value = '; ' + document.cookie;
|
164
|
+
const parts = value.split('; ' + name + '=');
|
165
|
+
if (parts.length == 2) return parts.pop().split(';').shift();
|
166
|
+
}
|
167
|
+
|
168
|
+
const obtainRedTrackClickID = new Promise( function (resolve) {
|
169
|
+
const myInterval = setInterval(function () {
|
170
|
+
const redTrackClickID = getRedTrackClickID('rtkclickid-store');
|
171
|
+
if (redTrackClickID) {
|
172
|
+
resolve(redTrackClickID);
|
173
|
+
clearInterval(myInterval);
|
145
174
|
}
|
146
|
-
},
|
147
|
-
})
|
175
|
+
}, redTrackConfig["checkIntervalMs"]);
|
176
|
+
});
|
148
177
|
|
149
|
-
|
178
|
+
obtainRedTrackClickID.then(function (redTrackClickID) {
|
150
179
|
const tags = {};
|
151
|
-
tags[
|
180
|
+
tags[redTrackConfig["tagName"]] = redTrackClickID;
|
152
181
|
number.replace_tags(tags);
|
153
182
|
});
|
183
|
+
|
154
184
|
}
|
155
185
|
|
156
186
|
var self = this;
|
@@ -209,6 +239,12 @@
|
|
209
239
|
console.error("Could not integrate with truecall.com, ", e);
|
210
240
|
}
|
211
241
|
|
242
|
+
try {
|
243
|
+
handle_red_track_integration(number);
|
244
|
+
} catch (e) {
|
245
|
+
console.error("Could not integrate with Red Track, ", e);
|
246
|
+
}
|
247
|
+
|
212
248
|
try {
|
213
249
|
handle_google_analytics_integration(number);
|
214
250
|
} catch (e) {
|
@@ -314,7 +350,7 @@
|
|
314
350
|
<br clear="both">
|
315
351
|
|
316
352
|
<footer>
|
317
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul
|
353
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul 25 2024 17:49:42 GMT+0300 (EEST)
|
318
354
|
</footer>
|
319
355
|
|
320
356
|
<script> prettyPrint(); </script>
|
@@ -178,7 +178,7 @@
|
|
178
178
|
|
179
179
|
<dt class="tag-source">Source:</dt>
|
180
180
|
<dd class="tag-source"><ul class="dummy"><li>
|
181
|
-
<a href="campaign.js.html">retreaver/campaign.js</a>, <a href="campaign.js.html#
|
181
|
+
<a href="campaign.js.html">retreaver/campaign.js</a>, <a href="campaign.js.html#line269">line 269</a>
|
182
182
|
</li></ul></dd>
|
183
183
|
|
184
184
|
|
@@ -223,7 +223,7 @@
|
|
223
223
|
<br clear="both">
|
224
224
|
|
225
225
|
<footer>
|
226
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul
|
226
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul 25 2024 17:49:42 GMT+0300 (EEST)
|
227
227
|
</footer>
|
228
228
|
|
229
229
|
<script> prettyPrint(); </script>
|
@@ -58,7 +58,7 @@
|
|
58
58
|
<br clear="both">
|
59
59
|
|
60
60
|
<footer>
|
61
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul
|
61
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul 25 2024 17:49:42 GMT+0300 (EEST)
|
62
62
|
</footer>
|
63
63
|
|
64
64
|
<script> prettyPrint(); </script>
|
@@ -265,7 +265,7 @@
|
|
265
265
|
<br clear="both">
|
266
266
|
|
267
267
|
<footer>
|
268
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul
|
268
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul 25 2024 17:49:42 GMT+0300 (EEST)
|
269
269
|
</footer>
|
270
270
|
|
271
271
|
<script> prettyPrint(); </script>
|
@@ -74,7 +74,7 @@
|
|
74
74
|
<br clear="both">
|
75
75
|
|
76
76
|
<footer>
|
77
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul
|
77
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jul 25 2024 17:49:42 GMT+0300 (EEST)
|
78
78
|
</footer>
|
79
79
|
|
80
80
|
<script> prettyPrint(); </script>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: retreaverjs-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Hilscher
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-07-
|
12
|
+
date: 2024-07-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -100,6 +100,21 @@ files:
|
|
100
100
|
- src/retreaver/vendor/find_and_replace_dom_text.js
|
101
101
|
- vendor/assets/javascripts/retreaver.js
|
102
102
|
- vendor/assets/javascripts/retreaver.min.js
|
103
|
+
- vendor/documentation/javascript/dev/Retreaver.Campaign.html
|
104
|
+
- vendor/documentation/javascript/dev/Retreaver.Number.html
|
105
|
+
- vendor/documentation/javascript/dev/Retreaver.html
|
106
|
+
- vendor/documentation/javascript/dev/campaign.js.html
|
107
|
+
- vendor/documentation/javascript/dev/global.html
|
108
|
+
- vendor/documentation/javascript/dev/index.html
|
109
|
+
- vendor/documentation/javascript/dev/number.js.html
|
110
|
+
- vendor/documentation/javascript/dev/retreaver.js.html
|
111
|
+
- vendor/documentation/javascript/dev/scripts/linenumber.js
|
112
|
+
- vendor/documentation/javascript/dev/scripts/prettify/Apache-License-2.0.txt
|
113
|
+
- vendor/documentation/javascript/dev/scripts/prettify/lang-css.js
|
114
|
+
- vendor/documentation/javascript/dev/scripts/prettify/prettify.js
|
115
|
+
- vendor/documentation/javascript/dev/styles/jsdoc-default.css
|
116
|
+
- vendor/documentation/javascript/dev/styles/prettify-jsdoc.css
|
117
|
+
- vendor/documentation/javascript/dev/styles/prettify-tomorrow.css
|
103
118
|
- vendor/documentation/javascript/v1/Retreaver.Campaign.html
|
104
119
|
- vendor/documentation/javascript/v1/Retreaver.Number.html
|
105
120
|
- vendor/documentation/javascript/v1/Retreaver.html
|