//Main admin JS file //css loading function loadStyleSheet(src) { if($("body").length>0){ if (document.createStyleSheet){ document.createStyleSheet('"'+src+'"'); } else { $("head").append($("")); } } } $(function() { loadStyleSheet($('#base_url').val()+"assets/libs/slice/bootstrap/css/bootstrap.css"); loadStyleSheet($('#base_url').val()+"assets/libs/slice/animate.css/animate.css"); loadStyleSheet($('#base_url').val()+"assets/libs/slice/fontawesome/css/all.css"); loadStyleSheet($('#base_url').val()+"assets/libs/slice/slice/css/slice.css"); loadStyleSheet($('#base_url').val()+"assets/libs/slice/slice/css/slice-banner.css"); loadStyleSheet($('#base_url').val()+"assets/libs/slice/slice/theme/simple/slice-theme-simple.css"); //loadStyleSheet($('#base_url').val()+"assets/libs/slice/slice/css/livepreview.css"); loadStyleSheet($('#base_url').val()+"assets/css/jquery.cookiebar.css"); loadStyleSheet($('#base_url').val()+"assets/css/jquery-ui.min.css"); loadStyleSheet($('#base_url').val()+"assets/libs/revolution/css/settings.css"); loadStyleSheet($('#base_url').val()+"assets/libs/revolution/css/layers.css"); loadStyleSheet($('#base_url').val()+"assets/libs/revolution/css/navigation.css"); loadStyleSheet($('#base_url').val()+"assets/libs/responsive-grid-gallery/plugin/css/gridGallery.css"); loadStyleSheet('https://fonts.googleapis.com/css?family=Assistant:300,700&display=swap rel="stylesheet"'); loadStyleSheet($('#base_url').val()+"assets/css/classi.css"); loadStyleSheet($('#base_url').val()+"assets/css/style-101.css"); loadStyleSheet($('#base_url').val()+"assets/css/sky-mega-menu.css"); loadStyleSheet($('#base_url').val()+"assets/css/menu_laterale.css"); loadStyleSheet($('#base_url').val()+"assets/css/observer.css"); //css loading }); jQuery(window).on('load', function() { $("body").animate({ opacity: 1 }); $('html').animate({scrollTop: 1}, 0); });