Commit 3f54212e authored by aline's avatar aline

add php

parent b9de5ecf
......@@ -38,10 +38,10 @@
nav { grid-column: 1; grid-row: 2; }
article { grid-column: 2; grid-row: 2; }
footer { grid-column: 1/span 2; grid-row: 3; }
*/
*/
/* Patterns */
/*
.container {
display: grid;
grid-template-columns: 10px repeat(4, 1fr 10px);
......@@ -56,17 +56,17 @@
grid-column: 6;
}
footer { grid-column: 8; }
$/
/* répartition */
/*
.container {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 100px 100px 100px;
grid-auto-flow: column;
}
*/
</style>
......
......@@ -17,25 +17,27 @@
</ul>
</nav>
</header>
<main>
<h2>Dashboard</h2>
<section id="container">
<section id="weather">
<h3>Météo du jour</h3>
<form id="formWeather" action="">
Location: <input type="text" id="location" />
<form id="formWeather" action="">
Location: <input type="text" id="location" value="Strasbourg"/>
</form>
<p>
</p>
</section>
</section>
</main>
<script src="https://smtpjs.com/v2/smtp.js"></script>
<script src="./js/script.js"></script>
</body>
</html>
document.getElementById("location").value = "Strasbourg";
document.getElementById("location").value = "Paris";
console.log("test", document.getElementById("location"));
getWeather();
document
......@@ -10,8 +16,9 @@ document
;
function getWeather() {
// on récupère la valeur saisie par l'utilisateur
var location = document.getElementById("location").value;
if (location.length == 0) {
return;
}
......@@ -20,6 +27,15 @@ function getWeather() {
document
.getElementById("weather")
.getElementsByTagName("p")[0]
.innerHTML = img;
.innerHTML = img;
}
function sendEmail() {
Email.send("toto@you.com",
"cptg.aline@gmaill.com",
"This is a subject",
"this is the body",
"smtp.yourisp.com",
"username",
"password");
}
......@@ -16,14 +16,14 @@
border: 1px solid blue;
}
div {
wfont-size: 2em;
font-size: 2em;
border: 1px solid gray;
}
a {
/*font-size: 2em;*/
font-size: 2rem;
font-size: 2em;
border: 1px solid red;
}
......
......@@ -8,7 +8,8 @@
<style type="text/css">
/* ex : cadratin */
/*article { font-size: 20px; }
/*
article { font-size: 20px; }
aside { font-size: 1.5em; }
div, p { font-size: 2em; }
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment