-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmytarget.html
More file actions
39 lines (36 loc) · 1.62 KB
/
mytarget.html
File metadata and controls
39 lines (36 loc) · 1.62 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
<!DOCTYPE html>
<html>
<head>
<title>TargetFile</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;900&display=swap" rel="stylesheet" />
<link rel="apple-touch-icon" sizes="180x180" href="assets/images/icon.png" />
<link rel="icon" type="image/png" href="assets/images/icon.png" sizes="32x32" />
<link rel="icon" type="image/png" href="assets/images/icon.png" sizes="16x16" />
<link rel="manifest" href="manifest.json" />
<link rel="stylesheet" type="text/css" href="src/app.css" />
</head>
<body>
<div class="container">
<h1>Target File</h1>
<h3>Received data</h3>
<label for="textReceive">Text :: </label>
<input type= "text" id="textReceive"/>
<label for="titleReceive">Title :: </label>
<input type= "text" id="titleReceive"/>
<label for="urlReceive">URL :: </label>
<input type= "text" id="urlReceive"/>
</div>
<script>
window.addEventListener('DOMContentLoaded', () => {
const parsedUrl = new URL(window.location);
document.getElementById('textReceive').value = parsedUrl.searchParams.get('title');
document.getElementById('titleReceive').value = parsedUrl.searchParams.get('text');
document.getElementById('urlReceive').value = parsedUrl.searchParams.get('url');
});
</script>
</body>
</html>