提交 ba1deb4c 编写于 作者: R razvanaldea89

update src-custom.js update custom.min.js / added minified version of...

update src-custom.js update custom.min.js / added minified version of custom.js to files / minor sidebar menu bug fix for fixed sidebar
上级 8f249a7b
......@@ -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');
}
}
......
此差异已折叠。
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
/**
* 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');
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册