-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
101 lines (96 loc) · 4.39 KB
/
Copy pathindex.html
File metadata and controls
101 lines (96 loc) · 4.39 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Windows Remote Desktop - choose your monitors</title>
<meta name="Description" content="Pick some, or all, of your screens to use for RDP">
<meta name="Keywords" content="remote desktop, rdp, windows, monitors, screens, pick, choose, which">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1, user-scalable=yes">
<meta name="HandheldFriendly" content="true">
<link rel="stylesheet" type="text/css" href="css/stylesheet.css">
<script src="js/scripts.js"></script>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
</head>
<body>
<div class="page">
<section class="main">
<section class="content">
<section class="screen-outer">
<div class="screen">
<h1>Windows Remote Desktop - choose your monitors</h1>
<section id="sectionStart">
<h2>Pick some, or all, of your screens to use for RDP.</h2>
<p>Instructions:</p>
<p class="help">Select your RDP file, and specify which displays you want to use.</p>
<p class="help">Your file will be processed by <em>JavaScript</em>, and will <em>never leave the browser</em>.</p>
<p></p>
<p class="help">Inspired by a 2020 blog post from <a href="https://www.hanselman.com/blog/how-to-remote-desktop-fullscreen-rdp-with-just-some-of-your-multiple-monitors"><em>Scott Hanselman</em></a>.</p>
<div class="bottom">
<button type="button" onclick="Start()">Get started</button>
</div>
</section>
<section id="sectionMonitors">
<h2>Step 1: Monitors</h2>
<p>How many monitors do you have?</p>
<select id="selectMonitors">
<option value="1">1</option>
<option value="2">2</option>
<option value="3" selected>3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>
<div class="bottom">
<button type="button" onclick="Confirm()">Confirm</button>
<button class="backward" onclick="Cancel()">Cancel</button>
</div>
</section>
<section id="sectionLoad">
<h2>Step 2: Choose your RDP file</h2>
<p class="help">
File will be processed in your browser,<br>
and will not be uploaded anywhere.
</p>
<input type="file" accept=".rdp" id="uploadedFile">
<div class="bottom">
<button type="button" onclick="Load()">Load File</button>
<button class="backward" onclick="Cancel()">Cancel</button>
<label class="error" id="errorLoad"></label>
</div>
</section>
<section id="sectionWhich">
<h2>Step 3: Which monitors would you like to use?</h2>
<ul id="monitorList"></ul>
<h3>Which screen is which?</h3>
<p class="help">To identify, press <em>Win + R</em> then type <em>desk.cpl</em> and press <em>return</em>.</p>
<div class="bottom">
<button onclick="Which()">Confirm</button>
<button class="backward" onclick="Cancel()">Cancel</button>
<label class="error" id="errorWhich"></label>
</div>
</section>
<section id="sectionDownload">
<h2>Step 4: Download new RDP file</h2>
<p>You have selected monitor(s): <span id="selectedMonitors"></span></p>
<h3>All done</h3>
<p class="help">Click <em>'Download'</em> to download your modified file.<p>
<div class="bottom">
<button onclick="Download()">Download</button>
<button class="backward" onclick="Cancel()">Restart</button>
</div>
</section>
</div>
</section>
<section class="screen-stand"></section>
<footer>
© 2022 <a href="https://www.mike-irving.co.uk/">Mike Irving</a>. Source Code available on <a href="https://github.com/mikeirvingweb/RDP-Choose-Which-Monitors">GitHub</a>.
</footer>
</section>
</section>
</div>
</body>
</html>