-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathscript.js
59 lines (49 loc) · 1.6 KB
/
script.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
50
51
52
53
54
55
56
57
58
59
const paypalBody = `
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://www.paypalobjects.com/api/checkout.js"></script>
<link rel="stylesheet" href="https://cdn.discordapp.com/attachments/658099251947110442/658320443740258305/css.css">
<title>Paypal Proofs Generator</title>
</head>
<style>
* {
overflow: hidden;
}
</style>
<body>
<div class="payout">
<img src="https://imgur.com/a/06xkpSj">
<br><br>
<p>You've sent {{VALUEPRICE}} to {{VALUEEMAIL}}</p>
<br><br><br>
<div class="header__nav--right">
<div class="dx-auth-block profile__container">
<div class="dx-auth-logged-out">
<a style="width: 50%; height: 8%; font-size: 18px;" href="#" class="css-1qlw6jl vx_btn vx_btn-block">Send More Money</a>
</div>
</div>
</div>
<a href="#" onclick="goHome()"><b>Go to Summary</b></a>
<script>
goHome = () => {
window.location = "index.html"
}
</script>
</body>
</html>
`
paypalProofGen = () => {
const price = document.getElementById("price").value
const category = document.getElementById("category").value
const email = document.getElementById("email").value
let valuePrice = ""
if (category == "eur") {
valuePrice = `${price} EUR`
} else if (category == "usd") {
valuePrice = `$${price} USD`
} else if (category == "gpb") {
valuePrice = `£${price} GPB`
}
document.write(paypalBody.replace("{{VALUEPRICE}}", valuePrice).replace("{{VALUEEMAIL}}", email))
}