1
0
mirror of https://github.com/hacks-guide/Guide_3DS.git synced 2025-08-31 20:21:49 +02:00

begin lang implementation

This commit is contained in:
Plailect
2017-01-15 01:06:59 -05:00
parent 410c792424
commit bab43f0b3b
8 changed files with 111 additions and 25 deletions

View File

@@ -29,8 +29,8 @@ $(document).ready(function(){
$(".sticky").Stickyfill();
var stickySideBar = function(){
var show = $(".author__urls-wrapper button").length === 0 ? $(window).width() > 1024 : !$(".author__urls-wrapper button").is(":visible");
// console.log("has button: " + $(".author__urls-wrapper button").length === 0);
var show = $(".author__urls-wrapper #toggle-nav").length === 0 ? $(window).width() > 1024 : !$(".author__urls-wrapper #toggle-nav").is(":visible");
// console.log("has button: " + $(".author__urls-wrapper #toggle-nav").length === 0);
// console.log("Window Width: " + windowWidth);
// console.log("show: " + show);
//old code was if($(window).width() > 1024)
@@ -54,9 +54,9 @@ $(document).ready(function(){
// Follow menu drop down
$(".author__urls-wrapper button").on("click", function() {
$(".author__urls-wrapper #toggle-nav").on("click", function() {
$(".author__urls").fadeToggle("fast", function() {});
$(".author__urls-wrapper button").toggleClass("open");
$(".author__urls-wrapper #toggle-nav").toggleClass("open");
});
// init smooth scroll