This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
sidebar [2022/09/27 17:32] admin |
sidebar [2024/06/05 07:21] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <html> | ||
+ | <label id="translation_label">Auto Translation:</label> | ||
+ | <select id="translation_select" onchange="chageLangSelect()"> | ||
+ | <option value="Kor" selected="selected">Korean(None)</option> | ||
+ | <option value="Eng">English</option> | ||
+ | <option value="Jpn">Japanese</option> | ||
+ | </select> | ||
+ | </html> | ||
+ | ---- | ||
+ | <html> | ||
+ | <script> | ||
+ | function onLoadVisibleCheck() | ||
+ | { | ||
+ | if (isOnAutoTranslation()) | ||
+ | { | ||
+ | var label = document.getElementById('translation_label'); | ||
+ | label.style.visibility = 'hidden'; | ||
+ | var select = document.getElementById('translation_select'); | ||
+ | select.style.visibility = 'hidden'; | ||
+ | } | ||
+ | } | ||
+ | | ||
+ | function chageLangSelect() | ||
+ | { | ||
+ | var langSelect = document.getElementById("translation_select"); | ||
+ | switch(langSelect.options[langSelect.selectedIndex].value) { | ||
+ | case "Eng": | ||
+ | window.alert("Automatic translation done by Naver Papago. If scroll does not work in mobile web browser, try setting 'Request Desktop Site'."); | ||
+ | window.location.href = 'https://papago.naver.net/website?locale=en&source=ko&target=en&url=' + window.location.href; | ||
+ | break; | ||
+ | case "Jpn": | ||
+ | window.alert("Naver Papagoによる自動翻訳。モバイルウェブブラウザでスクロールが機能しない場合は、「デスクトップサイトをリクエスト」を設定してみてください。"); | ||
+ | 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; | ||
+ | } | ||
+ | } | ||
+ | onLoadVisibleCheck(); | ||
+ | </script> | ||
+ | </html> | ||
+ | |||
**서문:** [[ctd|Connecting The Dots]] | **서문:** [[ctd|Connecting The Dots]] | ||
Line 65: | Line 121: | ||
- [[ctd:Capital Letters]] | - [[ctd:Capital Letters]] | ||
- [[ctd:David Adair]] | - [[ctd:David Adair]] | ||
- | - [[ctd:scrap:global_Marshall Law| Global Marshall Law]] | + | - [[ctd:scrap:global_Martial_Law| Global Martial Law]] |
**Appendix** | **Appendix** |