mod-build 3.6.1--beta.25 → 3.6.2--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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 3.6.2
|
|
4
4
|
|
|
5
|
-
- Adding `check-seasonal-variations` to grab seasons json
|
|
5
|
+
- Adding `check-seasonal-variations` to grab seasons json; loop through the siteData for `seasonalVariations: {}`; find any active seasons; merge the json objects and adjust json content accordingly;
|
|
6
6
|
|
|
7
7
|
## 3.5.7
|
|
8
8
|
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -17,9 +17,13 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
17
17
|
// Checking for seasonal variations in the template.js + updating content
|
|
18
18
|
var checkSeasonalVariations = require('./check-seasonal-variations.js');
|
|
19
19
|
const activeSeason = checkSeasonalVariations();
|
|
20
|
-
if (activeSeason !==
|
|
21
|
-
if (
|
|
22
|
-
|
|
20
|
+
if (activeSeason.length !== 0){
|
|
21
|
+
if (siteData.seasonalVariations) {
|
|
22
|
+
activeSeason.forEach(season => {
|
|
23
|
+
if (season in siteData.seasonalVariations) {
|
|
24
|
+
siteData = merge(siteData, siteData.seasonalVariations[season]);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
|
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();
|