<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.fwwiki.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACFoptions.js</id>
		<title>MediaWiki:CFoptions.js - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.fwwiki.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACFoptions.js"/>
		<link rel="alternate" type="text/html" href="https://www.fwwiki.org/index.php?title=MediaWiki:CFoptions.js&amp;action=history"/>
		<updated>2026-05-25T00:54:34Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.1</generator>

	<entry>
		<id>https://www.fwwiki.org/index.php?title=MediaWiki:CFoptions.js&amp;diff=67305&amp;oldid=prev</id>
		<title>Tiramon: addOnLoadHook was deprecated and is removed in 1.27</title>
		<link rel="alternate" type="text/html" href="https://www.fwwiki.org/index.php?title=MediaWiki:CFoptions.js&amp;diff=67305&amp;oldid=prev"/>
				<updated>2017-02-08T12:03:45Z</updated>
		
		<summary type="html">&lt;p&gt;addOnLoadHook was deprecated and is removed in 1.27&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 12:03, 8 February 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l80&quot; &gt;Line 80:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 80:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; addOnloadHook(init_CF);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;jQuery( document ).ready( function( $ ) {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;	init_CF();&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;} );&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;//&lt;/ins&gt;addOnloadHook(init_CF);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key fwwiki_org-fw_mediawiki_:diff:version:1.11a:oldid:31:newid:67305 --&gt;
&lt;/table&gt;</summary>
		<author><name>Tiramon</name></author>	</entry>

	<entry>
		<id>https://www.fwwiki.org/index.php?title=MediaWiki:CFoptions.js&amp;diff=31&amp;oldid=prev</id>
		<title>Tiramon: needs to be translated</title>
		<link rel="alternate" type="text/html" href="https://www.fwwiki.org/index.php?title=MediaWiki:CFoptions.js&amp;diff=31&amp;oldid=prev"/>
				<updated>2010-01-03T23:27:51Z</updated>
		
		<summary type="html">&lt;p&gt;needs to be translated&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; var calc, form, gw, mx;&lt;br /&gt;
