<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nl">
	<id>https://klimaatwiki.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js</id>
	<title>MediaWiki:Common.js - Bewerkingsoverzicht</title>
	<link rel="self" type="application/atom+xml" href="https://klimaatwiki.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js"/>
	<link rel="alternate" type="text/html" href="https://klimaatwiki.org/index.php?title=MediaWiki:Common.js&amp;action=history"/>
	<updated>2026-07-15T08:28:38Z</updated>
	<subtitle>Bewerkingsoverzicht voor deze pagina op de wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://klimaatwiki.org/index.php?title=MediaWiki:Common.js&amp;diff=3666&amp;oldid=prev</id>
		<title>Elwin: Nieuwe pagina aangemaakt met &#039;/* JavaScript die hier wordt geplaatst heeft invloed op alle pagina&#039;s voor alle gebruikers */  /* ---------- Reading progress bar script ---------- */ $(function () {     // Create the bar element and insert it into the DOM     const $bar = $(&#039;&lt;div&gt;&#039;, { id: &#039;readingProgress&#039; }).appendTo(&#039;body&#039;);      // Function that updates the bar width based on scroll position     const updateProgress = () =&gt; {         const docHeight   = $(document).height();         const…&#039;</title>
		<link rel="alternate" type="text/html" href="https://klimaatwiki.org/index.php?title=MediaWiki:Common.js&amp;diff=3666&amp;oldid=prev"/>
		<updated>2025-09-01T12:26:57Z</updated>

		<summary type="html">&lt;p&gt;Nieuwe pagina aangemaakt met &amp;#039;&lt;span class=&quot;autocomment&quot;&gt;JavaScript die hier wordt geplaatst heeft invloed op alle pagina&amp;#039;s voor alle gebruikers: &lt;/span&gt;  &lt;span class=&quot;autocomment&quot;&gt;---------- Reading progress bar script ----------: &lt;/span&gt; $(function () {     // Create the bar element and insert it into the DOM     const $bar = $(&amp;#039;&amp;lt;div&amp;gt;&amp;#039;, { id: &amp;#039;readingProgress&amp;#039; }).appendTo(&amp;#039;body&amp;#039;);      // Function that updates the bar width based on scroll position     const updateProgress = () =&amp;gt; {         const docHeight   = $(document).height();         const…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nieuwe pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* JavaScript die hier wordt geplaatst heeft invloed op alle pagina&amp;#039;s voor alle gebruikers */&lt;br /&gt;
&lt;br /&gt;
/* ---------- Reading progress bar script ---------- */&lt;br /&gt;
$(function () {&lt;br /&gt;
    // Create the bar element and insert it into the DOM&lt;br /&gt;
    const $bar = $(&amp;#039;&amp;lt;div&amp;gt;&amp;#039;, { id: &amp;#039;readingProgress&amp;#039; }).appendTo(&amp;#039;body&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
    // Function that updates the bar width based on scroll position&lt;br /&gt;
    const updateProgress = () =&amp;gt; {&lt;br /&gt;
        const docHeight   = $(document).height();&lt;br /&gt;
        const winHeight   = $(window).height();&lt;br /&gt;
        const scrollTop   = $(window).scrollTop();&lt;br /&gt;
&lt;br /&gt;
        // Calculate percentage of page scrolled&lt;br /&gt;
        const percent = ((scrollTop + winHeight) / docHeight) * 100;&lt;br /&gt;
&lt;br /&gt;
        // Set the bar width (capped at 100%)&lt;br /&gt;
        $bar.css(&amp;#039;width&amp;#039;, Math.min(percent, 100) + &amp;#039;%&amp;#039;);&lt;br /&gt;
    };&lt;br /&gt;
&lt;br /&gt;
    // Run once on load (in case the page is short enough to be fully visible)&lt;br /&gt;
    updateProgress();&lt;br /&gt;
&lt;br /&gt;
    // Update on scroll and on window resize (the latter can affect heights)&lt;br /&gt;
    $(window).on(&amp;#039;scroll resize&amp;#039;, updateProgress);&lt;br /&gt;
});&lt;/div&gt;</summary>
		<author><name>Elwin</name></author>
	</entry>
</feed>