This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
jquery:allgemein [2014/02/05 07:50] – admin | jquery:allgemein [2021/12/06 21:25] (current) – removed admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== jQuery ====== | ||
- | eigene Selektoren erstellen wie [[http:// | ||
- | |||
- | <code javascript> | ||
- | $.extend( | ||
- | $.expr[":" | ||
- | hottie: (" | ||
- | }); | ||
- | |||
- | function FindHotties() { | ||
- | $("ol a: | ||
- | } | ||
- | </ | ||
- | |||
- | |||
- | ===== HTML5 - Detect geolocation ===== | ||
- | |||
- | |||
- | <code javascript> | ||
- | // ASK GOOGLE FOR COUNTRY' | ||
- | if (navigator.geolocation) { | ||
- | navigator.geolocation.getCurrentPosition(function(position) { | ||
- | $.getJSON(' | ||
- | latlng: position.coords.latitude + ',' | ||
- | sensor: false, | ||
- | type: ' | ||
- | }, function(result) { | ||
- | var countryKey = result.results[0].address_components[5].short_name; | ||
- | console.log(countryKey); | ||
- | alert(' | ||
- | }); | ||
- | }); | ||
- | } | ||
- | </ |