2024-08-16 00:13:37 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Document</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<form id="form">
|
|
|
|
<input id="url" type="url" placeholder="url">
|
|
|
|
<input id="titl" type="text" placeholder="title">
|
|
|
|
<input id="wid" type="number" placeholder="width">
|
|
|
|
<input id="hei" type="number" placeholder="height">
|
|
|
|
<input type="submit">
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
document.getElementById("form").addEventListener("submit", event => {
|
|
|
|
event.preventDefault()
|
2024-08-16 02:26:40 +00:00
|
|
|
window.top.postMessage(`makewin ${document.getElementById("url").value} ${document.getElementById("titl").value} ${document.getElementById("wid").value} ${document.getElementById("hei").value}`)
|
2024-08-16 00:13:37 +00:00
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|