Werbung:

Online-Impressum.de

*20% Rabatt auf die erste Abbuchung. Nur einmal je Projekt. Nicht kombinierbar mit anderen Aktionen.

MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus TagTraum
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 28: Zeile 28:
});
});
$(.fa-circle-xmark).click(function() {
$(.fa-circle-xmark).click(function() {
$(this).find('.tooltip').css('display', 'none');
$('.tooltip').css('display', 'none');
});
});



Version vom 2. März 2023, 00:57 Uhr

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

var makeIframe = document.createElement("iframe");
makeIframe.setAttribute("src", "https://discord.com/widget?id=718907647465881671&theme=dark");
makeIframe.setAttribute("scrolling", "no");
makeIframe.style.width = "197px";
makeIframe.style.height = "500px";
makeIframe.style.border = "0";

var makediv = document.createElement("div");
makediv.className = 'discorddiv';
makediv.style.height = "500px";
makediv.style.width = "197px";
makediv.style.position = "relative";
makediv.style.overflow = "hidden";

makediv.appendChild(makeIframe);

var getRef = document.getElementById("page-tools");
var parentDiv = getRef.parentNode;
parentDiv.insertBefore(makediv, getRef);

/* ------- */
/* --- Tooltips ---- */

$(.qm).click(function() {
	$(this).find('.tooltip').css('display', 'block');
});
$(.fa-circle-xmark).click(function() {
	$('.tooltip').css('display', 'none');
});


if ($('.tooltip').is(':visible')){
alert();
 $(document).click(function(event) { 
   if(!$(event.target).closest('.tooltip').length) {
     $('.tooltip').hide();
   }        
 });
}

/* ------- */