We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c494745 commit 6d5d3b0Copy full SHA for 6d5d3b0
header.html
@@ -1,6 +1,6 @@
1
<script>
2
- var interval = setInterval(function(){
3
- var el = document.querySelector('.search-noresults');
+ function __addSupport() {
+ var el = document.querySelector('.search-noresults');
4
var content = '<a href="https://paypal.me/basaratali" style="display: block;text-align: center;"> Buy me a beer / coffee 🍻 ☕️ 🌹 <br><br><img src="https://img.shields.io/badge/Donate-PayPal-green.svg" alt="donate"><br><br></a>';
5
if(el) {
6
if (el.innerHTML.indexOf(content) === -1){
@@ -9,6 +9,10 @@
9
el.insertBefore(elChild, el.firstChild);
10
}
11
clearInterval(interval);
12
- }
+ }
13
14
+ __addSupport();
15
+ var interval = setInterval(function(){
16
17
},1000);
18
</script>
0 commit comments