-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathm_review_1.html
63 lines (61 loc) · 2.15 KB
/
m_review_1.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>动图版(德语)</title>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" type="text/css" href="lib/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/re_1.css">
</head>
<body>
<div class="main-contain">
<header id="typesInfo">
</header>
<div class="to-next" id="toNext">
<h2>NEXT</h2>
</div>
</div>
</body>
<script type="text/javascript" src="data/dongtu.js"></script>
<script type="text/javascript" src="lib/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript">
function getWordData(id) {
$.ajax({
type: "GET",
//timeout: 10000,
url: target_url + "get_word",
//dataType: "json",
async: false,
data: {"list_id" : id },
success: function (data, textStatus){
console.log(data);
word_data = data.words_data;
console.log(word_data[0].word);
for (var i = 1; i <= 5 ; i++) {
var j = i -1;
currunt_word = eval("data"+i);
currunt_word.word = word_data[j].word;
currunt_word.sentence = word_data[j].sentence;
currunt_word.mean_sentence = word_data[j].sentence_trans;
currunt_word.audio_sentence = word_data[j].sentence_audio;
currunt_word.picture = word_data[j].image_file;
currunt_word.picture1 = word_data[j].image_file;
}
},
error: function (){
console.warn("获取数据失败");
}
});
}
var url=window.location.href;
var list_id = url.indexOf("=");
if ( list_id !== -1) {
list_id = url.substring(list_id+1);
console.log(list_id);
}
getWordData(list_id);
</script>
<script type="text/javascript" src="js/re_1.js"></script>
</html>