mod-build 3.5.5 → 3.5.6-beta.1
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.5.6
|
|
4
|
+
|
|
5
|
+
- Adding `inc` handlebars helper to template.js to increment a certain value by 1
|
|
6
|
+
|
|
3
7
|
## 3.5.5
|
|
4
8
|
|
|
5
9
|
- Added functionality to don't include the gtm script if `nogtm=true` parameter is present in vwo_callback.html/analytics.html fileInclude call (from site level). This is useful in late loading gtm on test versions.
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -114,6 +114,14 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
114
114
|
fn: function(json) {
|
|
115
115
|
return JSON.stringify(json);
|
|
116
116
|
}
|
|
117
|
+
},
|
|
118
|
+
// Adding increment of 1 to value
|
|
119
|
+
{
|
|
120
|
+
name: 'inc',
|
|
121
|
+
fn: function(index) {
|
|
122
|
+
index++;
|
|
123
|
+
return index;
|
|
124
|
+
}
|
|
117
125
|
}
|
|
118
126
|
];
|
|
119
127
|
|
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=4000,
|
|
5
|
+
library_tolerance=4000,
|
|
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();
|