<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Javascript on</title><link>http://salopst.yearl.us/tags/javascript/</link><description>Recent content in Javascript on</description><generator>Hugo</generator><language>en</language><copyright>&lt;a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener"&gt;CC BY-NC 4.0&lt;/a&gt;</copyright><lastBuildDate>Sat, 18 Sep 2021 05:43:09 +0100</lastBuildDate><atom:link href="http://salopst.yearl.us/tags/javascript/index.xml" rel="self" type="application/rss+xml"/><item><title>Website Analytics Hugo and Goatcounter: Ditching Google</title><link>http://salopst.yearl.us/website-analytics-hugo-shortcodes-and-goatcounter/</link><pubDate>Sat, 18 Sep 2021 05:43:09 +0100</pubDate><guid>http://salopst.yearl.us/website-analytics-hugo-shortcodes-and-goatcounter/</guid><description>&lt;h2 id="goatcounter"&gt;Goatcounter&lt;/h2&gt;&#10;&lt;p&gt;So, the Googles are everywhere. Their website analytics have been free to use for some time&amp;ndash; almost as long as I can remember&amp;ndash; and they are, frankly pretty amazing. But surely, surely there is something that grates less on the conscience?&lt;/p&gt;&#10;&lt;p&gt;Why yes! &lt;a href="https://goatcounter.com"&gt;Goatcounter&lt;/a&gt; is Free, Libre Open-Source Software (you do FLOSS, right?) that attempts pretty much the same kind of analytics. It&amp;rsquo;s a lightweight, privacy-conscious website analytics platform, free of cookies and all that intrusive jazz.&lt;/p&gt;</description></item><item><title>Diagrams and Maths in Hugo</title><link>http://salopst.yearl.us/drawing-diagrams-and-making-math-in-hugo/</link><pubDate>Tue, 07 Sep 2021 20:13:00 +0100</pubDate><guid>http://salopst.yearl.us/drawing-diagrams-and-making-math-in-hugo/</guid><description>&lt;h2 id="can-we-handle-flowcharts-using-flowchartjs-"&gt;Can we handle flowcharts using &lt;code&gt;flowchart.js&lt;/code&gt; ?&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="http://flowchart.js.org/"&gt;flowchart.js&lt;/a&gt;?&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Given a code-block of&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;```flow&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q0=&amp;gt;condition: Does it move?&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q1=&amp;gt;condition: Should it?&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q2=&amp;gt;condition: Should it?&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;np=&amp;gt;end: No problem!&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;dt=&amp;gt;end: Duct Tape! No Problem&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;wd=&amp;gt;end: Wd40 Rien de problem!&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q0(yes)-&amp;gt;q1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q0(no)-&amp;gt;q2&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q1(yes)-&amp;gt;np&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q1(no)-&amp;gt;dt&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q2(yes)-&amp;gt;wd&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q2(no)-&amp;gt;np&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;pre tabindex="0"&gt;&lt;code&gt;&#10;```flow&#10;q0=&amp;gt;condition: Does it move?&#10;q1=&amp;gt;condition: Should it?&#10;q2=&amp;gt;condition: Should it?&#10;&#10;np=&amp;gt;end: No problem!&#10;dt=&amp;gt;end: Duct Tape! No Problem&#10;wd=&amp;gt;end: Wd40 Rien de problem!&#10;&#10;q0(yes)-&amp;gt;q1&#10;q0(no)-&amp;gt;q2&#10;&#10;q1(yes)-&amp;gt;np&#10;q1(no)-&amp;gt;dt&#10;&#10;q2(yes)-&amp;gt;wd&#10;q2(no)-&amp;gt;np&#10;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="this-is-a-mermaid-example"&gt;This is a mermaid example:&lt;/h2&gt;&#10;&lt;p&gt;With the shortcode&lt;/p&gt;</description></item></channel></rss>