mirror of
https://github.com/lan-tianxiang/JS_TOOL.git
synced 2025-07-14 22:22:35 +08:00
更新于 07-06 02:32
This commit is contained in:
@ -189,7 +189,6 @@
|
||||
|
||||
<!--弹窗-->
|
||||
<script type="text/javascript" src="./js/skel.min.js"></script>
|
||||
<script type="text/javascript" src="./js/main.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="https://cdn.jsdelivr.net/npm/sweetalert2@10.15.5/dist/sweetalert2.all.min.js"></script>
|
||||
|
||||
@ -220,47 +219,6 @@
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
(function ($) {
|
||||
skel
|
||||
.breakpoints({
|
||||
xlarge: '(max-width: 1680px)',
|
||||
large: '(max-width: 1280px)',
|
||||
medium: '(max-width: 980px)',
|
||||
small: '(max-width: 736px)',
|
||||
xsmall: '(max-width: 480px)'
|
||||
});
|
||||
$(function () {
|
||||
|
||||
var $window = $(window),
|
||||
$body = $('body'),
|
||||
$wrapper = $('#page-wrapper'),
|
||||
$banner = $('#banner'),
|
||||
$header = $('#header');
|
||||
|
||||
// Disable animations/transitions until the page has loaded.
|
||||
$body.addClass('is-loading');
|
||||
|
||||
$window.on('load', function () {
|
||||
window.setTimeout(function () {
|
||||
$body.removeClass('is-loading');
|
||||
}, 100);
|
||||
});
|
||||
|
||||
// Mobile?
|
||||
if (skel.vars.mobile)
|
||||
$body.addClass('is-mobile');
|
||||
else
|
||||
skel
|
||||
.on('-medium !medium', function () {
|
||||
$body.removeClass('is-mobile');
|
||||
})
|
||||
.on('+medium', function () {
|
||||
$body.addClass('is-mobile');
|
||||
});
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
</script>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user