institucional-brasil/assets/js/custom.js

95 lines
2.7 KiB
JavaScript
Raw Permalink Normal View History

2023-11-27 21:56:41 +00:00

/*=============================================================
Authour URI: www.binarytheme.com
License: Commons Attribution 3.0
http://creativecommons.org/licenses/by/3.0/
100% To use For Personal And Commercial Use.
IN EXCHANGE JUST GIVE US CREDITS AND TELL YOUR FRIENDS ABOUT US
======================================================== */
(function ($) {
"use strict";
var mainApp = {
metisMenu: function () {
/*====================================
METIS MENU
======================================*/
$('#main-menu').metisMenu();
},
loadMenu: function () {
/*====================================
LOAD APPROPRIATE MENU BAR
======================================*/
$(window).bind("load resize", function () {
if ($(this).width() < 768) {
$('div.sidebar-collapse').addClass('collapse')
} else {
$('div.sidebar-collapse').removeClass('collapse')
}
});
},
slide_show: function () {
/*====================================
SLIDESHOW SCRIPTS
======================================*/
$('#carousel-example').carousel({
interval: 3000 // THIS TIME IS IN MILLI SECONDS
})
},
reviews_fun: function () {
/*====================================
REWIEW SLIDE SCRIPTS
======================================*/
$('#reviews').carousel({
interval: 2000 //TIME IN MILLI SECONDS
})
},
wizard_fun: function () {
/*====================================
//horizontal wizrd code section
======================================*/
$(function () {
/* $("#wizard").steps({
headerTag: "h2",
bodyTag: "section",
transitionEffect: "slideLeft"
}); */
});
/*====================================
//vertical wizrd code section
======================================*/
$(function () {
/* $("#wizardV").steps({
headerTag: "h2",
bodyTag: "section",
transitionEffect: "slideLeft",
stepsOrientation: "vertical"
}); */
});
},
};
$(document).ready(function () {
mainApp.metisMenu();
mainApp.loadMenu();
mainApp.slide_show();
mainApp.reviews_fun();
mainApp.wizard_fun();
});
}(jQuery));