first commit
This commit is contained in:
8
.idea/.gitignore
generated
vendored
Normal file
8
.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/project-x.iml" filepath="$PROJECT_DIR$/.idea/project-x.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
12
.idea/project-x.iml
generated
Normal file
12
.idea/project-x.iml
generated
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="WEB_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
FROM nginx:1.25.3
|
||||||
|
|
||||||
|
COPY src/ /usr/share/nginx/html/
|
||||||
52
src/canvis.html
Normal file
52
src/canvis.html
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en" style="width: 100%; height: 100%">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Spiel 1</title>
|
||||||
|
<script>
|
||||||
|
var y = 10
|
||||||
|
var x = 170;
|
||||||
|
|
||||||
|
function run (){
|
||||||
|
draw();
|
||||||
|
|
||||||
|
document.addEventListener("keydown", (event) => {
|
||||||
|
|
||||||
|
if(event.key == "ArrowRight"){
|
||||||
|
x = x + 10;
|
||||||
|
console.log(x)
|
||||||
|
draw()
|
||||||
|
}
|
||||||
|
if(event.key == "ArrowLeft"){
|
||||||
|
x = x - 10;
|
||||||
|
console.log(x)
|
||||||
|
draw()
|
||||||
|
} if(event.key == "ArrowDown"){
|
||||||
|
y = y + 10;
|
||||||
|
console.log(x)
|
||||||
|
draw()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
function draw() {
|
||||||
|
console.log("hi");
|
||||||
|
const canvas = document.getElementById("welt");
|
||||||
|
const ctx = canvas.getContext("2d");
|
||||||
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||||
|
|
||||||
|
ctx.fillStyle = "DeepSkyBlue";
|
||||||
|
ctx.fillRect(10, 10, 150, 150);
|
||||||
|
|
||||||
|
ctx.fillStyle = "red";
|
||||||
|
ctx.fillRect(x, y, 150 , 150)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body onload="run()" style="width: 100%; height: 100%">
|
||||||
|
<canvas id="welt" width="1000" height="1000"></canvas>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
30
src/index.html
Normal file
30
src/index.html
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>quatschseite</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div>
|
||||||
|
das ist eine echte quatschseite von Moritz
|
||||||
|
|
||||||
|
<button onclick='
|
||||||
|
console.log("Was passiert jetzt?");
|
||||||
|
const surprise = document.getElementById("surprise");
|
||||||
|
|
||||||
|
if (surprise.hidden == true){
|
||||||
|
console.log("Was passiert gerade?ü");
|
||||||
|
surprise.hidden = false;
|
||||||
|
} else {
|
||||||
|
console.log("Was passiert gerade?");
|
||||||
|
surprise.hidden = true;
|
||||||
|
}
|
||||||
|
'>
|
||||||
|
START für den Spaß und quatsch
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div id="surprise" hidden="hidden">
|
||||||
|
Jetzt gehts los!!!
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user