Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
MetaGer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
open-source
MetaGer
Commits
ba5088d9
Commit
ba5088d9
authored
Jul 22, 2019
by
Aria Givi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added foundation for keyboard control
parent
7b69557b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
69 additions
and
1 deletion
+69
-1
resources/js/utility.js
resources/js/utility.js
+16
-0
resources/less/metager/pages/resultpage.less
resources/less/metager/pages/resultpage.less
+2
-1
resources/less/metager/pages/resultpage/keyboard-ctrl.less
resources/less/metager/pages/resultpage/keyboard-ctrl.less
+20
-0
resources/views/layouts/keyboardNavBox.blade.php
resources/views/layouts/keyboardNavBox.blade.php
+30
-0
resources/views/layouts/researchandtabs.blade.php
resources/views/layouts/researchandtabs.blade.php
+1
-0
No files found.
resources/js/utility.js
View file @
ba5088d9
...
...
@@ -2,3 +2,19 @@ $(document).ready(function () {
$
(
'
.js-only
'
).
removeClass
(
'
js-only
'
);
$
(
'
.no-js
'
).
addClass
(
'
hide
'
);
});
document
.
onkeydown
=
checkKey
;
function
checkKey
(
e
)
{
e
=
e
||
window
.
event
;
if
(
e
.
keyCode
==
'
9
'
)
{
e
.
preventDefault
();
$
(
"
#keyboard-ctrl-info
"
).
show
();
$
(
"
#keyboard-ctrl-info
"
).
focus
();
}
else
{
}
}
\ No newline at end of file
resources/less/metager/pages/resultpage.less
View file @
ba5088d9
...
...
@@ -2,4 +2,5 @@
@import "./resultpage/result.less";
@import "./resultpage/product.less";
@import "./resultpage/quicktips.less";
@import "./resultpage/result-saver.less";
\ No newline at end of file
@import "./resultpage/result-saver.less";
@import "./resultpage/keyboard-ctrl.less";
\ No newline at end of file
resources/less/metager/pages/resultpage/keyboard-ctrl.less
0 → 100644
View file @
ba5088d9
/* Keyboard control styles*/
#keyboard-ctrl-info {
display: none;
position: relative;
margin: 10px 0;
padding: 10px;
width: 100%;
border: 1px solid #f00;
background-color: #fff;
&:focus {
border: 10px solid yellow;
}
.keyboard-ctrl-info-header{
text-align: center;
}
}
\ No newline at end of file
resources/views/layouts/keyboardNavBox.blade.php
0 → 100644
View file @
ba5088d9
<!-- Modal HTML
<div id="myModal" class="modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Confirmation</h5>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<p>Do you want to save changes to this document before closing?</p>
<p class="text-secondary"><small>If you don't save, your changes will be lost.</small></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
-->
<div
id=
"keyboard-ctrl-info"
tabindex=
"0"
>
<div
class=
"keyboard-ctrl-info-content"
>
<div
class=
"keyboard-ctrl-info-header"
>
<h5
class=
"keyboard-ctrl-info-title"
>
Tastatur-Navigationsanleitung
</h5>
<div
class=
"keyboard-ctrl-info-body"
>
</div>
</div>
</div>
</div>
\ No newline at end of file
resources/views/layouts/researchandtabs.blade.php
View file @
ba5088d9
...
...
@@ -31,6 +31,7 @@
@yield('results')
</div>
<div
id=
"additions-container"
>
@include('layouts.keyboardNavBox')
@if( $metager->showQuicktips() )
<div
id=
"quicktips"
>
@include('quicktips', ['quicktips', $quicktips])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment