This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
sidebar [2024/06/04 22:37] admin |
sidebar [2024/09/07 14:05] (current) admin Papago 웹번역 서비스 종료 |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <color gray> **Auto Translation** </color>\\ | ||
| - | <html> <!------ auto translation menu -------> | ||
| - | <body onload="javascript: onLoadVisibleCheck()"> | ||
| - | </body> | ||
| - | <div id="div_autoTranslateMenu"> | ||
| - | <select id="voice" onchange="chageLangSelect()"> | ||
| - | <option value="Kor" selected="selected">Korean(None)</option> | ||
| - | <option value="Eng">Engish</option> | ||
| - | <option value="Jpn">Japanese</option> | ||
| - | </select> | ||
| - | <div class="controls"> <!------ 상태표시 -------> | ||
| - | <div style="padding: 0.7em 0.4em 0.2em 0.4em; border-bottom:1px solid #99999a; width:100%; margin:0 auto;"></div> | ||
| - | <div class="comment"></div> | ||
| - | </div> | ||
| - | </div> | ||
| - | <script> | ||
| - | function onLoadVisibleCheck() | ||
| - | { | ||
| - | if (isOnAutoTranslation()) | ||
| - | { | ||
| - | window.alert('run'); | ||
| - | var div = document.getElementById('div_ autoTranslateMenu'); | ||
| - | // hide | ||
| - | div.style.visibility = 'hidden'; | ||
| - | } | ||
| - | } | ||
| - | | ||
| - | function chageLangSelect() | ||
| - | { | ||
| - | var langSelect = document.getElementById("voice"); | ||
| - | switch(langSelect.options[langSelect.selectedIndex].value) { | ||
| - | case "Eng": | ||
| - | <!------ English -------> | ||
| - | window.location.href = 'https://papago.naver.net/website?locale=en&source=ko&target=en&url=' + window.location.href; | ||
| - | break; | ||
| - | case "Jpn": | ||
| - | <!------ Japanese -------> | ||
| - | window.location.href = 'https://papago.naver.net/website?locale=en&source=ko&target=ja&url=' + window.location.href; | ||
| - | break; | ||
| - | default: | ||
| - | // code block | ||
| - | } | ||
| - | } | ||
| - | | ||
| - | function isOnAutoTranslation() | ||
| - | { | ||
| - | var url = window.location.href; | ||
| - | var index = url.indexOf('https://papago.naver.net'); | ||
| - | if (index < 0) | ||
| - | { | ||
| - | return false; | ||
| - | } | ||
| - | else | ||
| - | { | ||
| - | return true; | ||
| - | } | ||
| - | } | ||
| - | </script> | ||
| - | </html> | ||
| - | |||
| **서문:** [[ctd|Connecting The Dots]] | **서문:** [[ctd|Connecting The Dots]] | ||