monitoring-jekyll-theme 0.5.8 → 0.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abaee2f7aed3b7708c4f46602e50b280da8823ae2514d530e2bbebc22f1bd59b
4
- data.tar.gz: 5b33e08e8470de9e69ff0318c5c2c4b642d1404a27fb410af1496122ba7bf1e2
3
+ metadata.gz: 8b8862eda219c200dff6618edb790d3d1f256d1ea3405be1322068705f7b6656
4
+ data.tar.gz: e2c99367f0d16e179831afad932fb7761cf2098529b1868d17512c7b90cc1de0
5
5
  SHA512:
6
- metadata.gz: ffc502535d82567000526774d98720a4321aed9c64f84d040bc4692f63dcf6a9b1ffea8df09e153e18d772bbe28909dc561a3ec1781a8672209940806c2ca1bd
7
- data.tar.gz: e3fa3dd351ce3a1aa13b9dde1d7bd50f2bcada0de28ec075703fc633c30f66a97786dcf69f8ca57c9d75272961493d7ec42810efc325ac8f693a003fbd565d37
6
+ metadata.gz: 73cd1e52db2f3257ccf97c504c4fe121b1cd5e323ea2694124de9d1d10e8581327d70cdfc8d19315a093a8ac4b340de1c28439e68ecb90a55fce17887b1607ed
7
+ data.tar.gz: 679c9e980870658d33988b612e259d6d2cbb9b005f614febffa0a9c2c72ca63b0526591ef815129e6a5aeb8aab03e70117a513b6c506762527e453c0a14776ea
data/README.md CHANGED
@@ -16,6 +16,7 @@
16
16
  - <https://www.npmjs.com/package/google>
17
17
  - <https://raphaelfabeni.com/ui-interactions/>
18
18
  - <https://www.ekopedia.fr/wiki/H%C3%A9bergement_Internet>
19
+ - https://www.aditus.io/button-contrast-checker/
19
20
 
20
21
  ## Annuaires Immobilier
21
22
 
@@ -30,7 +31,7 @@
30
31
 
31
32
  _Regular expression in all files_
32
33
 
33
- find \_data/ -name '_.json' -exec sed -i 's/{"charset": "(.\*)"}//g' {} \\;
34
+ find \_data/ -name '_.json' -exec sed -i 's/{}//g' {} \\;
34
35
  replace \\/ => / seocli
35
36
 
36
37
  ## Services
@@ -1,54 +1,47 @@
1
- {% assign gpagespeed = site.data.[website].gpagespeed[datelastcrawl] %}
2
- {% assign yellowlabtools = site.data.[website].yellowlabtools[datelastcrawl] %}
3
- {% assign lighthouse = site.data.[website].lighthouse[datelastcrawl] %}
4
- {% assign moz = site.data.[website].moz[datelastcrawl]%}
5
- {% assign stylestats = site.data.[website].stylestats[datelastcrawl] %}
6
- {% assign observatory = site.data.[website].observatory[datelastcrawl] %}
1
+ {% assign indexes = "" | split: ',' %}
2
+ {% assign indexesname = "Accessibilité,Bonnes pratiques,Performance,SEO,PWA,Speed Index" | split: ',' %}
3
+ {% comment %}{% endcomment %}
4
+ {% assign indexes = indexes | push: lighthouse.categories.accessibility.score | push: lighthouse.categories.best-practices.score | push: lighthouse.categories.performance.score | push: lighthouse.categories.seo.score | push: lighthouse.categories.pwa.score | push: lighthouse.audits.speed-index.score %}
7
5
 
8
- {% assign indexes = "" | split: ',' %}
9
- {% assign indexesname = "Accessibilité,Bonnes pratiques,Performance,SEO,PWA,Speed Index" | split: ',' %}
10
- {% comment %}{% endcomment %}
11
- {% assign indexes = indexes | push: lighthouse.categories.accessibility.score | push: lighthouse.categories.best-practices.score | push: lighthouse.categories.performance.score | push: lighthouse.categories.seo.score | push: lighthouse.categories.pwa.score | push: lighthouse.audits.speed-index.score %}
6
+ {% comment %}Calcul du score moyen à partir des données httparchive{% endcomment %}
7
+ {% assign domaverage = 600 | times: 3 %}{% assign httpaverage = 74 | times: 2 %}
8
+ {% assign ecoaverage = domaverage | plus: httpaverage | plus: 2000000 | times: 5 | divided_by: 6 %}
12
9
 
