Optimized all the pictures
3
.gitignore
vendored
@@ -15,4 +15,5 @@ error.log
|
||||
/python/update.sh
|
||||
!/html/composer.json
|
||||
/html/composer.lock
|
||||
/html/vendor/
|
||||
/html/vendor/
|
||||
.DS_STORE
|
||||
|
Before Width: | Height: | Size: 633 B |
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 438 KiB |
|
Before Width: | Height: | Size: 319 KiB |
BIN
html/img/cookieClicker.mobile.jpg
Normal file
|
After Width: | Height: | Size: 156 KiB |
BIN
html/img/deck/.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 525 B |
BIN
html/img/deck/0.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 4.7 KiB |
BIN
html/img/deck/1.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 1.9 KiB |
BIN
html/img/deck/10.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 4.1 KiB |
BIN
html/img/deck/11.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 4.5 KiB |
BIN
html/img/deck/12.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 4.7 KiB |
BIN
html/img/deck/13.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 2.8 KiB |
BIN
html/img/deck/14.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 1.8 KiB |
BIN
html/img/deck/15.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 1.9 KiB |
BIN
html/img/deck/16.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 2.1 KiB |
BIN
html/img/deck/17.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 2.4 KiB |
BIN
html/img/deck/18.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 2.8 KiB |
BIN
html/img/deck/19.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 3.0 KiB |
BIN
html/img/deck/2.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 2.0 KiB |
BIN
html/img/deck/20.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 3.2 KiB |
BIN
html/img/deck/21.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 3.5 KiB |
BIN
html/img/deck/22.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 3.7 KiB |
BIN
html/img/deck/23.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 4.5 KiB |
BIN
html/img/deck/24.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 4.3 KiB |
BIN
html/img/deck/25.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 4.0 KiB |
BIN
html/img/deck/26.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 3.3 KiB |
BIN
html/img/deck/27.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 1.9 KiB |
BIN
html/img/deck/28.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 2.1 KiB |
BIN
html/img/deck/29.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 2.6 KiB |
BIN
html/img/deck/3.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 2.3 KiB |
BIN
html/img/deck/30.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 2.8 KiB |
BIN
html/img/deck/31.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 3.2 KiB |
BIN
html/img/deck/32.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 3.4 KiB |
BIN
html/img/deck/33.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 3.7 KiB |
BIN
html/img/deck/34.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 4.1 KiB |
BIN
html/img/deck/35.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 4.1 KiB |
BIN
html/img/deck/36.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 4.5 KiB |
BIN
html/img/deck/37.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 4.4 KiB |
BIN
html/img/deck/38.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 4.5 KiB |
BIN
html/img/deck/39.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 2.6 KiB |
BIN
html/img/deck/4.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 2.6 KiB |
BIN
html/img/deck/40.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
html/img/deck/41.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 1.8 KiB |
BIN
html/img/deck/42.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 2.1 KiB |
BIN
html/img/deck/43.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 2.3 KiB |
BIN
html/img/deck/44.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 2.6 KiB |
BIN
html/img/deck/45.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 2.7 KiB |
BIN
html/img/deck/46.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 3.0 KiB |
BIN
html/img/deck/47.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 3.2 KiB |
BIN
html/img/deck/48.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 3.3 KiB |
BIN
html/img/deck/49.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 4.0 KiB |
BIN
html/img/deck/5.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 2.8 KiB |
BIN
html/img/deck/50.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 4.1 KiB |
BIN
html/img/deck/51.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 4.1 KiB |
BIN
html/img/deck/6.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 3.0 KiB |
BIN
html/img/deck/7.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 3.4 KiB |
BIN
html/img/deck/8.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 3.4 KiB |
BIN
html/img/deck/9.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 3.8 KiB |
BIN
html/img/deck/back.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 5.4 KiB |
BIN
html/img/deck/deck.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 777 KiB After Width: | Height: | Size: 180 KiB |
BIN
html/img/deck/undefined.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 525 B |
|
Before Width: | Height: | Size: 29 KiB |
BIN
html/img/floppy.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 654 KiB |
|
Before Width: | Height: | Size: 369 KiB |
BIN
html/img/floppy.mobile.jpg
Normal file
|
After Width: | Height: | Size: 197 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
BIN
html/img/notFound.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 228 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 228 KiB |
@@ -11,10 +11,10 @@ include 'functions.php';
|
||||
<link rel="manifest" href="/favicon/site.webmanifest">
|
||||
<link rel="stylesheet" type="text/css" href="/css/website.css" />
|
||||
<script type="text/javascript" src="/javascript/jquery.js"></script>
|
||||
<script type="text/javascript" src="/javascript/jquery-ui.min.js"></script>
|
||||
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
||||
<script type="text/javascript" src="/javascript/functions.js"></script>
|
||||
<script type="text/javascript" src="/javascript/cookie.js"></script>
|
||||
<script defer="true" type="text/javascript" src="/javascript/jquery-ui.min.js"></script>
|
||||
<link defer="true" rel="stylesheet" href="/css/jquery-ui.min.css">
|
||||
<script defer="true" type="text/javascript" src="/javascript/functions.js"></script>
|
||||
<script defer="true" type="text/javascript" src="/javascript/cookie.js"></script>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
|
||||
@@ -37,12 +37,13 @@ if (isset($DESCRIPTION)) {
|
||||
/**
|
||||
* Creates an image that loads a simple image before loading the entire image.
|
||||
* @param string $img used as the name of the image
|
||||
* @param string $alt used as the alternate text
|
||||
*/
|
||||
function createImage($img, $alt, $style="width:100%;") {
|
||||
global $MOBILE;
|
||||
echo "<img id='first$img' onload='imageLoad(`$img`, `first`)' src='/img/$img.first.jpg' alt='$alt' style='$style'>";
|
||||
echo "<img id='min$img' src='' alt='$alt' style='$style display: none;'>";
|
||||
if (! $MOBILE) {
|
||||
echo "<img id='$img' src='' alt='$alt' style='$style display: none;'>";
|
||||
if ($MOBILE && !in_array($img, ["notFound"])) {
|
||||
echo "<img src='/img/$img.mobile.jpg' alt='$alt' style='$style'>";
|
||||
} else {
|
||||
echo "<img src='/img/$img.jpg' alt='$alt' style='$style'>";
|
||||
}
|
||||
}
|
||||
@@ -39,22 +39,6 @@ function lastElement(array) { // returns the last element in an array
|
||||
return array[array.length - 1];
|
||||
}
|
||||
|
||||
function imageLoad(name, quality) { // used for better loading of image
|
||||
if (quality == "first") {
|
||||
$(`#min${name}`).attr("src", `/img/${name}.min.jpg`);
|
||||
$(`#min${name}`).attr("onload", `imageLoad('${name}', 'medium')`);
|
||||
}else if (quality == "medium") {
|
||||
$(`#first${name}`).hide();
|
||||
$(`#min${name}`).show();
|
||||
if (! mobile) {
|
||||
$(`#${name}`).attr("src", `/img/${name}.jpg`);
|
||||
$(`#${name}`).attr("onload", `imageLoad('${name}', false)`);
|
||||
}
|
||||
} else {
|
||||
$(`#min${name}`).hide();
|
||||
$(`#${name}`).show()
|
||||
}
|
||||
}
|
||||
|
||||
function beautify(val) // Will make a big number easier to read
|
||||
{
|
||||
|
||||