edicer v3.5 (so halb)
This commit is contained in:
202
INF/sketch_jan24a/diagram.json
Normal file
202
INF/sketch_jan24a/diagram.json
Normal file
@@ -0,0 +1,202 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"author": "B. Spitzer",
|
||||||
|
"editor": "wokwi",
|
||||||
|
"parts": [
|
||||||
|
{ "type": "board-esp32-devkit-c-v4", "id": "esp", "top": 9.6, "left": 81.64, "attrs": {} },
|
||||||
|
{
|
||||||
|
"type": "wokwi-ky-040",
|
||||||
|
"id": "encoder1",
|
||||||
|
"top": 108.6,
|
||||||
|
"left": -152.3,
|
||||||
|
"rotate": 90,
|
||||||
|
"attrs": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "board-ssd1306",
|
||||||
|
"id": "oled1",
|
||||||
|
"top": -35.26,
|
||||||
|
"left": -143.77,
|
||||||
|
"attrs": { "i2cAddress": "0x3c" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-pushbutton",
|
||||||
|
"id": "btn1",
|
||||||
|
"top": 313.4,
|
||||||
|
"left": -105.6,
|
||||||
|
"attrs": { "color": "red", "bounce": "0" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-pushbutton",
|
||||||
|
"id": "btn2",
|
||||||
|
"top": 313.4,
|
||||||
|
"left": 0,
|
||||||
|
"attrs": { "color": "green", "bounce": "0" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-led",
|
||||||
|
"id": "led1",
|
||||||
|
"top": 246,
|
||||||
|
"left": -92.2,
|
||||||
|
"attrs": { "color": "red", "flip": "1" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-led",
|
||||||
|
"id": "led2",
|
||||||
|
"top": 246,
|
||||||
|
"left": 13.4,
|
||||||
|
"attrs": { "color": "green", "flip": "1" }
|
||||||
|
},
|
||||||
|
{ "type": "wokwi-neopixel", "id": "rgb1", "top": 130.9, "left": 18.2, "attrs": {} },
|
||||||
|
{
|
||||||
|
"type": "wokwi-resistor",
|
||||||
|
"id": "r1",
|
||||||
|
"top": 177.6,
|
||||||
|
"left": -38.95,
|
||||||
|
"rotate": 90,
|
||||||
|
"attrs": { "value": "1000" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-resistor",
|
||||||
|
"id": "r2",
|
||||||
|
"top": 177.6,
|
||||||
|
"left": -19.75,
|
||||||
|
"rotate": 90,
|
||||||
|
"attrs": { "value": "1000" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-resistor",
|
||||||
|
"id": "r3",
|
||||||
|
"top": 33.6,
|
||||||
|
"left": -48.55,
|
||||||
|
"rotate": 90,
|
||||||
|
"attrs": { "value": "1000" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-resistor",
|
||||||
|
"id": "r4",
|
||||||
|
"top": 33.6,
|
||||||
|
"left": -29.35,
|
||||||
|
"rotate": 90,
|
||||||
|
"attrs": { "value": "1000" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-resistor",
|
||||||
|
"id": "r5",
|
||||||
|
"top": 4.8,
|
||||||
|
"left": 229.85,
|
||||||
|
"rotate": 90,
|
||||||
|
"attrs": { "value": "1000" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-resistor",
|
||||||
|
"id": "r6",
|
||||||
|
"top": 4.8,
|
||||||
|
"left": 249.05,
|
||||||
|
"rotate": 90,
|
||||||
|
"attrs": { "value": "1000" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-resistor",
|
||||||
|
"id": "r7",
|
||||||
|
"top": 4.8,
|
||||||
|
"left": 268.25,
|
||||||
|
"rotate": 90,
|
||||||
|
"attrs": { "value": "1000" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-text",
|
||||||
|
"id": "dDtext1",
|
||||||
|
"top": 403.2,
|
||||||
|
"left": -96,
|
||||||
|
"attrs": { "text": "Taster2" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-text",
|
||||||
|
"id": "dDtext2",
|
||||||
|
"top": 403.2,
|
||||||
|
"left": 9.6,
|
||||||
|
"attrs": { "text": "Taster4" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-text",
|
||||||
|
"id": "dDtext3",
|
||||||
|
"top": 259.2,
|
||||||
|
"left": -153.6,
|
||||||
|
"attrs": { "text": "LED32" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-text",
|
||||||
|
"id": "dDtext4",
|
||||||
|
"top": 259.2,
|
||||||
|
"left": 76.8,
|
||||||
|
"attrs": { "text": "LED33" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-text",
|
||||||
|
"id": "dDtext5",
|
||||||
|
"top": -163.2,
|
||||||
|
"left": -230.4,
|
||||||
|
"attrs": { "text": "ESP32 Schulboard mit LEDs und Tastern, I2C-Bus mit Standard-Belegung" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-text",
|
||||||
|
"id": "dDtext6",
|
||||||
|
"top": -115.2,
|
||||||
|
"left": -153.6,
|
||||||
|
"attrs": { "text": "SSD1306 Display" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wokwi-text",
|
||||||
|
"id": "dDtext7",
|
||||||
|
"top": -115.2,
|
||||||
|
"left": -9.6,
|
||||||
|
"attrs": { "text": "WS2812 an Pin26" }
|
||||||
|
},
|
||||||
|
{ "type": "wokwi-potentiometer", "id": "pot1", "top": 94.7, "left": -259.4, "attrs": {} }
|
||||||
|
],
|
||||||
|
"connections": [
|
||||||
|
[ "esp:TX", "$serialMonitor:RX", "", [] ],
|
||||||
|
[ "esp:RX", "$serialMonitor:TX", "", [] ],
|
||||||
|
[ "oled1:VCC", "esp:3V3", "red", [ "v-19.2", "h172.95", "v86.4" ] ],
|
||||||
|
[ "oled1:GND", "esp:GND.2", "black", [ "v-28.8", "h307.2", "v67.2" ] ],
|
||||||
|
[ "esp:22", "oled1:SCL", "gold", [ "h19.2", "v0", "h28.8", "v-134.4", "h-316.8", "v9.6" ] ],
|
||||||
|
[ "esp:21", "oled1:SDA", "blue", [ "h57.6", "v-172.8", "h-144" ] ],
|
||||||
|
[ "encoder1:GND", "esp:GND.2", "black", [ "v9.6", "h-58.4", "v-268.8", "h364.8", "v96" ] ],
|
||||||
|
[ "encoder1:VCC", "esp:3V3", "red", [ "v19.2", "h-58", "v-268.8", "h230.4", "v86.4" ] ],
|
||||||
|
[ "esp:GND.1", "rgb1:VSS", "black", [ "h-28.65", "v-19.2", "h-9.6" ] ],
|
||||||
|
[ "esp:26", "rgb1:DIN", "green", [ "h-28.65", "v9.6" ] ],
|
||||||
|
[ "esp:3V3", "rgb1:VDD", "red", [ "h0" ] ],
|
||||||
|
[ "encoder1:CLK", "esp:34", "gold", [ "v0", "h38.4", "v-124.8" ] ],
|
||||||
|
[ "encoder1:DT", "esp:35", "gray", [ "v9.6", "h57.5", "v-124.8", "h9.6" ] ],
|
||||||
|
[ "encoder1:SW", "esp:0", "green", [ "v28.8", "h230.3", "v0", "h67.2", "v-67.2" ] ],
|
||||||
|
[ "esp:32", "r1:1", "orange", [ "h0" ] ],
|
||||||
|
[ "r2:1", "esp:33", "green", [ "h0", "v-48" ] ],
|
||||||
|
[ "btn1:2.l", "btn1:2.r", "green", [ "h-19.2", "v48.2", "h96", "v-48" ] ],
|
||||||
|
[ "btn2:2.l", "btn2:2.r", "green", [ "h-9.6", "v38.6", "h86.4", "v-38.6" ] ],
|
||||||
|
[ "esp:2", "btn1:2.r", "green", [ "h48", "v220.8", "h-115.2", "v0", "h-144", "v-48" ] ],
|
||||||
|
[ "btn2:2.r", "esp:4", "green", [ "h9.8", "v38.6", "h144", "v-230.4" ] ],
|
||||||
|
[ "r3:2", "esp:34", "gold", [ "h0", "v8.4" ] ],
|
||||||
|
[ "r4:2", "esp:35", "gray", [ "h0", "v18" ] ],
|
||||||
|
[ "esp:3V3", "r4:1", "red", [ "h-47.85", "v-38.4", "h-38.4" ] ],
|
||||||
|
[ "esp:3V3", "r3:1", "red", [ "h-47.85", "v-38.4", "h-57.6" ] ],
|
||||||
|
[ "esp:GND.1", "btn1:1.l", "black", [ "h-19.05", "v144", "h-182.4", "v0", "h-9.6", "v19.2" ] ],
|
||||||
|
[ "btn1:1.r", "esp:GND.1", "black", [ "v0", "h19.4", "v-19.2", "h86.4", "v-134.4" ] ],
|
||||||
|
[ "esp:GND.1", "btn2:1.l", "black", [ "h-19.05", "v144", "h-86.4", "v9.6" ] ],
|
||||||
|
[ "btn2:1.r", "esp:GND.1", "black", [ "v0" ] ],
|
||||||
|
[ "led1:C", "r1:2", "orange", [ "v0", "h57.6" ] ],
|
||||||
|
[ "led1:A", "encoder1:VCC", "red", [ "v0", "h-18.8" ] ],
|
||||||
|
[ "r2:2", "led2:C", "green", [ "h0", "v37.2", "h48", "v38.4" ] ],
|
||||||
|
[ "led2:A", "encoder1:VCC", "red", [ "v0", "h-28.4", "v9.6", "h-96" ] ],
|
||||||
|
[ "r5:2", "esp:4", "green", [ "h0", "v27.6" ] ],
|
||||||
|
[ "esp:0", "r6:2", "green", [ "h0" ] ],
|
||||||
|
[ "esp:2", "r7:2", "green", [ "h0" ] ],
|
||||||
|
[ "r5:1", "esp:3V3", "red", [ "v-28.8", "h-182.4", "v86.4" ] ],
|
||||||
|
[ "r6:1", "esp:3V3", "red", [ "v-28.8", "h-201.6", "v86.4" ] ],
|
||||||
|
[ "r7:1", "esp:3V3", "red", [ "v-28.8", "h-220.8", "v86.4" ] ],
|
||||||
|
[ "pot1:GND", "encoder1:GND", "black", [ "v48", "h124.8" ] ],
|
||||||
|
[ "pot1:VCC", "encoder1:VCC", "red", [ "v57.6", "h85.6" ] ],
|
||||||
|
[ "pot1:SIG", "esp:VP", "violet", [ "v19.2", "h86", "v-124.8" ] ]
|
||||||
|
],
|
||||||
|
"dependencies": {}
|
||||||
|
}
|
||||||
64
INF/sketch_jan24a/sketch_jan24a.ino
Normal file
64
INF/sketch_jan24a/sketch_jan24a.ino
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
int Messwert, talt, tneu, talt2, tneu2, Ausgabewert2, Ausgabewert4;
|
||||||
|
unsigned long davorZeit = 0;
|
||||||
|
const int LED_gruen = 33, Taster2 = 2, Taster4 = 4, LED_rot = 32;
|
||||||
|
bool TGedrueckt2, TGedrueckt4;
|
||||||
|
|
||||||
|
void setup(){
|
||||||
|
Serial.begin(115200);
|
||||||
|
ledcAttach(LED_gruen, 180, 12);
|
||||||
|
ledcAttach(LED_rot, 180, 12):
|
||||||
|
pinMode(Taster2, INPUT_PULLUP);
|
||||||
|
pinMode(Taster4, INPUT_PULLUP);
|
||||||
|
}
|
||||||
|
void loop(){
|
||||||
|
einlesen();
|
||||||
|
verarbeiten();
|
||||||
|
ausgeben();
|
||||||
|
}
|
||||||
|
|
||||||
|
void einlesen(){
|
||||||
|
bool tneu = digitalRead(Taster2);
|
||||||
|
if (talt2 == 1 && tneu2 == 0) {
|
||||||
|
TGedrueckt2 = true;
|
||||||
|
delay(20);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
TGedrueckt2 = false;
|
||||||
|
}
|
||||||
|
talt2 = tneu2;
|
||||||
|
|
||||||
|
bool tneu = digitalRead(Taster4);
|
||||||
|
if (talt == 1 && tneu == 0) {
|
||||||
|
TGedrueckt4 = true;
|
||||||
|
delay(20);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
TGedrueckt4 = false;
|
||||||
|
}
|
||||||
|
talt = tneu;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void verarbeiten(){
|
||||||
|
unsigned long jetztZeit = millis();
|
||||||
|
if (TGedrueckt2 == true){
|
||||||
|
if ( jetztZeit - davorZeit >= 200){
|
||||||
|
davorZeit = jetztZeit ;
|
||||||
|
Ausgabewert4 = analogRead(A0); // Eingang mit Potti
|
||||||
|
Ausgabewert4 = map(Ausgabewert4, 4096, 0, 0, 4096);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (TGedrueckt4 == true){
|
||||||
|
if ( jetztZeit - davorZeit >= 200){
|
||||||
|
davorZeit = jetztZeit ;
|
||||||
|
Ausgabewert2 = analogRead(A0); // Eingang mit Potti
|
||||||
|
Ausgabewert2 = map(Ausgabewert2, 4096, 0, 0, 4096);
|
||||||
|
}
|
||||||
|
ledcWrite(LED_rot, Ausgabewert2);
|
||||||
|
ledcWrite(LED_gruen, Ausgabewert4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void ausgeben(){
|
||||||
|
Serial.println(Messwert);
|
||||||
|
}
|
||||||
4
INF/sketch_jan24a/wokwi.toml
Normal file
4
INF/sketch_jan24a/wokwi.toml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
[wokwi]
|
||||||
|
version = 1
|
||||||
|
firmware = 'path-to-your-firmware.hex'
|
||||||
|
elf = 'path-to-your-firmware.elf'
|
||||||
0
komp/aufgabe-1_23_25.html
Normal file
0
komp/aufgabe-1_23_25.html
Normal file
191
progp/25-1-29 -- edicer 4/edicer-4.php
Normal file
191
progp/25-1-29 -- edicer 4/edicer-4.php
Normal file
@@ -0,0 +1,191 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
|
||||||
|
$augen_array = [];
|
||||||
|
$einsatz = 1;
|
||||||
|
$anzahl = 5;
|
||||||
|
|
||||||
|
if (!isset($_SESSION['kontostand'])){
|
||||||
|
$_SESSION['kontostand'] = 100;
|
||||||
|
}
|
||||||
|
$gewinn = 0;
|
||||||
|
|
||||||
|
for ($i = 0; $i < $anzahl; $i++){
|
||||||
|
$augen = rand(1, 6);
|
||||||
|
$augen_array[] = $augen;
|
||||||
|
}
|
||||||
|
|
||||||
|
sort($augen_array);
|
||||||
|
|
||||||
|
function auswerten($augen_arr) {
|
||||||
|
$gewinn_stufen = [
|
||||||
|
0 => ["<h3>❌ KEIN GEWINN.❌</h3>", 0],
|
||||||
|
1 => ["<h3>2️⃣ ZWEIERPASCH</h3>", 1],
|
||||||
|
2 => ["<h3>2️⃣ DOPPEL ZWEIERPASCH</h3>", 2],
|
||||||
|
3 => ["<h3>3️⃣ DREIERPASCH</h3>", 3],
|
||||||
|
4 => ["<h3>🛣️ Kleine Straße</h3>", 5],
|
||||||
|
5 => ["<h3>🏠 FULL HOUSE</h3>", 10],
|
||||||
|
6 => ["<h3>🛣️ Große Straße</h3>", 15],
|
||||||
|
7 => ["<h3>4️⃣ VIERERPASCH</h3>", 20],
|
||||||
|
8 => ["<h3>🎉 KNIFFEL! 🎉</h3>", 100],
|
||||||
|
];
|
||||||
|
|
||||||
|
$haeufigkeit = array_count_values($augen_arr);
|
||||||
|
sort($haeufigkeit);
|
||||||
|
|
||||||
|
if (count(array_unique($augen_arr)) == 1) return $gewinn_stufen[8]; // Kniffel
|
||||||
|
if ($haeufigkeit === [1, 4]) return $gewinn_stufen[7]; // Viererpasch
|
||||||
|
if ($augen_arr === [1, 2, 3, 4, 5] || $augen_arr === [2, 3, 4, 5, 6]) return $gewinn_stufen[6]; // Große Straße
|
||||||
|
if ($haeufigkeit === [2, 3]) return $gewinn_stufen[5]; // Full House
|
||||||
|
if (in_array([1, 1, 1, 1], $haeufigkeit)) return $gewinn_stufen[4]; // Kleine Straße
|
||||||
|
if ($haeufigkeit === [1, 1, 3]) return $gewinn_stufen[3]; // Dreierpasch
|
||||||
|
if ($haeufigkeit === [1, 2, 2]) return $gewinn_stufen[2]; // Doppel Zweierpasch
|
||||||
|
if ($haeufigkeit === [1, 1, 1, 2]) return $gewinn_stufen[1]; // Zweierpasch
|
||||||
|
|
||||||
|
return $gewinn_stufen[0]; // Kein Gewinn
|
||||||
|
}
|
||||||
|
|
||||||
|
$auswertung = auswerten($augen_array);
|
||||||
|
$_SESSION['kontostand'] -= 2;
|
||||||
|
$_SESSION['kontostand'] += $auswertung[1];
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>eDicer</title>
|
||||||
|
<style>
|
||||||
|
.text-bold {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.w {
|
||||||
|
width: 10%;
|
||||||
|
}
|
||||||
|
.ausgabe{
|
||||||
|
padding: 8px;
|
||||||
|
background-color: #333;
|
||||||
|
color: white;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.gewinn{
|
||||||
|
margin: 1px;
|
||||||
|
padding: 8px;
|
||||||
|
background-color: darkgreen;
|
||||||
|
color: white;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.board {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.wuerfeln {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
box-shadow: 0px 0px 27px 8px #3dc21b;
|
||||||
|
background: linear-gradient(to bottom, #44c767 5%, #5cbf2a 100%);
|
||||||
|
background-color: #44c767;
|
||||||
|
border-radius: 38px;
|
||||||
|
border: 1px solid #18ab29;
|
||||||
|
display: inline-block;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #ffffff;
|
||||||
|
font-family: Arial;
|
||||||
|
font-size: 28px;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 23px 48px;
|
||||||
|
text-decoration: none;
|
||||||
|
animation: pulse-blur 1.5s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wuerfeln:active {
|
||||||
|
position: relative;
|
||||||
|
top: 1px;
|
||||||
|
}
|
||||||
|
.wuerfeln:hover {
|
||||||
|
background-color: red;
|
||||||
|
box-shadow: 0px 0px 27px 8px red;
|
||||||
|
background: linear-gradient(to bottom, red 5%, red 100%);
|
||||||
|
border-radius: 38px;
|
||||||
|
border: 1px solid red;
|
||||||
|
animation: pulse-blur-hover 1.5s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes pulse-blur {
|
||||||
|
25% {
|
||||||
|
box-shadow: 0px 0px 27px 8px #3dc21b;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
box-shadow: 0px 0px 37px 12px #3dc21b;
|
||||||
|
}
|
||||||
|
75% {
|
||||||
|
box-shadow: 0px 0px 27px 8px #3dc21b;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes pulse-blur-hover {
|
||||||
|
25% {
|
||||||
|
box-shadow: 0px 0px 27px 8px red;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
box-shadow: 0px 0px 37px 12px red;
|
||||||
|
}
|
||||||
|
75% {
|
||||||
|
box-shadow: 0px 0px 27px 8px red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.kleine_info{
|
||||||
|
font-style: italic;
|
||||||
|
text-align: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.kopf-seite {
|
||||||
|
justify-content: center;
|
||||||
|
display: flex;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.ueberschrift {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.info {
|
||||||
|
margin: 30px;
|
||||||
|
}
|
||||||
|
.casino_bild {
|
||||||
|
border-radius: 25px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="kopf-seite">
|
||||||
|
<div>
|
||||||
|
<h1 class="ueberschrift">E DICER</h1><br>
|
||||||
|
<a class="wuerfeln" href="edicer-4.php">Würfeln</a><br>
|
||||||
|
<div class="info">
|
||||||
|
<p class="kleine_info">Jeder Wurf kostet 1€</p>|
|
||||||
|
<p class="kleine_info">Die Ergebnisse werden sortiert wie folgt sortiert: Klein >> Groß</p><br>
|
||||||
|
<p class="kleine_info">powered by <a href="https://danielvici.de">Daniel</a></p>
|
||||||
|
<img class="casino_bild" src="..\bilder\casino.jpeg" alt="Casino" width="450" height="200">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="board">
|
||||||
|
<?php foreach ($augen_array as $auge): ?>
|
||||||
|
<img width="10%" src="../bilder/<?= $auge ?>.png" alt="<?= $auge ?> Augen">
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
<div class="ausgabe">
|
||||||
|
<h4>Die Summe der Augenzahlen beträgt <?= array_sum($augen_array) ?></h4>
|
||||||
|
</div>
|
||||||
|
<div class="gewinn">
|
||||||
|
<?= $auswertung[0] ?>
|
||||||
|
<p>Dein Gewinn ist <?= $auswertung[1] ?> €</p>
|
||||||
|
<p>Guthaben: <?= $_SESSION['kontostand'] ?> €</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
BIN
progp/bilder/casino.jpeg
Normal file
BIN
progp/bilder/casino.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
103
progp/css/edicer.css
Normal file
103
progp/css/edicer.css
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
.text-bold {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.w {
|
||||||
|
width: 10%;
|
||||||
|
}
|
||||||
|
.ausgabe{
|
||||||
|
padding: 8px;
|
||||||
|
background-color: #333;
|
||||||
|
color: white;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.gewinn{
|
||||||
|
margin: 1px;
|
||||||
|
padding: 8px;
|
||||||
|
background-color: darkgreen;
|
||||||
|
color: white;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.board {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.wuerfeln {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
box-shadow: 0px 0px 27px 8px #3dc21b;
|
||||||
|
background: linear-gradient(to bottom, #44c767 5%, #5cbf2a 100%);
|
||||||
|
background-color: #44c767;
|
||||||
|
border-radius: 38px;
|
||||||
|
border: 1px solid #18ab29;
|
||||||
|
display: inline-block;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #ffffff;
|
||||||
|
font-family: Arial;
|
||||||
|
font-size: 28px;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 23px 48px;
|
||||||
|
text-decoration: none;
|
||||||
|
animation: pulse-blur 1.5s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wuerfeln:active {
|
||||||
|
position: relative;
|
||||||
|
top: 1px;
|
||||||
|
}
|
||||||
|
.wuerfeln:hover {
|
||||||
|
background-color: red;
|
||||||
|
box-shadow: 0px 0px 27px 8px red;
|
||||||
|
background: linear-gradient(to bottom, red 5%, red 100%);
|
||||||
|
border-radius: 38px;
|
||||||
|
border: 1px solid red;
|
||||||
|
animation: pulse-blur-hover 1.5s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes pulse-blur {
|
||||||
|
25% {
|
||||||
|
box-shadow: 0px 0px 27px 8px #3dc21b;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
box-shadow: 0px 0px 37px 12px #3dc21b;
|
||||||
|
}
|
||||||
|
75% {
|
||||||
|
box-shadow: 0px 0px 27px 8px #3dc21b;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes pulse-blur-hover {
|
||||||
|
25% {
|
||||||
|
box-shadow: 0px 0px 27px 8px red;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
box-shadow: 0px 0px 37px 12px red;
|
||||||
|
}
|
||||||
|
75% {
|
||||||
|
box-shadow: 0px 0px 27px 8px red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.kleine_info{
|
||||||
|
font-style: italic;
|
||||||
|
text-align: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.kopf-seite {
|
||||||
|
justify-content: center;
|
||||||
|
display: flex;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.ueberschrift {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.info {
|
||||||
|
margin: 30px;
|
||||||
|
}
|
||||||
|
.casino_bild {
|
||||||
|
border-radius: 25px;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user