13
- {% comment %}Calcul du score moyen à partir des données httparchive{% endcomment %}
14
- {% assign domaverage = 600 | times: 3 %}{% assign httpaverage = 74 | times: 2 %}
15
- {% assign ecoaverage = domaverage | plus: httpaverage | plus: 2000000 | times: 5 | divided_by: 6 %}
10
+ {% comment %}Calcul du score le meilleur à partir du site bertrandkeller.info {% endcomment %}
11
+ {% assign dombest = 150 | times: 3 %}{% assign httpbest = 15 | times: 2 %}
12
+ {% assign ecobest = dombest | plus: httpbest | plus: 130000 | times: 5 | divided_by: 6 %}
16
13
 
17
- {% comment %}Calcul du score le meilleur à partir du site bertrandkeller.info {% endcomment %}
18
- {% assign dombest = 150 | times: 3 %}{% assign httpbest = 15 | times: 2 %}
19
- {% assign ecobest = dombest | plus: httpbest | plus: 130000 | times: 5 | divided_by: 6 %}
14
+ {% comment %}Calcul du score pour le site le pire{% endcomment %}
15
+ {% assign domworth = 3000 | times: 3 %}{% assign httpworth = 120 | times: 2 %}
16
+ {% assign ecoworth = domworth | plus: httpworth | plus: 5000000 | times: 5 | divided_by: 6 %}
20
17
 
21
- {% comment %}Calcul du score pour le site le pire{% endcomment %}
22
- {% assign domworth = 3000 | times: 3 %}{% assign httpworth = 120 | times: 2 %}
23
- {% assign ecoworth = domworth | plus: httpworth | plus: 5000000 | times: 5 | divided_by: 6 %}
18
+ {% comment %}Calcul du score le meilleur{% endcomment %}
19
+ {% assign ecobestscore = ecobest | times: 100 | divided_by: ecoworth %}
24
20
 
25
- {% comment %}Calcul du score le meilleur{% endcomment %}
26
- {% assign ecobestscore = ecobest | times: 100 | divided_by: ecoworth %}
21
+ {% comment %}Calcul de la valeur du site audité{% endcomment %}
22
+ {% assign dom = lighthouse.audits["dom-size"].details.items[0].value | replace: ",","" | times: 3 %}{% assign http = lighthouse.audits.diagnostics.details.items[0].numRequests | times: 2 %}
23
+ {% assign eco = dom | plus: http | plus: lighthouse.audits.diagnostics.details.items[0].totalByteWeight | times: 5 | divided_by: 6 %}
27
24
 
28
- {% comment %}Calcul de la valeur du site audité{% endcomment %}
29
- {% assign dom = lighthouse.audits["dom-size"].details.items[0].value | replace: ",","" | times: 3 %}{% assign http = lighthouse.audits.diagnostics.details.items[0].numRequests | times: 2 %}
30
- {% assign eco = dom | plus: http | plus: lighthouse.audits.diagnostics.details.items[0].totalByteWeight | times: 5 | divided_by: 6 %}
25
+ {% assign ecodiviser = ecoworth | minus: ecobest %}
31
26
 
32
- {% assign ecodiviser = ecoworth | minus: ecobest %}
33
-
34
- {% if lighthouse %}
35
- <div class="progress progress-bar flex">
36
- <div><h4>Energie</h4></div>
37
- <div>
38
- <div class="progress-bar-element">
39
- <div>
40
- <!-- <div class="progress-bar-tooltip" style="transform: translate(50%,-50%);background: rgba(34,150,30,1);">Max</div> -->
41
- <div class="progress-bar-tooltip" style="left: {{ ecoaverage | minus: ecobest | times: 100 | divided_by: ecodiviser }}%;">Moyenne grands sites</div>
42
- <div class="progress-bar-tooltip" style="left: {{ eco | minus: ecobest | times: 100 | divided_by: ecodiviser }}%;;z-index:2">{{ site.title }}</div>
43
- <!-- <div class="progress-bar-tooltip" style="background: rgba(176,2,2,1);">Min</div> -->
44
- </div>
27
+ {% if lighthouse %}
28
+ <div class="progress progress-bar flex">
29
+ <div><h4>Energie</h4></div>
30
+ <div>
31
+ <div class="progress-bar-element">
45
32
  <div>
