|
@@ -13,10 +13,10 @@
|
|
<div class="column">
|
|
<div class="column">
|
|
<div class="serviceOption homepage" name="homepage">
|
|
<div class="serviceOption homepage" name="homepage">
|
|
<div class="titleWrapper">
|
|
<div class="titleWrapper">
|
|
- <p>Static Homepage</p>
|
|
|
|
|
|
+ <p>Basic Homepage</p>
|
|
</div>
|
|
</div>
|
|
<div class="ui divider"></div>
|
|
<div class="ui divider"></div>
|
|
- <p>Host a static personal homepage with HTML, CSS and JavaScript using your domain name.</p>
|
|
|
|
|
|
+ <p>Host a static homepage with Zoraxy and point your domain name to your web server.</p>
|
|
<img class="themebackground ui small image" src="img/res/1F310.png">
|
|
<img class="themebackground ui small image" src="img/res/1F310.png">
|
|
<div class="activeOption">
|
|
<div class="activeOption">
|
|
<i class="ui white huge circle check icon"></i>
|
|
<i class="ui white huge circle check icon"></i>
|
|
@@ -57,10 +57,13 @@
|
|
</button>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
<script>
|
|
<script>
|
|
var currentQuickSetupClass = "";
|
|
var currentQuickSetupClass = "";
|
|
|
|
+ var currentQuickSetupTourStep = 0;
|
|
|
|
+ //For tour logic, see quicksetup.js
|
|
|
|
+
|
|
|
|
|
|
//Bind selecting events to serviceOption
|
|
//Bind selecting events to serviceOption
|
|
$("#quickstart .serviceOption").on("click", function(data){
|
|
$("#quickstart .serviceOption").on("click", function(data){
|
|
@@ -74,9 +77,71 @@
|
|
if (currentQuickSetupClass == ""){
|
|
if (currentQuickSetupClass == ""){
|
|
msgbox("No selected setup service tour", false);
|
|
msgbox("No selected setup service tour", false);
|
|
return;
|
|
return;
|
|
|
|
+ }
|
|
|
|
+ //Show the tour modal
|
|
|
|
+ $("#tourModal").show();
|
|
|
|
+ //Load the tour steps
|
|
|
|
+ if (tourSteps[currentQuickSetupClass] == undefined || tourSteps[currentQuickSetupClass].length == 0){
|
|
|
|
+ //This tour is not defined or empty
|
|
|
|
+ let notFound = tourStepFactory({
|
|
|
|
+ title: "😭 Tour not found",
|
|
|
|
+ desc: "Seems you are requesting a tour that has not been developed yet. Check back on later!"
|
|
|
|
+ });
|
|
|
|
+ notFound();
|
|
|
|
+
|
|
|
|
+ //Enable the finish button
|
|
|
|
+ $("#tourModal .nextStepAvaible").hide();
|
|
|
|
+ $("#tourModal .nextStepFinish").show();
|
|
|
|
+ return;
|
|
|
|
+ }else{
|
|
|
|
+ tourSteps[currentQuickSetupClass][0]();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ updateTourStepCount();
|
|
|
|
+
|
|
|
|
+ //Disable the previous button
|
|
|
|
+ if (tourSteps[currentQuickSetupClass].length == 1){
|
|
|
|
+ //There are only 1 step in this tour
|
|
|
|
+ $("#tourModal .nextStepAvaible").hide();
|
|
|
|
+ $("#tourModal .nextStepFinish").show();
|
|
|
|
+ }else{
|
|
|
|
+ $("#tourModal .nextStepAvaible").show();
|
|
|
|
+ $("#tourModal .nextStepFinish").hide();
|
|
|
|
+ }
|
|
|
|
+ $("#tourModal .tourStepButtonPrevious").addClass("disabled");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function updateTourStepCount(){
|
|
|
|
+ let tourlistLength = tourSteps[currentQuickSetupClass]==undefined?1:tourSteps[currentQuickSetupClass].length;
|
|
|
|
+ $("#tourModal .tourStepCounter").text((currentQuickSetupTourStep + 1) + " / " + tourlistLength);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function nextStep(){
|
|
|
|
+ //Add one to the tour steps
|
|
|
|
+ currentQuickSetupTourStep++;
|
|
|
|
+ if (currentQuickSetupTourStep == tourSteps[currentQuickSetupClass].length - 1){
|
|
|
|
+ //Already the last step
|
|
|
|
+ $("#tourModal .nextStepAvaible").hide();
|
|
|
|
+ $("#tourModal .nextStepFinish").show();
|
|
}
|
|
}
|
|
|
|
+ updateTourStepCount();
|
|
|
|
+ tourSteps[currentQuickSetupClass][currentQuickSetupTourStep]();
|
|
|
|
+ if (currentQuickSetupTourStep > 0){
|
|
|
|
+ $("#tourModal .tourStepButtonPrevious").removeClass("disabled");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
- alert(currentQuickSetupClass);
|
|
|
|
|
|
+ //End tour
|
|
|
|
+ function endTourFocus(){
|
|
|
|
+ $(".tourFocusObject").removeClass("tourFocusObject");
|
|
|
|
+ $(".serviceOption.active").removeClass("active");
|
|
|
|
+ currentQuickSetupClass = "";
|
|
|
|
+ currentQuickSetupTourStep = 0;
|
|
|
|
+ $("#tourModal").hide();
|
|
|
|
+ $("#tourModal .nextStepAvaible").show();
|
|
|
|
+ $("#tourModal .nextStepFinish").hide();
|
|
|
|
+ $("#tourModalOverlay").hide();
|
|
}
|
|
}
|
|
|
|
|
|
-</script>
|
|
|
|
|
|
+</script>
|
|
|
|
+<script src="script/quicksetup.js"></script>
|