Cookies helfen uns bei der Bereitstellung von Altes Köln. Durch die Nutzung von Altes Köln erklärst du dich damit einverstanden, dass wir Cookies speichern. Weitere Informationen

Altes Köln

MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Altes Köln
Wechseln zu:Navigation, Suche
(Tooltip schließen durch Klick)
(+ eigene Klasse für Tooltip zum Stylen)
Zeile 17: Zeile 17:
 
style: {
 
style: {
 
def: false,
 
def: false,
classes: 'qtip-shadow qtip-bootstrap'
+
classes: 'qtip-shadow qtip-bootstrap ak-tooltip'
 
},
 
},
 
position: {
 
position: {

Version vom 18. August 2019, 23:22 Uhr

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


/* Tooltips */

$(function() {
	$('.ak-text-with-tooltip').each(function() {
		var $this = $(this);
		$this.qtip({
			content: {
				text: $this.next('.ak-tooltip-text'),
				title: {
					text: $this.data('title'),
					button: true
				}
			},
			style: {
				def: false,
				classes: 'qtip-shadow qtip-bootstrap ak-tooltip'
			},
			position: {
				my: 'bottom center',
				at: 'top center'
			},
			show: {
				event: 'click focus mouseenter',
				solo: true
			},
			hide: 'unfocus'
		});
	});
});