Skip to content

Commit

Permalink
Clicking banner now resets
Browse files Browse the repository at this point in the history
  • Loading branch information
wcolding committed Jan 18, 2024
1 parent c883a47 commit c2f3a8f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion App.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

app = Flask(__name__)

@app.route('/')
@app.route('/', methods=["GET"])
def index():
return render_template('App.html', games = games, presets = presets, generated = '', last_setting = '')

Expand Down
12 changes: 12 additions & 0 deletions static/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,18 @@ button {
background-position-x: 50%;
}

#bannerReset {
margin: 0;
padding: 0;
width: 100%;
height: 15%;
position: absolute;
right: 0;
border: none;
background: transparent;
color: transparent;
}

img.resize {
width:1039px;
height: auto;
Expand Down
6 changes: 5 additions & 1 deletion templates/App.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
<script type="text/javascript" src="../static/App.js"></script>
<div class="lastSettingString" id="lastSetting">{{ last_setting }}</div>

<div id="banner"></div>
<div id="banner">
<form method="get" action="/">
<input id="bannerReset" type="submit">
</form>
</div>

<div id="mainForm">
<div class="section" id="presetLoad">
Expand Down

0 comments on commit c2f3a8f

Please sign in to comment.