-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
94 lines (85 loc) · 4.26 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<link rel="stylesheet" href="testStyle.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<title>나와 닮은 짱구 캐릭터 테스트</title>
</head>
<body>
<!-- 시작 태그 -->
<div class="content" id="start">
<p>나와 닮은 짱구 캐릭터 테스트</p>
<img src="image/짱구배너.png" alt="짱구단체" width="200" height="200" class="img1">
<p id="maker">제작자: 이나경</p>
<p id="require">※단순히 재미로 제작한 것이며, 오수나 훈이가 나와도 화내지 말아주세요!</p>
<button type="button" class="btn btn-warning" onclick="start();">떡잎마을로 출발~</button>
</div>
<!-- 질문 태그 -->
<div class="content" id="question">
<p id="pgrNum">1/12</p>
<div class="progress">
<div class="progress-bar progress-bar-striped progress-bar-animated bg-warning mt-100" role="progressbar" style="width: calc(100/12*1%)"></div>
</div>
<p id="title" img src="">문제</p>
<input type="hidden" id="type" value="EI">
<button id="A" type="button" class="btn btn-warning">mbti</button>
<button id="B" type="button" class="btn btn-warning mt-3">mbti</button>
</div>
<!-- 결과 태그 -->
<div class="content" id="result">
<img id="img" class="rounded-circle" src="" alt="캐릭터" width="300" height="300">
<p id="qu">나와 닮은 짱구 캐릭터는?</p>
<p id="mbti"><img src="">나와 닮은 짱구 캐릭터</p>
<p id="explain" class="card card-body border-warning">설명</p>
<div class="result-btn">
<button id="replay" type="button" class="btn btn-warning" onclick="window.location.reload()">다시하기</button>
<button id="copy" type="button" class="btn btn-warning mt-4" role="alert" onclick="copy()">링크복사</button>
<a id="kakaotalk-sharing-btn" href="javascript:shareMessage()">
<button type="button" class="btn btn-warning mt-4" style="width:100%;">
공유하기
</button>
</a>
</div>
</div>
<input type="hidden" id="EI" value="0">
<input type="hidden" id="SN" value="0">
<input type="hidden" id="TF" value="0">
<input type="hidden" id="PJ" value="0">
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.7/dist/umd/popper.min.js" integrity="sha384-zYPOMqeu1DAVkHiLqWBUTcbYfZ8osu1Nd6Z89ify25QV9guujx43ITvfi12/QExE" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.min.js" integrity="sha384-Y4oOpwW3duJdCWv5ly8SCFYWqFDsfob/3GkgExXKV4idmbt98QcxXYs9UoXAB7BZ" crossorigin="anonymous"></script>
<script type="text/javascript" src="testJs.js"></script>
<script src="https://t1.kakaocdn.net/kakao_js_sdk/2.1.0/kakao.min.js"
integrity="sha384-dpu02ieKC6NUeKFoGMOKz6102CLEWi9+5RQjWSV0ikYSFFd8M3Wp2reIcquJOemx" crossorigin="anonymous"></script>
<script>
Kakao.init('898135a574886d5154324a8f434181a0'); // 사용하려는 앱의 JavaScript 키 입력
</script>
<script>
function shareMessage() {
Kakao.Share.sendDefault({
objectType: 'feed',
content: {
title: '나와 닮은 짱구 캐릭터 보러갈래?',
description: '나와 닮은 짱구 캐릭터는?',
imageUrl:
'https://ibb.co/R9rfW0y',
link: {
webUrl: 'https://flourishing-eclair-798caf.netlify.app/',
},
},
buttons: [
{
title: '웹으로 보기',
link: {
webUrl: 'https://flourishing-eclair-798caf.netlify.app/',
},
},
],
});
}
</script>
</body>
</html>