| 1 |
// if we already have an onload function, save that one |
| 2 |
var prev_handler = window.onload; |
| 3 |
|
| 4 |
window.onload = function() { |
| 5 |
// call the previous onload function |
| 6 |
if (prev_handler) { |
| 7 |
prev_handler(); |
| 8 |
} |
| 9 |
|
| 10 |
const link = document.createElement("a"); |
| 11 |
link.classList.add("muted-link"); |
| 12 |
link.classList.add("github-issue-link"); |
| 13 |
link.text = "Give feedback"; |
| 14 |
link.href = ("https://bugs.launchpad.net/netplan/+filebug"); |
| 15 |
link.target = "_blank"; |
| 16 |
|
| 17 |
const div = document.createElement("div"); |
| 18 |
div.classList.add("github-issue-link-container"); |
| 19 |
div.append(link) |
| 20 |
|
| 21 |
const container = document.querySelector(".article-container > .content-icon-container"); |
| 22 |
container.prepend(div); |
| 23 |
}; |