<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://staging.twogpedia.com/index.php?action=history&amp;feed=atom&amp;title=Widget%3ANewsLanding%2FSlider</id>
	<title>Widget:NewsLanding/Slider - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://staging.twogpedia.com/index.php?action=history&amp;feed=atom&amp;title=Widget%3ANewsLanding%2FSlider"/>
	<link rel="alternate" type="text/html" href="https://staging.twogpedia.com/index.php?title=Widget:NewsLanding/Slider&amp;action=history"/>
	<updated>2026-05-13T14:05:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://staging.twogpedia.com/index.php?title=Widget:NewsLanding/Slider&amp;diff=9252&amp;oldid=prev</id>
		<title>Couchor: Created page with &quot;&lt;script&gt;   const container = document.getElementById(&#039;news-slider-container&#039;);   const prevButton = document.getElementById(&#039;prev&#039;);   const nextButton = document.getElementById(&#039;next&#039;);    let currentIndex = 0;    function showNews(index) {     const offset = -index * 100;     container.style.transform = `translateX(${offset}%)`;   }    function showNextNews() {     currentIndex = (currentIndex + 1) % container.children.length;     showNews(currentIndex);   }    functio...&quot;</title>
		<link rel="alternate" type="text/html" href="https://staging.twogpedia.com/index.php?title=Widget:NewsLanding/Slider&amp;diff=9252&amp;oldid=prev"/>
		<updated>2024-02-12T14:53:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;script&amp;gt;   const container = document.getElementById(&amp;#039;news-slider-container&amp;#039;);   const prevButton = document.getElementById(&amp;#039;prev&amp;#039;);   const nextButton = document.getElementById(&amp;#039;next&amp;#039;);    let currentIndex = 0;    function showNews(index) {     const offset = -index * 100;     container.style.transform = `translateX(${offset}%)`;   }    function showNextNews() {     currentIndex = (currentIndex + 1) % container.children.length;     showNews(currentIndex);   }    functio...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;script&amp;gt;&lt;br /&gt;
  const container = document.getElementById(&amp;#039;news-slider-container&amp;#039;);&lt;br /&gt;
  const prevButton = document.getElementById(&amp;#039;prev&amp;#039;);&lt;br /&gt;
  const nextButton = document.getElementById(&amp;#039;next&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
  let currentIndex = 0;&lt;br /&gt;
&lt;br /&gt;
  function showNews(index) {&lt;br /&gt;
    const offset = -index * 100;&lt;br /&gt;
    container.style.transform = `translateX(${offset}%)`;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  function showNextNews() {&lt;br /&gt;
    currentIndex = (currentIndex + 1) % container.children.length;&lt;br /&gt;
    showNews(currentIndex);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  function showPrevNews() {&lt;br /&gt;
    currentIndex = (currentIndex - 1 + container.children.length) % container.children.length;&lt;br /&gt;
    showNews(currentIndex);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  nextButton.addEventListener(&amp;#039;click&amp;#039;, showNextNews);&lt;br /&gt;
  prevButton.addEventListener(&amp;#039;click&amp;#039;, showPrevNews);&lt;br /&gt;
&lt;br /&gt;
  // Auto rotate every 20 seconds&lt;br /&gt;
  setInterval(showNextNews, 20000);&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/div&gt;</summary>
		<author><name>Couchor</name></author>
	</entry>
</feed>