Last active
August 4, 2021 12:04
-
-
Save PetraMotz/9f8a8a1dae3f6767239cfc3bbada6bb4 to your computer and use it in GitHub Desktop.
JQuery Nützliches #timeout #allgemein #nützlich #js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
newId.charAt(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.nav-item').hover( | |
function(){ | |
$(this).children('.secondLevelNavList').slideDown({ | |
start:function(){ | |
$(this).css('display','flex') | |
} | |
}); | |
}, | |
function(){ | |
$(this).children('.secondLevelNavList').slideUp('slow', 'linear'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pathname = window.location.pathname; // Returns path only (/path/example.html) | |
var url = window.location.href; // Returns full URL (https://example.com/path/example.html) | |
var origin = window.location.origin; // Returns base URL (https://example.com) | |
var titleclean = decodeURIComponent(title); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTimeout(function(){ | |
do something | |
},5000); ->delay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pathname = window.location.pathname; ->>>> aktuelle url bzw pfad ermitteln | |
var url = window.location.href; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment