Initial commit
This commit is contained in:
commit
e90ff542b0
8 changed files with 250 additions and 0 deletions
21
blocked.js
Normal file
21
blocked.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
function getUrlParams() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
return {
|
||||
name: urlParams.get('name'),
|
||||
value: urlParams.get('value'),
|
||||
url: urlParams.get('url')
|
||||
};
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const params = getUrlParams();
|
||||
|
||||
if (params.name && params.value) {
|
||||
const header_info = `Name: ${params.name}\nValue: ${params.value}`;
|
||||
document.getElementById('header_info').textContent = header_info;
|
||||
}
|
||||
|
||||
if (params.url) {
|
||||
document.getElementById('url').textContent = params.url;
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue