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
3d0fa26f
Commit
3d0fa26f
authored
7 years ago
by
jjlustig
Browse files
Options
Downloads
Plain Diff
fixing merge conflict
parents
0cddde2a
1afe9195
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
bower.json
+2
-1
2 additions, 1 deletion
bower.json
public/client.html
+21
-2
21 additions, 2 deletions
public/client.html
public/js/client.js
+24
-14
24 additions, 14 deletions
public/js/client.js
public/style/main.css
+60
-1
60 additions, 1 deletion
public/style/main.css
server.js
+0
-1
0 additions, 1 deletion
server.js
with
107 additions
and
19 deletions
bower.json
+
2
−
1
View file @
3d0fa26f
...
...
@@ -18,6 +18,7 @@
"bootstrap"
:
"~3.3.5"
,
"swiper"
:
"^4.1.6"
,
"favicon"
:
"^0.0.3"
,
"jquery-qrcode"
:
"*"
"jquery-qrcode"
:
"*"
,
"vanilla-modal"
:
"^1.6.2"
}
}
This diff is collapsed.
Click to expand it.
public/client.html
+
21
−
2
View file @
3d0fa26f
...
...
@@ -27,7 +27,19 @@
<div
class =
"keyboard swiper-slide"
id=
"keyboard"
>
</div>
<div
class =
"numpad swiper-slide"
id=
"numpad"
>
</div>
<div
class =
"hotkeys swiper-slide"
id=
"hotkeys"
>
</div>
<div
class =
"custom swiper-slide"
id=
"custom"
>
</div>
<div
class=
"swiper-slide"
>
<div
class=
"swiper-container-inner"
>
<div
class=
"swiper-wrapper"
id=
"custom-container"
>
</div>
</div>
</div>
</div>
<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 =
"spacebar static-key"
>
space
</div>
<div
class =
"backspace static-key"
>
del
</div>
</div>
</div>
...
...
@@ -56,7 +68,13 @@
<!-- The Modal -->
<div
id=
"myModal"
class=
"modal"
>
<!-- Modal content -->
<div
id=
"modal-content"
class=
"modal-content"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<button
class=
"settings-button"
id=
"new-keyboard"
>
New Keyboard
</button>
</div>
<!-- Modal content
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Change Input</h4>
...
...
@@ -70,6 +88,7 @@
<div id="modal-close">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
-->
</div>
<script
defer
src=
"/public/vendor/jquery/dist/jquery.min.js"
></script>
...
...
This diff is collapsed.
Click to expand it.
public/js/client.js
+
24
−
14
View file @
3d0fa26f
...
...
@@ -13,14 +13,6 @@ var keyboardWidth = document.getElementById('keyboard').offsetWidth;// Width pix
var
keyboardHeight
=
document
.
getElementById
(
'
keyboard
'
).
offsetHeight
;
// Height pixel of
//$("#touchpad").hide();
/*
-----------SWIPING FUNCTIONALITY---------------
*/
var
swiper
=
new
Swiper
(
'
.swiper-container
'
,
{
onlyExternal
:
true
});
var
swipeIndex
=
0
;
/*
-----------KEYBOARD CONTROLS---------------
...
...
@@ -181,11 +173,6 @@ $('#modal-save').click(function() {
y
:
newY
});
});
//Purpose: Closes modal when the user clicks on <span> (x)
$
(
'
#modal-close
'
).
click
(
function
()
{
modal
.
style
.
display
=
"
none
"
;
});
//Purpose: Used for resizing and gestures
window
.
dragMoveListener
=
dragMoveListener
;
...
...
@@ -311,6 +298,10 @@ mcLc.on('doubleclick', function(e) {
var
swiper
=
new
Swiper
(
'
.swiper-container
'
,
{
});
var
swiperInner
=
new
Swiper
(
'
.swiper-container-inner
'
,
{
direction
:
'
vertical
'
,
});
var
swipeIndex
=
0
;
$
(
'
#s0
'
).
css
(
"
background-color
"
,
"
green
"
)
...
...
@@ -331,6 +322,7 @@ $('.icon-selection').click(function() {
if
(
this
.
id
==
'
settings-select
'
)
{
// Bring up setting menu
modal
.
style
.
display
=
"
block
"
;
return
;
}
...
...
@@ -343,7 +335,25 @@ $('.icon-selection').click(function() {
$
(
'
#s
'
+
swipeIndex
.
toString
()).
css
(
"
background-color
"
,
"
turquoise
"
)
$
(
this
).
css
(
"
background-color
"
,
"
green
"
)
swipeIndex
=
newId
;
swiper
.
slideTo
(
newId
,
1000
,
false
);
swiper
.
slideTo
(
newId
,
200
,
false
);
});
/*
-----------SETTINGS MODAL---------------
*/
var
customCount
=
1
;
$
(
'
#new-keyboard
'
).
click
(
function
()
{
var
newSlide
=
'
<div class = "custom swiper-slide" id="custom
'
+
customCount
.
toString
()
+
'
">
'
+
customCount
+
'
</div>
'
;
customCount
++
;
swiperInner
.
appendSlide
(
newSlide
)
swiper
.
slideTo
(
3
,
200
,
false
);
swiperInner
.
slideTo
(
customCount
-
1
,
200
,
false
);
});
$
(
'
.close
'
).
click
(
function
()
{
modal
.
style
.
display
=
"
none
"
;
});
/*
...
...
This diff is collapsed.
Click to expand it.
public/style/main.css
+
60
−
1
View file @
3d0fa26f
...
...
@@ -73,12 +73,57 @@ mark {
overflow
:
hidden
;
}
.swiper-
wrapp
er
{
.swiper-
container-inn
er
{
height
:
100%
;
width
:
100%
;
position
:
relative
;
overflow
:
hidden
;
}
.swiper-wrapper
{
height
:
85%
;
width
:
400%
;
position
:
relative
;
}
.swiper-wrapper-inner
{
height
:
400%
;
width
:
100%
;
position
:
relative
;
}
.static-bar
{
min-height
:
15%
}
.static-key
{
float
:
left
;
position
:
relative
;
height
:
100%
;
text-align
:
center
;
border
:
1px
solid
#888
;
}
.shift-toggle
{
min-width
:
10%
}
.ctrl-toggle
{
min-width
:
10%
}
.alt-toggle
{
min-width
:
10%
}
.spacebar
{
min-width
:
40%
}
.backspace
{
min-width
:
30%
}
.swiper-slide
{
float
:
left
;
height
:
100%
;
...
...
@@ -87,6 +132,15 @@ mark {
position
:
relative
;
}
.custom
{
float
:
bottom
;
height
:
100%
;
width
:
100%
;
background-color
:
white
;
position
:
relative
;
font-size
:
50px
;
}
#touchpad
{
resize
:
vertical
;
overflow
:
auto
;
...
...
@@ -193,6 +247,11 @@ mark {
padding
:
20px
;
border
:
1px
solid
#888
;
width
:
80%
;
height
:
40%
;
}
.settings-button
{
background-color
:
orange
;
}
#inputText
{
...
...
This diff is collapsed.
Click to expand it.
server.js
+
0
−
1
View file @
3d0fa26f
...
...
@@ -86,7 +86,6 @@ io.on('connection', function(socket) {
var
xpos
=
[]
var
ypos
=
[]
for
(
var
key
in
content
)
{
keys
.
push
(
content
[
key
][
0
]);
xpos
.
push
(
content
[
key
][
1
]);
...
...
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