"മീഡിയവിക്കി:Common.js" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

43 ബൈറ്റുകൾ കൂട്ടിച്ചേർത്തിരിക്കുന്നു ,  7 ജനുവരി
തിരുത്തലിനു സംഗ്രഹമില്ല
No edit summary
No edit summary
വരി 1: വരി 1:
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');
//Replace Map Marker with local icon
$(document).ready(function() {
/*
  console.log ("map replace");
function replaceMarkerImage(newUrl) {
    function replaceMarkerImage(newUrl) {
  // Get all image elements with the target class
        // Get all image elements with the target class
  const imageElements = document.querySelectorAll('img.leaflet-marker-icon');
        const imageElements = document.querySelectorAll('img.leaflet-marker-icon');


  // Loop through each image element
        // Loop through each image element and update the src
  imageElements.forEach(image => {
        imageElements.forEach(image => {
    // Attach a load event listener to the image
            // Update the image source directly
    image.addEventListener('load', function() {
            image.src = newUrl;
      // Update the image source after it has loaded
        });
      this.src = newUrl;
    }
     });
 
  });
    // Example usage:
}
    const newImageUrl = 'https://schoolwiki.in/extensions/Kartographer/lib/external/mapbox/images/marker-icon-2x.png'; // Replace with the new URL
 
     // Call the function to replace the marker images
    replaceMarkerImage(newImageUrl);
});


// Example usage:
const newImageUrl = 'https://schoolwiki.in/extensions/Kartographer/lib/external/mapbox/images/marker-icon-2x.png'; // Replace with the new URL


$(replaceMarkerImage(newImageUrl));
*/
//Quick Edit Box  
//Quick Edit Box  
// [[User:BrandonXLF/QuickEdit.js]]
// [[User:BrandonXLF/QuickEdit.js]]
"https://schoolwiki.in/പ്രത്യേകം:മൊബൈൽവ്യത്യാസം/2624644" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്