MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Jüdisches Sachsen Anhalt
Wechseln zu:Navigation, Suche
Zeile 7: Zeile 7:
  if (element.innerText == "360° Ansicht") {
  if (element.innerText == "360° Ansicht") {
   var url = element.href;
   var url = element.href;
   url = ´<iframe src="https://360grad-denkmale.de/wp-content/uploads/Kugelpanos/Synagogen_Sachsen_Anhalt/Synagoge_Groebzig/index.html?base=https://360grad-denkmale.de/wp-content/uploads/Kugelpanos/Synagogen_Sachsen_Anhalt/Synagoge_Groebzig/&amp;" marginheight="0" marginwidth="0" frameborder="0" scrolling="no" style="display: block; width: 100%; height: 480px;" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" class="pp-embed-content"></iframe>´;
   //element.parentElement.innerHTML = "<iframe class='360_view' src='"+url+"' title='test'></iframe>";
  element.parentElement.innerHTML = "<iframe class='360_view' src='"+url+"' title='test'></iframe>";
  element.parentElement.innerHTML = ´<iframe src="https://360grad-denkmale.de/wp-content/uploads/Kugelpanos/Synagogen_Sachsen_Anhalt/Synagoge_Groebzig/index.html?base=https://360grad-denkmale.de/wp-content/uploads/Kugelpanos/Synagogen_Sachsen_Anhalt/Synagoge_Groebzig/&amp;" marginheight="0" marginwidth="0" frameborder="0" scrolling="no" style="display: block; width: 100%; height: 480px;" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" class="pp-embed-content"></iframe>´;
 
   //console.log(element);
   //console.log(element);
  }
  }
});
});

Version vom 22. August 2022, 11:19 Uhr

/* Das folgende JavaScript wird für alle Benutzer geladen. */

// Suchfeld Platzhalter ändern
document.querySelector('[name="search"]').placeholder="Suchbegriff...";

document.querySelectorAll("a.external").forEach(function(element) {
 if (element.innerText == "360° Ansicht") {
  var url = element.href;
  //element.parentElement.innerHTML = "<iframe class='360_view' src='"+url+"' title='test'></iframe>";
  element.parentElement.innerHTML = ´<iframe src="https://360grad-denkmale.de/wp-content/uploads/Kugelpanos/Synagogen_Sachsen_Anhalt/Synagoge_Groebzig/index.html?base=https://360grad-denkmale.de/wp-content/uploads/Kugelpanos/Synagogen_Sachsen_Anhalt/Synagoge_Groebzig/&amp;" marginheight="0" marginwidth="0" frameborder="0" scrolling="no" style="display: block; width: 100%; height: 480px;" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" class="pp-embed-content"></iframe>´;
  //console.log(element);
 }
});
Cookies helfen uns bei der Bereitstellung von Jüdisches Sachsen Anhalt. Durch die Nutzung von Jüdisches Sachsen Anhalt erklärst du dich damit einverstanden, dass wir Cookies speichern.