test javascript on button
This commit is contained in:
parent
fe329badb9
commit
7f488eb139
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
function load_random_site() {
|
||||
console.log("requested random site");
|
||||
}
|
||||
|
||||
function load_webring() {
|
||||
const webring_url = "https://aidang.cc/webring/https://jjanzen.ca";
|
||||
|
||||
|
@ -12,7 +16,7 @@ function load_webring() {
|
|||
</section>
|
||||
<ul class='cssa-webring-site-links'>
|
||||
<li class='cssa-webring-prev-site'><a href='${obj.left.url}'>${obj.left.name}</a></li>
|
||||
<li class='cssa-webring-curr-site'><a href='https://jjanzen.ca'>jjanzen</a></li>
|
||||
<li class='cssa-webring-rand-site'><a href='javascript:load_random_site()'>Random Site</a></li>
|
||||
<li class='cssa-webring-next-site'><a href='${obj.right.url}'>${obj.right.name}</a></li>
|
||||
</ul>`;
|
||||
webring_container.innerHTML = webring_html;
|
||||
|
|
Loading…
Add table
Reference in a new issue