git.iko.soy/gigawork-coworking/gigawork-coworking.github.io
on master help sign in
fixed yandex metrica
commit702f7d524d5c83f1847fcf9088ca42f14771918e authoriko <mail@iko.soy> dateWed 1 Jan 2025, 06:43 (2 years ago) parent7c3595f
2 files changed+13−4
unifiedsplit
app/Shared.elm+13−1 elm-pages.config.mjs−3
app/Shared.elm+13−1
@@ -6,6 +6,7 @@ import Element exposing (..)
66import Element.Background as Background
77import FatalError exposing (FatalError)
88import Html exposing (Html)
9+import Html.Attributes as Attributes
910import Pages.Flags
1011import Pages.PageUrl exposing (PageUrl)
1112import Route exposing (Route)
@@ -93,6 +94,17 @@ view :
9394 -> View msg
9495 -> { body : List (Html msg), title : String }
9596view sharedData page model toMsg pageView =
96− { body = [ layout [ Background.color (rgb255 243 243 243) ] pageView.body ]
97+ { body =
98+ [ Html.div []
99+ [ Html.img
100+ [ Attributes.src "https://mc.yandex.ru/watch/99382050"
101+ , Attributes.style "position" "absolute"
102+ , Attributes.style "left" "-9999px;"
103+ , Attributes.alt ""
104+ ]
105+ []
106+ ]
107+ , layout [ Background.color (rgb255 243 243 243) ] pageView.body
108+ ]
97109 , title = pageView.title
98110 }
elm-pages.config.mjs−3
@@ -8,7 +8,6 @@ export default {
88 return `
99<link rel="stylesheet" href="/style.css" />
1010<meta name="generator" content="elm-pages v${context.cliVersion}" />
11−<!-- Yandex.Metrika counter -->
1211<script type="text/javascript" >
1312 (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
1413 m[i].l=1*new Date();
@@ -23,8 +22,6 @@ export default {
2322 webvisor:true
2423 });
2524</script>
26−<noscript><div><img src="https://mc.yandex.ru/watch/99382050" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
27−<!-- /Yandex.Metrika counter -->
2825`;
2926 },
3027 preloadTagForFile(file) {