MediaWiki:Beichtomat.js

window.onload = function {	document.getElementById("insertadditionalhtml0").innerHTML = ' Beichte starten '; document.getElementById("p-tb").innerHTML = ' Werkzeuge  '; document.getElementById("insertadditionalhtml1").innerHTML = '  ' };

//*function step1 //*	{ //*	document.getElementsByTagName("h1")[0].innerHTML = document.getElementsByTagName("h1")[0].innerHTML + " online – mit dem Beichtomat™ v1.0 (beta)"; //*	document.getElementById("beichte").style.padding = '10px'; //*	document.getElementById("beichte").innerHTML = 'so weit bin ich noch nicht ... erstmal bei mir zuhause zum Laufen kriegen'; //*	}

var text1 = '„Gott, der unser Herz erleuchtet, schenke dir wahre Erkenntnis deiner Sünden und Seiner Barmherzigkeit.“'

var resizespeed = 8;

function reduceheight(page) {	currentheight = document.getElementById(page).offsetHeight; if(currentheight - resizespeed >= 0) {		document.getElementById(page).style.height = currentheight - resizespeed + "px"; } else { document.getElementById(page).style.height = "0px"; document.getElementById(page).style.display = "none"; return "invisible"; };	};

function enlargeheight(page) {	if (document.getElementById(page).style.display == "none") {		document.getElementById(page).style.display = ""; };	if (document.getElementById(page).offsetHeight > document.getElementById(page + "inner").offsetHeight) {		document.getElementById(page).style.height = ""; return "visible"; } else { currentheight = document.getElementById(page).offsetHeight; document.getElementById(page).style.height = currentheight + resizespeed + "px"; };	}; function hidecontent(page) {	if (reduceheight(page) != "invisible") {		reduceheight(page); setTimeout('hidecontent("' + page + '")', 1); };	};

function showcontent(page) {	if (enlargeheight(page) != "visible") {		enlargeheight(page); setTimeout('showcontent("' + page + '")', 1); };	};

function skipcontent(page1, page2) {	if (reduceheight(page1) + enlargeheight(page2) != "invisiblevisible") {		reduceheight(page1); enlargeheight(page2); setTimeout('skipcontent("' + page1 + '", "' + page2 + '")', 1); };	};

function blase(geschwafel) {	document.getElementById("sprechblase").style.display = 'block'; document.getElementById("beichtsenf").innerHTML = geschwafel; document.getElementById("hide").style.display = 'none'; var time = geschwafel.length * 60; setTimeout("keineblase", time); }

function keineblase {	document.getElementById("sprechblase").style.display = 'none' }