remove plausible stats
This commit is contained in:
parent
a4db1232d6
commit
66a44f519a
|
@ -326,10 +326,6 @@ function updateGutters(cm) {
|
|||
</textarea>
|
||||
</form>
|
||||
|
||||
<!-- https://plausible.io/docs/custom-event-goals -->
|
||||
<script defer data-domain="programmingfonts.org" src="https://plausible.io/js/script.tagged-events.js"></script>
|
||||
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
||||
|
||||
<script src="index.js" type="module"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
15
index.js
15
index.js
|
@ -1,4 +1,4 @@
|
|||
/* global CodeMirror plausible */
|
||||
/* global CodeMirror */
|
||||
|
||||
import { Cookies } from './modules/cookies.js'
|
||||
import { Fontsize } from './modules/fontsize.js'
|
||||
|
@ -44,7 +44,7 @@ function getFont () {
|
|||
}
|
||||
|
||||
// ProgrammingFonts font selector
|
||||
function selectFont (trigger) {
|
||||
function selectFont () {
|
||||
const msg = document.querySelector('footer .subtitle')
|
||||
const codeMirror = document.querySelector('.CodeMirror')
|
||||
const font = getFont()
|
||||
|
@ -91,15 +91,6 @@ function selectFont (trigger) {
|
|||
}
|
||||
}
|
||||
|
||||
if (trigger === 'hash') {
|
||||
plausible(font)
|
||||
plausible('Font Selected', {
|
||||
props: {
|
||||
font
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Cookies.set('font', font)
|
||||
}
|
||||
|
||||
|
@ -234,7 +225,7 @@ function walk (direction) {
|
|||
}
|
||||
|
||||
window.onhashchange = () => {
|
||||
selectFont('hash')
|
||||
selectFont()
|
||||
}
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
|
|
Loading…
Reference in New Issue