Commit 639141aa authored by Ethan G.'s avatar Ethan G.

Commit initial mais secondaire aussi un peu

parent 70b78f0c
Pipeline #1141 passed with stage
in 1 minute and 40 seconds
pages:
stage: deploy
script:
- mkdir .public
- cp -r * .public
- mv .public public
artifacts:
paths:
- public
only:
- master
favicon.ico

318 Bytes

This diff is collapsed.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
<!DOCTYPE html>
<html lang="en" class="h-100">
<head>
<meta charset="UTF-8">
<title>Traités Japonais</title>
<link rel="stylesheet" type="text/css" href="tachyons.css">
<link rel="stylesheet" type="text/css" href="style.css">
<link href="favicon.ico" rel="icon" type="image/x-icon" />
</head>
<body class="bg-light-gray db">
<div class="z-9999 header bg-white opensans items-center flex no-select" style="position: sticky; top:0;">
<span class="b pa2 ml3">日本 - TRAITÉS</span>
<ul class="tracked ttu">
<li id="showList" style="white-space: nowrap;" class="hover-blue hover-bg-light-gray mr5-l mr3-m pa2">> Liste des Traités</li>
</ul>
</div>
<div id="traitesList" class="list flex flex-column items-center fl w-20 pa2">
<a id="traite1" class="grow flex-grow-0 flex-shrink-1 black pa2 br3 bg-white shadow-hover black opensans no-underline flex flex-row ma2 items-center commercial" href="#">
<p class="ma1 pa2"><span class="underline">Traité Allemagne-Japon</span><br><span class="i gray ">Commercial - 4T</span></p>
<div class="flex flex-column">
<img alt="Drapeau Allemand" class="mw2" src="img/flags/allemagne.png">
<img alt="Drapeau Japonais" class="mw2" src="img/flags/japon.png">
</div>
</a>
</div>
<div id="traitesText" class="overflow-auto h-100 notoserifjp pa3 bg-white black w-80 br3">
<p id="traiteDateLieu" class="pa0 ma0 gray i"></p>
<h1 id="traiteTitle" class="pa0 ma0"></h1>
<p id="traiteContent" class="pa0 ma0 mt2">Aucun traité sélectionné.</p>
</div>
<script src="main.js"></script>
</body>
</html>
\ No newline at end of file
const showListButton = document.getElementById("showList");
const listView = document.getElementById("traitesList");
const traiteView = document.getElementById("traitesText");
const traiteDateLieu = document.getElementById("traiteDateLieu");
const traiteTitle = document.getElementById("traiteTitle");
const traiteContent = document.getElementById("traiteContent");
let view = true;
console.log(showListButton);
showListButton.addEventListener("click", switchView);
document.getElementById("traite1").addEventListener("click", function() {changeTraite(1)});
document.getElementById("traite2").addEventListener("click", function() {changeTraite(2)});
function switchView() {
if (view) {
traiteView.style.display= 'none';
listView.style.display= 'flex';
listView.style.flexDirection= 'row';
view = false;
} else {
traiteView.removeAttribute('style');
listView.removeAttribute('style');
view = true;
}
}
function changeTraite(traiteID) {
traiteTitle.removeAttribute('innerHTML');
traiteContent.removeAttribute('innerHTML');
traiteDateLieu.removeAttribute('innerHTML');
console.log(traiteID);
if (traiteID == 1) {
traiteDateLieu.innerHTML ="Le 09/02/2040, à l'ambassade de Tokyo, 4-5-10 Minami-Azabu";
traiteTitle.innerHTML = "Alliance Économique à durée déterminée (Japon, Allemagne)";
traiteContent.innerHTML = "<span class=\"b underline\">I - Détails du traité</span><br>\n" +
"Suite à la mondialisation déjà ancrée à travers le monde, le gouvernement allemand a recherché des partenaires commerciaux inscrits dans des marchés éloignés à ceux européens, et le Japon s’inscrit dans cette démarche. Nous prévoyons de dynamiser les espaces productifs afin qu’ils amènent leur lot d’innovation à nos deux nations, et permettent d’introduire de nouvelles façons de commercer ainsi que d’imaginer le monde de demain. De ce fait, nous mettons en place un programme d’échange culturel entre nos ingénieurs et commerciaux, et facilitons la mise en place d’entreprises à l’étranger, notamment près des centres urbains. C’est encore là afin de s’ouvrir au monde que nous envisageons ce traité économique avec le Japon, un pays leader du continent asiatique. Nous n’avons aucun doute qu’il sera bénéfique pour chaque parti concerné de s’adonner à cet échange." +
"<br><br>" +
"<span class=\"b underline\">II - Durée du traité</span><br>\n" +
"Le traité prendra s’arrêtera au tour 4, tout en ayant commencé au tour 0, pour pouvoir considérer les possibles opportunités qui s’offriraient à ce moment donné. Néanmoins, il n’est pas à exclure que le contrat pourrait être amené à être reconduit, ou renégocié.";
}
}
\ No newline at end of file
@font-face {
font-family: 'Open Sans Regular';
src: url('fonts/OpenSans-Regular.ttf');
}
@font-face {
font-family: 'Noto Serif JP';
src: url('fonts/NotoSerifJP-Regular.otf')
}
div.header {
box-shadow: 0.25em 0.25em 1em rgba(000,000,000,0.25);
display: flex;
flex-direction: row;
}
ul > li {
display: inline;
margin-right: 2em;
}
.opensans {
font-family: 'Open Sans Regular', -apple-system, sans-serif;
}
.notoserifjp {
font-family: 'Noto Serif JP', serif;
}
.no-select {
user-select: none;
}
body {
margin: 0;
}
/*
FLEX BASIS
Docs: http://tachyons.io/docs/layout/flex-basiss/
Base:
fb = flex-basis
Modifiers
1 = 1st step in width scale
2 = 2nd step in width scale
3 = 3rd step in width scale
4 = 4th step in width scale
5 = 5th step in width scale
6 = 6st step in width scale
7 = 7nd step in width scale
8 = 8rd step in width scale
9 = 9th step in width scale
-100 = literal value 100%
-none = string value none
Media Query Extensions:
-ns = not-small
-m = medium
-l = large
*/
/* Max Width Percentages */
.fb-100 { flex-basis: 100%; }
/* Max Width Scale */
.fb1 { flex-basis: 1rem; }
.fb2 { flex-basis: 2rem; }
.fb3 { flex-basis: 4rem; }
.fb4 { flex-basis: 8rem; }
.fb5 { flex-basis: 16rem; }
.fb6 { flex-basis: 32rem; }
.fb7 { flex-basis: 48rem; }
.fb8 { flex-basis: 64rem; }
.fb9 { flex-basis: 96rem; }
/* Max Width String Properties */
.fb-none { flex-basis: 0; }
@media screen and (max-width: 1000px) {
#traitesList {
display: none;
}
#traitesText {
width: 100%;
}
}
@media screen and (min-width: 1001px) {
#showList {
display: none;
}
}
\ No newline at end of file
This diff is collapsed.
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