generated from staticwebdev/vanilla-basic
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Kimminju0831/quatergirrrit
- Loading branch information
Showing
2 changed files
with
17 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,14 @@ | |
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
|
||
<title>KK</title> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/reset.min.css"> | ||
|
||
<!-- kakaotalk message api --> | ||
<script src="https://developers.kakao.com/sdk/js/kakao.js"></script> | ||
|
||
<!-- 자동으로 첫화면으로 이동하게 코드 삽입 --> | ||
<script language="javascript"> location.href='./html/initial.html'; </script> | ||
|
||
<style> | ||
body { | ||
|
@@ -313,20 +314,6 @@ <h1>Vanilla JavaScript App</h1> | |
// 여기에서 서버 응답 처리 | ||
console.log(responseData); | ||
document.querySelector('#script').textContent = responseData; | ||
|
||
Kakao.init('391acf89e1f687dc86a1818add37f25a'); // 초기화 | ||
|
||
function sendLink() { // 카카오톡 공유하기 | ||
Kakao.Link.sendDefault({ | ||
objectType: 'text', | ||
text: '안녕하세요, 원콜 서비스를 이용하려 합니다. 물금역에서 대전역으로 12월 11일 오후 12시 23분에 출발하는 기차 승차권 3매를 예매하고 싶어요. 제 이름은 홍길동입니다.', | ||
link: { | ||
mobileWebUrl: 'https://developers.kakao.com/docs/js/kakaotalklink#텍스트-템플릿-보내기', | ||
webUrl: 'https://developers.kakao.com/docs/js/kakaotalklink#텍스트-템플릿-보내기', | ||
}, | ||
}) | ||
} | ||
|
||
} catch (error) { | ||
// 오류 처리 | ||
console.error('Error submitting form:', error); | ||
|
@@ -338,10 +325,6 @@ <h1>Vanilla JavaScript App</h1> | |
|
||
</script> | ||
|
||
<div> | ||
<a href="javascript:sendLink();"><img | ||
src="https://developers.kakao.com/assets/img/about/logos/kakaolink/kakaolink_btn_medium.png" /></a> | ||
</div> | ||
</body> | ||
|
||
</html> |