callpixelsjs-rails 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/callpixelsjs/rails/version.rb +1 -1
- data/src/callpixels/base/base64.js +126 -0
- data/src/callpixels/base/cookies.js +59 -0
- data/src/callpixels/base/data.js +81 -0
- data/src/callpixels/base/helpers.js +55 -0
- data/src/callpixels/base/model.js +113 -0
- data/src/callpixels/base/request.js +215 -0
- data/src/callpixels/base/request_number.js +193 -0
- data/src/callpixels/cache.js +1 -0
- data/src/callpixels/campaign.js +98 -0
- data/src/callpixels/number.js +206 -0
- data/vendor/documentation/javascript/v1/Callpixels.Campaign.html +145 -151
- data/vendor/documentation/javascript/v1/Callpixels.Number.html +482 -498
- data/vendor/documentation/javascript/v1/campaign.js.html +7 -7
- data/vendor/documentation/javascript/v1/global.html +73 -77
- data/vendor/documentation/javascript/v1/index.html +4 -4
- data/vendor/documentation/javascript/v1/number.js.html +5 -5
- data/vendor/documentation/javascript/v1/scripts/linenumber.js +11 -19
- data/vendor/documentation/javascript/v1/styles/jsdoc-default.css +87 -130
- metadata +12 -2
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<title>JSDoc: Source: campaign.js</title>
|
6
|
-
|
6
|
+
|
7
7
|
<script src="scripts/prettify/prettify.js"> </script>
|
8
8
|
<script src="scripts/prettify/lang-css.js"> </script>
|
9
9
|
<!--[if lt IE 9]>
|
@@ -16,16 +16,16 @@
|
|
16
16
|
<body>
|
17
17
|
|
18
18
|
<div id="main">
|
19
|
-
|
19
|
+
|
20
20
|
<h1 class="page-title">Source: campaign.js</h1>
|
21
|
-
|
21
|
+
|
22
22
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
26
|
<section>
|
27
27
|
<article>
|
28
|
-
<pre class="prettyprint source
|
28
|
+
<pre class="prettyprint source"><code>(function () {
|
29
29
|
// Dependencies
|
30
30
|
var RequestNumber = Callpixels.Base.RequestNumber;
|
31
31
|
/**
|
@@ -69,7 +69,7 @@
|
|
69
69
|
// request the number
|
70
70
|
new RequestNumber(self.get('campaign_key', 'number_matching_tags')).perform(function (data) {
|
71
71
|
// did callpixels return a valid number?
|
72
|
-
if (typeof(data) !== 'undefined'
|
72
|
+
if (typeof(data) !== 'undefined' && typeof(data.number) !== 'undefined' && data.number !== '') {
|
73
73
|
// initialize number
|
74
74
|
var number = new Callpixels.Number(data.number);
|
75
75
|
// call callback
|
@@ -110,7 +110,7 @@
|
|
110
110
|
if (typeof(tags) === 'string') {
|
111
111
|
tags = Callpixels.Number.extract_tags_from_string(tags);
|
112
112
|
}
|
113
|
-
if (tags
|
113
|
+
if (tags && (typeof tags === "object") && !(tags instanceof Array)) {
|
114
114
|
return tags
|
115
115
|
}
|
116
116
|
else {
|
@@ -138,7 +138,7 @@
|
|
138
138
|
<br clear="both">
|
139
139
|
|
140
140
|
<footer>
|
141
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.
|
141
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jan 29 2015 13:49:34 GMT-0500 (EST)
|
142
142
|
</footer>
|
143
143
|
|
144
144
|
<script> prettyPrint(); </script>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<title>JSDoc: Global</title>
|
6
|
-
|
6
|
+
|
7
7
|
<script src="scripts/prettify/prettify.js"> </script>
|
8
8
|
<script src="scripts/prettify/lang-css.js"> </script>
|
9
9
|
<!--[if lt IE 9]>
|
@@ -16,91 +16,89 @@
|
|
16
16
|
<body>
|
17
17
|
|
18
18
|
<div id="main">
|
19
|
-
|
19
|
+
|
20
20
|
<h1 class="page-title">Global</h1>
|
21
|
-
|
21
|
+
|
22
22
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
26
|
<section>
|
27
|
-
|
27
|
+
|
28
28
|
<header>
|
29
29
|
<h2>
|
30
30
|
|
31
31
|
</h2>
|
32
32
|
|
33
|
-
</header>
|
33
|
+
</header>
|
34
34
|
|
35
35
|
<article>
|
36
36
|
<div class="container-overview">
|
37
37
|
|
38
|
-
|
38
|
+
|
39
39
|
|
40
40
|
|
41
|
-
|
41
|
+
|
42
42
|
|
43
43
|
<dl class="details">
|
44
44
|
|
45
|
-
|
45
|
+
|
46
46
|
|
47
|
-
|
48
47
|
|
49
|
-
|
50
48
|
|
51
49
|
|
52
50
|
|
53
|
-
|
54
51
|
|
55
|
-
|
56
52
|
|
57
|
-
|
58
53
|
|
59
|
-
|
60
54
|
|
61
|
-
|
62
55
|
|
63
|
-
|
64
56
|
|
65
|
-
|
66
57
|
|
67
|
-
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
68
|
|
69
69
|
</dl>
|
70
70
|
|
71
|
-
|
71
|
+
|
72
72
|
|
73
73
|
|
74
74
|
</div>
|
75
|
-
|
76
75
|
|
77
|
-
|
78
76
|
|
79
|
-
|
80
77
|
|
81
|
-
|
82
78
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
79
|
|
87
|
-
|
88
80
|
|
89
|
-
|
90
81
|
|
91
|
-
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
92
90
|
|
93
91
|
<h3 class="subsection-title">Type Definitions</h3>
|
94
|
-
|
92
|
+
|
95
93
|
<dl>
|
96
94
|
|
97
95
|
<dt>
|
98
96
|
<h4 class="name" id="getNumberCallback"><span class="type-signature"></span>getNumberCallback<span class="signature">()</span><span class="type-signature"></span></h4>
|
99
|
-
|
97
|
+
|
100
98
|
|
101
99
|
</dt>
|
102
100
|
<dd>
|
103
|
-
|
101
|
+
|
104
102
|
|
105
103
|
<div class="description">
|
106
104
|
Callpixels.Campaign#request_number callback fired after the request completes.
|
@@ -108,34 +106,34 @@
|
|
108
106
|
|
109
107
|
|
110
108
|
|
111
|
-
|
112
109
|
|
113
|
-
|
110
|
+
|
111
|
+
|
114
112
|
|
115
113
|
<h5>Parameters:</h5>
|
116
114
|
|
117
115
|
|
118
116
|
<table class="params">
|
119
117
|
<thead>
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
118
|
+
<tr>
|
119
|
+
|
120
|
+
|
121
|
+
<th>Type</th>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<th class="last">Description</th>
|
128
|
+
</tr>
|
129
|
+
</thead>
|
130
|
+
|
131
|
+
<tbody>
|
132
|
+
|
133
|
+
|
136
134
|
<tr>
|
137
135
|
|
138
|
-
|
136
|
+
|
139
137
|
<td class="type">
|
140
138
|
|
141
139
|
|
@@ -144,76 +142,74 @@
|
|
144
142
|
|
145
143
|
|
146
144
|
</td>
|
147
|
-
|
148
145
|
|
149
|
-
|
150
146
|
|
151
|
-
|
147
|
+
|
148
|
+
|
149
|
+
|
152
150
|
<td class="description last">The number that was returned</td>
|
153
151
|
</tr>
|
154
|
-
|
155
|
-
|
156
|
-
|
152
|
+
|
153
|
+
|
154
|
+
</tbody>
|
157
155
|
</table>
|
158
156
|
|
159
|
-
|
157
|
+
|
160
158
|
|
161
159
|
<dl class="details">
|
162
160
|
|
163
|
-
|
161
|
+
|
164
162
|
|
165
|
-
|
166
163
|
|
167
|
-
|
168
164
|
|
169
165
|
|
170
166
|
|
171
|
-
|
172
167
|
|
173
|
-
|
174
168
|
|
175
|
-
|
176
169
|
|
177
|
-
|
178
170
|
|
179
|
-
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
180
178
|
|
181
179
|
<dt class="tag-source">Source:</dt>
|
182
180
|
<dd class="tag-source"><ul class="dummy"><li>
|
183
181
|
<a href="campaign.js.html">campaign.js</a>, <a href="campaign.js.html#line57">line 57</a>
|
184
182
|
</li></ul></dd>
|
185
183
|
|
186
|
-
|
187
184
|
|
188
|
-
|
189
185
|
|
190
|
-
|
186
|
+
|
187
|
+
|
188
|
+
|
191
189
|
|
192
190
|
</dl>
|
193
191
|
|
194
|
-
|
195
192
|
|
196
|
-
|
197
193
|
|
198
194
|
|
199
195
|
|
200
196
|
|
201
197
|
|
202
|
-
|
203
198
|
|
204
|
-
|
205
199
|
|
206
|
-
|
200
|
+
|
201
|
+
|
202
|
+
|
207
203
|
|
208
204
|
</dd>
|
209
205
|
|
210
206
|
</dl>
|
211
207
|
|
212
|
-
|
208
|
+
|
213
209
|
|
214
210
|
</article>
|
215
211
|
|
216
|
-
</section>
|
212
|
+
</section>
|
217
213
|
|
218
214
|
|
219
215
|
|
@@ -227,7 +223,7 @@
|
|
227
223
|
<br clear="both">
|
228
224
|
|
229
225
|
<footer>
|
230
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.
|
226
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jan 29 2015 13:49:34 GMT-0500 (EST)
|
231
227
|
</footer>
|
232
228
|
|
233
229
|
<script> prettyPrint(); </script>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<title>JSDoc: Index</title>
|
6
|
-
|
6
|
+
|
7
7
|
<script src="scripts/prettify/prettify.js"> </script>
|
8
8
|
<script src="scripts/prettify/lang-css.js"> </script>
|
9
9
|
<!--[if lt IE 9]>
|
@@ -16,9 +16,9 @@
|
|
16
16
|
<body>
|
17
17
|
|
18
18
|
<div id="main">
|
19
|
-
|
19
|
+
|
20
20
|
<h1 class="page-title">Index</h1>
|
21
|
-
|
21
|
+
|
22
22
|
|
23
23
|
|
24
24
|
|
@@ -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.
|
61
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jan 29 2015 13:49:34 GMT-0500 (EST)
|
62
62
|
</footer>
|
63
63
|
|
64
64
|
<script> prettyPrint(); </script>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<title>JSDoc: Source: number.js</title>
|
6
|
-
|
6
|
+
|
7
7
|
<script src="scripts/prettify/prettify.js"> </script>
|
8
8
|
<script src="scripts/prettify/lang-css.js"> </script>
|
9
9
|
<!--[if lt IE 9]>
|
@@ -16,16 +16,16 @@
|
|
16
16
|
<body>
|
17
17
|
|
18
18
|
<div id="main">
|
19
|
-
|
19
|
+
|
20
20
|
<h1 class="page-title">Source: number.js</h1>
|
21
|
-
|
21
|
+
|
22
22
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
26
|
<section>
|
27
27
|
<article>
|
28
|
-
<pre class="prettyprint source
|
28
|
+
<pre class="prettyprint source"><code>(function () {
|
29
29
|
// Dependencies
|
30
30
|
var Base = Callpixels.Base;
|
31
31
|
/**
|
@@ -246,7 +246,7 @@
|
|
246
246
|
<br clear="both">
|
247
247
|
|
248
248
|
<footer>
|
249
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.
|
249
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Jan 29 2015 13:49:34 GMT-0500 (EST)
|
250
250
|
</footer>
|
251
251
|
|
252
252
|
<script> prettyPrint(); </script>
|
@@ -1,25 +1,17 @@
|
|
1
|
-
/*global document */
|
2
1
|
(function() {
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var
|
6
|
-
var lineId;
|
7
|
-
var lines;
|
8
|
-
var totalLines;
|
9
|
-
var anchorHash;
|
2
|
+
var counter = 0;
|
3
|
+
var numbered;
|
4
|
+
var source = document.getElementsByClassName('prettyprint source');
|
10
5
|
|
11
6
|
if (source && source[0]) {
|
12
|
-
|
13
|
-
lines = source[0].getElementsByTagName('li');
|
14
|
-
totalLines = lines.length;
|
7
|
+
source = source[0].getElementsByTagName('code')[0];
|
15
8
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
}
|
9
|
+
numbered = source.innerHTML.split('\n');
|
10
|
+
numbered = numbered.map(function(item) {
|
11
|
+
counter++;
|
12
|
+
return '<span id="line' + counter + '" class="line"></span>' + item;
|
13
|
+
});
|
14
|
+
|
15
|
+
source.innerHTML = numbered.join('\n');
|
24
16
|
}
|
25
17
|
})();
|