Commit 4e973b3f authored by Aline's avatar Aline 🤸🏼

ex js

parent 0c569f42
meteo-js @ 17027d1c
Subproject commit 17027d1ce50d9e92858cd449926bea17631201b9
/* import d'une police */
@import 'https://fonts.googleapis.com/css?family=Source+Sans+Pro';
body {
/*
* marge droite et gauche calculée automatiquement
* marge du haut et du bas à 0
*/
margin: 0 auto;
/*
* margin auto ne peut fonctionner qu'avec la déclaration d'une largeur
* l'unité em est relative à la taille de la police
*/
max-width: 50em;
font-family: "Source Sans Pro", "Helvetica Neue", "Arial", sans-serif;
color: #34495e;
line-height: 1.5; /* hauteur de ligne */
padding: 4em 1em;
}
h2 {
margin-top: 1em;
padding-top: 1em;
border-bottom: 2px solid #42b983;
}
h2, h3, strong {
color: #2c3e50;
}
a {
color: #42b983;
}
blockquote {
border-left: 2px solid #2c3e50;
padding-left: 1em;
}
article time {
color: #7f8c8d;
}
table {
width: 100%;
margin: 1em auto
}
table thead {
background-color: #ddd
}
table thead th {
padding: 5px;
min-width: 20px
}
table tbody tr:nth-child(2n) {
background-color: #eee
}
table tbody td {
padding: 5px;
vertical-align: text-top
}
/* Header */
#logo {
float: left;
padding: 0px 10px;
}
header {
padding-bottom: 50px;
}
header nav {
float: right;
}
header nav li {
display: inline-block;
padding: 0px 10px;
}
header nav li a {
text-decoration: none;
color: #2c3e50;
font-size: 1.0em;
}
header nav li a.active {
border-bottom: 1px solid #42b983;
}
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 128.57 128.57" style="enable-background:new 0 0 128.57 128.57;" xml:space="preserve">
<g>
<g>
<g>
<path style="fill:#E8E8ED;" d="M64.285,43.125c-4.543,0-8.502-2.445-10.664-6.087c-0.002-0.004-0.006-0.006-0.008-0.008
L41.721,25.135c-4.846-4.844-4.846-12.694,0-17.538c3.746-3.749,9.281-4.562,13.844-2.511C57.805,2.87,60.883,1.5,64.285,1.5
c3.4,0,6.477,1.37,8.717,3.588c4.564-2.053,10.102-1.24,13.848,2.506c4.844,4.847,4.844,12.697,0,17.543L74.955,37.03
c-0.004,0.004-0.008,0.007-0.012,0.01C72.781,40.68,68.822,43.125,64.285,43.125z"/>
</g>
<g>
<path style="fill:#FFFFFF;" d="M53.613,37.03l1.949,0.843L41.721,25.135c-4.846-4.844-4.846-12.694,0-17.538
c1.98-1.985,4.471-3.123,7.049-3.47c2.578,0.347,5.064,1.484,7.049,3.467C60.66,12.44,58.455,32.186,53.613,37.03z"/>
</g>
<g>
<path style="fill:#33363A;" d="M64.285,44.625c-4.811,0-9.335-2.545-11.854-6.655L40.66,26.195
c-2.627-2.625-4.074-6.117-4.074-9.83s1.447-7.204,4.074-9.83c3.803-3.805,9.553-5.032,14.587-3.196
C57.766,1.179,60.938,0,64.285,0c3.346,0,6.517,1.18,9.034,3.341c5.037-1.837,10.788-0.612,14.591,3.192
c5.419,5.422,5.419,14.243,0,19.664L76.13,37.977C73.61,42.083,69.09,44.625,64.285,44.625z M54.911,36.272
c1.99,3.352,5.494,5.353,9.374,5.353c3.876,0,7.378-2,9.369-5.351c0.075-0.125,0.167-0.24,0.275-0.338l11.86-11.859
c4.25-4.251,4.25-11.17,0-15.422c-3.215-3.215-7.993-4.078-12.171-2.198c-0.567,0.255-1.23,0.134-1.67-0.302
C69.892,4.12,67.171,3,64.285,3c-2.888,0-5.611,1.12-7.666,3.152c-0.44,0.436-1.104,0.556-1.669,0.302
c-4.179-1.878-8.954-1.013-12.168,2.203c-2.061,2.06-3.195,4.798-3.195,7.709s1.135,5.649,3.195,7.708l11.877,11.88
C54.756,36.048,54.842,36.156,54.911,36.272L54.911,36.272z"/>
</g>
</g>
<g>
<path style="fill:#FFFFFF;" d="M113.488,97.867c0,25.182-22.029,29.203-49.203,29.203c-27.174,0-49.203-4.021-49.203-29.203
c0-25.182,22.029-55.055,49.203-55.055C91.459,42.812,113.488,72.686,113.488,97.867z"/>
</g>
<g>
<path style="fill:#E8E8ED;" d="M70.357,43.332C46.051,47.33,27.227,74.593,27.227,97.867s18.824,28.469,43.131,29.122
c24.307-0.653,43.131-5.848,43.131-29.122S94.664,47.33,70.357,43.332z"/>
</g>
<g>
<path style="fill:#33363A;" d="M64.285,128.57c-26.334,0-50.703-3.72-50.703-30.703c0-25.616,22.617-56.555,50.703-56.555
s50.703,30.939,50.703,56.555C114.988,124.851,90.619,128.57,64.285,128.57z M64.285,44.313
c-26.424,0-47.703,29.297-47.703,53.555c0,22.992,19.07,27.703,47.703,27.703s47.703-4.711,47.703-27.703
C111.988,73.61,90.709,44.313,64.285,44.313z"/>
</g>
<g>
<path style="fill:#FFBE08;" d="M84.92,43.561c0,3.141-2.545,5.687-5.685,5.687h-29.9c-3.141,0-5.686-2.546-5.686-5.687l0,0
c0-3.141,2.545-5.688,5.686-5.688h29.9C82.375,37.873,84.92,40.42,84.92,43.561L84.92,43.561z"/>
</g>
<g>
<path style="fill:#FF900B;" d="M84.92,43.561L84.92,43.561c0,3.141-2.545,5.687-5.685,5.687h-29.9
c-3.141,0-5.686-2.546-5.686-5.687l0,0"/>
</g>
<path style="fill:#33363A;" d="M79.234,36.373h-12.73l4.066-4.066c0.586-0.585,0.586-1.536,0-2.121
c-0.586-0.586-1.535-0.586-2.121,0l-4.166,4.166l-4.164-4.166c-0.586-0.586-1.536-0.585-2.122,0c-0.586,0.586-0.586,1.536,0,2.122
l4.065,4.066H49.334c-3.962,0-7.186,3.224-7.186,7.188c0,3.963,3.224,7.187,7.186,7.187h29.9c3.962,0,7.186-3.224,7.186-7.187
C86.42,39.597,83.196,36.373,79.234,36.373z M79.234,47.747h-29.9c-2.308,0-4.186-1.878-4.186-4.187
c0-2.309,1.877-4.188,4.186-4.188h29.9c2.308,0,4.186,1.878,4.186,4.188C83.42,45.869,81.542,47.747,79.234,47.747z"/>
<g>
<path style="fill:#FFF1D9;" d="M38.764,94.728c0-3.583,2.904-6.487,6.486-6.487c1.918,0,3.635,0.838,4.822,2.161
c-0.58-2.985-3.207-5.241-6.363-5.241c-3.582,0-6.486,2.904-6.486,6.486c0,1.664,0.633,3.178,1.662,4.325
C38.807,95.569,38.764,95.153,38.764,94.728z"/>
</g>
<g>
<path style="fill:#FFFFFF;" d="M33.385,106.637c1.4-3.298,5.207-4.836,8.506-3.438c1.766,0.75,3.02,2.191,3.596,3.874
c0.631-2.976-0.906-6.078-3.81-7.311c-3.299-1.399-7.106,0.14-8.504,3.437c-0.652,1.532-0.66,3.172-0.16,4.631
C33.098,107.429,33.219,107.029,33.385,106.637z"/>
</g>
<g>
<path style="fill:#FFF1D9;" d="M41.518,75.047c0-2.151,1.744-3.896,3.895-3.896c1.15,0,2.184,0.503,2.896,1.298
c-0.35-1.793-1.928-3.147-3.822-3.147c-2.15,0-3.895,1.743-3.895,3.896c0,0.999,0.379,1.908,0.998,2.597
C41.543,75.553,41.518,75.303,41.518,75.047z"/>
</g>
<g>
<path style="fill:#FFFFFF;" d="M47.139,60.238c1.258-1.744,3.693-2.139,5.436-0.879c0.934,0.674,1.477,1.686,1.59,2.747
c0.766-1.658,0.279-3.681-1.256-4.788c-1.746-1.26-4.18-0.866-5.439,0.879c-0.584,0.811-0.809,1.769-0.709,2.689
C46.863,60.664,46.988,60.445,47.139,60.238z"/>
</g>
<g>
<path style="fill:#FFFFFF;" d="M31.758,77.776c1.258-1.745,3.693-2.138,5.437-0.88c0.932,0.675,1.475,1.687,1.59,2.748
c0.766-1.658,0.279-3.68-1.258-4.789c-1.744-1.258-4.178-0.865-5.438,0.88c-0.586,0.81-0.809,1.769-0.711,2.689
C31.484,78.201,31.607,77.984,31.758,77.776z"/>
</g>
<g>
<path style="fill:#33363A;" d="M59.921,20.193c-0.21,0-0.423-0.044-0.626-0.137c-0.752-0.346-1.082-1.236-0.736-1.988
c0.206-0.447,5.128-10.987,13.902-14.378c0.771-0.301,1.641,0.085,1.94,0.858c0.299,0.773-0.085,1.642-0.858,1.94
C65.916,9.435,61.33,19.222,61.285,19.32C61.031,19.869,60.488,20.193,59.921,20.193z"/>
</g>
<g>
<path style="fill:#33363A;" d="M50.274,14.756c-0.129,0-0.261-0.017-0.392-0.052c-0.8-0.216-1.273-1.04-1.057-1.839
c0.074-0.275,1.874-6.771,6.606-9.581c0.712-0.423,1.632-0.188,2.056,0.524c0.423,0.712,0.188,1.632-0.524,2.056
c-3.697,2.195-5.226,7.727-5.241,7.783C51.541,14.315,50.936,14.756,50.274,14.756z"/>
</g>
<g>
<circle style="fill:#FFD00B;" cx="64.284" cy="87.985" r="27.61"/>
</g>
<g>
<path style="fill:#FFBE08;" d="M64.285,60.375v55.222c15.248,0,27.609-12.362,27.609-27.611
C91.895,72.738,79.533,60.375,64.285,60.375z"/>
</g>
<g>
<circle style="fill:#FFD00B;" cx="64.284" cy="87.986" r="21.374"/>
</g>
<g>
<path style="fill:#FFBE08;" d="M49.17,72.873L79.398,103.1c8.348-8.347,8.348-21.881,0-30.227
C71.051,64.526,57.518,64.525,49.17,72.873z"/>
</g>
<g>
<path style="fill:#33363A;" d="M73.23,92.801c-0.324,0-0.624-0.103-0.869-0.277c-0.245,0.175-0.545,0.277-0.869,0.277
c-0.829,0-1.5-0.671-1.5-1.5c0-1.306,1.062-2.369,2.367-2.369c1.308,0,2.371,1.063,2.371,2.369
C74.73,92.129,74.059,92.801,73.23,92.801z"/>
</g>
<g>
<path style="fill:#E04038;" d="M73.691,96.101c0,1.29-1.045,2.335-2.334,2.335c-1.289,0-2.334-1.045-2.334-2.335
c0-1.286,1.045-2.332,2.334-2.332C72.646,93.769,73.691,94.814,73.691,96.101z"/>
</g>
<g>
<path style="fill:#FF6155;" d="M71.357,93.769c1.289,0,2.334,1.046,2.334,2.332c0,1.29-1.045,2.335-2.334,2.335"/>
</g>
<path style="fill:#33363A;" d="M64.285,58.875c-16.052,0-29.111,13.059-29.111,29.11c0,16.052,13.059,29.111,29.111,29.111
c16.051,0,29.109-13.059,29.109-29.111C93.395,71.934,80.336,58.875,64.285,58.875z M89.799,93.52
c-0.186-0.205-0.43-0.363-0.717-0.441l-1.516-0.408c-0.31-0.083-0.623-0.061-0.903,0.041c0.24-1.15,0.376-2.327,0.438-3.519
c0.248,0.182,0.552,0.293,0.884,0.293h1.568c0.299,0,0.576-0.09,0.81-0.24C90.293,90.705,90.099,92.132,89.799,93.52z
M86.917,99.323l-1.357-0.785c-0.279-0.161-0.589-0.22-0.888-0.192c0.536-1.053,0.988-2.144,1.354-3.268
c0.191,0.23,0.45,0.406,0.76,0.49l1.516,0.408c0.131,0.035,0.262,0.052,0.391,0.052c0.157,0,0.309-0.029,0.455-0.075
c-0.443,1.379-1,2.706-1.655,3.974C87.365,99.684,87.173,99.47,86.917,99.323z M44.409,87.986c0-2.432,0.454-4.79,1.285-7.001
c0.032,0.11,0.072,0.217,0.107,0.325c0.032,0.099,0.063,0.199,0.098,0.298c0.08,0.229,0.168,0.454,0.26,0.678
c0.019,0.045,0.033,0.092,0.052,0.137c0.006,0.013,0.015,0.023,0.021,0.036c0.642,1.489,1.552,2.86,2.71,4.017
c1.518,1.519,3.398,2.624,5.441,3.233c-0.629,0.924-1.259,1.905-1.923,2.94c-1.277,1.992-2.701,4.208-4.515,6.639
C45.655,95.99,44.409,92.086,44.409,87.986z M41.076,99.927c-0.656-1.269-1.212-2.596-1.655-3.974
c0.146,0.047,0.298,0.075,0.455,0.075c0.129,0,0.26-0.017,0.391-0.052l1.516-0.408c0.31-0.083,0.569-0.26,0.76-0.49
c0.365,1.123,0.817,2.214,1.354,3.267c-0.299-0.027-0.608,0.031-0.888,0.193l-1.357,0.785
C41.396,99.47,41.204,99.683,41.076,99.927z M38.206,89.246c0.234,0.151,0.511,0.24,0.81,0.24h1.568
c0.332,0,0.636-0.111,0.884-0.293c0.062,1.192,0.197,2.369,0.438,3.519c-0.28-0.102-0.592-0.124-0.903-0.041l-1.516,0.408
c-0.288,0.077-0.531,0.235-0.717,0.441C38.469,92.132,38.276,90.705,38.206,89.246z M38.769,82.453
c0.187,0.206,0.43,0.364,0.719,0.441l1.516,0.407c0.13,0.035,0.261,0.052,0.39,0.052c0.178,0,0.35-0.037,0.513-0.097
c-0.241,1.152-0.377,2.33-0.439,3.524c-0.248-0.182-0.552-0.293-0.884-0.293h-1.568c-0.299,0-0.576,0.09-0.81,0.24
C38.275,85.267,38.469,83.841,38.769,82.453z M41.651,76.65l1.359,0.786c0.236,0.137,0.495,0.202,0.75,0.202
c0.047,0,0.093-0.014,0.14-0.018c-0.538,1.055-0.991,2.148-1.357,3.274c-0.191-0.23-0.451-0.407-0.761-0.49l-1.516-0.407
c-0.289-0.078-0.58-0.064-0.845,0.021c0.443-1.378,0.999-2.704,1.654-3.973C41.203,76.289,41.396,76.502,41.651,76.65z
M79.982,70.168c-0.239,0.239-0.355,0.542-0.399,0.853c-0.901-0.813-1.839-1.562-2.829-2.206c0.273-0.125,0.515-0.323,0.677-0.602
l0.785-1.357c0.148-0.255,0.208-0.536,0.197-0.81c1.216,0.785,2.366,1.663,3.432,2.634c-0.274,0.058-0.54,0.166-0.753,0.38
L79.982,70.168z M75.62,65.354l-0.785,1.357c-0.163,0.282-0.221,0.593-0.192,0.894c-1.065-0.54-2.165-0.984-3.287-1.347
c0.239-0.193,0.426-0.455,0.511-0.775l0.406-1.518c0.077-0.289,0.062-0.579-0.023-0.844c1.379,0.443,2.707,1,3.976,1.656
C75.982,64.905,75.768,65.097,75.62,65.354z M69.375,63.19l-0.406,1.518c-0.085,0.318-0.058,0.637,0.052,0.922
c-1.167-0.245-2.348-0.388-3.535-0.45c0.186-0.25,0.3-0.556,0.3-0.891v-1.572c0-0.299-0.09-0.576-0.24-0.81
c1.459,0.07,2.886,0.263,4.273,0.564C69.611,62.657,69.453,62.902,69.375,63.19z M63.085,65.18
c-1.188,0.062-2.369,0.204-3.537,0.45c0.109-0.285,0.137-0.605,0.052-0.922l-0.406-1.518c-0.077-0.289-0.235-0.533-0.441-0.72
c1.387-0.301,2.814-0.494,4.273-0.564c-0.151,0.234-0.24,0.511-0.24,0.81v1.572C62.785,64.624,62.899,64.931,63.085,65.18z
M56.295,63.966l0.406,1.518c0.086,0.319,0.272,0.582,0.511,0.774c-1.122,0.363-2.222,0.807-3.287,1.347
c0.029-0.301-0.029-0.612-0.192-0.894l-0.785-1.357c-0.148-0.256-0.362-0.449-0.606-0.576c1.269-0.656,2.596-1.213,3.975-1.655
C56.233,63.387,56.218,63.677,56.295,63.966z M50.352,66.855l0.785,1.357c0.162,0.28,0.404,0.477,0.677,0.602
c-0.99,0.644-1.928,1.393-2.829,2.206c-0.044-0.311-0.16-0.614-0.399-0.853l-1.109-1.109c-0.213-0.213-0.479-0.321-0.753-0.38
c1.066-0.97,2.216-1.848,3.431-2.633C50.144,66.32,50.204,66.6,50.352,66.855z M58.276,80.437c1.181,1.179,2.104,2.572,2.743,4.142
c0.156,0.383,0.464,0.685,0.85,0.833c0.386,0.15,0.817,0.132,1.189-0.047c0.979-0.471,2.015-0.567,3.267-0.567
c2.974,0,8.257,2.385,10.441,6.862c1.945,3.987,0.884,8.77-3.069,13.832c-0.003,0.004-0.004,0.008-0.007,0.011
c-2.858,1.54-6.068,2.359-9.406,2.359c-5.309,0-10.299-2.068-14.054-5.822c-0.116-0.116-0.215-0.243-0.328-0.361
c0.159-0.209,0.312-0.414,0.465-0.619c0.247,0.062,0.511,0.068,0.773-0.007c1.665-0.47,2.589,1.188,2.694,1.389
c0.264,0.521,0.791,0.821,1.338,0.821c0.225,0,0.454-0.051,0.669-0.158c0.741-0.37,1.042-1.271,0.672-2.012
c-0.536-1.073-1.927-2.726-3.988-3.068c0.299-0.44,0.586-0.87,0.864-1.293c0.053-0.009,0.107-0.013,0.16-0.028
c1.663-0.478,2.588,1.185,2.694,1.387c0.264,0.521,0.791,0.821,1.338,0.821c0.225,0,0.454-0.051,0.669-0.158
c0.741-0.37,1.042-1.271,0.672-2.012c-0.502-1.005-1.758-2.514-3.609-2.982c1.604-2.497,2.934-4.515,4.528-6.077
c0.351-0.343,0.511-0.835,0.43-1.319c-0.081-0.484-0.393-0.897-0.835-1.108c-1.04-0.494-1.993-1.126-2.854-1.874
c-0.004-0.004-0.007-0.01-0.011-0.014c-0.196-0.171-0.394-0.346-0.583-0.531c-0.019-0.019-0.04-0.035-0.059-0.054
c-0.029-0.029-0.051-0.062-0.08-0.091c-0.725-0.738-1.365-1.564-1.893-2.467c-0.005-0.008-0.013-0.013-0.018-0.02
c-0.224-0.384-0.413-0.785-0.594-1.19l1.155-1.154C55.897,78.483,57.185,79.345,58.276,80.437z M50.327,81.22
c0.413,0.229,0.813,0.483,1.193,0.772c0.06,0.098,0.134,0.185,0.196,0.282c0.219,0.343,0.451,0.677,0.697,1.003
c0.1,0.133,0.199,0.265,0.304,0.395c0.342,0.423,0.698,0.835,1.085,1.222c0.002,0.002,0.004,0.005,0.006,0.007
c0,0,0.001,0.001,0.001,0.001c0,0,0.001,0.001,0.001,0.001c0.001,0.002,0.003,0.003,0.005,0.004
c0.185,0.186,0.378,0.362,0.572,0.534c0.214,0.427,0.396,0.865,0.546,1.31c-1.448-0.477-2.761-1.287-3.868-2.395
c-0.66-0.659-1.204-1.414-1.65-2.223L50.327,81.22z M49.391,74.859c-0.063,0.196-0.09,0.404-0.069,0.614
c0.041,0.395,0.103,0.789,0.174,1.181c0.02,0.108,0.042,0.215,0.064,0.322c0.048,0.235,0.101,0.469,0.16,0.701
c-0.296-0.101-0.595-0.192-0.899-0.272c-0.014-0.004-0.029-0.009-0.043-0.013c-0.266-0.069-0.534-0.126-0.804-0.178
c-0.049-0.009-0.097-0.022-0.145-0.031c-0.067-0.012-0.136-0.019-0.204-0.031C48.15,76.35,48.746,75.588,49.391,74.859z
M48.588,105.805c0.238-0.238,0.354-0.54,0.398-0.849c0.893,0.807,1.828,1.549,2.819,2.198c-0.271,0.125-0.507,0.33-0.668,0.607
l-0.785,1.357c-0.147,0.255-0.208,0.534-0.197,0.807c-1.215-0.785-2.364-1.662-3.43-2.632c0.274-0.058,0.54-0.166,0.753-0.38
L48.588,105.805z M52.949,110.62l0.785-1.357c0.162-0.28,0.22-0.589,0.193-0.888c1.052,0.536,2.143,0.988,3.267,1.353
c-0.231,0.191-0.408,0.451-0.492,0.763l-0.406,1.515c-0.078,0.289-0.063,0.579,0.022,0.844c-1.379-0.443-2.706-1-3.975-1.655
C52.587,111.066,52.801,110.876,52.949,110.62z M59.193,112.782l0.406-1.515c0.083-0.31,0.061-0.623-0.042-0.903
c1.151,0.241,2.328,0.376,3.521,0.438c-0.182,0.248-0.293,0.552-0.293,0.883v1.569c0,0.299,0.09,0.576,0.24,0.81
c-1.465-0.07-2.896-0.265-4.288-0.567C58.946,113.31,59.115,113.073,59.193,112.782z M65.492,110.802
c1.192-0.062,2.369-0.197,3.519-0.438c-0.103,0.28-0.125,0.593-0.042,0.903l0.406,1.515c0.078,0.291,0.247,0.528,0.456,0.716
c-1.392,0.302-2.823,0.497-4.287,0.567c0.151-0.234,0.24-0.511,0.24-0.81v-1.569C65.785,111.354,65.674,111.051,65.492,110.802z
M72.273,112.005l-0.406-1.515c-0.083-0.311-0.26-0.571-0.491-0.763c1.124-0.365,2.215-0.817,3.267-1.354
c-0.027,0.298,0.031,0.606,0.192,0.885l0.783,1.359c0.148,0.257,0.363,0.448,0.608,0.576c-1.269,0.656-2.596,1.213-3.975,1.656
C72.336,112.585,72.35,112.294,72.273,112.005z M78.218,109.12l-0.783-1.359c-0.161-0.278-0.398-0.484-0.669-0.609
c0.991-0.648,1.926-1.391,2.818-2.198c0.044,0.31,0.16,0.612,0.399,0.851l1.109,1.109c0.213,0.213,0.478,0.321,0.752,0.379
c-1.066,0.97-2.216,1.848-3.431,2.633C78.424,109.653,78.364,109.374,78.218,109.12z M80.045,100.064
c0.939-3.04,0.791-5.627,0.189-7.703c0.207-0.275,0.36-0.589,0.444-0.933c0.162-0.666,0.055-1.355-0.301-1.938
c-0.355-0.585-0.918-0.998-1.584-1.16c-0.204-0.05-0.409-0.066-0.613-0.066c-3.004-4.041-8.145-6.466-11.857-6.466
c-1,0-2.053,0.05-3.133,0.336c-0.732-1.414-1.669-2.694-2.794-3.818c-1.613-1.614-3.563-2.842-5.688-3.619
c-0.015-0.006-0.028-0.017-0.044-0.022c-0.333-0.12-0.669-0.226-1.008-0.323c-0.086-0.025-0.173-0.045-0.26-0.068
c-0.305-0.082-0.612-0.154-0.92-0.218c-0.11-0.023-0.22-0.045-0.331-0.065c-0.391-0.071-0.784-0.133-1.178-0.174
c-0.262-0.029-0.52,0.021-0.755,0.125c0.006-0.006,0.01-0.012,0.016-0.018c3.875-3.874,8.964-5.812,14.053-5.812
c5.09,0,10.179,1.938,14.054,5.812c3.754,3.753,5.821,8.744,5.821,14.052C84.159,92.415,82.702,96.611,80.045,100.064z
M87.493,76.045c0.656,1.269,1.213,2.597,1.655,3.976c-0.265-0.085-0.557-0.101-0.846-0.024l-1.516,0.407
c-0.311,0.083-0.57,0.26-0.761,0.49c-0.366-1.126-0.819-2.219-1.357-3.274c0.048,0.005,0.094,0.018,0.142,0.018
c0.255,0,0.514-0.065,0.75-0.203l1.357-0.786C87.173,76.502,87.365,76.288,87.493,76.045z M89.553,86.486h-1.568
c-0.332,0-0.635,0.111-0.884,0.293c-0.062-1.193-0.198-2.372-0.439-3.524c0.163,0.06,0.335,0.097,0.513,0.097
c0.129,0,0.26-0.017,0.39-0.052l1.516-0.407c0.288-0.077,0.532-0.236,0.719-0.441c0.301,1.388,0.494,2.815,0.563,4.274
C90.129,86.576,89.852,86.486,89.553,86.486z M86.224,73.856c-0.274-0.011-0.555,0.05-0.81,0.198l-1.357,0.786
c-0.277,0.16-0.481,0.396-0.606,0.666c-0.648-0.991-1.391-1.926-2.197-2.818c0.31-0.044,0.612-0.16,0.85-0.399l1.109-1.109
c0.213-0.213,0.322-0.479,0.38-0.753C84.562,71.492,85.439,72.642,86.224,73.856z M44.976,70.427
c0.058,0.274,0.166,0.54,0.38,0.753l1.109,1.109c0.239,0.238,0.541,0.354,0.85,0.399c-0.806,0.892-1.548,1.826-2.196,2.816
c-0.125-0.269-0.33-0.504-0.606-0.664l-1.359-0.786c-0.255-0.147-0.535-0.207-0.809-0.197
C43.129,72.642,44.006,71.492,44.976,70.427z M42.344,102.114c0.02,0.001,0.04,0.008,0.06,0.008c0.255,0,0.513-0.065,0.75-0.202
l1.357-0.785c0.277-0.16,0.482-0.397,0.607-0.667c0.494,0.756,1.035,1.485,1.623,2.184c0.056,0.076,0.12,0.145,0.191,0.211
c0.124,0.144,0.256,0.282,0.384,0.423c-0.309,0.045-0.611,0.16-0.849,0.398l-1.109,1.109c-0.213,0.213-0.322,0.479-0.38,0.753
C44.007,104.48,43.129,103.329,42.344,102.114z M83.592,105.545c-0.058-0.274-0.167-0.539-0.379-0.752l-1.109-1.109
c-0.239-0.238-0.541-0.354-0.851-0.399c0.806-0.892,1.549-1.827,2.197-2.818c0.125,0.27,0.33,0.507,0.607,0.667l1.357,0.785
c0.236,0.137,0.495,0.202,0.75,0.202c0.021,0,0.04-0.007,0.06-0.008C85.44,103.329,84.562,104.479,83.592,105.545z"/>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Météo</title>
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="./css/style.css" />
</head>
<body>
<header>
<a href="/">
<img id="logo" src="./img/logo.svg" alt="Logo" width="42" />
</a>
<nav>
<ul>
<li><a href="#" class="active">Dashboard</a></li>
</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>
<p>
</p>
</section>
</section>
</main>
<script src="./js/script.js"></script>
</body>
</html>
document.getElementById("location").value = "Strasbourg";
getWeather();
document
.getElementById("formWeather")
.addEventListener("submit", function(event) {
event.preventDefault();
getWeather();
}, false)
;
function getWeather() {
var location = document.getElementById("location").value;
if (location.length == 0) {
return;
}
var img = "<img src='http://wttr.in/" + location + "_0tqp_lang=fr.png' />";
document
.getElementById("weather")
.getElementsByTagName("p")[0]
.innerHTML = img;
}
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