MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Jüdisches Sachsen Anhalt
Wechseln zu:Navigation, Suche
Zeile 9: Zeile 9:
   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>';
  //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/&" 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(url);
   //console.log(url);
  }
  }
});
});

Version vom 22. August 2022, 11:49 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 += '&" 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.