Penambahan FrontEnd All-New-Manufacture
This commit is contained in:
70
public/js/dashboard/cms.js
Normal file
70
public/js/dashboard/cms.js
Normal file
@@ -0,0 +1,70 @@
|
||||
var jobbickCms = function(){
|
||||
var slider = function(){
|
||||
jQuery('.SlideToolHeader').on('click', function () {
|
||||
var el = jQuery(this).find('.handle').hasClass('expand');
|
||||
if(el)
|
||||
{
|
||||
|
||||
jQuery(this).find('.handle').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).find('.handle').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';
|
||||
jobbickCms.init();
|
||||
|
||||
});
|
||||
/* Document.ready END */
|
||||
|
||||
/* Window Load START */
|
||||
jQuery(window).on('load',function () {
|
||||
'use strict';
|
||||
jobbickCms.load();
|
||||
|
||||
|
||||
});
|
||||
/* Window Load END */
|
||||
/* Window Resize START */
|
||||
jQuery(window).on('resize',function () {
|
||||
'use strict';
|
||||
jobbickCms.resize();
|
||||
|
||||
});
|
||||
/* Window Resize END */
|
||||
Reference in New Issue
Block a user