forked from nutomic/joinpeertube
15 lines
492 B
HTML
15 lines
492 B
HTML
|
{{ if ne .Site.Params.flattr "" }}
|
||
|
<script id='header-contact-flattr'>
|
||
|
(function(id){
|
||
|
var s = document.getElementById(id);
|
||
|
var f = document.createElement('iframe');
|
||
|
f.src = '//api.flattr.com/button/view/?uid={{ .Site.Params.flattr }}&button=compact&url={{ .Site.BaseURL }}&title={{ .Site.Title }}';
|
||
|
f.title = 'Flattr';
|
||
|
f.height = 20;
|
||
|
f.width = 110;
|
||
|
f.style.borderWidth = 0;
|
||
|
s.parentNode.insertBefore(f, s);
|
||
|
})('header-contact-flattr');
|
||
|
</script>
|
||
|
{{ end }}
|