|
1 | | -window.addEventListener("DOMContentLoaded", () => { |
2 | | - const header = document.querySelector("header"); |
3 | | - |
4 | | - if (header) { |
5 | | - const customButton = document.createElement("a"); |
6 | | - customButton.textContent = "Launch Custom JupyterHub"; |
7 | | - customButton.className = "custom-launch-button"; |
8 | | - customButton.style.backgroundColor = "#007ACC"; |
9 | | - customButton.style.color = "white"; |
10 | | - customButton.style.padding = "6px 12px"; |
11 | | - customButton.style.marginLeft = "10px"; |
12 | | - customButton.style.borderRadius = "4px"; |
13 | | - customButton.style.textDecoration = "none"; |
14 | | - customButton.style.fontWeight = "bold"; |
15 | | - |
16 | | - // Set your custom URL here |
17 | | - customButton.href = "https://your-custom-jupyterhub-url/lab"; |
18 | | - customButton.target = "_blank"; |
19 | | - |
20 | | - header.appendChild(customButton); |
21 | | - } |
22 | | -}); |
| 1 | +// window.addEventListener("DOMContentLoaded", () => { |
| 2 | +// const header = document.querySelector("header"); |
| 3 | +// |
| 4 | +// if (header) { |
| 5 | +// const customButton = document.createElement("a"); |
| 6 | +// customButton.textContent = "Launch Custom JupyterHub"; |
| 7 | +// customButton.className = "custom-launch-button"; |
| 8 | +// customButton.style.backgroundColor = "#007ACC"; |
| 9 | +// customButton.style.color = "white"; |
| 10 | +// customButton.style.padding = "6px 12px"; |
| 11 | +// customButton.style.marginLeft = "10px"; |
| 12 | +// customButton.style.borderRadius = "4px"; |
| 13 | +// customButton.style.textDecoration = "none"; |
| 14 | +// customButton.style.fontWeight = "bold"; |
| 15 | +// |
| 16 | +// // Set your custom URL here |
| 17 | +// customButton.href = "https://your-custom-jupyterhub-url/lab"; |
| 18 | +// customButton.target = "_blank"; |
| 19 | +// |
| 20 | +// header.appendChild(customButton); |
| 21 | +// } |
| 22 | +// }); |
0 commit comments