46
- <!-- <div class="progress-bar-score" style="transform: translate(50%,35%);color: rgba(34,150,30,1);">Good</div> -->
47
- <div class="progress-bar-score" style="left: {{ ecoaverage | minus: ecobest | times: 100 | divided_by: ecodiviser }}%;">{{ ecoaverage | minus: ecobest | times: 100 | divided_by: ecodiviser | minus: 100 | times: -1 }}</div>
48
- <div class="progress-bar-score" style="left: {{ eco | minus: ecobest | times: 100 | divided_by: ecodiviser }}%;z-index:2">{{ eco | minus: ecobest | times: 100 | divided_by: ecodiviser | minus: 100 | times: -1 }}</div>
49
- <!-- <div class="progress-bar-score" style="color: rgba(176,2,2,1);">Bad</div> -->
50
- </div>
51
- </div>
52
- </div>
33
+ <!-- <div class="progress-bar-tooltip" style="transform: translate(50%,-50%);background: rgba(34,150,30,1);">Max</div> -->
34
+ <div class="progress-bar-tooltip" style="left: {{ ecoaverage | minus: ecobest | times: 100 | divided_by: ecodiviser }}%;">Moyenne grands sites</div>
35
+ <div class="progress-bar-tooltip" style="left: {{ eco | minus: ecobest | times: 100 | divided_by: ecodiviser }}%;;z-index:2">{{ site.title }}</div>
36
+ <!-- <div class="progress-bar-tooltip" style="background: rgba(176,2,2,1);">Min</div> -->
37
+ </div>
38
+ <div>
39
+ <!-- <div class="progress-bar-score" style="transform: translate(50%,35%);color: rgba(34,150,30,1);">Good</div> -->
40
+ <div class="progress-bar-score" style="left: {{ ecoaverage | minus: ecobest | times: 100 | divided_by: ecodiviser }}%;">{{ ecoaverage | minus: ecobest | times: 100 | divided_by: ecodiviser | minus: 100 | times: -1 }}</div>
41
+ <div class="progress-bar-score" style="left: {{ eco | minus: ecobest | times: 100 | divided_by: ecodiviser }}%;z-index:2">{{ eco | minus: ecobest | times: 100 | divided_by: ecodiviser | minus: 100 | times: -1 }}</div>
42
+ <!-- <div class="progress-bar-score" style="color: rgba(176,2,2,1);">Bad</div> -->
43
+ </div>
44
+ </div>
53
45
  </div>
54
- {% endif %}
46
+ </div>
47
+ {% endif %}
@@ -1,5 +1,5 @@
1
- <!DOCTYPE html lang="fr">
2
- <html>
1
+ <!DOCTYPE html>
2
+ <html lang="fr">
3
3
 
4
4
  <head>
5
5
  <meta charset="utf-8">
@@ -19,8 +19,7 @@
19
19
  {% endif %}{{ site.name }}</title>
20
20
  <meta name="subject" content="{{ site.subject }}">
21
21
  <meta name="generator" content="jekyll v{{ jekyll.version }}">
22
- <meta itemprop="name"
23
- content="{% if page.title %}{{ page.title }}{% endif %} | {% if page.description %}{{ page.description }} - {% endif %}{{ site.name }}">
22
+ <meta itemprop="name" content="{% if page.title %}{{ page.title }}{% endif %} | {% if page.description %}{{ page.description }} - {% endif %}{{ site.name }}">
24
23
  <meta itemprop="description" content="{{ site.subject }}">
25
24
  <meta name="robots" content="{{ site.robots }}">
26
25
 