&lt;br /&gt;
 function init_CF() {&lt;br /&gt;
   if (!document.getElementById('CFoptions')) return;&lt;br /&gt;
   optcont = document.getElementById('CFoptions');&lt;br /&gt;
   caption = document.createElement('b');&lt;br /&gt;
   caption.appendChild(document.createTextNode('Lernzeit anzeigen: '));&lt;br /&gt;
   form = document.createElement('form');&lt;br /&gt;
   form.action = '#';&lt;br /&gt;
   form.style.display = 'inline';&lt;br /&gt;
 &lt;br /&gt;
   option = document.createElement('input'); option.type = 'radio'; option.setAttribute('onclick', 'switch_CF(this);'); option.checked = 'checked'; &lt;br /&gt;
   option.name = 'CF_switch'; option.value = 'level'; form.appendChild(option); form.appendChild(document.createTextNode('Lernzeit pro Stufe'));&lt;br /&gt;
 &lt;br /&gt;
   option = document.createElement('input'); option.type = 'radio'; option.setAttribute('onclick', 'switch_CF(this);');&lt;br /&gt;
   option.name = 'CF_switch'; option.value = 'total'; form.appendChild(option); form.appendChild(document.createTextNode('Gesamtlernzeit'));&lt;br /&gt;
 &lt;br /&gt;
   option = document.createElement('input'); option.type = 'radio'; option.setAttribute('onclick', 'switch_CF(this);');&lt;br /&gt;
   option.name = 'CF_switch'; option.value = 'calc'; form.appendChild(option); form.appendChild(document.createTextNode('Wartezeitenrechner'));&lt;br /&gt;
 &lt;br /&gt;
   optcont.appendChild(caption);&lt;br /&gt;
   optcont.appendChild(form);&lt;br /&gt;
 &lt;br /&gt;
   calc = document.getElementById('CFcalc');&lt;br /&gt;
   gw = Number(calc.removeChild(calc.firstChild).nodeValue);&lt;br /&gt;
   mx = Number(document.getElementById('CFmax').firstChild.nodeValue);&lt;br /&gt;
   form = document.createElement('form');&lt;br /&gt;
   form.action = '#';&lt;br /&gt;
   table = document.createElement('table');&lt;br /&gt;
 &lt;br /&gt;
   tr = document.createElement('tr');&lt;br /&gt;
   td = document.createElement('td'); td.appendChild(document.createTextNode('Stufe:')); tr.appendChild(td);&lt;br /&gt;
   td = document.createElement('td'); input = document.createElement('input'); input.type = 'text';&lt;br /&gt;
   input.style.width = '100px'; input.name = 'CFlevel'; td.appendChild(input); tr.appendChild(td);&lt;br /&gt;
   table.appendChild(tr);&lt;br /&gt;
 &lt;br /&gt;
   tr = document.createElement('tr');&lt;br /&gt;
   td = document.createElement('td'); td.appendChild(document.createTextNode('Stufe Lerntechnik:')); tr.appendChild(td);&lt;br /&gt;
   td = document.createElement('td'); input = document.createElement('input'); input.type = 'text';&lt;br /&gt;
   input.style.width = '100px'; input.name = 'CFlerntech'; td.appendChild(input); tr.appendChild(td);&lt;br /&gt;
   table.appendChild(tr);&lt;br /&gt;
 &lt;br /&gt;
   tr = document.createElement('tr');&lt;br /&gt;
   td = document.createElement('td'); td.colspan = '2'; td.style.textAlign = 'center';&lt;br /&gt;
   input = document.createElement('input'); input.type = 'button'; input.value = 'Berechnen';&lt;br /&gt;
   input.onclick = calc_CF; td.appendChild(input); tr.appendChild(td);&lt;br /&gt;
   table.appendChild(tr);&lt;br /&gt;
 &lt;br /&gt;
   form.appendChild(table);&lt;br /&gt;
   calc.appendChild(form);&lt;br /&gt;
 &lt;br /&gt;
   document.getElementById('CFtotal').style.display = 'none';&lt;br /&gt;
   calc.style.display = 'none';&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
 function switch_CF(option) {&lt;br /&gt;
   document.getElementById('CFlevel').style.display = (option.value == 'level' ? 'block' : 'none');&lt;br /&gt;
   document.getElementById('CFtotal').style.display = (option.value == 'total' ? 'block' : 'none');&lt;br /&gt;
   document.getElementById('CFcalc').style.display = (option.value == 'calc' ? 'block' : 'none');&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
 function calc_CF() {&lt;br /&gt;
   if (isNaN(form.CFlevel.value) || isNaN(form.CFlerntech.value)) return alert('Bitte nur Zahlen eingeben!');&lt;br /&gt;
   if ((Number(form.CFlevel.value) &amp;gt; mx) || (Number(form.CFlerntech.value) &amp;gt; 50)) alert('Mindestens ein eingegebener Wert ist höher als die Maximalstufe der betreffenden Fähigkeit. Das Ergebnis ist hypothetisch und kann so nicht im Spiel vorkommen.');&lt;br /&gt;
   duration = Math.pow(0.97, form.CFlerntech.value) * (form.CFlevel.value - 1) * gw;&lt;br /&gt;
   totalduration = Math.pow(0.97, form.CFlerntech.value) * (form.CFlevel.value - 1) * form.CFlevel.value / 2 * gw;&lt;br /&gt;
   lerntechsaving = (form.CFlevel.value - 1) * gw - duration;&lt;br /&gt;
   lerntechtotalsaving = (form.CFlevel.value - 1) * form.CFlevel.value / 2 * gw - totalduration;&lt;br /&gt;
   if (form.nextSibling) calc.removeChild(form.nextSibling);&lt;br /&gt;
   calc.appendChild(document.createTextNode('Das Training auf Stufe ' + form.CFlevel.value + ' dauert '&lt;br /&gt;
    + (duration &amp;gt;= 86400 ? String(Math.floor(duration / 86400)) + ' Tage, ' : '') + String(Math.floor((duration % 86400) / 3600))&lt;br /&gt;
    + ' Stunden und ' + String(Math.floor((duration % 3600) / 60)) + ' Minuten. Die Gesamtlernzeit beträgt '&lt;br /&gt;
    + (totalduration &amp;gt;= 86400 ? String(Math.floor(totalduration / 86400)) + ' Tage, ' : '') + String(Math.floor((totalduration % 86400) / 3600))&lt;br /&gt;
    + ' Stunden und ' + String(Math.floor((totalduration % 3600) / 60)) + ' Minuten.' + (form.CFlerntech.value &amp;gt; 0&lt;br /&gt;
    ? ' Gegenüber dem Training mit Lerntechnik auf Stufe 0 wurden ' + (lerntechsaving &amp;gt;= 86400&lt;br /&gt;
    ? String(Math.floor(lerntechsaving / 86400)) + ' Tage, ' : '') + String(Math.floor((lerntechsaving % 86400) / 3600))&lt;br /&gt;
    + ' Stunden und ' + String(Math.floor((lerntechsaving % 3600) / 60)) + ' Minuten (Gesamtlernzeit: ' + (lerntechtotalsaving &amp;gt;= 86400&lt;br /&gt;
    ? String(Math.floor(lerntechtotalsaving / 86400)) + ' Tage, ' : '') + String(Math.floor((lerntechtotalsaving % 86400) / 3600))&lt;br /&gt;
    + ' Stunden und ' + String(Math.floor((lerntechtotalsaving % 3600) / 60)) + ' Minuten) eingespart.' : '')));&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
 addOnloadHook(init_CF);&lt;/div&gt;</summary>
		<author><name>Tiramon</name></author>	</entry>

	</feed>