Skip to content

Commit 1bf0616

Browse files
Merge branch 'hotfix/menu' into develop
2 parents f553a76 + 7e4f654 commit 1bf0616

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

views/inc/footer.html

-31
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,6 @@
22
<footer id="footer">
33

44
</footer>
5-
<script>
6-
$(function () {
7-
navOpen();
8-
9-
window.onscroll = function(e) {
10-
offSetManager();
11-
}
12-
});
13-
14-
function offSetManager(){
15-
16-
var yOffset = 110;
17-
var currYOffSet = window.pageYOffset;
18-
var menuHeight = $('.doc-menu').height();
19-
var windowHeight = $(window).height();
20-
21-
if((yOffset < currYOffSet) && (menuHeight < windowHeight)) {
22-
$('.nav-wrap').addClass('fixed');
23-
} else if(yOffset > currYOffSet){
24-
$('.nav-wrap').removeClass('fixed');
25-
}
26-
}
27-
28-
function navOpen() {
29-
$('.nav-label, .open-documentation').on('click', function(e) {
30-
$('.nav-container').toggleClass('nav-container-active');
31-
e.preventDefault();
32-
});
33-
}
34-
35-
</script>
365

376
<script src="js/shCore.js"></script>
387
<script src="js/shBrushXml.js"></script>

0 commit comments

Comments
 (0)