Lightweight affiliate badge system for OSGeo community projects
A minimal, high-performance JavaScript widget that displays OSGeo affiliation badges and announcements on participating project websites. Designed with security and performance as the highest priorities, the entire payload is under 15KB and loads asynchronously to never impact host page performance.
Add these two lines to your project's HTML:
<script
src="https://affiliate.osgeo.org/js/osgeo-inject.min.js"
defer
data-position="top-right"
></script>
<link
rel="stylesheet"
href="https://affiliate.osgeo.org/css/osgeo-inject.min.css"
/>That's it! The OSGeo badge will appear in the top-right corner of your page.
| Attribute | Values | Default | Description |
|---|---|---|---|
data-position |
top-right, top-left, bottom-right, bottom-left |
top-right |
Badge position |
data-collapsed |
true, false |
false |
Start collapsed |
data-theme |
light, dark, auto |
auto |
Color theme |
- π Documentation
- π Issue Tracker
- π Code of Conduct
- π License (MIT)
- π©βπ» Developer Guide
This project is maintained by volunteers in the OSGeo community. If you find it useful, please consider supporting its development:
Tim Sketcher |
|---|
