Skip to content

Commit

Permalink
Mobile UI improvments
Browse files Browse the repository at this point in the history
  • Loading branch information
copy committed Jan 27, 2014
1 parent 33c391a commit 2b5116b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Virtual x86</title>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">

<script src="loader.js"></script>
<link rel="stylesheet" href="v86.css">
Expand Down
11 changes: 6 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Virtual x86</title>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">

<script src="v86_all.js"></script>
<link rel="stylesheet" href="v86.css">
Expand Down Expand Up @@ -164,15 +165,16 @@ <h4>Setup</h4>
<canvas id="vga"></canvas>
</div>

<input type="text" class="phone_keyboard" style="display: none">

<br style="clear:both"><br>

<textarea cols="80" rows="25" id="serial" style="display: none">This is the serial console. Whatever you type or paste here will be send to COM1.

In Linux it can be accessed with `cat /dev/ttyS0`
</textarea>

<input type="text" class="phone_keyboard" style="display: none">

<span style="clear:both"></span>
<br>
<br style="clear:both">


<div id="news">
Expand All @@ -186,7 +188,6 @@ <h4>News</h4>
</div>
<br style="clear:both">

<br>
<hr>
<a href="debug.html">Enable debug</a>
&mdash;
Expand Down
5 changes: 5 additions & 0 deletions src/browser/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,11 @@
lock_mouse(elem);
};

$("screen_container").onclick = function()
{
document.getElementsByClassName("phone_keyboard")[0].focus();
};

$("take_screenshot").onclick = function()
{
screen_adapter.make_screenshot();
Expand Down
8 changes: 4 additions & 4 deletions v86.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ a {
color: wheat;
}
.phone_keyboard {
background-color: #111;
border: 1px solid #555;
width: 100px;
height: 100px;
width: 0;
height: 0;
resize: none;
border: 0;
}
h4 {
margin: 0px 0px 20px 0px;
Expand Down

0 comments on commit 2b5116b

Please sign in to comment.