mod-build 3.6.2--beta.1 → 3.6.2--beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/gulp-tasks/cache-bust.js
CHANGED
|
@@ -3,7 +3,11 @@ module.exports = function(gulp, gulpPlugins, siteSettings) {
|
|
|
3
3
|
return gulp.src(siteSettings.distFolder + '/**')
|
|
4
4
|
.pipe(gulpPlugins.revAll.revision({
|
|
5
5
|
dontRenameFile: [/^\/favicon.ico$/g, '.html', '.txt', /modlogo([\w|\s|-])*\.(?:svg)/g],
|
|
6
|
-
dontUpdateReference: [/^\/favicon.ico$/g, '.html', '.txt', /modlogo([\w|\s|-])*\.(?:svg)/g]
|
|
6
|
+
dontUpdateReference: [/^\/favicon.ico$/g, '.html', '.txt', /modlogo([\w|\s|-])*\.(?:svg)/g],
|
|
7
|
+
transformFilename: function (file, hash) {
|
|
8
|
+
var ext = path.extname(file.path);
|
|
9
|
+
return path.basename(file.path, ext) + ext + "?v" + hash.substr(0, 8); // filename.ext?v099e1583
|
|
10
|
+
}
|
|
7
11
|
}))
|
|
8
12
|
.pipe(gulpPlugins.revDeleteOriginal())
|
|
9
13
|
.pipe(gulp.dest(siteSettings.distFolder))
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _vwo_clicks=25;
|
|
2
2
|
var _vwo_code=(function(){
|
|
3
3
|
var account_id=37264,
|
|
4
|
-
settings_tolerance=
|
|
5
|
-
library_tolerance=
|
|
4
|
+
settings_tolerance=2000,
|
|
5
|
+
library_tolerance=2500,
|
|
6
6
|
use_existing_jquery=false,
|
|
7
7
|
// DO NOT EDIT BELOW THIS LINE
|
|
8
8
|
f=false,d=document;return{use_existing_jquery:function(){return use_existing_jquery;},library_tolerance:function(){return library_tolerance;},finish:function(){if(!f){f=true;var a=d.getElementById('_vis_opt_path_hides');if(a)a.parentNode.removeChild(a);}},finished:function(){return f;},load:function(a){var b=d.createElement('script');b.src=a;b.type='text/javascript';b.innerText;b.onerror=function(){_vwo_code.finish();};d.getElementsByTagName('head')[0].appendChild(b);},init:function(){settings_timer=setTimeout('_vwo_code.finish()',settings_tolerance);this.load('//dev.visualwebsiteoptimizer.com/j.php?a='+account_id+'&u='+encodeURIComponent(d.URL)+'&r='+Math.random());var a=d.createElement('style'),b='body{opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;}',h=d.getElementsByTagName('head')[0];a.setAttribute('id','_vis_opt_path_hides');a.setAttribute('type','text/css');if(a.styleSheet)a.styleSheet.cssText=b;else a.appendChild(d.createTextNode(b));h.appendChild(a);return settings_timer;}};}());_vwo_settings_timer=_vwo_code.init();
|
package/src/scripts/thankyou.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/* global modUtils locationStr */
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Link this file into a TY page to render generic TYP and fire pixels
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
var thankyouPage = (function($) {
|
|
8
|
-
var getVars = modUtils.getUrlParamsToObject(),
|
|
9
|
-
apiUrl = modUtils.getApiDomain() + '/v1/';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Starts TY page
|
|
13
|
-
*/
|
|
14
|
-
var init = function() {
|
|
15
|
-
// Personalized intro copy (/thankyou page)
|
|
16
|
-
if (getVars.fName && getVars.lName) {
|
|
17
|
-
$('#intro').text(getVars.fName + ' ' + getVars.lName + ', thanks for your request.');
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Location
|
|
21
|
-
if (getVars.city && getVars.state) {
|
|
22
|
-
locationStr = getVars.city + ', ' + getVars.state;
|
|
23
|
-
}
|
|
24
|
-
if (locationStr) {
|
|
25
|
-
$('[data-bind="location"]').text(locationStr);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// leadToken
|
|
29
|
-
if (getVars.leadToken) {
|
|
30
|
-
$('#leadid_token').val(getVars.leadToken);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// Grab and fire the affiliate pixel if one exists and not a duplicate.
|
|
34
|
-
if (getVars.projectId && !getVars.isDupe) {
|
|
35
|
-
$.ajax({
|
|
36
|
-
url: apiUrl + 'tracking/get-typ-pixel/' + getVars.projectId,
|
|
37
|
-
type: 'GET',
|
|
38
|
-
dataType: 'json',
|
|
39
|
-
crossDomain: true,
|
|
40
|
-
success: function(response) {
|
|
41
|
-
if (!response || !response.data.pixel) {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
$('body').append(response.data.pixel);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
return {
|
|
52
|
-
init: init
|
|
53
|
-
};
|
|
54
|
-
})(jQuery);
|
|
55
|
-
|
|
56
|
-
$(document).ready(function() {
|
|
57
|
-
thankyouPage.init();
|
|
58
|
-
});
|