@@ -64,7 +63,7 @@
64
63
  <script>
65
64
  if ("fonts" in document) {
66
65
  var Optiker = new FontFace("Optiker-K","url(/assets/fonts/Optiker-K.woff2) format('woff2')", {weight: "300"});
67
- var IBMPlexMonoBold = new FontFace("IBMPlexMono","url(/assets/fonts/IBMPlexMono-Medium.woff2) format('woff2')", {weight: "300",unicode-range: U+0030-0039;});
66
+ var IBMPlexMonoBold = new FontFace("IBMPlexMono","url(/assets/fonts/IBMPlexMono-Medium.woff2) format('woff2')", {weight: "300",unicode-range: "U+0030-0039";});
68
67
  var PublicSansExtraLight = new FontFace("PublicSans","url(/assets/fonts/PublicSans-ExtraLight.woff2) format('woff2')", {weight: "100"});
69
68
  var PublicSansRegular = new FontFace("PublicSans","url(/assets/fonts/PublicSans-Regular.woff2) format('woff2')", {weight: "300"});
70
69
  Promise.all([PublicSansRegular.load(), PublicSansExtraLight.load(), IBMPlexMonoBold.load(), Optiker.load()]).then(function (fonts) {
@@ -85,24 +84,48 @@
85
84
  <div class="wrapper">
86
85
  {{ content }}
87
86
  </div>
88
- </body>
89
87
  <script src="/assets/js/van11y-accessible-tab-panel-aria.es6.js" defer></script>
90
88
  <script src="/assets/js/van11y-accessible-hide-show-aria.es6.js" defer></script>
89
+ <script>
90
+ // Vanilla JavaScript Scroll to Anchor
91
+ // @ https://perishablepress.com/vanilla-javascript-scroll-anchor/
92
+
93
+ (function () {
94
+ scrollTo();
95
+ })();
96
+
97
+ function scrollTo() {
98
+ const links = document.querySelectorAll('.anchor');
99
+ links.forEach(each => (each.onclick = scrollAnchors));
100
+ }
101
+
102
+ function scrollAnchors(e, respond = null) {
103
+ const distanceToTop = el => Math.floor(el.getBoundingClientRect().top);
104
+ e.preventDefault();
105
+ var targetID = (respond) ? respond.getAttribute('href') : this.getAttribute('href');
106
+ const targetAnchor = document.querySelector(targetID);
107
+ if (!targetAnchor) return;
108
+ const originalTop = distanceToTop(targetAnchor);
109
+ window.scrollBy({
110
+ top: originalTop - 30,
111
+ left: 0,
112
+ behavior: 'smooth'
113
+ });
114
+ const checkIfDone = setInterval(function () {
115
+ const atBottom = window.innerHeight + window.pageYOffset >= document.body.offsetHeight - 2;
116
+ if (distanceToTop(targetAnchor) === 0 || atBottom) {
117
+ targetAnchor.tabIndex = '-1';
118
+ targetAnchor.focus();
119
+ window.history.pushState('', '', targetID);
120
+ clearInterval(checkIfDone);
121
+ }
122
+ }, 100);
123
+ }
124
+ </script>
91
125
 
92
126
  {% if site.zone.livehouse == true %}
93
127
  <script src="/assets/js/lighthouse.js"></script>
94
- <script>
95
- run();
96
-
97
- </script>
128
+ <script>run();</script>
98
129
  {% endif %}
99
- <script>
100
- // var link = document.querySelector(".js-expandmore")
101
- // link.addEventListener("click", function(){
102
- // history.pushState("", document.title, window.location.pathname);
103
- // window.location.href.substr(0, window.location.href.indexOf('#'))
104
- // });
105
-
106
- </script>
107
-
130
+ </body>
108
131
  </html>
@@ -886,6 +886,7 @@ a {
886
886
  margin: 0;
887
887
  padding: 1rem 1.5rem;
888
888
  background: #fff;
889
+ overflow: hidden;
889
890
  }
890
891
 
891
892
  @media screen and (min-width: 1024px) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monitoring-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - bertrandkeller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-25 00:00:00.000000000 Z
11
+ date: 2019-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll