Browse Source

added basic project

master
ittnerpa60944 5 years ago
commit
d9ccf06a51

BIN
code/code/.vs/MDT5/v15/.suo View File


+ 1020
- 0
code/code/.vs/config/applicationhost.config
File diff suppressed because it is too large
View File


+ 41
- 0
code/code/MDT5.sln View File

@@ -0,0 +1,41 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27428.2005
MinimumVisualStudioVersion = 10.0.40219.1
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "code", ".", "{9311C3EF-F1D1-4606-8668-322C176CA58F}"
ProjectSection(WebsiteProperties) = preProject
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
Debug.AspNetCompiler.VirtualPath = "/localhost_49537"
Debug.AspNetCompiler.PhysicalPath = "MDT5\"
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_49537\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/localhost_49537"
Release.AspNetCompiler.PhysicalPath = "MDT5\"
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_49537\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "false"
Release.AspNetCompiler.Debug = "False"
VWDPort = "49537"
SlnRelativePath = "MDT5\"
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9311C3EF-F1D1-4606-8668-322C176CA58F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9311C3EF-F1D1-4606-8668-322C176CA58F}.Debug|Any CPU.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B1CA379E-4295-41CB-A81A-11D05D4683F6}
EndGlobalSection
EndGlobal

+ 6
- 0
code/code/Web.config View File

@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
</system.web>
</configuration>

+ 1
- 0
code/code/exercise01/README.txt View File

@@ -0,0 +1 @@
Hier entsteht die Lösung zu Praktikum 01

+ 5
- 0
code/code/exercise01/app/css/mobile.css View File

@@ -0,0 +1,5 @@

h2 small {
color: green;
font-size: small;
}

BIN
code/code/exercise01/app/img/ohm.ico View File


+ 17
- 0
code/code/exercise01/app/index.html View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" href="css/mobile.css">
<link rel="icon" href="img/ohm.ico">
</head>
<body>
<h2>
Patientenverwaltung
<small>Ein Demoprojekt</small>
</h2>


</body>
</html>

+ 1
- 0
code/code/exercise02/README.txt View File

@@ -0,0 +1 @@
Hier entsteht die Lösung zu Praktikum 02

+ 14
- 0
code/code/exercise02/app/index.html View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script src="../../lib/jquery-3.3.1.min.js"></script>
<script src="scripts/landung.js"></script>
<script src="../../lib/es6-shim.min.js"</script>

</head>
<body>

</body>
</html>

+ 1
- 0
code/code/exercise02/app/scripts/app.js View File

@@ -0,0 +1 @@
alert("test");

+ 75
- 0
code/code/exercise02/app/scripts/landung.js View File

@@ -0,0 +1,75 @@
function simulation() {
var v;
var s;
var fuel;
var schub = false;

setStartValues(50000, -1000, 10000);

function switchon() {
schub = true;
update();
checkGameOver();
}

function switchoff() {
schub = false;
update();
checkGameOver();
}

function a() {
if (schub == false || fuel <= 0)
return -1.63;
else {
fuel = fuel - 100;
return -1.63 + 12;
}
}

function showValues() {
$("#height").html("Höhe: " + s + " m");
$("#speed").html("Geschwindigkeit: " + v + " m/s");
$("#fuel").html("Teibstoffvorrat: " + fuel + " l");
}


function update() {
v = v + a();
s = s + v;
showValues();
}

function checkGameOver() {
if (s <= 0) {
if (v < -10)
alert("Fehlschlag");
else
alert("Erfolgreich");
setStartValues(50000, -1000, 10000);
showValues();
}
}

function setStartValues(height, velocity, Newfuel) {
v = velocity;
s = height;
fuel = Newfuel;
}

$("body").append("<div id='height'>Höhe: </div>");
$("body").append("<div id='speed'>Geschwindikgiet: </div>");
$("body").append("<div id='fuel'>Treibstoffvorrat: </div>");

$("body").append("<button id='energy'>Triebwerk an</button>");
$("body").append("<button id='no-energy'>Triebwerk aus</button>");

$("#energy").click(switchon);
$("#no-energy").click(switchoff);

showValues();
}

$(document).ready(simulation);


+ 1
- 0
code/code/exercise03/README.txt View File

@@ -0,0 +1 @@
Hier entsteht die Lösung zu Praktikum 03

+ 1
- 0
code/code/exercise04/README.txt View File

@@ -0,0 +1 @@
Hier entsteht die Lösung zu Praktikum 04

+ 1
- 0
code/code/exercise05/README.txt View File

@@ -0,0 +1 @@
Hier entsteht die Lösung zu Praktikum 05

+ 1
- 0
code/code/exercise06/README.txt View File

@@ -0,0 +1 @@
Hier entsteht die Lösung zu Praktikum 06

+ 1
- 0
code/code/exercise07/README.txt View File

@@ -0,0 +1 @@
Hier entsteht die Lösung zu Praktikum 07

+ 1
- 0
code/code/exercise08/README.txt View File

@@ -0,0 +1 @@
Hier entsteht die Lösung zu Praktikum 08

+ 1
- 0
code/code/exercise09/README.txt View File

@@ -0,0 +1 @@
Hier entsteht die Lösung zu Praktikum 09

+ 12
- 0
code/code/lib/es6-shim.min.js
File diff suppressed because it is too large
View File


+ 2
- 0
code/code/lib/jquery-3.3.1.min.js
File diff suppressed because it is too large
View File


BIN
code/code/ohm.ico View File


Loading…
Cancel
Save