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 .= '&" 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"';
   url += '&" 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"';
   element.parentElement.innerHTML = "<iframe class='360_view' src='"+url+"' title='test'></iframe>";
   element.parentElement.innerHTML = "<iframe class='360_view' src='"+url+"' title='test'></iframe>";
   console.log(url);
   console.log(url);
  }
  }
});
});

Version vom 22. August 2022, 11:35 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;
  url += '&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"';
  element.parentElement.innerHTML = "<iframe class='360_view' src='"+url+"' title='test'></iframe>";
  console.log(url);
 }
});
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.