This commit is contained in:
bigJIU 2023-04-10 16:18:17 +08:00
commit c3d4ef4d00
10 changed files with 235 additions and 27 deletions

View File

@ -45,6 +45,11 @@ def gamequestion():
return render_template('GameQuestion.html')
@app.route('/privacy')
def privacypage():
return render_template('Privacy.html')
@app.route('/result', methods=['POST', 'GET'])
def gamepreplay():
if request.method == 'POST':

View File

@ -429,8 +429,8 @@
<img class="img-fluid" alt="" src="../templates/Web/Wechat.png" style="width: 100px;">
</div> -->
<div class="col-md-10 column">
<br><br>
<p class="m-0 text-center text-white">Copyright © Jialin Liu</p>
<div class="col-xl-3 justify-content-center" style="margin: auto" align="center"><a href="/privacy" style="cursor:pointer; color: white;" target="_blank">Privacy Policy</a> </div>
<div class="col-xl-3 justify-content-center text-white" style="margin: auto" align="center">Copyright © Jialin Liu</div>
</div>

View File

@ -396,8 +396,8 @@
<div class="row clearfix">
<div class="col-md-10 column">
<br><br>
<p class="m-0 text-center text-white">Copyright © Jialin Liu</p>
<div class="col-xl-3 justify-content-center" style="margin: auto" align="center"><a href="/privacy" style="cursor:pointer; color: white;" target="_blank">Privacy Policy</a> </div>
<div class="col-xl-3 justify-content-center text-white" style="margin: auto" align="center">Copyright © Jialin Liu</div>
</div>

View File

@ -256,7 +256,7 @@
</section>
<div class="col-xl-7 justify-content-between align-content-center" style="margin: auto">This page is created by <a href="https://github.com/BigJIU">Haocheng Du</a>, <a href="https://doveliyuchen.github.io">Yuchen Li</a>; game content is generated by <b>procedural content generator (PCG) </b>designed by<a href="https://github.com/PneuC"> Ziqi Wang</a>.<br> This project is supported by <a href="http://www.liujialin.tech/">Dr. Liu</a> and <a href="https://yannakakis.net/">Prof. Yannakakis</a>.</div>
<div class="col-xl-7 justify-content-between align-content-center" style="margin: auto">This page is created by <a href="https://github.com/BigJIU" target="_blank">Haocheng Du</a>, <a href="https://doveliyuchen.github.io" target="_blank">Yuchen Li</a>; game content is generated by <b>AI </b>designed by<a href="https://github.com/PneuC" target="_blank"> Ziqi Wang</a>.<br> This project is supported by <a href="http://www.liujialin.tech/" target="_blank">Dr. Liu</a> and <a href="https://yannakakis.net/" target="_blank">Prof. Yannakakis</a>.</div>
<br><br>
@ -267,8 +267,8 @@
<div class="row clearfix">
<div class="col-md-10 column">
<br><br>
<p class="m-0 text-center text-white">Copyright © Jialin Liu</p>
<div class="col-xl-3 justify-content-center" style="margin: auto" align="center"><a href="/privacy" style="cursor:pointer; color: white;" target="_blank">Privacy Policy</a> </div>
<div class="col-xl-3 justify-content-center text-white" style="margin: auto" align="center">Copyright © Jialin Liu</div>
</div>

View File

@ -409,7 +409,8 @@
<br>
<br>
<!-- Footer mx-auto -->
@ -420,8 +421,8 @@
<img class="img-fluid" alt="" src="../templates/Web/Wechat.png" style="width: 100px;">
</div> -->
<div class="col-md-10 column">
<br><br>
<p class="m-0 text-center text-white">Copyright © Jialin Liu</p>
<div class="col-xl-3 justify-content-center" style="margin: auto" align="center"><a href="/privacy" style="cursor:pointer; color: white;" target="_blank">Privacy Policy</a> </div>
<div class="col-xl-3 justify-content-center text-white" style="margin: auto" align="center">Copyright © Jialin Liu</div>
</div>

View File

