-
Notifications
You must be signed in to change notification settings - Fork 0
/
hotel.php
70 lines (66 loc) · 2.47 KB
/
hotel.php
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
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/game.css" />
<script src="js/vendor/jquery-1.8.0.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<script src="js/tools.js"></script>
<script src="js/game.js"></script>
<script>
function showSkill(response) {
$('.skill_learn').html('');
if (response.notice) msgBox(response.notice.note);
if (response.skill) {
$.each(response.skill, function(index, skill) {
skillHTML = $('<li><img class="skill_photo"/> วิชา<span class="skill_name"></span></li>');
//skillHTML.html(skill.skill_id + ' :' + skill.skill_name);
//skillHTML.html("<img src='skill_img/" + skill.skill_id + ".png' /> " + skill.skill_name);
skillHTML.find('img.skill_photo').attr('src', 'skill_img/' + skill.skill_id + '.png').on("click", function() {
action('learnSkill', {
'skill_id' : skill.skill_id
}, showSkill);
});
skillHTML.find('span.skill_name').html(skill.skill_name);
$('.skill_learn').append(skillHTML);
});
} else {
$('.skill_learn').append('เราไม่มีวิชาใดจะสอนท่านแล้ว ลองออกเดินทางไปหาเพื่อนข้าที่สำนักบู๊ตึ๊ง สาขา 2 เพื่อเรียนวิชาอื่น');
}
unLoad();
}
preLoad('.skill_learn');
action('getSkillFromTown', null, showSkill);
</script>
<style>
ul.skill_learn li {
line-height: 50px;
vertical-align: middle;
}
ul.skill_learn li img {
width: 30px;
height: 30px;
vertical-align: middle;
}
</style>
</head>
<body>
<div style="border:1px solid #777;height:535px;">
<div class="text-center head" >
สำนักวิชา
</div>
<div style="float:right;width:200px;height:400px;margin:100px 20px 0;text-align:center">
<img src="img/npc/academy.jpg" />
<br/>
เจ้าสำนัก
</div>
<div style="float: left; width: 400px; height: 400px; margin: 30px 0px 0px 20px; padding: 20px; color: rgb(119, 119, 119);">
<div id='poem' style="font-size: 1.5em; color: rgb(116, 78, 28);text-align:center"></div>
<br/>
<ul class="skill_learn" style="list-style: disc;list-style-position:inside">
สำนักบู้ลิ้ม
</ul>
</div>
</div>
</body>
</html>