-
Notifications
You must be signed in to change notification settings - Fork 0
/
auto_post.js
49 lines (42 loc) · 837 Bytes
/
auto_post.js
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
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://code.jquery.com/jquery-1.12.4.js';
document.head.appendChild(script);
function postFWT0010(code){
$.ajax({
type: "POST",
url: "FWT/FWT0010.aspx",
data: {
activitycode: code,
gameid: ''
},
success: function(msg){
if(!msg) {
postFWT0010(code);
console.log('fail');
return false
}
console.log(msg.match(/[^(,]+(?=\')/g));
}
});
};
function postFWT0020(activity, game_id){
$.ajax({
type: "POST",
url: "FWT/FWT0020.aspx",
data: {
game_id: game_id,
activitycode: activity
},
success: function(msg){
if(!msg) {
postFWT0010(code);
console.log('fail');
return false
}
},
error: function(request, error, status){
}
});
}
postFWT0010("1901Z04001");