Created
November 4, 2020 23:49
-
-
Save pandanote-info/767434fb4b2a5716226af1aee874f54d to your computer and use it in GitHub Desktop.
HTML5のCustom Elementsを使用してリンク集を挿入するためのタグを定義するためのJavaScriptのコード。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See https://pandanote.info/?p=6855 for details. | |
class PandanoteLinkElement extends HTMLElement { | |
constructor() { | |
super(); | |
} | |
connectedCallback() { | |
this.innerHTML = '<a href="https://pandanote.info/">panda大学習帳</a> | <a href="https://sidestory.pandanote.info/">panda大学習帳外伝</a> | <a href="https://vsse.pandanote.info/">panda大学習帳(第三倉庫(仮))</a>←今ここ!! | <a href="https://pandanote.info/?page_id=69">プライバシーポリシー</a>'; | |
} | |
} | |
customElements.define("pandanote-linklist",PandanoteLinkElement); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment