Skip to content

Commit 5826ea6

Browse files
committed
Add egame files and api
1 parent 9eab129 commit 5826ea6

4 files changed

Lines changed: 615 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* To change this license header, choose License Headers in Project Properties.
3+
* To change this template file, choose Tools | Templates
4+
* and open the template in the editor.
5+
*/
6+
//sectionValues: JSON格式, 各關卡之特徵值, 用之判斷是否過關及得幾顆星
7+
//userCode: 寫入資料庫之blocks codes
8+
// 回傳遊戲結果用
9+
ReturnGameRecord = function (gameCode, sectionId, gameTime, sectionValues, userCode)
10+
{
11+
var request = $.ajax({
12+
url: '/auth/main/?a=stemRecord',
13+
type: "POST",
14+
data: {gameCode: gameCode,sectionId: sectionId, gameTime: gameTime, sectionValues: JSON.stringify(sectionValues), userCode: userCode},
15+
success: function (response)
16+
{
17+
if(response.gameStar>0){
18+
try {
19+
WebduinoResult.initGameResultView(msg);
20+
} catch (e) {
21+
alert(msg);
22+
window.location = "http://www.egame.kh.edu.tw/login.html";
23+
}
24+
}else{
25+
console.log("no Pass!");
26+
}
27+
}
28+
});
29+
};
30+
Lines changed: 260 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,260 @@
1+
/*
2+
To change this license header, choose License Headers in Project Properties.
3+
To change this template file, choose Tools | Templates
4+
and open the template in the editor.
5+
*/
6+
/*
7+
Created on : 2017/7/4, 上午 09:35:57
8+
Author : vivianne
9+
*/
10+
.fontNormal{
11+
color: #C7B299;
12+
}
13+
14+
.fontResult{
15+
color: white;
16+
}
17+
18+
.fontFinalResultText{
19+
color: white;
20+
font-size:200%
21+
}
22+
23+
.footPrint{
24+
disply: inline-block;
25+
}
26+
27+
.rightArea{
28+
position: absolute;
29+
z-index: 999;
30+
overflow: auto;
31+
display: inline-block;
32+
width:80%;
33+
height:66%;
34+
top:20%;
35+
left:8%
36+
}
37+
38+
.topArea{
39+
color: #FFDF40;
40+
-moz-border-radius: 3% 3%/35% 35%;
41+
border-radius: 3% 3%/35% 35%;
42+
background-color: #542A22;
43+
width:89%;
44+
height:5%;
45+
padding:2% 2% 3% 3%;
46+
margin:2%;
47+
font-size:200%
48+
}
49+
.midArea{
50+
padding: 2%;
51+
margin:2%;
52+
color: #FFDF40;
53+
-moz-border-radius: 5% 5%/10% 10%;
54+
border-radius: 5% 5%/10% 10%;
55+
background-color: #542A22;
56+
height:64%;
57+
width:90%;
58+
font-size:160%;
59+
}
60+
.commentArea{
61+
background-repeat: no-repeat;
62+
background-position: center;
63+
float:left;
64+
border: 2px dashed #A6591F;
65+
width:33%;
66+
height:85%;
67+
}
68+
.expArea{
69+
margin-left: 3%;
70+
float:left;
71+
/*font-size:165%*/
72+
}
73+
.goldArea{
74+
margin-left: 4%;
75+
float:left;
76+
/*font-size:165%*/
77+
}
78+
#resultView{
79+
display:block;
80+
position:absolute;
81+
top:0%;
82+
left:20%;
83+
width:50%;
84+
background-repeat:no-repeat;
85+
background-size:contain;
86+
z-index:2;
87+
}
88+
.levelUp{
89+
color:#FFF4CC;
90+
font-size:250%;
91+
font-weight:bold;
92+
position:absolute;
93+
top:22%;
94+
left:24%
95+
}
96+
.levelUpInfo{
97+
color:#FFF4CC;
98+
font-size:200%;
99+
position:absolute;
100+
top:35%;
101+
left:32%
102+
}
103+
.levelUpButtonSet{
104+
cursor:pointer;
105+
position:absolute;
106+
width:18%;
107+
height:15%;
108+
top:65%;
109+
left:40%;
110+
}
111+
.levelUpButtonText{
112+
color:#AD1A47;
113+
font-size:180%;
114+
position:absolute;
115+
top:35%;
116+
left:30%;
117+
}
118+
.levelUpButton{
119+
width:100%;
120+
height:100%;
121+
}
122+
.levelExit{
123+
position:absolute;
124+
top:1%;
125+
left:87%;
126+
width:12%;
127+
height:8%;
128+
cursor:pointer;
129+
}
130+
.achieve{
131+
color:#FFF4CC;
132+
font-size:250%;
133+
font-weight:bold;
134+
position:absolute;
135+
top:22%;
136+
left:30%
137+
}
138+
.achieveInfo{
139+
color:#FFF4CC;
140+
font-size:160%;
141+
position:absolute;
142+
top:30%;
143+
left:24%;
144+
overflow:auto;
145+
height:28%;
146+
width:60%;
147+
text-align:left
148+
}
149+
.achieveButtonSet{
150+
width:16%;
151+
height:10%;
152+
position:absolute;
153+
top:58%;
154+
left:40%;
155+
cursor:pointer
156+
}
157+
.achieveButtonText{
158+
color:#AD1A47;
159+
font-size:180%;
160+
position:absolute;
161+
top:30%;
162+
left:22%;
163+
}
164+
.achieveButton{
165+
width:100%;
166+
height:100%
167+
}
168+
.achieveExit{
169+
position:absolute;
170+
top:1%;
171+
left:87%;
172+
width:12%;
173+
height:8%;
174+
cursor:pointer
175+
}
176+
.exit{
177+
width:6%;
178+
height:9%;
179+
position:absolute;
180+
top:2%;
181+
left:90%;
182+
cursor:pointer
183+
}
184+
.btnExitSet{
185+
position:absolute;
186+
top:84%;
187+
left:72%;
188+
width:14%;
189+
height:9%;
190+
cursor:pointer;
191+
text-align: center;
192+
}
193+
.btnExit{
194+
width:100%;
195+
height:100%;
196+
}
197+
.textExit{
198+
position:absolute;
199+
top:30%;
200+
left:16%;
201+
/*font-size:160%;*/
202+
font-weight:bold;
203+
color:#FFF4CC;
204+
margin:0 auto;
205+
}
206+
.btnNextSet{
207+
position:absolute;
208+
top:84%;
209+
left:40%;
210+
width:14%;
211+
height:9%;
212+
cursor:pointer;
213+
text-align: center;
214+
}
215+
.btnNext{
216+
width:100%;
217+
height:100%;
218+
}
219+
.textNext{
220+
position:absolute;
221+
top:30%;
222+
left:27%;
223+
/*font-size:160%;*/
224+
font-weight:bold;
225+
color:#FFF4CC;
226+
margin:0 auto;
227+
}
228+
.btnPlayAgainSet{
229+
position:absolute;
230+
top:84%;
231+
left:56%;
232+
width:14%;
233+
height:9%;
234+
cursor:pointer;
235+
text-align: center;
236+
}
237+
.btnPlayAgain{
238+
width:100%;
239+
height:100%
240+
}
241+
.textPlayAgain{
242+
position:absolute;
243+
top:30%;
244+
left:22%;
245+
/*font-size:160%;*/
246+
font-weight:bold;
247+
color:#FFF4CC;
248+
margin:0 auto;
249+
}
250+
#bottom_exit{
251+
height: 50%;
252+
width: 15%;
253+
position: absolute;
254+
top: 58%;
255+
left: -20%;
256+
cursor:pointer;
257+
}
258+
.btnRow{
259+
font-size:160%;
260+
}

0 commit comments

Comments
 (0)