@ -291,13 +291,13 @@
</div>
<img style=" height: 90vh;bottom: 3.5vh; left: 0vw;
position: absolute;z-index: 900; visibility: visible; width: 100%;" src="../templates/Web/pic.png"
<img style=" height: 90vh;bottom: 3.5vh; left: 1vw;
position: absolute;z-index: 900; visibility: visible; width: 99%;" src="../templates/Web/pic.png"
id="windowshow">
<img style=" height: 90vh;bottom: 3.5vh; left: 0vw;
position: absolute;z-index: 902; visibility: visible; width: 100%;" src="../templates/Web/top.png" id="top">
<img style=" height: 90vh;bottom: 3.5vh; left: 0vw;
position: absolute;z-index: 902; visibility: visible; width: 100%;" src="../templates/Web/bot.png" id="bot">
<img style=" height: 90vh;bottom: 3.5vh; left: 1vw;
position: absolute;z-index: 902; visibility: visible; width: 99%;" src="../templates/Web/top.png" id="top">
<img style=" height: 90vh;bottom: 3.5vh; left: 1vw;
position: absolute;z-index: 902; visibility: visible; width: 99%;" src="../templates/Web/bot.png" id="bot">
<script>
cheerpjInit();

View File

@ -107,10 +107,10 @@
vertical-align: middle;
}
label {
display: block;
line-height: 100px;
}
{#label {#}
{# display: block;#}
{# line-height: 100px;#}
.option-input {
-webkit-appearance: none;
@ -281,15 +281,33 @@
<li> Have Fun!
</ul>
<br><br>
<br>
<script>
function validateForm() {
// Check if the checkbox is checked
var checkbox = document.getElementById('privacyPolicyCheckbox');
if (!checkbox.checked) {
alert('Please agree to the privacy policy');
return false; // Prevent form submission
}
return true; // Allow form submission
}
</script>
<form onsubmit="return validateForm()" action="window.location.href = '/question';">
<button onclick="window.location.href = '/question';" class="cirButton"><b> Start!</b> </button>
<input type="checkbox" id="privacyPolicyCheckbox" name="privacyPolicyCheckbox" required>
<label for="privacyPolicyCheckbox">I agree to the <a href="/privacy" style="cursor:pointer;" target="_blank">privacy policy</a></label>
<br>
<br>
<button class="cirButton" type="submit"><b> Start!</b> </button>
</form>
</div>
</div>
</div>
</section>
<div class="col-xl-7 justify-content-between align-content-center" style="margin: auto">This page is created by <a href="https://github.com/BigJIU">Haocheng Du</a>, <a href="https://doveliyuchen.github.io">Yuchen Li</a>; game content is generated by <b>procedural content generator (PCG) </b>designed by<a href="https://github.com/PneuC"> Ziqi Wang</a>.<br> This project is supported by <a href="http://www.liujialin.tech/">Dr. Liu</a> and <a href="https://yannakakis.net/">Prof. Yannakakis</a>.</div>
<div class="col-xl-7 justify-content-between align-content-center" style="margin: auto">This page is created by <a href="https://github.com/BigJIU" target="_blank">Haocheng Du</a>, <a href="https://doveliyuchen.github.io" target="_blank">Yuchen Li</a>; game content is generated by <b>AI </b>designed by<a href="https://github.com/PneuC" target="_blank"> Ziqi Wang</a>.<br> This project is supported by <a href="http://www.liujialin.tech/" target="_blank">Dr. Liu</a> and <a href="https://yannakakis.net/" target="_blank">Prof. Yannakakis</a>.</div>
<br><br>
@ -301,8 +319,8 @@
<img class="img-fluid" alt="" src="../templates/Web/Wechat.png" style="width: 100px;">
</div> -->
<div class="col-md-10 column">
<br><br>
<p class="m-0 text-center text-white">Copyright © Jialin Liu</p>
<div class="col-xl-3 justify-content-center" style="margin: auto" align="center"><a href="/privacy" style="cursor:pointer; color: white;" target="_blank">Privacy Policy</a> </div>
<div class="col-xl-3 justify-content-center text-white" style="margin: auto" align="center">Copyright © Jialin Liu</div>
</div>

184
templates/Privacy.html Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 34 KiB