-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfuckEBS.js
More file actions
39 lines (35 loc) · 1.23 KB
/
Copy pathfuckEBS.js
File metadata and controls
39 lines (35 loc) · 1.23 KB
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
function postToEBS (lctreSn) {
const atnlcNo = $('#atnlcNo').val()
const lctreSeCode = $('#lctreSeCode').val()
const stepSn = $('#stepSn').val()
const cntntsTyCode = $('#cntntsTyCode').val()
const revivTime = $('#revivTime').val()
const postData = {}
postData.atnlcNo = atnlcNo
postData.lctreSn = lctreSn
postData.stepSn = stepSn
postData.lctreSeCode = lctreSeCode
postData.cntntsTyCode = cntntsTyCode
postData.revivTime = revivTime
postData.endButtonYn = 'Y'
postData.lastRevivLc = revivTime
postData.lrnTime = revivTime
fncPost('/mypage/userlrn/lctreLrnSave.do', postData, () => {
console.log('Success: ' + lctreSn)
})
}
const steps = $('#mainContent > aside > nav > ul').children().length
const lctreSn = Number($('#lctreSn').val())
console.log(`atnlcNo: ${$('#atnlcNo').val()}
lctreSeCode: ${$('#lctreSeCode').val()}
stepSn: ${$('#stepSn').val()}
cntntsTyCode: ${$('#cntntsTyCode').val()}
revivTime: ${$('#revivTime').val()}
--------------------------------------
${steps} Steps
Starting LctreSn (${lctreSn})
End LctreSn (${lctreSn + (steps - 1)})`)
for (let i = lctreSn; i <= lctreSn + (steps - 1); i++) {
console.log(`Sending Success Code to ${i}`)
postToEBS(i)
}