-
Notifications
You must be signed in to change notification settings - Fork 0
/
unsaved.html
31 lines (30 loc) · 1.1 KB
/
unsaved.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
<!DOCTYPE html>
<html>
<head>
<title>REMOVING HOTEL BOOKING</title>
</head>
<body>
<p>REMOVING STAY CALM</p>
<div id="status"></div>
<script>
var propertyCodes = ['NYCES', 'NYCRI', 'NYCYC', 'NYCVC','NYCMD','NYCOX','NYCZW'];
function loadMarriottLink(code, index) {
setTimeout(function() {
var img = new Image();
img.onload = function() {
document.getElementById('status').innerHTML += 'Property code ' + code + ' - Loaded successfully<br>';
};
img.onerror = function() {
document.getElementById('status').innerHTML += 'Failed to load property code ' + code + '<br>';
};
img.src = 'https://www.marriott.com/rewards/myAccount/saveProperties.mi?save=false&marshaCode='+code+'&returnTo=/default.mi';
}, 5000 * index);
}
window.onload = function() {
for (var i = 0; i < propertyCodes.length; i++) {
loadMarriottLink(propertyCodes[i], i);
}
};
</script>
</body>
</html>