76 lines
1.3 KiB
JavaScript
76 lines
1.3 KiB
JavaScript
var Cms = function(){
|
|
var slider = function(){
|
|
jQuery('.SlideToolHeader').on('click', function () {
|
|
var el = jQuery(this).hasClass('expand');
|
|
if(el)
|
|
{
|
|
|
|
jQuery(this).removeClass('expand').addClass('collapse');
|
|
jQuery(this).closest('.cm-content-box').find('.cm-content-body').slideUp(300);
|
|
jQuery(this).closest('.content-title').addClass('collapse');
|
|
|
|
}
|
|
else
|
|
{
|
|
jQuery(this).removeClass('collapse').addClass('expand');
|
|
jQuery(this).closest('.cm-content-box').find('.cm-content-body').slideDown(300);
|
|
jQuery(this).closest('.content-title').removeClass('collapse');
|
|
}
|
|
});
|
|
|
|
$(document).ready(function(){
|
|
$('.open').on('click',function(){
|
|
$('.main-check').slideToggle('slow');
|
|
|
|
});
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Function ============ */
|
|
return {
|
|
init:function(){
|
|
slider();
|
|
|
|
},
|
|
|
|
|
|
load:function(){
|
|
|
|
},
|
|
|
|
resize:function(){
|
|
//vHeight();
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}();
|
|
|
|
/* Document.ready Start */
|
|
jQuery(document).ready(function() {
|
|
$('[data-bs-toggle="popover"]').popover();
|
|
'use strict';
|
|
Cms.init();
|
|
|
|
});
|
|
/* Document.ready END */
|
|
|
|
/* Window Load START */
|
|
jQuery(window).on('load',function () {
|
|
'use strict';
|
|
Cms.load();
|
|
|
|
|
|
});
|
|
/* Window Load END */
|
|
/* Window Resize START */
|
|
jQuery(window).on('resize',function () {
|
|
'use strict';
|
|
Cms.resize();
|
|
|
|
});
|
|
/* Window Resize END */ |