mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-13 16:56:09 +01:00
Initial Commit
This commit is contained in:
61
static/baseTemplate/assets/themes/frontend/layout.js
Normal file
61
static/baseTemplate/assets/themes/frontend/layout.js
Normal file
@@ -0,0 +1,61 @@
|
||||
new WOW().init();
|
||||
|
||||
if (!(/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/i).test(navigator.userAgent || navigator.vendor || window.opera)) {
|
||||
skrollr.init({
|
||||
forceHeight: false,
|
||||
smoothScrolling: true
|
||||
});
|
||||
}
|
||||
|
||||
jQuery(document).ready(function($) {
|
||||
|
||||
/* Fixed header */
|
||||
|
||||
$(function() {
|
||||
"use strict";
|
||||
|
||||
$('.main-header-fixed .main-header').hcSticky({});
|
||||
|
||||
});
|
||||
|
||||
/* Sticky bars */
|
||||
|
||||
$(function() {
|
||||
"use strict";
|
||||
|
||||
$('.sticky-nav').hcSticky({
|
||||
top: 50
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
/* Main nav */
|
||||
|
||||
$(function() {
|
||||
"use strict";
|
||||
|
||||
$('.header-nav > li').hover(function(){
|
||||
$(this).addClass('sfHover');
|
||||
},
|
||||
function(){
|
||||
$(this).removeClass('sfHover');
|
||||
});
|
||||
|
||||
//$('.header-nav').superfish({
|
||||
//
|
||||
//});
|
||||
|
||||
});
|
||||
|
||||
/* Responsive nav */
|
||||
|
||||
$(function() {
|
||||
"use strict";
|
||||
|
||||
$('#responsive-menu').click(function() {
|
||||
$('.main-header ul.main-nav').toggle();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user