mirror of https://github.com/ColorlibHQ/gentelella
update src-custom.js update custom.min.js / added minified version of custom.js to files / minor sidebar menu bug fix for fixed sidebar
parent
8f249a7b8a
commit
ba1deb4c8f
|
@ -32,6 +32,41 @@
|
|||
// smartresize
|
||||
jQuery.fn[sr] = function(fn){ return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };
|
||||
|
||||
})(jQuery,'smartresize');
|
||||
/**
|
||||
* Resize function without multiple trigger
|
||||
*
|
||||
* Usage:
|
||||
* $(window).smartresize(function(){
|
||||
* // code here
|
||||
* });
|
||||
*/
|
||||
(function($,sr){
|
||||
// debouncing function from John Hann
|
||||
// http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/
|
||||
var debounce = function (func, threshold, execAsap) {
|
||||
var timeout;
|
||||
|
||||
return function debounced () {
|
||||
var obj = this, args = arguments;
|
||||
function delayed () {
|
||||
if (!execAsap)
|
||||
func.apply(obj, args);
|
||||
timeout = null;
|
||||
}
|
||||
|
||||
if (timeout)
|
||||
clearTimeout(timeout);
|
||||
else if (execAsap)
|
||||
func.apply(obj, args);
|
||||
|
||||
timeout = setTimeout(delayed, threshold || 100);
|
||||
};
|
||||
};
|
||||
|
||||
// smartresize
|
||||
jQuery.fn[sr] = function(fn){ return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };
|
||||
|
||||
})(jQuery,'smartresize');
|
||||
/**
|
||||
* Resize function without multiple trigger
|
||||
|
@ -166,7 +201,7 @@ $(document).ready(function () {
|
|||
if ($(window).width() < 992) {
|
||||
$('.main_container > .row > .right_col_wrapper').addClass('offset-2');
|
||||
} else {
|
||||
$('.main_container > .row > .right_col_wrapper').removeClass('offset-md-2').addClass('offset-md-1');
|
||||
$('.main_container > .row > .right_col_wrapper').removeClass('offset-md-2 offset-lg-2').addClass('offset-md-1');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -446,7 +446,7 @@
|
|||
<script src="../vendors/fullcalendar/dist/fullcalendar.min.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -526,7 +526,7 @@
|
|||
<script src="../vendors/Chart.js/dist/Chart.min.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -529,7 +529,7 @@
|
|||
<script src="../vendors/Chart.js/dist/Chart.min.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -816,6 +816,6 @@
|
|||
<script src="../vendors/nprogress/nprogress.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -534,6 +534,6 @@
|
|||
<script src="../vendors/nprogress/nprogress.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -711,7 +711,7 @@
|
|||
<script src="../vendors/echarts/map/js/world.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -344,6 +344,6 @@
|
|||
<script src="../vendors/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -375,6 +375,6 @@
|
|||
<script src="../vendors/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1683,7 +1683,7 @@
|
|||
<!-- starrr -->
|
||||
<script src="../vendors/starrr/dist/starrr.js"></script>
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -2658,7 +2658,7 @@
|
|||
<script src="../vendors/cropper/dist/cropper.min.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
<!-- Initialize datetimepicker -->
|
||||
<script>
|
||||
|
|
|
@ -774,6 +774,6 @@
|
|||
<script src="../vendors/fastclick/lib/fastclick.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -370,6 +370,6 @@
|
|||
<script src="../vendors/dropzone/dist/min/dropzone.min.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -522,7 +522,7 @@
|
|||
<script src="../vendors/validator/validator.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -767,7 +767,7 @@
|
|||
<!-- jQuery Smart Wizard -->
|
||||
<script src="../vendors/jQuery-Smart-Wizard/js/jquery.smartWizard.js"></script>
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
|
|
@ -2184,7 +2184,7 @@
|
|||
<script src="../vendors/pnotify/dist/pnotify.nonblock.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -3399,6 +3399,6 @@
|
|||
<script src="../vendors/nprogress/nprogress.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -771,7 +771,7 @@
|
|||
<script src="../vendors/google-code-prettify/src/prettify.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1145,7 +1145,7 @@
|
|||
<script src="../vendors/bootstrap-daterangepicker/daterangepicker.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -838,6 +838,6 @@
|
|||
<script src="../vendors/bootstrap-daterangepicker/daterangepicker.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -951,7 +951,7 @@
|
|||
<script src="../vendors/bootstrap-daterangepicker/daterangepicker.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -538,6 +538,6 @@
|
|||
<script src="../vendors/nprogress/nprogress.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -315,6 +315,6 @@
|
|||
<script src="../vendors/nprogress/nprogress.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -577,6 +577,6 @@
|
|||
<script src="../vendors/nprogress/nprogress.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -527,7 +527,7 @@
|
|||
<script src="../vendors/morris.js/morris.min.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -481,7 +481,7 @@
|
|||
<script src="../vendors/jquery.easy-pie-chart/dist/jquery.easypiechart.min.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -66,6 +66,6 @@
|
|||
<script src="../vendors/nprogress/nprogress.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -66,6 +66,6 @@
|
|||
<script src="../vendors/nprogress/nprogress.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -64,6 +64,6 @@
|
|||
<script src="../vendors/nprogress/nprogress.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -359,6 +359,6 @@
|
|||
<script src="../vendors/nprogress/nprogress.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -561,6 +561,6 @@
|
|||
<script src="../vendors/nprogress/nprogress.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -677,7 +677,7 @@
|
|||
<script src="../vendors/bootstrap-daterangepicker/daterangepicker.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -527,7 +527,7 @@
|
|||
<script src="../vendors/echarts/dist/echarts.min.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -868,6 +868,6 @@
|
|||
<script src="../vendors/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -777,6 +777,6 @@
|
|||
<script src="../vendors/iCheck/icheck.min.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -3753,7 +3753,7 @@
|
|||
<script src="../vendors/pdfmake/build/vfs_fonts.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -578,6 +578,6 @@
|
|||
<script src="../vendors/nprogress/nprogress.js"></script>
|
||||
|
||||
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -414,6 +414,6 @@
|
|||
<script src="../vendors/nprogress/nprogress.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1052,7 +1052,7 @@
|
|||
<script src="../vendors/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.js"></script>
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,3 +1,38 @@
|
|||
/**
|
||||
* Resize function without multiple trigger
|
||||
*
|
||||
* Usage:
|
||||
* $(window).smartresize(function(){
|
||||
* // code here
|
||||
* });
|
||||
*/
|
||||
(function($,sr){
|
||||
// debouncing function from John Hann
|
||||
// http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/
|
||||
var debounce = function (func, threshold, execAsap) {
|
||||
var timeout;
|
||||
|
||||
return function debounced () {
|
||||
var obj = this, args = arguments;
|
||||
function delayed () {
|
||||
if (!execAsap)
|
||||
func.apply(obj, args);
|
||||
timeout = null;
|
||||
}
|
||||
|
||||
if (timeout)
|
||||
clearTimeout(timeout);
|
||||
else if (execAsap)
|
||||
func.apply(obj, args);
|
||||
|
||||
timeout = setTimeout(delayed, threshold || 100);
|
||||
};
|
||||
};
|
||||
|
||||
// smartresize
|
||||
jQuery.fn[sr] = function(fn){ return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };
|
||||
|
||||
})(jQuery,'smartresize');
|
||||
/**
|
||||
* Resize function without multiple trigger
|
||||
*
|
||||
|
@ -131,7 +166,7 @@ $(document).ready(function () {
|
|||
if ($(window).width() < 992) {
|
||||
$('.main_container > .row > .right_col_wrapper').addClass('offset-2');
|
||||
} else {
|
||||
$('.main_container > .row > .right_col_wrapper').removeClass('offset-md-2').addClass('offset-md-1');
|
||||
$('.main_container > .row > .right_col_wrapper').removeClass('offset-md-2 offset-lg-2').addClass('offset-md-1');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue