<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://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://fwwiki.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACFoptions.js"/>
	<link rel="alternate" type="text/html" href="https://fwwiki.org/index.php?title=MediaWiki:CFoptions.js&amp;action=history"/>
	<updated>2026-11-15T03:37:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://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://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 style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; 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=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;  addOnloadHook(init_CF);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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 style=&quot;font-weight: bold; text-decoration: none;&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; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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 style=&quot;font-weight: bold; text-decoration: none;&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; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;} );&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;//&lt;/ins&gt;addOnloadHook(init_CF);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tiramon</name></author>
	</entry>
	<entry>
		<id>https://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://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(&amp;#039;CFoptions&amp;#039;)) return;&lt;br /&gt;
   optcont = document.getElementById(&amp;#039;CFoptions&amp;#039;);&lt;br /&gt;
   caption = document.createElement(&amp;#039;b&amp;#039;);&lt;br /&gt;
   caption.appendChild(document.createTextNode(&amp;#039;Lernzeit anzeigen: &amp;#039;));&lt;br /&gt;
   form = document.createElement(&amp;#039;form&amp;#039;);&lt;br /&gt;
   form.action = &amp;#039;#&amp;#039;;&lt;br /&gt;
   form.style.display = &amp;#039;inline&amp;#039;;&lt;br /&gt;
 &lt;br /&gt;
   option = document.createElement(&amp;#039;input&amp;#039;); option.type = &amp;#039;radio&amp;#039;; option.setAttribute(&amp;#039;onclick&amp;#039;, &amp;#039;switch_CF(this);&amp;#039;); option.checked = &amp;#039;checked&amp;#039;; &lt;br /&gt;
   option.name = &amp;#039;CF_switch&amp;#039;; option.value = &amp;#039;level&amp;#039;; form.appendChild(option); form.appendChild(document.createTextNode(&amp;#039;Lernzeit pro Stufe&amp;#039;));&lt;br /&gt;
 &lt;br /&gt;
   option = document.createElement(&amp;#039;input&amp;#039;); option.type = &amp;#039;radio&amp;#039;; option.setAttribute(&amp;#039;onclick&amp;#039;, &amp;#039;switch_CF(this);&amp;#039;);&lt;br /&gt;
   option.name = &amp;#039;CF_switch&amp;#039;; option.value = &amp;#039;total&amp;#039;; form.appendChild(option); form.appendChild(document.createTextNode(&amp;#039;Gesamtlernzeit&amp;#039;));&lt;br /&gt;
 &lt;br /&gt;
   option = document.createElement(&amp;#039;input&amp;#039;); option.type = &amp;#039;radio&amp;#039;; option.setAttribute(&amp;#039;onclick&amp;#039;, &amp;#039;switch_CF(this);&amp;#039;);&lt;br /&gt;
   option.name = &amp;#039;CF_switch&amp;#039;; option.value = &amp;#039;calc&amp;#039;; form.appendChild(option); form.appendChild(document.createTextNode(&amp;#039;Wartezeitenrechner&amp;#039;));&lt;br /&gt;
 &lt;br /&gt;
   optcont.appendChild(caption);&lt;br /&gt;
   optcont.appendChild(form);&lt;br /&gt;
 &lt;br /&gt;
   calc = document.getElementById(&amp;#039;CFcalc&amp;#039;);&lt;br /&gt;
   gw = Number(calc.removeChild(calc.firstChild).nodeValue);&lt;br /&gt;
   mx = Number(document.getElementById(&amp;#039;CFmax&amp;#039;).firstChild.nodeValue);&lt;br /&gt;
   form = document.createElement(&amp;#039;form&amp;#039;);&lt;br /&gt;
   form.action = &amp;#039;#&amp;#039;;&lt;br /&gt;
   table = document.createElement(&amp;#039;table&amp;#039;);&lt;br /&gt;
 &lt;br /&gt;
   tr = document.createElement(&amp;#039;tr&amp;#039;);&lt;br /&gt;
   td = document.createElement(&amp;#039;td&amp;#039;); td.appendChild(document.createTextNode(&amp;#039;Stufe:&amp;#039;)); tr.appendChild(td);&lt;br /&gt;
   td = document.createElement(&amp;#039;td&amp;#039;); input = document.createElement(&amp;#039;input&amp;#039;); input.type = &amp;#039;text&amp;#039;;&lt;br /&gt;
   input.style.width = &amp;#039;100px&amp;#039;; input.name = &amp;#039;CFlevel&amp;#039;; td.appendChild(input); tr.appendChild(td);&lt;br /&gt;
   table.appendChild(tr);&lt;br /&gt;
 &lt;br /&gt;
   tr = document.createElement(&amp;#039;tr&amp;#039;);&lt;br /&gt;
   td = document.createElement(&amp;#039;td&amp;#039;); td.appendChild(document.createTextNode(&amp;#039;Stufe Lerntechnik:&amp;#039;)); tr.appendChild(td);&lt;br /&gt;
   td = document.createElement(&amp;#039;td&amp;#039;); input = document.createElement(&amp;#039;input&amp;#039;); input.type = &amp;#039;text&amp;#039;;&lt;br /&gt;
   input.style.width = &amp;#039;100px&amp;#039;; input.name = &amp;#039;CFlerntech&amp;#039;; td.appendChild(input); tr.appendChild(td);&lt;br /&gt;
   table.appendChild(tr);&lt;br /&gt;
 &lt;br /&gt;
   tr = document.createElement(&amp;#039;tr&amp;#039;);&lt;br /&gt;
   td = document.createElement(&amp;#039;td&amp;#039;); td.colspan = &amp;#039;2&amp;#039;; td.style.textAlign = &amp;#039;center&amp;#039;;&lt;br /&gt;
   input = document.createElement(&amp;#039;input&amp;#039;); input.type = &amp;#039;button&amp;#039;; input.value = &amp;#039;Berechnen&amp;#039;;&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(&amp;#039;CFtotal&amp;#039;).style.display = &amp;#039;none&amp;#039;;&lt;br /&gt;
   calc.style.display = &amp;#039;none&amp;#039;;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
 function switch_CF(option) {&lt;br /&gt;
   document.getElementById(&amp;#039;CFlevel&amp;#039;).style.display = (option.value == &amp;#039;level&amp;#039; ? &amp;#039;block&amp;#039; : &amp;#039;none&amp;#039;);&lt;br /&gt;
   document.getElementById(&amp;#039;CFtotal&amp;#039;).style.display = (option.value == &amp;#039;total&amp;#039; ? &amp;#039;block&amp;#039; : &amp;#039;none&amp;#039;);&lt;br /&gt;
   document.getElementById(&amp;#039;CFcalc&amp;#039;).style.display = (option.value == &amp;#039;calc&amp;#039; ? &amp;#039;block&amp;#039; : &amp;#039;none&amp;#039;);&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(&amp;#039;Bitte nur Zahlen eingeben!&amp;#039;);&lt;br /&gt;
   if ((Number(form.CFlevel.value) &amp;gt; mx) || (Number(form.CFlerntech.value) &amp;gt; 50)) alert(&amp;#039;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.&amp;#039;);&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(&amp;#039;Das Training auf Stufe &amp;#039; + form.CFlevel.value + &amp;#039; dauert &amp;#039;&lt;br /&gt;
    + (duration &amp;gt;= 86400 ? String(Math.floor(duration / 86400)) + &amp;#039; Tage, &amp;#039; : &amp;#039;&amp;#039;) + String(Math.floor((duration % 86400) / 3600))&lt;br /&gt;
    + &amp;#039; Stunden und &amp;#039; + String(Math.floor((duration % 3600) / 60)) + &amp;#039; Minuten. Die Gesamtlernzeit beträgt &amp;#039;&lt;br /&gt;
    + (totalduration &amp;gt;= 86400 ? String(Math.floor(totalduration / 86400)) + &amp;#039; Tage, &amp;#039; : &amp;#039;&amp;#039;) + String(Math.floor((totalduration % 86400) / 3600))&lt;br /&gt;
    + &amp;#039; Stunden und &amp;#039; + String(Math.floor((totalduration % 3600) / 60)) + &amp;#039; Minuten.&amp;#039; + (form.CFlerntech.value &amp;gt; 0&lt;br /&gt;
    ? &amp;#039; Gegenüber dem Training mit Lerntechnik auf Stufe 0 wurden &amp;#039; + (lerntechsaving &amp;gt;= 86400&lt;br /&gt;
    ? String(Math.floor(lerntechsaving / 86400)) + &amp;#039; Tage, &amp;#039; : &amp;#039;&amp;#039;) + String(Math.floor((lerntechsaving % 86400) / 3600))&lt;br /&gt;
    + &amp;#039; Stunden und &amp;#039; + String(Math.floor((lerntechsaving % 3600) / 60)) + &amp;#039; Minuten (Gesamtlernzeit: &amp;#039; + (lerntechtotalsaving &amp;gt;= 86400&lt;br /&gt;
    ? String(Math.floor(lerntechtotalsaving / 86400)) + &amp;#039; Tage, &amp;#039; : &amp;#039;&amp;#039;) + String(Math.floor((lerntechtotalsaving % 86400) / 3600))&lt;br /&gt;
    + &amp;#039; Stunden und &amp;#039; + String(Math.floor((lerntechtotalsaving % 3600) / 60)) + &amp;#039; Minuten) eingespart.&amp;#039; : &amp;#039;&amp;#039;)));&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
 addOnloadHook(init_CF);&lt;/div&gt;</summary>
		<author><name>Tiramon</name></author>
	</entry>
</feed>