This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd457ba
commit 439a7ea
Showing
5 changed files
with
243 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
var express = require('express'); | ||
var app = express(); | ||
|
||
app.use(express.static('static')); | ||
|
||
app.get('/bolygoszerk', (req, res, next) => { | ||
res.sendFile(path.join(__dirname, 'static/bolygoszerk.html')); | ||
}); | ||
app.get('/utvonalszerk', (req, res, next) => { | ||
res.sendFile(path.join(__dirname, 'static/utvonalszerk.html')); | ||
}); | ||
app.get('/utvonalak', (req, res, next) => { | ||
res.sendFile(path.join(__dirname, 'static/utvonalak.html')); | ||
}); | ||
|
||
app.get('/', (req, res, next) => { | ||
res.sendFile(path.join(__dirname, 'static/bolygok.html')); | ||
}); | ||
|
||
var server = app.listen(3000, function () { | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<head> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>JS házi</title> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<h2>Utazható bolygók</h2> | ||
<table class="table table-striped table-bordered"> | ||
<tr> | ||
<th> | ||
Név | ||
</th> | ||
<th> | ||
Méret | ||
</th> | ||
<th> | ||
Holdak száma | ||
</th> | ||
<th> | ||
Naptávolság | ||
</th> | ||
<th> | ||
Elérhető útvonalak | ||
</th> | ||
<th> | ||
Adatok szerkesztése | ||
</th> | ||
<th> | ||
Stand for Pluto | ||
</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
Föld | ||
</td> | ||
<td> | ||
6378,13 km | ||
</td> | ||
<td> | ||
1 | ||
</td> | ||
<td> | ||
149,6 millió km | ||
</td> | ||
<td> | ||
<a href="/utvonalak" class="btn btn-block btn-success"><i class="far fa-edit">Útvonalak</i></a> | ||
</td> | ||
<td> | ||
<a href="/bolygoszerk" class="btn btn-block btn-warning"><i class="far fa-edit">Szerkesztés</i></a> | ||
</td> | ||
<td> | ||
<a href="/torles" class="btn btn-block btn-danger"><i class="far fa-trash-alt">Törlés</i></a> | ||
</td> | ||
</tr> | ||
</table> | ||
<br /> | ||
<a href="/bolygoszerk" class="btn btn-sm btn-primary">Új bolygó felvétele</a> | ||
</div> | ||
</div> | ||
</div> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<head> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>JS házi</title> | ||
|
||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<h2>Bolygó adatai</h2> | ||
<hr /> | ||
<form method="post"> | ||
<div class="form-group"> | ||
<label for="nev">Név</label> | ||
<input type="text" class="form-control" id="nev" name="nev"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="meret">Méret</label> | ||
<input type="text" class="form-control" id="meret" name="meret"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="holdszam">Holdak száma</label> | ||
<input type="text" class="form-control" id="holdszam" name="holdszam"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="naptav">Naptávolság (millió km)</label> | ||
<input type="text" class="form-control" id="naptav" name="naptav"> | ||
</div> | ||
<input type="submit" class="btn btn-success" value="Mentés" /> | ||
<a class="btn btn-danger" href="/">Elvetés</a> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<head> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>JS házi</title> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<h2>Elérhető útvonalak</h2> | ||
<table class="table table-striped table-bordered"> | ||
<tr> | ||
<th> | ||
Járat név | ||
</th> | ||
<th> | ||
Induló bolygó | ||
</th> | ||
<th> | ||
Érkező bolygó | ||
</th> | ||
<th> | ||
Időtartam | ||
</th> | ||
<th> | ||
Ár (unit) | ||
</th> | ||
<th> | ||
Vonal szerkesztése | ||
</th> | ||
<th> | ||
Törlés | ||
</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
JuppiExpress | ||
</td> | ||
<td> | ||
Föld | ||
</td> | ||
<td> | ||
Jupiter | ||
</td> | ||
<td> | ||
3 hét | ||
</td> | ||
<td> | ||
21000u | ||
</td> | ||
<td> | ||
<a href="/utszerk" class="btn btn-block btn-warning"><i class="far fa-edit">Szerkesztés</i></a> | ||
</td> | ||
<td> | ||
<a href="/torles" class="btn btn-block btn-danger"><i class="far fa-trash-alt">Törlés</i></a> | ||
</td> | ||
</tr> | ||
</table> | ||
<br /> | ||
<a href="/bolygoszerk" class="btn btn-sm btn-primary">Új útvonal</a> | ||
<a href="/" class="btn btn-sm btn-primary">Másik bolygó választása</a> | ||
<a href="/utvonalak" class="btn btn-sm btn-primary">Minden útvonal</a> | ||
</div> | ||
</div> | ||
</div> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<head> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>JS házi</title> | ||
|
||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<h2>Útvonal adatai</h2> | ||
<hr /> | ||
<form method="post"> | ||
<div class="form-group"> | ||
<label for="jaratnev">Járat neve</label> | ||
<input type="text" class="form-control" id="jaratnev" name="jaratnev"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="indulobolygo">Induló bolygó</label> | ||
<input type="text" class="form-control" id="indulobolygo" name="indulobolygo"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="erkezobolygo">Érkező bolygó</label> | ||
<input type="text" class="form-control" id="erkezobolygo" name="erkezobolygo"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="ido">Időtartam</label> | ||
<input type="text" class="form-control" id="ido" name="ido"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="ar">Ár (unit)</label> | ||
<input type="text" class="form-control" id="ar" name="ar"> | ||
</div> | ||
<input type="submit" class="btn btn-success" value="Mentés" /> | ||
<a class="btn btn-danger" href="/">Elvetés</a> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</body> |