Skip to content

Instantly share code, notes, and snippets.

@PetraMotz
Last active August 4, 2021 12:04
Show Gist options
  • Save PetraMotz/9f8a8a1dae3f6767239cfc3bbada6bb4 to your computer and use it in GitHub Desktop.
Save PetraMotz/9f8a8a1dae3f6767239cfc3bbada6bb4 to your computer and use it in GitHub Desktop.
JQuery Nützliches #timeout #allgemein #nützlich #js
newId.charAt(0)
$('.nav-item').hover(
function(){
$(this).children('.secondLevelNavList').slideDown({
start:function(){
$(this).css('display','flex')
}
});
},
function(){
$(this).children('.secondLevelNavList').slideUp('slow', 'linear');
});
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);
setTimeout(function(){
do something
},5000); ->delay
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