Add files via upload

This commit is contained in:
Last
2018-11-15 17:39:11 +08:00
committed by GitHub
parent ed7db38abd
commit eec60a63f2
28 changed files with 2338 additions and 0 deletions

10
z_nav/conf.json Normal file
View File

@@ -0,0 +1,10 @@
{
"name": "自动隐藏导航栏",
"brief": "这是针对有大图(横向全屏的 页面制作的显隐导航, 如果不打算放置顶部图片 可以注释掉footer_jsafter.htm的第三行",
"version": "1.0",
"bbs_version": "4.0",
"installed": 1,
"enable": 0,
"hooks_rank": [],
"dependencies": []
}

View File

@@ -0,0 +1,41 @@
<script>
//延时150ms? 先删掉影响样式效果的 .bg-inverse
$('.navbar').removeClass('bg-inverse');
//setTimeout("$('.navbar').removeClass('bg-inverse')",150)
//依赖JQ,应该放在页面最后加载
var home = location.href,
s = $('#bgvideo')[0],
Siren = {
// 显示&隐藏导航栏
NH: function(){
var h1 = 0,
h2 = 400,
ss = $(document).scrollTop();
$(window).scroll(function(){
var s = $(document).scrollTop();
if(s== h1){
$('.navbar').removeClass('yya');
}if(s > h1){
$('.navbar').addClass('yya');
}if(s > h2){
$('.navbar').addClass('gizle');
if(s > ss){
$('.navbar').removeClass('sabit');
}else{
$('.navbar').addClass('sabit');
}
ss = s;
}
});
},
}
$(function() {
Siren.NH(); // 显示&隐藏导航栏
})
</script>

View File

@@ -0,0 +1,28 @@
<style>
/* 全局的动态导航条样式 可以打包到css文件 不是很重要,也可以放到页面最后加载 */
.navbar {
width: 100%;
background: none;
-webkit-transition: all .4s ease;
transition: all .4s ease;
position: fixed;
z-index: 9999;
top: 0
}
.yya {
position: fixed;
left: 0;
top: 0;
background: rgba(0, 0, 0, .6);
box-shadow: 0 0 1px rgba(0,0,0,.15)
}
.gizle {
top: -100px;
}
.sabit {
top: 0;
z-index: 9999;
}
</style>

BIN
z_nav/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB