menus to modals
This commit is contained in:
parent
9bfa74ad50
commit
6575a9f61d
BIN
images/pic1.png
BIN
images/pic1.png
Binary file not shown.
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 16 KiB |
|
@ -19,6 +19,7 @@ input {
|
|||
width: 100% !important;
|
||||
margin: 0 auto !important;
|
||||
background-color: #00000000 !important;
|
||||
height: 2.5em;
|
||||
}
|
||||
|
||||
|
||||
|
@ -50,29 +51,25 @@ input {
|
|||
border: 2px solid #c3c3c3;
|
||||
}
|
||||
|
||||
#rightClickBtn {
|
||||
border-style: dashed;
|
||||
border-width: 2px;
|
||||
overflow: auto;
|
||||
font-size: 280%;
|
||||
}
|
||||
|
||||
#rightClickBtn:hover {
|
||||
background-color: rgba(0, 232, 255, 0.5);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#controlsModalBtn,
|
||||
#typingModalBtn,
|
||||
#sendKeysBtn,
|
||||
#pressEnterBtn,
|
||||
#scrollToggle,
|
||||
#mouseHoldToggle {
|
||||
#mouseHoldToggle,
|
||||
#rightClickBtn {
|
||||
display: inline-block;
|
||||
font-size: 280%;
|
||||
width: 100%;
|
||||
height: 5em;
|
||||
}
|
||||
|
||||
#scrollToggleContainer,
|
||||
#rightClickBtn {
|
||||
#controlsModalBtn,
|
||||
#typingModalBtn {
|
||||
height: 2em;
|
||||
}
|
||||
|
||||
#hideHandler {
|
||||
display: none; /* Hide button unless screen bigger than media query says it is */
|
||||
}
|
||||
|
||||
|
@ -89,8 +86,7 @@ input {
|
|||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#scrollToggleContainer,
|
||||
#rightClickBtn {
|
||||
#hideHandler {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -180,6 +180,25 @@ function playClickSound() {
|
|||
}
|
||||
|
||||
|
||||
$( "#controlsModalBtn" ).bind( "mouseup", async function(eve) {
|
||||
$('#controlsModal').modal({"focus": true, "show": true});
|
||||
});
|
||||
|
||||
$( "#typingModalBtn" ).bind( "mouseup", async function(eve) {
|
||||
$('#typingModal').modal({"focus": true, "show": true});
|
||||
});
|
||||
|
||||
$( "#closeControlsModalBtn" ).bind( "mouseup", async function(eve) {
|
||||
console.log("here");
|
||||
$('#controlsModal').modal({"focus": false, "show": false});
|
||||
});
|
||||
|
||||
$( "#closeTypingModalBtn" ).bind( "mouseup", async function(eve) {
|
||||
console.log("here2");
|
||||
$('#typingModal').modal({"focus": false, "show": false});
|
||||
});
|
||||
|
||||
|
||||
document.addEventListener("mousedown", setClickkCheck, true);
|
||||
document.addEventListener("mouseup", resetClickCheckAndModBump, true);
|
||||
document.addEventListener("touchstart", touchHandler, true);
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<nav class="navbar navbar-expand-lg bg-dark navbar-dark sticky-top">
|
||||
<div class="col">
|
||||
<ul class="navbar-nav justify-content-center text-center">
|
||||
<li class="list-group-item" style="width: 100%;">
|
||||
<button class="btn btn-success btn-lg" data-toggle="modal"
|
||||
id="typingModalBtn" data-target="#typingModal">Typing Mode</button>
|
||||
</li>
|
||||
|
||||
<li class="list-group-item" style="width: 100%;">
|
||||
<button class="btn btn-success btn-lg" data-toggle="modal"
|
||||
id="controlsModalBtn" data-target="#controlsModal">Controls Toggle</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
|
@ -5,44 +5,98 @@
|
|||
{% endblock body_header_additional %}
|
||||
|
||||
{% block body_content %}
|
||||
<audio id="clickSound" src="{{url_for('static', filename='click.mp3')}}"></audio>
|
||||
<div class="container-auto">
|
||||
<!-- Typing Modal -->
|
||||
<div class="modal fade" id="typingModal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-xl" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h3>Typing</h3>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col justify-content-center text-center">
|
||||
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<input type="text" id="sendKeysField" class="form-control"
|
||||
value="" placeholder="Send keys..." />
|
||||
</div>
|
||||
</div>
|
||||
<br/><br/>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="col justify-content-center text-center">
|
||||
<ul class="navbar-nav justify-content-center text-center">
|
||||
<li class="list-group-item" style="width: 100%;">
|
||||
<button id="sendKeysBtn" class="btn btn-success btn-lg">Send</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="col justify-content-center text-center">
|
||||
</li>
|
||||
<li class="list-group-item" style="width: 100%;">
|
||||
<button id="pressEnterBtn" class="btn btn-success btn-lg">Enter</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br/><br/>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button id="closeTypingModalBtn" type="button" data-dismiss="modal" class="btn btn-danger btn-lg">Close</button>
|
||||
</div>
|
||||
|
||||
<div id="bg-alert-zone" class="col">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Controls Modal -->
|
||||
<div class="modal fade" id="controlsModal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-xl" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h3>Controls</h3>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div id="scrollToggleContainer" class="col justify-content-center text-center">
|
||||
|
||||
<div class="col">
|
||||
<ul class="navbar-nav">
|
||||
<li id="hideHandler" class="list-group-item">
|
||||
<button id="scrollToggle" class="btn btn-success btn-lg">Scroll Mode: Inactive</button>
|
||||
</div>
|
||||
<div class="col justify-content-center text-center">
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<button id="mouseHoldToggle" class="btn btn-success btn-lg">Mouse Hold: Inactive</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br/><br/>
|
||||
<div class="row">
|
||||
<div id="rightClickBtn" class="col justify-content-center text-center btn btn-success">
|
||||
</li>
|
||||
<li id="hideHandler" class="list-group-item">
|
||||
<button id="rightClickBtn" class="btn btn-success btn-lg">
|
||||
Right-Click
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button id="closeControlsModalBtn" type="button" data-dismiss="modal" class="btn btn-danger btn-lg">Close</button>
|
||||
</div>
|
||||
|
||||
<div id="bg-alert-zone" class="col">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br/><br/>
|
||||
|
||||
|
||||
|
||||
<audio id="clickSound" src="{{url_for('static', filename='click.mp3')}}"></audio>
|
||||
<div class="container-auto">
|
||||
<div class="row">
|
||||
<div id="canvas" class="col justify-content-center text-center">
|
||||
|
|
|
@ -40,6 +40,8 @@
|
|||
<!-- <img id="bg" src="{{ url_for('static', filename='imgs/backgrounds/background.jpg')}}" alt="{{title}} Background Logo" /> -->
|
||||
|
||||
{% block body_header %}
|
||||
{% include "body-header.html" %}
|
||||
|
||||
{% block body_header_additional %}
|
||||
{% endblock body_header_additional%}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue