-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplans.html
40 lines (34 loc) · 1.1 KB
/
plans.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
<html>
<body onload="pertinent()">
<script>
function pertinent() {
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
var windows = [
'matrix.php', // last window
'reportLists.php?listId=158&type=C',
'reportLists.php?listId=96&type=C',
'itemReport.php?itemId=28',
'itemReport.php?itemId=5352',
'reportLists.php?listId=49&type=l',
'reportLists.php?listId=143&type=C',
'reportLists.php?listId=141&type=C',
'itemReport.php?itemId=6817',
'itemReport.php?itemId=2002', // second window
'itemReport.php?itemId=6041' // first/current window
];
var arrayLength = windows.length;
async function display() {
for (var i = 0; i < arrayLength - 1; i++) { // skip the last array item
window.open(windows[i]);
await sleep(200); // avoid windows from not opening due to server restrictions
}
window.location.assign(windows[i]); // first/current window
}
display();
return true;
}
</script>
</body>
</html>