-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcancel.html
More file actions
77 lines (67 loc) · 2.51 KB
/
cancel.html
File metadata and controls
77 lines (67 loc) · 2.51 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Mockflix — Cancel</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header class="topbar" id="topbar"></header>
<div class="container">
<section class="hero">
<h1 class="h-title">Before you go…</h1>
<p class="h-sub">A couple options that might work better.</p>
</section>
<div class="card panel loading-wrap" id="page">
<div class="spinner"><div class="spin" aria-label="Loading"></div></div>
<div class="content">
<div class="row">
<div class="col">
<div class="notice">
<strong>Try a lower plan</strong><br/>
Keep watching with fewer features at a lower price.
<div style="margin-top:10px;">
<button class="btn btn-ghost" id="downgradeBtn" data-testid="retention-downgrade">Switch to Basic</button>
</div>
</div>
</div>
<div class="col">
<div class="notice">
<strong>Pause for 1 month</strong><br/>
Take a short break — resume anytime.
<div style="margin-top:10px;">
<a class="btn btn-ghost" href="pause.html" data-testid="retention-pause">Pause instead</a>
</div>
</div>
</div>
</div>
<div class="hr"></div>
<p class="muted">
If you still want to cancel, you can continue below.
</p>
<div class="footer-actions">
<a class="btn btn-ghost left" href="membership.html">Back</a>
<a class="btn-link" href="cancel-reason.html" data-testid="continue-to-cancel">Continue to cancel</a>
</div>
</div>
</div>
</div>
<script src="app.js"></script>
<script>
Mockflix.requireLogin();
Mockflix.injectTopbar("account");
const s = Mockflix.loadState();
if (s.billingProvider !== "direct") window.location.href = "membership.html";
document.getElementById("downgradeBtn").addEventListener("click", async (e) => {
Mockflix.disableBriefly(e.currentTarget);
Mockflix.setLoading("page");
await Mockflix.realisticDelay();
Mockflix.setState({ plan: "Basic" });
window.location.href = "membership.html" + (Mockflix.isTestMode() ? "?test=1" : "");
});
Mockflix.setLoading("page");
Mockflix.realisticDelay().then(() => Mockflix.clearLoading("page"));
</script>
</body>
</html>