added presets

fixes #14
This commit is contained in:
Szekeres Bálint
2018-06-12 00:52:17 +02:00
parent 11260d7ea5
commit 85c1b9e756
11 changed files with 57 additions and 0 deletions

View File

@@ -274,6 +274,32 @@
});
};
$scope.setPreset = function(preset) {
$scope.data.php = data.php;
$scope.data.wordpress = data.wordpress;
$scope.data.index = data.index;
$scope.data.fallback_html = data.fallback_html;
switch(preset) {
case 'frontend':
$scope.data.php = 'off';
$scope.data.index = 'index.html';
$scope.data.fallback_html = true;
break;
case 'spa':
$scope.data.index = 'index.html';
$scope.data.fallback_html = true;
break;
case 'wordpress':
$scope.data.wordpress = true;
break;
}
gtag('event', preset, {
event_category: 'preset',
});
};
///////////////////////////