diff --git a/docs/assets/versions.js b/docs/assets/versions.js index 7cac2af..1cbeea5 100644 --- a/docs/assets/versions.js +++ b/docs/assets/versions.js @@ -1,24 +1,9 @@ setTimeout(function() { const callbackName = 'callback_' + new Date().getTime(); window[callbackName] = function (response) { - const div = document.createElement('div'); - div.innerHTML = response.html; - document.querySelector(".md-header__inner > .md-header__title").appendChild(div); - const container = div.querySelector('.rst-versions'); var caret = document.createElement('div'); caret.innerHTML = "" caret.classList.add('dropdown-caret') - div.querySelector('.rst-current-version').appendChild(caret); - div.querySelector('.rst-current-version').addEventListener('click', function() { - const classes = container.className.split(' '); - const index = classes.indexOf('shift-up'); - if (index === -1) { - classes.push('shift-up'); - } else { - classes.splice(index, 1); - } - container.className = classes.join(' '); - }); } var CSSLink = document.createElement('link');