cnumr / ecoindex_badge Goto Github PK
View Code? Open in Web Editor NEWIntégrez facilement un badge Ecoindex à vos pages pour afficher votre score et sensibiliser à l'impact environnemental du numérique
License: Other
Intégrez facilement un badge Ecoindex à vos pages pour afficher votre score et sensibiliser à l'impact environnemental du numérique
License: Other
Please just minify /js/ecoindex-badge.js
Quand la page n'a pas été testée, le badge affiche un ?
, ce serait bien d'expliquer ce que cela signifie au roll over ou au touch ou même remplacer ce ?
par un message explicite.
J'ai mon badge sur une page en ?
, je lance le test. Quand il est terminé, je refresh ma page, le badge est toujours en ?
c'est normal ou c'est un bug dans mon implémentation (https://github.com/NovaGaia/gatsby-plugin-ecoindexbadge-v2)
Mon framework css (DaisyUI/Tailwindcss) utilise déjà data-theme
, ça entre donc en conflit et mets un background au bouton. Peut-être qu'un data-*
moins générique serait meilleur 🤷♂️
Context
Sur un WordPress hébergé par Infomaniak, je n'ai pas la main sur la conf. serveur. La conf. est possible dans WordPress pour forcer l'ajout du trailing slash, mais pas par défaut et pas à la porté de "Madame et monsieur tout le monde".
Le javascript ne détecte pas ce manque, donc envoie domain.td et non pas domain.td/ hors l'API nécessite visiblement ce trailing slash. Il faut homogénéiser et sécuriser les conf sans ce trailing slash
There are currently 2 almost identical JS files to handling light and dark mode.
Only one should be used to make maintenability easier.
L'objectif étant que l'utilisateur n'interprête pas la note comme étant applicable à l'ensemble du site, mais bien à une page donnée.
Je viens de faire une modification sur mon site
le badge est cohérent par rapport à mes actions et à mon dernier rapport.
Je clic sur le lien (donc en lançant l'url https://bff.ecoindex.fr/redirect/?url=https://novagaia.fr/)
Je tombe sur un ancien rapport (fait plus tôt dans la journée).
Each time a user refreshes a page where the logo is embedded with JavaScript, the API is called. This behavior will consume bandwidth and might create performance issues on both sides (website and API).
It should be possible to use local storage to avoid this.
If ecoindex.fr and bff.ecoindex.fr is down, the badge slows down websites that try to display it
As a user if a page doesn't have a score yet I can see a badge with question mark in it.
Example here: https://simbios.fr/services/ (scroll at bottom of the page)
If I click on it I expect to be redirected to the eco-index website with at least the URL set in the input. Even better would be that the calculation directly launches on page load.
What I got now is that I'm redirected to eco-index main page.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.