<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://progzoo.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AFlags-snippet</id>
	<title>Template:Flags-snippet - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://progzoo.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AFlags-snippet"/>
	<link rel="alternate" type="text/html" href="https://progzoo.net/index.php?title=Template:Flags-snippet&amp;action=history"/>
	<updated>2026-06-10T13:09:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://progzoo.net/index.php?title=Template:Flags-snippet&amp;diff=223&amp;oldid=prev</id>
		<title>Andr3w at 18:23, 10 August 2021</title>
		<link rel="alternate" type="text/html" href="https://progzoo.net/index.php?title=Template:Flags-snippet&amp;diff=223&amp;oldid=prev"/>
		<updated>2021-08-10T18:23:36Z</updated>

		<summary type="html">&lt;p&gt;&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-GB&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 18:23, 10 August 2021&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;&amp;lt;pre id=&#039;shellbody&#039;&amp;gt;&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;&amp;lt;pre id=&#039;shellbody&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039; data-qtp=&#039;flag&lt;/ins&gt;&#039;&amp;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;div&gt;&amp;lt;div style=&amp;#039;background:silver;padding:5px&amp;#039;&amp;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;&amp;lt;div style=&amp;#039;background:silver;padding:5px&amp;#039;&amp;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;div&gt;&amp;lt;canvas id=&amp;#039;usr&amp;#039; width=--snippet-w-- height=--snippet-h--&amp;gt;&amp;lt;/canvas&amp;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;&amp;lt;canvas id=&amp;#039;usr&amp;#039; width=--snippet-w-- height=--snippet-h--&amp;gt;&amp;lt;/canvas&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key progzoo_wiki:diff:1.41:old-179:rev-223:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Andr3w</name></author>
	</entry>
	<entry>
		<id>https://progzoo.net/index.php?title=Template:Flags-snippet&amp;diff=179&amp;oldid=prev</id>
		<title>Andr3w: Created page with &quot;&lt;pre id=&#039;shellbody&#039;&gt; &lt;div style=&#039;background:silver;padding:5px&#039;&gt; &lt;canvas id=&#039;usr&#039; width=--snippet-w-- height=--snippet-h--&gt;&lt;/canvas&gt; &lt;canvas id=&#039;ans&#039; width=--snippet-w-- heigh...&quot;</title>
		<link rel="alternate" type="text/html" href="https://progzoo.net/index.php?title=Template:Flags-snippet&amp;diff=179&amp;oldid=prev"/>
		<updated>2021-08-10T08:41:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre id=&amp;#039;shellbody&amp;#039;&amp;gt; &amp;lt;div style=&amp;#039;background:silver;padding:5px&amp;#039;&amp;gt; &amp;lt;canvas id=&amp;#039;usr&amp;#039; width=--snippet-w-- height=--snippet-h--&amp;gt;&amp;lt;/canvas&amp;gt; &amp;lt;canvas id=&amp;#039;ans&amp;#039; width=--snippet-w-- heigh...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre id=&amp;#039;shellbody&amp;#039;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;#039;background:silver;padding:5px&amp;#039;&amp;gt;&lt;br /&gt;
&amp;lt;canvas id=&amp;#039;usr&amp;#039; width=--snippet-w-- height=--snippet-h--&amp;gt;&amp;lt;/canvas&amp;gt;&lt;br /&gt;
&amp;lt;canvas id=&amp;#039;ans&amp;#039; width=--snippet-w-- height=--snippet-h-- style=&amp;#039;display:none&amp;#039;&amp;gt;&amp;lt;/canvas&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre id=&amp;#039;shelljs&amp;#039;&amp;gt;&lt;br /&gt;
--snippet-usr--&lt;br /&gt;
drawFlag(document.getElementById(&amp;#039;usr&amp;#039;).getContext(&amp;#039;2d&amp;#039;));&lt;br /&gt;
(()=&amp;gt;{&lt;br /&gt;
  --snippet-ans--&lt;br /&gt;
  drawFlag(document.getElementById(&amp;#039;ans&amp;#039;).getContext(&amp;#039;2d&amp;#039;));&lt;br /&gt;
})();&lt;br /&gt;
let [a,b] = [&amp;#039;usr&amp;#039;,&amp;#039;ans&amp;#039;]&lt;br /&gt;
    .map(id=&amp;gt;document.getElementById(id))&lt;br /&gt;
    .map(elem=&amp;gt;elem.getContext(&amp;#039;2d&amp;#039;).getImageData(0,0,elem.width,elem.height))&lt;br /&gt;
let diff = a.data.map((v,i) =&amp;gt; v===b.data[i]?1:0).reduce((acc,v)=&amp;gt;acc+v,0)*100/a.data.length;&lt;br /&gt;
let fb = document.createElement(&amp;#039;div&amp;#039;);&lt;br /&gt;
fb.innerText = `Score: ${diff.toFixed(1)}`;&lt;br /&gt;
document.body.appendChild(fb);&lt;br /&gt;
fetch(`/reportProgress.php?uid=--snippet-uid--&amp;amp;qid=--snippet-qid--&amp;amp;score=${diff}`);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Andr3w</name></author>
	</entry>
</feed>