first commit
This commit is contained in:
254
public/style/vendor/jquery-smartwizard/examples/ajax.html
vendored
Normal file
254
public/style/vendor/jquery-smartwizard/examples/ajax.html
vendored
Normal file
@ -0,0 +1,254 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>jQuery Smart Wizard - The awesome jQuery step wizard plugin</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Include SmartWizard CSS -->
|
||||
<link href="./css/smart_wizard_all.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<!-- Demo Page Style - You don't need -->
|
||||
<style>
|
||||
body {
|
||||
padding-right: 5%;
|
||||
padding-left: 5%;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<br />
|
||||
<p>
|
||||
<label>Theme:</label>
|
||||
<select id="theme_selector">
|
||||
<option value="default" selected>Default</option>
|
||||
<option value="arrows">Arrows</option>
|
||||
<option value="dots">Dots</option>
|
||||
<option value="progress">Progress</option>
|
||||
</select>
|
||||
|
||||
|
||||
<input type="checkbox" id="is_justified" value="1" checked />
|
||||
<label for="is_justified">Justified</label>
|
||||
|
||||
|
||||
<label>Animation:</label>
|
||||
<select id="animation">
|
||||
<option value="none">None</option>
|
||||
<option value="fade">Fade</option>
|
||||
<option value="slide-horizontal" selected>Slide Horizontal</option>
|
||||
<option value="slide-vertical">Slide Vertical</option>
|
||||
<option value="slide-swing">Slide Swing</option>
|
||||
</select>
|
||||
|
||||
|
||||
<label>Go To:</label>
|
||||
<select id="got_to_step">
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
</select>
|
||||
|
||||
|
||||
<label>External Buttons:</label>
|
||||
<button class="btn btn-secondary" id="prev-btn" type="button">Go Previous</button>
|
||||
<button class="btn btn-secondary" id="next-btn" type="button">Go Next</button>
|
||||
<button class="btn btn-danger" id="reset-btn" type="button">Reset Wizard</button>
|
||||
</p>
|
||||
<br />
|
||||
|
||||
|
||||
<!-- SmartWizard html -->
|
||||
<div id="smartwizard">
|
||||
|
||||
<ul class="nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#step-1" data-repo="jquery-smarttab">
|
||||
<strong>SmartTab</strong><br />repository details from GitHub
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#step-2" data-repo="smartwizard">
|
||||
<strong>SmartWizard</strong><br />repository details from GitHub
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#step-3" data-repo="jquery-smartcart">
|
||||
<strong>SmartCart</strong><br />repository details from GitHub
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div id="step-1" class="tab-pane" role="tabpanel" aria-labelledby="step-1">
|
||||
</div>
|
||||
<div id="step-2" class="tab-pane" role="tabpanel" aria-labelledby="step-2">
|
||||
</div>
|
||||
<div id="step-3" class="tab-pane" role="tabpanel" aria-labelledby="step-3">
|
||||
</div>
|
||||
<div id="step-4" class="tab-pane" role="tabpanel" aria-labelledby="step-4">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<!-- Include jQuery -->
|
||||
<script src="https://code.jquery.com/jquery-3.5.0.min.js" integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"></script>
|
||||
|
||||
<!-- Include SmartWizard JavaScript source -->
|
||||
<script type="text/javascript" src="./js/jquery.smartWizard.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
// Toolbar extra buttons
|
||||
var btnFinish = $('<button></button>').text('Finish')
|
||||
.addClass('btn btn-info')
|
||||
.on('click', function(){ alert('Finish Clicked'); });
|
||||
var btnCancel = $('<button></button>').text('Cancel')
|
||||
.addClass('btn btn-danger')
|
||||
.on('click', function(){ $('#smartwizard').smartWizard("reset"); });
|
||||
|
||||
// Step show event
|
||||
$("#smartwizard").on("showStep", function(e, anchorObject, stepNumber, stepDirection, stepPosition) {
|
||||
$("#prev-btn").removeClass('disabled');
|
||||
$("#next-btn").removeClass('disabled');
|
||||
if(stepPosition === 'first') {
|
||||
$("#prev-btn").addClass('disabled');
|
||||
} else if(stepPosition === 'last') {
|
||||
$("#next-btn").addClass('disabled');
|
||||
} else {
|
||||
$("#prev-btn").removeClass('disabled');
|
||||
$("#next-btn").removeClass('disabled');
|
||||
}
|
||||
});
|
||||
|
||||
$("#smartwizard").on("stepContent", function(e, anchorObject, stepIndex, stepDirection) {
|
||||
|
||||
var repo = anchorObject.data('repo');
|
||||
var ajaxURL = "https://api.npms.io/v2/package/" + repo;
|
||||
// Return a promise object
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
// Ajax call to fetch your content
|
||||
$.ajax({
|
||||
method : "GET",
|
||||
url : ajaxURL,
|
||||
beforeSend: function( xhr ) {
|
||||
// Show the loader
|
||||
$('#smartwizard').smartWizard("loader", "show");
|
||||
}
|
||||
}).done(function( res ) {
|
||||
// console.log(res);
|
||||
|
||||
var html = '<h2>Ajax data about ' + repo + ' loaded from GitHub</h2>';
|
||||
html += '<br>URL: <strong>' + ajaxURL + '</strong>';
|
||||
html += '<br>Name: <strong>' + res.collected.metadata.name + '</strong>';
|
||||
html += '<br>Description: ' + res.collected.metadata.description;
|
||||
html += '<br>Homepage: <a href="' + res.collected.github.homepage + '" >'+ res.collected.github.homepage +'</a>';
|
||||
html += '<br>Keywords: ' + res.collected.metadata.keywords.join(', ');
|
||||
|
||||
// html += '<br>Clone URL: ' + res.clone_url;
|
||||
html += '<br>Stars: ' + res.collected.github.starsCount;
|
||||
html += '<br>Forks: ' + res.collected.github.forksCount;
|
||||
html += '<br>Watchers: ' + res.collected.github.subscribersCount;
|
||||
html += '<br>Open Issues: ' + res.collected.github.issues.openCount + '/' + res.collected.github.issues.count;
|
||||
|
||||
html += '<br><br>Popularity: ' + parseInt(res.score.detail.popularity * 100);
|
||||
html += '<br>Quality: ' + parseInt(res.score.detail.quality * 100);
|
||||
html += '<br>Maintenance: ' + parseInt(res.score.detail.maintenance * 100);
|
||||
|
||||
// Resolve the Promise with the tab content
|
||||
resolve(html);
|
||||
|
||||
// Hide the loader
|
||||
$('#smartwizard').smartWizard("loader", "hide");
|
||||
}).fail(function(err) {
|
||||
|
||||
// Reject the Promise with error message to show as tab content
|
||||
reject( "An error loading the resource" );
|
||||
|
||||
// Hide the loader
|
||||
$('#smartwizard').smartWizard("loader", "hide");
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
// Smart Wizard
|
||||
$('#smartwizard').smartWizard({
|
||||
selected: 0,
|
||||
transition: {
|
||||
animation: 'slide-horizontal', // Effect on navigation, none/fade/slide-horizontal/slide-vertical/slide-swing
|
||||
},
|
||||
toolbarSettings: {
|
||||
toolbarPosition: 'both', // both bottom
|
||||
toolbarExtraButtons: [btnFinish, btnCancel]
|
||||
}
|
||||
});
|
||||
|
||||
// External Button Events
|
||||
$("#reset-btn").on("click", function() {
|
||||
// Reset wizard
|
||||
$('#smartwizard').smartWizard("reset");
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#prev-btn").on("click", function() {
|
||||
// Navigate previous
|
||||
$('#smartwizard').smartWizard("prev");
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#next-btn").on("click", function() {
|
||||
// Navigate next
|
||||
$('#smartwizard').smartWizard("next");
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
// Demo Button Events
|
||||
$("#got_to_step").on("change", function() {
|
||||
// Go to step
|
||||
var step_index = $(this).val() - 1;
|
||||
$('#smartwizard').smartWizard("goToStep", step_index);
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#is_justified").on("click", function() {
|
||||
// Change Justify
|
||||
var options = {
|
||||
justified: $(this).prop("checked")
|
||||
};
|
||||
|
||||
$('#smartwizard').smartWizard("setOptions", options);
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#animation").on("change", function() {
|
||||
// Change theme
|
||||
var options = {
|
||||
transition: {
|
||||
animation: $(this).val()
|
||||
},
|
||||
};
|
||||
$('#smartwizard').smartWizard("setOptions", options);
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#theme_selector").on("change", function() {
|
||||
// Change theme
|
||||
var options = {
|
||||
theme: $(this).val()
|
||||
};
|
||||
$('#smartwizard').smartWizard("setOptions", options);
|
||||
return true;
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
233
public/style/vendor/jquery-smartwizard/examples/index.html
vendored
Normal file
233
public/style/vendor/jquery-smartwizard/examples/index.html
vendored
Normal file
@ -0,0 +1,233 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>jQuery Smart Wizard - The awesome jQuery step wizard plugin</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Include SmartWizard CSS -->
|
||||
<link href="./css/smart_wizard_all.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<!-- Demo Page Style - You don't need -->
|
||||
<style>
|
||||
body {
|
||||
padding-right: 5%;
|
||||
padding-left: 5%;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<br />
|
||||
<p>
|
||||
<label>Theme:</label>
|
||||
<select id="theme_selector">
|
||||
<option value="default">Default</option>
|
||||
<option value="arrows" selected>Arrows</option>
|
||||
<option value="dots">Dots</option>
|
||||
<option value="progress">Progress</option>
|
||||
</select>
|
||||
|
||||
|
||||
<input type="checkbox" id="dark_mode" value="1" />
|
||||
<label for="dark_mode">Dark Mode</label>
|
||||
|
||||
|
||||
<input type="checkbox" id="is_justified" value="1" checked />
|
||||
<label for="is_justified">Justified</label>
|
||||
|
||||
|
||||
<label>Animation:</label>
|
||||
<select id="animation">
|
||||
<option value="none">None</option>
|
||||
<option value="fade">Fade</option>
|
||||
<option value="slide-horizontal" selected>Slide Horizontal</option>
|
||||
<option value="slide-vertical">Slide Vertical</option>
|
||||
<option value="slide-swing">Slide Swing</option>
|
||||
</select>
|
||||
|
||||
|
||||
<label>Go To:</label>
|
||||
<select id="got_to_step">
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
</select>
|
||||
|
||||
|
||||
<label>External Buttons:</label>
|
||||
<button class="btn btn-secondary" id="prev-btn" type="button">Go Previous</button>
|
||||
<button class="btn btn-secondary" id="next-btn" type="button">Go Next</button>
|
||||
<button class="btn btn-danger" id="reset-btn" type="button">Reset Wizard</button>
|
||||
</p>
|
||||
<br />
|
||||
|
||||
|
||||
<!-- SmartWizard html -->
|
||||
<div id="smartwizard">
|
||||
|
||||
<ul class="nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#step-1">
|
||||
<strong>Step 1</strong> <br>This is step description
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#step-2">
|
||||
<strong>Step 2</strong> <br>This is step description
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#step-3">
|
||||
<strong>Step 3</strong> <br>This is step description
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link " href="#step-4">
|
||||
<strong>Step 4</strong> <br>This is step description
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div id="step-1" class="tab-pane" role="tabpanel" aria-labelledby="step-1">
|
||||
<h3>Step 1 Content</h3>
|
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
||||
</div>
|
||||
<div id="step-2" class="tab-pane" role="tabpanel" aria-labelledby="step-2">
|
||||
<h3>Step 2 Content</h3>
|
||||
<div>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </div>
|
||||
</div>
|
||||
<div id="step-3" class="tab-pane" role="tabpanel" aria-labelledby="step-3">
|
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
||||
</div>
|
||||
<div id="step-4" class="tab-pane" role="tabpanel" aria-labelledby="step-4">
|
||||
<h3>Step 4 Content</h3>
|
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<!-- Include jQuery -->
|
||||
<script src="https://code.jquery.com/jquery-3.5.0.min.js" integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"></script>
|
||||
|
||||
<!-- Include SmartWizard JavaScript source -->
|
||||
<script type="text/javascript" src="./js/jquery.smartWizard.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
// Toolbar extra buttons
|
||||
var btnFinish = $('<button></button>').text('Finish')
|
||||
.addClass('btn btn-info')
|
||||
.on('click', function(){ alert('Finish Clicked'); });
|
||||
var btnCancel = $('<button></button>').text('Cancel')
|
||||
.addClass('btn btn-danger')
|
||||
.on('click', function(){ $('#smartwizard').smartWizard("reset"); });
|
||||
|
||||
// Step show event
|
||||
$("#smartwizard").on("showStep", function(e, anchorObject, stepNumber, stepDirection, stepPosition) {
|
||||
$("#prev-btn").removeClass('disabled');
|
||||
$("#next-btn").removeClass('disabled');
|
||||
if(stepPosition === 'first') {
|
||||
$("#prev-btn").addClass('disabled');
|
||||
} else if(stepPosition === 'last') {
|
||||
$("#next-btn").addClass('disabled');
|
||||
} else {
|
||||
$("#prev-btn").removeClass('disabled');
|
||||
$("#next-btn").removeClass('disabled');
|
||||
}
|
||||
});
|
||||
|
||||
// Smart Wizard
|
||||
$('#smartwizard').smartWizard({
|
||||
selected: 0,
|
||||
theme: 'arrows', // default, arrows, dots, progress
|
||||
// darkMode: true,
|
||||
transition: {
|
||||
animation: 'slide-horizontal', // Effect on navigation, none/fade/slide-horizontal/slide-vertical/slide-swing
|
||||
},
|
||||
toolbarSettings: {
|
||||
toolbarPosition: 'both', // both bottom
|
||||
toolbarExtraButtons: [btnFinish, btnCancel]
|
||||
}
|
||||
});
|
||||
|
||||
// External Button Events
|
||||
$("#reset-btn").on("click", function() {
|
||||
// Reset wizard
|
||||
$('#smartwizard').smartWizard("reset");
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#prev-btn").on("click", function() {
|
||||
// Navigate previous
|
||||
$('#smartwizard').smartWizard("prev");
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#next-btn").on("click", function() {
|
||||
// Navigate next
|
||||
$('#smartwizard').smartWizard("next");
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
// Demo Button Events
|
||||
$("#got_to_step").on("change", function() {
|
||||
// Go to step
|
||||
var step_index = $(this).val() - 1;
|
||||
$('#smartwizard').smartWizard("goToStep", step_index);
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
$("#dark_mode").on("click", function() {
|
||||
// Change dark mode
|
||||
var options = {
|
||||
darkMode: $(this).prop("checked")
|
||||
};
|
||||
|
||||
$('#smartwizard').smartWizard("setOptions", options);
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#is_justified").on("click", function() {
|
||||
// Change Justify
|
||||
var options = {
|
||||
justified: $(this).prop("checked")
|
||||
};
|
||||
|
||||
$('#smartwizard').smartWizard("setOptions", options);
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#animation").on("change", function() {
|
||||
// Change theme
|
||||
var options = {
|
||||
transition: {
|
||||
animation: $(this).val()
|
||||
},
|
||||
};
|
||||
$('#smartwizard').smartWizard("setOptions", options);
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#theme_selector").on("change", function() {
|
||||
// Change theme
|
||||
var options = {
|
||||
theme: $(this).val()
|
||||
};
|
||||
$('#smartwizard').smartWizard("setOptions", options);
|
||||
return true;
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
376
public/style/vendor/jquery-smartwizard/examples/multiple.html
vendored
Normal file
376
public/style/vendor/jquery-smartwizard/examples/multiple.html
vendored
Normal file
@ -0,0 +1,376 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>jQuery Smart Wizard - The awesome jQuery step wizard plugin</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Include SmartWizard CSS -->
|
||||
<link href="./css/smart_wizard_all.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<!-- Demo Page Style - You don't need -->
|
||||
<style>
|
||||
body {
|
||||
padding-right: 5%;
|
||||
padding-left: 5%;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<br />
|
||||
<p>
|
||||
<label>Theme:</label>
|
||||
<select id="theme_selector">
|
||||
<option value="default">Default</option>
|
||||
<option value="arrows" selected>Arrows</option>
|
||||
<option value="dots">Dots</option>
|
||||
<option value="progress">Progress</option>
|
||||
</select>
|
||||
|
||||
|
||||
<input type="checkbox" id="is_justified" value="1" checked />
|
||||
<label for="is_justified">Justified</label>
|
||||
|
||||
|
||||
<label>Animation:</label>
|
||||
<select id="animation">
|
||||
<option value="none">None</option>
|
||||
<option value="fade">Fade</option>
|
||||
<option value="slide-horizontal" selected>Slide Horizontal</option>
|
||||
<option value="slide-vertical">Slide Vertical</option>
|
||||
<option value="slide-swing">Slide Swing</option>
|
||||
</select>
|
||||
|
||||
|
||||
<label>Go To:</label>
|
||||
<select id="got_to_step">
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
</select>
|
||||
|
||||
|
||||
<label>External Buttons:</label>
|
||||
<button class="btn btn-secondary" id="prev-btn" type="button">Go Previous</button>
|
||||
<button class="btn btn-secondary" id="next-btn" type="button">Go Next</button>
|
||||
<button class="btn btn-danger" id="reset-btn" type="button">Reset Wizard</button>
|
||||
</p>
|
||||
<br />
|
||||
|
||||
|
||||
<!-- SmartWizard html -->
|
||||
<div id="smartwizard">
|
||||
|
||||
<ul class="nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#step-1">
|
||||
<strong>Step 1</strong> This is step description
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#step-2">
|
||||
<strong>Step 2</strong> This is step description
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#step-3">
|
||||
<strong>Step 3</strong> This is step description
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#step-4">
|
||||
<strong>Step 4</strong> This is step description
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div id="step-1" class="tab-pane" role="tabpanel" aria-labelledby="step-1">
|
||||
<h3>Step 1 Content</h3>
|
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
||||
</div>
|
||||
<div id="step-2" class="tab-pane" role="tabpanel" aria-labelledby="step-2">
|
||||
<h3>Step 2 Content</h3>
|
||||
<div>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </div>
|
||||
</div>
|
||||
<div id="step-3" class="tab-pane" role="tabpanel" aria-labelledby="step-3">
|
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
||||
</div>
|
||||
<div id="step-4" class="tab-pane" role="tabpanel" aria-labelledby="step-4">
|
||||
<h3>Step 4 Content</h3>
|
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<p>
|
||||
<label>Theme:</label>
|
||||
<select id="theme_selector2">
|
||||
<option value="default">Default</option>
|
||||
<option value="arrows">Arrows</option>
|
||||
<option value="dots" selected>Dots</option>
|
||||
<option value="progress">Progress</option>
|
||||
</select>
|
||||
|
||||
|
||||
<input type="checkbox" id="is_justified2" value="1" checked />
|
||||
<label for="is_justified2">Justified</label>
|
||||
|
||||
|
||||
<label>Animation:</label>
|
||||
<select id="animation2">
|
||||
<option value="none">None</option>
|
||||
<option value="fade">Fade</option>
|
||||
<option value="slide-horizontal" selected>Slide Horizontal</option>
|
||||
<option value="slide-vertical">Slide Vertical</option>
|
||||
<option value="slide-swing">Slide Swing</option>
|
||||
</select>
|
||||
|
||||
|
||||
<label>Go To:</label>
|
||||
<select id="got_to_step2">
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
</select>
|
||||
|
||||
|
||||
<label>External Buttons:</label>
|
||||
<button class="btn btn-secondary" id="prev-btn2" type="button">Go Previous</button>
|
||||
<button class="btn btn-secondary" id="next-btn2" type="button">Go Next</button>
|
||||
<button class="btn btn-danger" id="reset-btn2" type="button">Reset Wizard</button>
|
||||
</p>
|
||||
<br />
|
||||
|
||||
|
||||
<!-- SmartWizard html -->
|
||||
<div id="smartwizard2">
|
||||
|
||||
<ul class="nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#step-1">
|
||||
<strong>Step 1</strong> This is step description
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#step-2">
|
||||
<strong>Step 2</strong> This is step description
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#step-3">
|
||||
<strong>Step 3</strong> This is step description
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#step-4">
|
||||
<strong>Step 4</strong> This is step description
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div id="step-1" class="tab-pane" role="tabpanel" aria-labelledby="step-1">
|
||||
<h3>Step 1 Content</h3>
|
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
||||
</div>
|
||||
<div id="step-2" class="tab-pane" role="tabpanel" aria-labelledby="step-2">
|
||||
<h3>Step 2 Content</h3>
|
||||
<div>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </div>
|
||||
</div>
|
||||
<div id="step-3" class="tab-pane" role="tabpanel" aria-labelledby="step-3">
|
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
||||
</div>
|
||||
<div id="step-4" class="tab-pane" role="tabpanel" aria-labelledby="step-4">
|
||||
<h3>Step 4 Content</h3>
|
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Include jQuery -->
|
||||
<script src="https://code.jquery.com/jquery-3.5.0.min.js" integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"></script>
|
||||
|
||||
<!-- Include SmartWizard JavaScript source -->
|
||||
<script type="text/javascript" src="./js/jquery.smartWizard.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
// Toolbar extra buttons
|
||||
var btnFinish = $('<button></button>').text('Finish')
|
||||
.addClass('btn btn-info')
|
||||
.on('click', function(){ alert('Finish Clicked'); });
|
||||
var btnCancel = $('<button></button>').text('Cancel')
|
||||
.addClass('btn btn-danger')
|
||||
.on('click', function(){ $('#smartwizard').smartWizard("reset"); });
|
||||
|
||||
// Step show event
|
||||
$("#smartwizard #smartwizard2").on("showStep", function(e, anchorObject, stepNumber, stepDirection, stepPosition) {
|
||||
$("#prev-btn").removeClass('disabled');
|
||||
$("#next-btn").removeClass('disabled');
|
||||
if(stepPosition === 'first') {
|
||||
$("#prev-btn").addClass('disabled');
|
||||
} else if(stepPosition === 'last') {
|
||||
$("#next-btn").addClass('disabled');
|
||||
} else {
|
||||
$("#prev-btn").removeClass('disabled');
|
||||
$("#next-btn").removeClass('disabled');
|
||||
}
|
||||
});
|
||||
|
||||
// Smart Wizard
|
||||
$('#smartwizard').smartWizard({
|
||||
selected: 0,
|
||||
theme: 'arrows',
|
||||
transition: {
|
||||
animation: 'slide-horizontal', // Effect on navigation, none/fade/slide-horizontal/slide-vertical/slide-swing
|
||||
},
|
||||
toolbarSettings: {
|
||||
toolbarPosition: 'both', // both bottom
|
||||
toolbarExtraButtons: [btnFinish, btnCancel]
|
||||
}
|
||||
});
|
||||
|
||||
// External Button Events
|
||||
$("#reset-btn").on("click", function() {
|
||||
// Reset wizard
|
||||
$('#smartwizard').smartWizard("reset");
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#prev-btn").on("click", function() {
|
||||
// Navigate previous
|
||||
$('#smartwizard').smartWizard("prev");
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#next-btn").on("click", function() {
|
||||
// Navigate next
|
||||
$('#smartwizard').smartWizard("next");
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
// Demo Button Events
|
||||
$("#got_to_step").on("change", function() {
|
||||
// Go to step
|
||||
var step_index = $(this).val() - 1;
|
||||
$('#smartwizard').smartWizard("goToStep", step_index);
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#is_justified").on("click", function() {
|
||||
// Change Justify
|
||||
var options = {
|
||||
justified: $(this).prop("checked")
|
||||
};
|
||||
|
||||
$('#smartwizard').smartWizard("setOptions", options);
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#animation").on("change", function() {
|
||||
// Change theme
|
||||
var options = {
|
||||
transition: {
|
||||
animation: $(this).val()
|
||||
},
|
||||
};
|
||||
$('#smartwizard').smartWizard("setOptions", options);
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#theme_selector").on("change", function() {
|
||||
// Change theme
|
||||
var options = {
|
||||
theme: $(this).val()
|
||||
};
|
||||
$('#smartwizard').smartWizard("setOptions", options);
|
||||
return true;
|
||||
});
|
||||
|
||||
// Smart Wizard 2nd
|
||||
$('#smartwizard2').smartWizard({
|
||||
selected: 0,
|
||||
theme: 'dots',
|
||||
enableURLhash: false,
|
||||
transition: {
|
||||
animation: 'slide-horizontal', // Effect on navigation, none/fade/slide-horizontal/slide-vertical/slide-swing
|
||||
},
|
||||
toolbarSettings: {
|
||||
toolbarPosition: 'both', // both bottom
|
||||
toolbarExtraButtons: [btnFinish, btnCancel]
|
||||
}
|
||||
});
|
||||
|
||||
// External Button Events
|
||||
$("#reset-btn2").on("click", function() {
|
||||
// Reset wizard
|
||||
$('#smartwizard2').smartWizard("reset");
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#prev-btn2").on("click", function() {
|
||||
// Navigate previous
|
||||
$('#smartwizard2').smartWizard("prev");
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#next-btn2").on("click", function() {
|
||||
// Navigate next
|
||||
$('#smartwizard2').smartWizard("next");
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
// Demo Button Events
|
||||
$("#got_to_step2").on("change", function() {
|
||||
// Go to step
|
||||
var step_index = $(this).val() - 1;
|
||||
$('#smartwizard2').smartWizard("goToStep", step_index);
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#is_justified2").on("click", function() {
|
||||
// Change Justify
|
||||
var options = {
|
||||
justified: $(this).prop("checked")
|
||||
};
|
||||
|
||||
$('#smartwizard2').smartWizard("setOptions", options);
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#animation2").on("change", function() {
|
||||
// Change theme
|
||||
var options = {
|
||||
transition: {
|
||||
animation: $(this).val()
|
||||
},
|
||||
};
|
||||
$('#smartwizard2').smartWizard("setOptions", options);
|
||||
return true;
|
||||
});
|
||||
|
||||
$("#theme_selector2").on("change", function() {
|
||||
// Change theme
|
||||
var options = {
|
||||
theme: $(this).val()
|
||||
};
|
||||
$('#smartwizard2').smartWizard("setOptions", options);
|
||||
return true;
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user