Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="container" id="keyword" onclick=""><h2 id="expression" class="jp">{{Expression}}</a></h2><div id="usage" class="jp">【接続】{{furigana:Usage}}</div></div>
- <div class="container" id="example" onclick="toggle('translation')"><span class="jp">{{furigana:Examples}}</span><br>
- <span id="translation" class="none">{{Translations}}</span></div>
- <script language="javascript">
- var toggle = function(name) {
- var el = document.getElementById(name);
- if ( !el.className.match(/(?:^|\s)none(?!\S)/) ) {
- el.className += " none";
- } else {
- el.className = el.className.replace( /(?:^|\s)none(?!\S)/g , '' );
- }
- };
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement