PageSourceSearch

https://m-avenue.ma/wp-content/cache/speedycache/m-avenue.ma/assets/5faf609c7d92955f-user-geolocation.js

js m-avenue.ma collected 2026-10-06 22:54:27 UTC 1,116 bytes, 32 lines download raw bytes

1(function($){
2"use strict";
3const initGeolocationFilter=function(){
4window.JetSmartFilters.filtersList.JetEngineUserGeolocation='jet-smart-filters-user-geolocation';
5window.JetSmartFilters.filters.JetEngineUserGeolocation=class JetEngineUserGeolocation extends window.JetSmartFilters.filters.Search {
6name='user-geolocation';
7constructor($container){
8const $filter=$container.find('.geolocation-data');
9super($container, $filter);
10if(navigator.geolocation){
11navigator.geolocation.getCurrentPosition(( position)=> {
12this.dataValue={
13latitude: position.coords.latitude,
14longitude: position.coords.longitude,
15}
16window.JetSmartFilters?.filterGroups?.[ this.provider + '/' + this.queryId ]?.activeItemsExceptions.push(this.name);
17this.emitFitersApply();
18});
19}}
20processData(){
21}
22reset(){
23}};}
24if(window.JetMapListingGeolocationFilterData&&'jet-smart-filters/before-init'===window.JetMapListingGeolocationFilterData.initEvent){
25document.addEventListener('jet-smart-filters/before-init',(e)=> {
26initGeolocationFilter();
27});
28}else{
29window.addEventListener('DOMContentLoaded',(e)=> {
30initGeolocationFilter();
31});
32}}(jQuery));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.