2022-09-23 04:30:56 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>Web Gateway</title>
|
|
|
|
<style type="text/css">
|
|
|
|
.horizontal-centre {
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vertical-centre {
|
|
|
|
position: relative;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
</style>
|
2022-10-08 05:57:46 +00:00
|
|
|
<style>
|
|
|
|
@import url("clipboard.css");
|
|
|
|
</style>
|
|
|
|
<script src="jquery-3.6.1.min.js" type="text/javascript"></script>
|
2022-09-23 04:30:56 +00:00
|
|
|
<script type="module" defer>
|
2022-10-10 02:35:52 +00:00
|
|
|
import init from "/webrdp.js";
|
2022-09-23 04:30:56 +00:00
|
|
|
await init();
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2022-10-20 07:31:19 +00:00
|
|
|
<div id="rdp_status" style="position: relative; height: auto;" class="horizontal-centre vertical-centre"></div>
|
2022-10-08 07:06:58 +00:00
|
|
|
<div id="canvas" class="horizontal-centre vertical-centre">
|
2022-10-20 07:31:19 +00:00
|
|
|
<canvas id="rdp-canvas" tabIndex=1></canvas>
|
2022-10-08 07:06:58 +00:00
|
|
|
<button type="button" id="ctrlaltdel" style="display: inline; position:absolute; right: 10px; top: 10px;">Send
|
|
|
|
CtrlAltDel</button>
|
|
|
|
</div>
|
2022-10-08 05:57:46 +00:00
|
|
|
<div class="clipboardback">
|
|
|
|
<div class="clipboard">
|
|
|
|
<button id="clipboardbtn">clipboard</button>
|
|
|
|
<div id="clipboardbox" class="horizontal-centre vertical-centre">
|
2022-10-08 07:06:58 +00:00
|
|
|
<div style="position: relative; top: 50%; transform: translateY(-50%);">
|
|
|
|
<div><textarea id="clipboardtxt" rows="30"></textarea></div>
|
|
|
|
<div><button id="clipboardsend">Send</button></div>
|
|
|
|
</div>
|
2022-10-08 05:57:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
<script type="text/javascript" defer>
|
|
|
|
$("#clipboardbtn").attr("open1", 0);
|
|
|
|
$("#clipboardbtn").click(
|
|
|
|
function (e) {
|
|
|
|
e.stopPropagation();
|
|
|
|
if (($("#clipboardbtn")).attr("open1") == 0) {
|
|
|
|
open();
|
|
|
|
} else {
|
|
|
|
close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
$(".clipboardback").click(function () {
|
|
|
|
close();
|
|
|
|
})
|
|
|
|
$(".clipboard").click(function () {
|
|
|
|
event.stopPropagation();
|
|
|
|
})
|
|
|
|
function open() {
|
|
|
|
$("#clipboardbtn").attr("open1", 1);
|
|
|
|
$("#clipboardbtn").html(">")
|
|
|
|
$(".clipboard").toggleClass("clipboard-open");
|
|
|
|
$(".clipboardback").toggleClass("clipboardback-open");
|
|
|
|
$(".clipboardback").css("pointer-events", "auto");
|
|
|
|
}
|
|
|
|
|
|
|
|
function close() {
|
|
|
|
$("#clipboardbtn").attr("open1", 0);
|
|
|
|
$("#clipboardbtn").html("clipboard")
|
|
|
|
$(".clipboard").toggleClass("clipboard-open");
|
|
|
|
$(".clipboardback").toggleClass("clipboardback-open");
|
|
|
|
$(".clipboardback").css("pointer-events", "none");
|
|
|
|
}
|
|
|
|
|
|
|
|
function setClipBoard(s) {
|
|
|
|
$("#clipboardtxt").val(s);
|
|
|
|
}
|
|
|
|
|
|
|
|
function getClipBoard() {
|
|
|
|
return $("#clipboardtxt").val();
|
|
|
|
}
|
|
|
|
</script>
|