git.iko.soy/gigawork-coworking/gigawork-coworking.github.io
on master help sign in
2 files changed+27−2
since splitsnapshots
unifiedsplit
app/Shared.elm+13−1 elm-pages.config.mjs+14−1
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+14−1
@@ -8,7 +8,20 @@ export default {
88 return `
99<link rel="stylesheet" href="/style.css" />
1010<meta name="generator" content="elm-pages v${context.cliVersion}" />
11− <script src="https://api-maps.yandex.ru/v3/?apikey=ab2d2369-9d42-4b81-8406-ff02533f5fcb&lang=ru_RU"></script>
11+<script type="text/javascript" >
12+ (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
13+ m[i].l=1*new Date();
14+ for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
15+ k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
16+ (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
17+
18+ ym(99382050, "init", {
19+ clickmap:true,
20+ trackLinks:true,
21+ accurateTrackBounce:true,
22+ webvisor:true
23+ });
24+</script>
1225`;
1326 },
1427 preloadTagForFile(file) {