Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
/ js-button-loader Public archive

The load script that is used to include interactive Flattr buttons in a web page

Notifications You must be signed in to change notification settings

flattr/js-button-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

This is the 0.6 version of the load script that is used to include interactive Flattr buttons in a web page.

We provide this script for the sake of transparency as the one we host is minified and thus hard to follow the flow of. We want to enable others to learn from our implementation and we want others to be able to know what is happening in their sites and suggest improvements on how it can do what it does in a better way.

Minified hosted version

https://api.flattr.com/js/0.6/load.js

Documentation

Embed buttons in the Flattr Developer Platform

Include in your site

<script type="text/javascript">
/* <![CDATA[ */
(function() {
    var s = document.createElement('script');
    var t = document.getElementsByTagName('script')[0];

    s.type = 'text/javascript';
    s.async = true;
    s.src = '//api.flattr.com/js/0.6/load.js?mode=auto';

    t.parentNode.insertBefore(s, t);
 })();
/* ]]> */
</script>

License

MIT http://flattr.mit-license.org

About

The load script that is used to include interactive Flattr buttons in a web page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published