Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EECS498-uBoard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EzTunes
EECS498-uBoard
Commits
cfb0d417
Commit
cfb0d417
authored
7 years ago
by
jjlustig
Browse files
Options
Downloads
Patches
Plain Diff
merging features
parent
3d0fa26f
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
public/client.html
+1
-1
1 addition, 1 deletion
public/client.html
public/js/client.js
+4
-0
4 additions, 0 deletions
public/js/client.js
public/style/main.css
+14
-1
14 additions, 1 deletion
public/style/main.css
server.js
+1
-1
1 addition, 1 deletion
server.js
with
20 additions
and
3 deletions
public/client.html
+
1
−
1
View file @
cfb0d417
...
...
@@ -37,7 +37,7 @@
<div
class =
"static-bar"
>
<div
class =
"shift-toggle static-key"
>
shift
</div>
<div
class =
"ctrl-toggle static-key"
>
ctrl
</div>
<div
class =
"
alt
-toggle static-key"
>
alt
</div>
<div
class =
"
go
-toggle static-key"
>
Go
</div>
<div
class =
"spacebar static-key"
>
space
</div>
<div
class =
"backspace static-key"
>
del
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
public/js/client.js
+
4
−
0
View file @
cfb0d417
...
...
@@ -149,6 +149,10 @@ interact('.key-button').on('tap', function (event) {
emitKey
(
event
.
target
.
innerText
);
});
interact
(
'
.static-key
'
).
on
(
'
tap
'
,
function
(
event
)
{
emitKey
(
event
.
target
.
innerText
);
});
interact
(
'
.url-button
'
).
on
(
'
tap
'
,
function
(
event
)
{
if
(
event
.
target
.
id
.
indexOf
(
"
url-icon
"
)
!=
-
1
){
emitUrl
(
$
(
"
#
"
+
event
.
target
.
id
).
parent
().
text
().
trim
())
...
...
This diff is collapsed.
Click to expand it.
public/style/main.css
+
14
−
1
View file @
cfb0d417
...
...
@@ -102,6 +102,19 @@ mark {
height
:
100%
;
text-align
:
center
;
border
:
1px
solid
#888
;
background-image
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0
,
#00bbd4
),
color-stop
(
1
,
#3f51b5
));
background-image
:
-webkit-linear-gradient
(
top
,
#00bbd4
0%
,
#3f51b5
100%
);
background-image
:
linear-gradient
(
to
bottom
,
#00bbd4
0%
,
#3f51b5
100%
);
background-image
:
-webkit-linear-gradient
(
93deg
,
#3f51b5
0%
,
#00bbd4
100%
);
color
:
#fff
;
/*Stops Browser Action for Chrome and Safari*/
touch-action
:
none
;
-webkit-user-select
:
none
;
-webkit-transform
:
translate
(
0px
,
0px
);
transform
:
translate
(
0px
,
0px
);
}
.shift-toggle
{
...
...
@@ -112,7 +125,7 @@ mark {
min-width
:
10%
}
.
alt
-toggle
{
.
go
-toggle
{
min-width
:
10%
}
...
...
This diff is collapsed.
Click to expand it.
server.js
+
1
−
1
View file @
cfb0d417
...
...
@@ -119,7 +119,7 @@ io.on('connection', function(socket) {
else
if
(
str
===
"
space
"
){
robot
.
keyTap
(
'
space
'
);
}
else
if
(
str
===
'
backspace
'
){
else
if
(
str
===
'
del
'
){
robot
.
keyTap
(
'
backspace
'
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment