2019-02-04 01:00:29 +00:00
'use strict' ;
2019-02-23 07:56:18 +00:00
document . addEventListener ( 'DOMContentLoaded' , function ( ) {
2019-02-04 01:00:29 +00:00
var sidebar = document . getElementsByClassName ( 'sphinxsidebarwrapper' ) [ 0 ] ;
2019-02-23 07:56:18 +00:00
2019-09-02 19:51:36 +00:00
( function tweakSidebar ( ) { try {
var donateH3 = sidebar . querySelector ( '.donation' ) ;
2021-01-10 17:13:26 +00:00
donateH3 . textContent = 'Sponsor' ;
2019-09-02 19:51:36 +00:00
var tideliftP = donateH3 . nextElementSibling . nextElementSibling ;
2021-01-10 17:13:26 +00:00
var sponsorA = document . createElement ( 'a' ) ;
sponsorA . href = 'https://github.com/sponsors/jab' ;
sponsorA . textContent = 'Sponsor bidict on GitHub.'
sidebar . insertBefore ( sponsorA , tideliftP ) ;
2019-09-02 19:51:36 +00:00
var tideliftH3 = document . createElement ( 'h3' ) ;
2021-01-10 17:13:26 +00:00
tideliftH3 . textContent = 'Enterprise' ;
tideliftP . innerHTML = 'Enterprise support for bidict is available <a href="https://tidelift.com/subscription/pkg/pypi-bidict?utm_source=pypi-bidict&utm_medium=referral&utm_campaign=docs">via Tidelift</a>.' ;
2019-09-02 19:51:36 +00:00
sidebar . insertBefore ( tideliftH3 , tideliftP ) ;
} catch ( e ) { }
} ) ( ) ;
2019-02-23 07:56:18 +00:00
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 ( 'className' , 'rc-scout' ) ;
addScript ( 'https://www.recurse-scout.com/loader.js?t=c17a917136a40c38f5ce6b80adbbfd19' ) ;
} ) ;