Files
tamagotchi-paradise-ko/share.js
T
syskiller dbe2c1f41f
Paramix Studio / build (push) Canceled after 0s
Paramix Studio / pages (push) Canceled after 0s
Refine product copy and native Korean menu with lossless character previews
2026-11-10 23:07:24 +09:00

30 lines
1.6 KiB
JavaScript

(function(){
'use strict';
const url='https://tama.itosm.co.kr/about.html';
const intro=`다마고치 연구소 · 파라다이스 편집과 백업
• 한국어 편집 도구와 본체 A+C 치트 메뉴
• 회원별 개인 덤프 보관함: 총 160 MiB(16 MiB 덤프 최대 10개)
• 비회원도 편집과 ROM 추출 이용 가능
• 로그인한 회원은 기종별 백업 복원 이용 가능
• 회원 전용 여섯 지역 확장 설정
여섯 지역 통합에는 트로피컬 또는 글레이셔 원본과 랜드·워터·스카이 중 하나의 원본이 필요합니다.
다마고치 연구소에서 내 다마고치를 편집하고 백업을 보관하세요.
${url}`;
const message=document.getElementById('shareStatus');
async function copy(text){
try{await navigator.clipboard.writeText(text);message.textContent='복사했습니다.';}
catch{message.textContent='자동 복사를 지원하지 않습니다. 아래 내용을 선택해 복사하세요.';document.getElementById('shareCopy').hidden=false;document.getElementById('shareCopy').value=text;}
}
document.getElementById('copyLink').onclick=()=>copy(url);
document.getElementById('copyIntro').onclick=()=>copy(intro);
document.getElementById('shareSite').onclick=async()=>{
if(!navigator.share){await copy(url);return;}
try{await navigator.share({title:'다마고치 연구소',text:'파라다이스 한국어 편집·백업 도구와 회원별 개인 보관함',url});}
catch(error){if(error.name!=='AbortError')message.textContent='공유 창을 열지 못했습니다. 주소 복사를 이용하세요.';}
};
})();