File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1- // この JavaScript ファイルは、WCAG 2.2 解説書が完全に日本語訳されるまでの、仮のスクリプトです。
2- // WCAG 2.2 解説書が完全に日本語訳されたら、この .js ファイルを削除し、
3- // また各ページの head 要素内にある「<script src="untranslated-note.js"></script>」という一行を削除してください。
4- // 併せて、各ページの main 要素の直下にある「<div class="untranslated-note">」も不要になるので削除してください。
5-
61document . addEventListener ( 'DOMContentLoaded' , ( ) => {
72 const targetAnchor = document . querySelector ( '.untranslated-note a' ) ;
83 if ( ! targetAnchor ) return ;
94 const currentFilename = window . location . pathname . split ( '/' ) . pop ( ) ;
105 targetAnchor . href = targetAnchor . href + currentFilename ;
11- } ) ;
6+ } ) ;
7+
8+ /*
9+ この JavaScript ファイルは、WCAG 2.2 解説書が完全に日本語訳されるまでの、仮のスクリプトです。
10+ WCAG 2.2 解説書が完全に日本語訳されたら、この .js ファイルを削除し、
11+ また各ページの head 要素内にある「<script src="untranslated-note.js"></script>」という一行を削除してください。
12+ 併せて、各ページの main 要素の直下にある「<div class="untranslated-note">」も不要になるので削除してください。
13+ */
You can’t perform that action at this time.
0 commit comments