mirror of
https://github.com/msfjarvis/msfjarvis.dev.git
synced 2024-06-03 04:18:56 +05:30
simple_analytics: desperate times
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
18b852ce57
commit
b9dfe06599
|
@ -3,7 +3,7 @@
|
||||||
<script nonce="ONQV6ZLWMVXHIX3IMVQWIZLSL5RWY2LDNMFA====">
|
<script nonce="ONQV6ZLWMVXHIX3IMVQWIZLSL5RWY2LDNMFA====">
|
||||||
window.sa_event=window.sa_event||function(){a=[].slice.call(arguments);sa_event.q?sa_event.q.push(a):sa_event.q=[a]};
|
window.sa_event=window.sa_event||function(){a=[].slice.call(arguments);sa_event.q?sa_event.q.push(a):sa_event.q=[a]};
|
||||||
function item_click(name) {
|
function item_click(name) {
|
||||||
sa_event(`header_click_${name}`);
|
sa_event("header_click_" + name);
|
||||||
}
|
}
|
||||||
{{- range $index, $key := .Site.Params.Social -}}
|
{{- range $index, $key := .Site.Params.Social -}}
|
||||||
document.getElementById("{{ $key.icon }}-header").addEventListener('click', item_click("{{ $key.icon }}"));
|
document.getElementById("{{ $key.icon }}-header").addEventListener('click', item_click("{{ $key.icon }}"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user