- Instead of onload override, move to RFB.load function that takes a parameter for the target DOM ID. This allows the user to have their own onload function. - Add "VNC_" prefix to all element ID names. Only create DOM elements if they don't already exist on the page, otherwise use the existing elements. - Move all styling to separate stylesheet. - Use list model for control styling.
18 lines
295 B
HTML
18 lines
295 B
HTML
<html>
|
|
|
|
<head>
|
|
<title>VNC Client</title>
|
|
<link rel="stylesheet" href="include/plain.css">
|
|
</head>
|
|
|
|
<body>
|
|
<div id='vnc'>Loading</div>
|
|
</body>
|
|
|
|
<script src="vnc.js"></script>
|
|
<script>
|
|
window.onload = RFB.load('vnc');
|
|
</script>
|
|
|
|
</html>
|