-
Notifications
You must be signed in to change notification settings - Fork 4
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
0 parents
commit 35f0570
Showing
7 changed files
with
153 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,14 @@ | ||
# https://git-scm.com/docs/gitignore | ||
# https://help.github.com/articles/ignoring-files | ||
# Example .gitignore files: https://github.com/github/gitignore | ||
/bower_components/ | ||
/node_modules/ | ||
.DS_Store | ||
.DS_Store? | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
ehthumbs.db | ||
Thumbs.db | ||
*.css.map | ||
/.vscode/ |
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,13 @@ | ||
# application-base | ||
Application de base pour débuter un projet | ||
|
||
## Description | ||
Description à venir | ||
|
||
## Particularités | ||
|
||
- Compléter | ||
|
||
## Variantes et ajouts possibles | ||
|
||
- Compléter |
Binary file not shown.
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,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="fr"> | ||
<head> | ||
<meta charset="UTF-8"/> | ||
<title>Application Javascript</title> | ||
<link rel="stylesheet" href="./src/style.css"/> | ||
<script type="module"> | ||
import App from "./src/App.js"; | ||
</script> | ||
</head> | ||
<body> | ||
<div id="interface"> | ||
<header><h1>Application Javascript</h1></header> | ||
<footer><span>© 2020</span><strong>Application Javascript</strong></footer> | ||
<div class="body" id="app">Le HTML créé par programmation devrait apparaître ici.</div> | ||
</div> | ||
</body> | ||
</html> |
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,23 @@ | ||
/** | ||
* @module App | ||
*/ | ||
export default class App { | ||
/** | ||
* Méthode principale. Sera appelée après le chargement de la page. | ||
*/ | ||
static main() { | ||
console.log("Je suis prêt"); | ||
var app = document.getElementById("app"); | ||
// app.innerHTML = "La page est chargée"; | ||
} | ||
/** | ||
* Méthode qui permet d'attendre le chargement de la page avant d'éxécuter le script principal | ||
* @returns undefined Ne retourne rien | ||
*/ | ||
static init() { | ||
window.addEventListener("load", () => { | ||
this.main(); | ||
}); | ||
} | ||
} | ||
App.init(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,34 @@ | ||
html { | ||
height: 100%; | ||
font-size: 16px; | ||
font-family: arial; | ||
} | ||
body { | ||
height: 100%; | ||
margin: 0; | ||
} | ||
#interface { | ||
min-height: 100%; | ||
display: grid; | ||
grid-template-rows: auto 1fr auto; | ||
& > header, & > footer { | ||
padding: .5em 1em; | ||
background-color: #EEE; | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
& > header { | ||
order: -1000; | ||
h1 { | ||
margin: 0; | ||
} | ||
} | ||
& > footer { | ||
order: 1000; | ||
font-size: smaller; | ||
} | ||
} | ||
|
||
#app { | ||
padding: 1em; | ||
} |