Skip to content

Commit

Permalink
some changes
Browse files Browse the repository at this point in the history
fix show git hash
button show active page
change formatting
  • Loading branch information
HerrErde committed Dec 23, 2023
1 parent 06fc457 commit e3a5f27
Show file tree
Hide file tree
Showing 14 changed files with 159 additions and 249 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Build Docker Image

on:
workflow_dispatch:
push:
tags:
- 'v*'
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
FROM php:8.0-apache

COPY / /var/www/html/
RUN apt-get update && apt-get install -y git

WORKDIR /var/www/html/

COPY . /var/www/html/

COPY php.ini /etc/php/5.6/apache2/php.ini

WORKDIR /
RUN chown -R www-data:www-data /var/www/html

EXPOSE 80
14 changes: 10 additions & 4 deletions assets/css/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
::-webkit-scrollbar {
width: 12px;
width: 13px;
background-color: #f5f5f5;
}
::-webkit-scrollbar-track {
Expand Down Expand Up @@ -245,12 +245,18 @@ input[type='checkbox'].item {
text-decoration: underline;
}
.btn-primary {
background-color: #5865f2;
background-color: #3c45a3;
}
.btn-primary:hover {
background-color: #4752c4;
background-color: #2e3194;
}
.btn-secondary {
background-color: #5865f2;
}
.btn-secondary:hover {
background-color: #4c53a3;
}
.btn-primary.disabled {
.btn.disabled {
background-color: #686d73;
cursor: not-allowed;
}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
web:
image: ghcr.io/herrerde/subway_gen
image: ghcr.io/herrerde/subway_gen:latest
container_name: subway_gen
restart: unless-stopped
ports:
Expand Down
5 changes: 2 additions & 3 deletions generator/toprun.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@
</div>
<div class="btn btn-success download" style="display: inline-block">
<i class="fa-solid fa-download"></i>
<a onclick="download2Json('textarea2', 'user_stats.json')"
>User Stats</a
>
<a onclick="download2Json('textarea2', 'user_stats.json')">
User Stats</a>
</div>
</form>

Expand Down
5 changes: 4 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
<img src="/assets/img/subwaysurf-matrix.png" />
</header>
<?php require "require/info.php"; ?>
<?php require "require/buttons.php"; ?>
<?php
$activePage = basename(__FILE__, '.php');
require "require/buttons.php";
?>
<?php require "require/footer.php"; ?>
</body>
</html>
100 changes: 0 additions & 100 deletions page/boards.php

This file was deleted.

63 changes: 33 additions & 30 deletions page/toprun.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@

<head>
<title>Generate your Highscore</title>
<?php require "../require/connect.php"; ?>
<?php require "../require/buttons.php"; ?>
<?php
$activePage = basename(__FILE__, '.php');
require "../require/connect.php";
require "../require/buttons.php";
?>
</head>

<body>
Expand All @@ -15,35 +18,35 @@

<form method="get" action="../generator/toprun.php">
<fieldset>
<legend>Game data</legend>
<div>
<label>Highscore:</label><br>
<input type="number" name="highscore" required min="0"
max="9223372036854775807">
<span class="required">*</span><br>
</div>
<div>
<label for="userstats">Stats Score:</label>
<label class="switch">
<input type="checkbox" id="userstats">
<span class="slider"></span>
</label>
</div>

<div>
<label for="userstatsAmount">Stats Score Amount:</label>
<input
type="number"
name="userstatsAmount"
id="userstatsAmount"
min="0"
max="2147483647"
required
disabled
>
<span class="required">*</span>
</div>
<div>
<legend>Game data</legend>
<div>
<label>Highscore:</label><br>
<input type="number" name="highscore" required min="0"
max="9223372036854775807">
<span class="required">*</span><br>
</div>
<div>
<label for="userstats">Stats Score:</label>
<label class="switch">
<input type="checkbox" id="userstats">
<span class="slider"></span>
</label>
</div>

<div>
<label for="userstatsAmount">Stats Score Amount:</label>
<input
type="number"
name="userstatsAmount"
id="userstatsAmount"
min="0"
max="2147483647"
required
disabled>
<span class="required">*</span>
</div>
</div>
<script>
const userstats = document.getElementById('userstats');
const userstatsAmount =
Expand Down
13 changes: 7 additions & 6 deletions page/upgrades.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
<html lang="en">
<head>
<title>Generate your Upgrades</title>
<?php require "../require/connect.php"; ?>
<?php require "../require/buttons.php"; ?>
<?php
$activePage = basename(__FILE__, '.php');
require "../require/connect.php";
require "../require/buttons.php";
?>
</head>

<body>
Expand Down Expand Up @@ -52,8 +55,7 @@
min="0"
max="100"
required
disabled
>
disabled>
<span class="required">*</span>
</div>

Expand Down Expand Up @@ -84,8 +86,7 @@
min="0"
max="100"
required
disabled
>
disabled>
<span class="required">*</span>
</div>

Expand Down
Loading

0 comments on commit e3a5f27

Please sign in to comment.