mirror of https://github.com/jab/bidict.git
add rc scout to docs
This commit is contained in:
parent
b6bce43175
commit
b65e976d6f
|
@ -1,12 +1,25 @@
|
|||
'use strict';
|
||||
function initCodefund() {
|
||||
var cfdiv = document.createElement('div');
|
||||
cfdiv.setAttribute('id', 'codefund');
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
var sidebar = document.getElementsByClassName('sphinxsidebarwrapper')[0];
|
||||
sidebar.append(cfdiv);
|
||||
var cfscript = document.createElement('script');
|
||||
cfscript.src = 'https://codefund.app/properties/179/funder.js';
|
||||
cfscript.setAttribute('async', true);
|
||||
document.body.append(cfscript);
|
||||
}
|
||||
document.addEventListener('DOMContentLoaded', initCodefund);
|
||||
|
||||
function addDiv(propName, propVal) {
|
||||
var div = document.createElement('div');
|
||||
div.style.marginTop = '20px';
|
||||
div[propName] = propVal;
|
||||
sidebar.append(div);
|
||||
}
|
||||
|
||||
function addScript(src) {
|
||||
var script = document.createElement('script');
|
||||
script.src = src;
|
||||
script.async = true;
|
||||
document.body.append(script);
|
||||
}
|
||||
|
||||
addDiv('id', 'codefund');
|
||||
addScript('https://codefund.app/properties/179/funder.js');
|
||||
|
||||
addDiv('className', 'rc-scout');
|
||||
addScript('https://www.recurse-scout.com/loader.js?t=c17a917136a40c38f5ce6b80adbbfd19');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue