Removed jQuery from core scripts

This commit is contained in:
Kevin Röbert
2020-06-05 20:13:21 +02:00
parent 0acd24d716
commit ae30c0eb53
16 changed files with 151 additions and 358 deletions

View File

@@ -27,18 +27,18 @@
function setText()
{
document.title = translate('blocked_html_title');
$('#title').html(translate('blocked_html_title'));
$('#body').html(translate('blocked_html_body'));
$('#page').text(translate('blocked_html_button'));
document.getElementById('title').innerHTML = translate('blocked_html_title');
document.getElementById('body').innerHTML = translate('blocked_html_body');
document.getElementById('page').textContent = translate('blocked_html_button');
}
$(document).ready(function(){
(function() {
setText();
let source = new URLSearchParams(window.location.search).get("source");
$('#page').attr('href', decodeURIComponent(source));
});
const source = new URLSearchParams(window.location.search).get("source");
document.getElementById('page').href = decodeURIComponent(source);
})();
/**
* Translate a string with the i18n API.