button style

This commit is contained in:
Yuchen Li 2023-03-01 21:45:56 +08:00
parent cbe6016638
commit f2408e5d4d
5 changed files with 24 additions and 10 deletions

View File

@ -122,7 +122,7 @@
<div id="replayWindowGame"> <div id="replayWindowGame">
</div> </div>
<p><b>Click "Q" to stop replay and quit</b></p> <p><b>Click "Q" to stop replay and quit</b></p>
<div align="center" id = "replayButton"><button onClick='closeReplayWindow()'>Close Window</button></div> <div align="center" id = "replayButton" ><button onClick='closeReplayWindow()' class="cirButton">Close Window</button></div>
</div> </div>
@ -319,7 +319,7 @@ function Replay(id){
} }
</script> </script>
<br> <br>
<button onclick="postOrder()">Submit</button> <button onclick="postOrder()" class="cirButton">Submit</button>
</div> </div>
</section> </section>

View File

@ -171,9 +171,9 @@
<h3> <h3>
Do you want to play another round? Do you want to play another round?
</h3> </h3>
<button onclick="window.location.href = '/gameplay2';">Yes</button> <button onclick="window.location.href = '/gameplay2';" class="cirButton">Yes</button>
<button onclick="window.location.href = 'about:blank';">No</button> <button onclick="window.location.href = 'about:blank';" class="cirButton">No</button>
<div style=""> <div >
<button onclick=" <button onclick="
if('{{stage}}' == '2'){ if('{{stage}}' == '2'){
window.location.href = '/gameplay2'; window.location.href = '/gameplay2';
@ -188,7 +188,7 @@
}else{ }else{
window.location.href = '/gameplay2'; window.location.href = '/gameplay2';
} }
" style="visibility: hidden">Finish!</button> " style="visibility: hidden" class="cirButton">Finish!</button>
</div> </div>
</div> </div>
</section> </section>

View File

@ -54,6 +54,13 @@
font-family: 'Consolas', monospace; font-family: 'Consolas', monospace;
color: #c4cbcf; color: #c4cbcf;
} }
.cirButton {
width:100%;
height:60px;
border-radius: 40px;
cursor: pointer;
border: none;
}
svg{ svg{
width: 50px; width: 50px;

View File

@ -90,6 +90,13 @@
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
.cirButton {
width:100%;
height:60px;
border-radius: 40px;
cursor: pointer;
border: none;
}
.loader { .loader {
position: absolute; position: absolute;
@ -121,7 +128,7 @@
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav"> <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav">
<div class="container"> <div class="container">
<a class="navbar-brand js-scroll-trigger " href="http://aingames.cn/index.html"> <img src="../templates/Web/grouplogo.png" height="35px"></a> <a class="navbar-brand js-scroll-trigger " href="http://aingames.cn/index.html"> <img src="../templates/Web/grouplogo.png" height="35px"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler " type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
</button> </button>
<div class="collapse navbar-collapse" id="navbarResponsive"> <div class="collapse navbar-collapse" id="navbarResponsive">
@ -180,13 +187,13 @@
<br> <br>
<button onclick=" <button onclick="
window.location.href = window.location.href; window.location.href = window.location.href;
"><h3>Repeat Tutorial</h3></button> " class="cirButton"><h3>Repeat Tutorial</h3></button>
</div> </div>
<div class="col-md-6" align="center" style="visibility: hidden;" id = "game"> <div class="col-md-6" align="center" style="visibility: hidden;" id = "game">
<br> <br>
<button onclick=" <button onclick="
window.location.href = window.location.href+'/data' window.location.href = window.location.href+'/data'
"><h3>Play Game</h3></button> " class="cirButton"><h3>Play Game</h3></button>
</div> </div>
<script> <script>

View File

@ -171,7 +171,7 @@
<div id="replayWindow" class="popwindow"> <div id="replayWindow" class="popwindow">
<div id="replayWindowGame"> <div id="replayWindowGame">
</div> </div>
<div align="center"><button onClick="closeReplayWindow()">Close Window</button></div> <div align="center"><button onClick="closeReplayWindow()" class="cirButton">Close Window</button></div>
</div> </div>