Before Width: | Height: | Size: 57 KiB |
@ -1,400 +0,0 @@
|
||||
|
||||
#barre_nav{
|
||||
background: black;
|
||||
height: 56px;
|
||||
/*padding-top: 5px;*/
|
||||
vertical-align: center;
|
||||
}
|
||||
|
||||
#titre{
|
||||
font-family: "Lucida Console", Courier, monospace;
|
||||
text-shadow: white 0 -1px;
|
||||
}
|
||||
|
||||
#navbarSupportedContent{
|
||||
margin: 8px;
|
||||
}
|
||||
|
||||
.nav-item:hover{
|
||||
background-color: orange;
|
||||
border-radius: 10px;
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
#image_ballon{
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
body{
|
||||
background-color: #303030;
|
||||
overflow-x: scroll;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.collapse.width,
|
||||
.collapsing.width {
|
||||
max-width: 0;
|
||||
min-width: 0;
|
||||
width: 0;
|
||||
transition: all .2s ease;
|
||||
}
|
||||
|
||||
.collapse .flex-column {
|
||||
overflow: auto;
|
||||
flex-wrap: nowrap; /* Optional, if you don't want the links to form columns if they overflow */
|
||||
}
|
||||
|
||||
.collapse .flex-column li {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.feather {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
|
||||
.sidebar {
|
||||
width: 20%;
|
||||
margin-top: 56px;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: 100; /* Behind the navbar */
|
||||
padding: 0px 0 0; /* Height of navbar */
|
||||
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
|
||||
background-color: #b9b7b7;
|
||||
}
|
||||
|
||||
@media (max-width: 767.98px) {
|
||||
.sidebar {
|
||||
top: 5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-sticky {
|
||||
position: relative;
|
||||
top: 0;
|
||||
height: calc(100vh - 48px);
|
||||
padding-top: .5rem;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
|
||||
}
|
||||
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.sidebar-sticky {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar .nav-link {
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.sidebar .nav-link .feather {
|
||||
margin-right: 4px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.sidebar .nav-link.active {
|
||||
color: #007bff;
|
||||
}
|
||||
|
||||
.sidebar .nav-link:hover .feather,
|
||||
.sidebar .nav-link.active .feather {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.sidebar-heading {
|
||||
font-size: .75rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
#list-home-list{
|
||||
height: 50px;
|
||||
width: 49%;
|
||||
}
|
||||
#ul{
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
}
|
||||
#list-home-list{
|
||||
padding-right:10px;
|
||||
width: 99%
|
||||
}
|
||||
#bouton{
|
||||
margin-left: 15px;
|
||||
}
|
||||
#arbre{
|
||||
height: 150px;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
#sidebarMenu{
|
||||
min-width: 50px;
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
#terrain{
|
||||
margin-top: 2%;
|
||||
margin-left: 5%;
|
||||
width: 75%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#demiTerrainDroit{
|
||||
margin-top: 2%;
|
||||
margin-left: 20%;
|
||||
width: 75%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#demiTerrainGauche{
|
||||
margin-top: 2%;
|
||||
margin-left: 20%;
|
||||
width: 75%;
|
||||
height: auto;
|
||||
/*transform: rotate(90deg);*/
|
||||
}
|
||||
|
||||
.boutons {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#bouttonadd:active{
|
||||
box-shadow: 1px 1px 10px black inset, 0 1px 0 rgba( 255, 255, 255, 0.4);
|
||||
}
|
||||
|
||||
.red {
|
||||
|
||||
box-shadow: 1px 1px 10px black inset, 0 1px 0 rgba( 255, 255, 255, 0.4);
|
||||
|
||||
}
|
||||
|
||||
.yay {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.popup .overlay {
|
||||
|
||||
top:0px;
|
||||
left:0px;
|
||||
z-index:1;
|
||||
display:none;
|
||||
}
|
||||
|
||||
|
||||
.popup .content {
|
||||
position:absolute;
|
||||
top:183px;
|
||||
left:215px;
|
||||
transform:translate(-50%,-50%) scale(0);
|
||||
background:#fff;
|
||||
width:430px;
|
||||
height:370px;
|
||||
z-index:2;
|
||||
text-align:center;
|
||||
padding:20px;
|
||||
box-sizing:border-box;
|
||||
font-family:"Open Sans",sans-serif;
|
||||
}
|
||||
|
||||
.popup .close-btn {
|
||||
cursor:pointer;
|
||||
position:absolute;
|
||||
right: 15px;
|
||||
top:20px;
|
||||
width:30px;
|
||||
height:30px;
|
||||
background:#222;
|
||||
color:#fff;
|
||||
font-size:25px;
|
||||
font-weight:600;
|
||||
line-height:30px;
|
||||
text-align:center;
|
||||
border-radius:50%;
|
||||
}
|
||||
|
||||
|
||||
.popup.active .overlay {
|
||||
display:block;
|
||||
}
|
||||
|
||||
.popup.active .content {
|
||||
transition:all 300ms ease-in-out;
|
||||
transform:translate(-50%,-50%) scale(1);
|
||||
}
|
||||
|
||||
.test{
|
||||
width: 155px;
|
||||
height: 40px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.popupT .content {
|
||||
position:absolute;
|
||||
top:98px;
|
||||
left:750px;
|
||||
transform:translate(-50%,-50%) scale(0);
|
||||
background:#fff;
|
||||
width:200px;
|
||||
height:80px;
|
||||
z-index:2;
|
||||
text-align:center;
|
||||
|
||||
box-sizing:border-box;
|
||||
font-family:"Open Sans",sans-serif;
|
||||
}
|
||||
|
||||
.popupT .close-btn {
|
||||
cursor:pointer;
|
||||
position:absolute;
|
||||
right: 10px;
|
||||
top:20px;
|
||||
width:30px;
|
||||
height:30px;
|
||||
background:#222;
|
||||
color:#fff;
|
||||
font-size:25px;
|
||||
font-weight:600;
|
||||
line-height:30px;
|
||||
text-align:center;
|
||||
border-radius:50%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.popupT.active .overlay {
|
||||
display:block;
|
||||
}
|
||||
|
||||
.popupT.active .content {
|
||||
transition:all 300ms ease-in-out;
|
||||
transform:translate(-50%,-50%) scale(1);
|
||||
}
|
||||
|
||||
|
||||
.popupL .content {
|
||||
position:absolute;
|
||||
top:98px;
|
||||
left:865px;
|
||||
transform:translate(-50%,-50%) scale(0);
|
||||
background:#fff;
|
||||
width:200px;
|
||||
height:80px;
|
||||
z-index:2;
|
||||
text-align:center;
|
||||
|
||||
box-sizing:border-box;
|
||||
font-family:"Open Sans",sans-serif;
|
||||
}
|
||||
|
||||
.popupL .close-btn {
|
||||
cursor:pointer;
|
||||
position:absolute;
|
||||
right: 10px;
|
||||
top:20px;
|
||||
width:30px;
|
||||
height:30px;
|
||||
background:#222;
|
||||
color:#fff;
|
||||
font-size:25px;
|
||||
font-weight:600;
|
||||
line-height:30px;
|
||||
text-align:center;
|
||||
border-radius:50%;
|
||||
}
|
||||
|
||||
|
||||
.popupL.active .overlay {
|
||||
display:block;
|
||||
}
|
||||
|
||||
.popupL.active .content {
|
||||
transition:all 300ms ease-in-out;
|
||||
transform:translate(-50%,-50%) scale(1);
|
||||
}
|
||||
|
||||
|
||||
.skin_barre /* on reprend le nom qu'on a mis dans 'class=' */
|
||||
{
|
||||
|
||||
width:30px;
|
||||
height:300px;
|
||||
/* on définit la taille du div (celle de l'image) */
|
||||
|
||||
|
||||
/* et sa position initiale */
|
||||
|
||||
position:absolute;
|
||||
/* le div n'est plus fixe mais libre */
|
||||
|
||||
background-image:url('degrade.jpg');
|
||||
/* on définit ici l'image à afficher dans le div */
|
||||
|
||||
cursor:s-resize;
|
||||
/* et enfin on définit le curseur à afficher lorsque la souris passe sur ce div */
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ===== de même pour les autres ===== */
|
||||
/* skin curseur1*/
|
||||
.skin_curseur1
|
||||
{
|
||||
width:45px;
|
||||
height:15px;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:15px;
|
||||
cursor:s-resize;
|
||||
background-image:url('curseur1.png');
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*skin carre */
|
||||
|
||||
.skin_carre
|
||||
{
|
||||
width:300px;
|
||||
height:300px;
|
||||
position:absolute;
|
||||
top:20px;left:60px;
|
||||
cursor:move;
|
||||
background-color:red; /* on définit la couleur initiale du carré */
|
||||
background-image:url('degrade_n-b.png');
|
||||
}
|
||||
|
||||
|
||||
/*skin curseur2*/
|
||||
.skin_curseur2
|
||||
{
|
||||
width:20px;
|
||||
height:20px;
|
||||
position:absolute;
|
||||
top:10px;
|
||||
left:350px;
|
||||
cursor:move;
|
||||
background-image:url('curseur2.png');
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* skin resultat */
|
||||
.skin_resultat
|
||||
{
|
||||
position:absolute;
|
||||
|
||||
top:330px;
|
||||
left:60px;
|
||||
border:1px solid black; /* dessine un cadre noir autour du 'input' et d'un pixel d'épaisseur */
|
||||
text-align:center; /* on aligne le texte au centre */
|
||||
}
|
@ -1,392 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="basket.css">
|
||||
<title>Basket</title>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Navbar -->
|
||||
<nav class="navbar navbar-expand-lg navbar-light" id="barre_nav">
|
||||
<div id="titre">
|
||||
<img id="image_ballon" src="ballon.png" width="30" height="30" alt="">
|
||||
<a class="navbar-brand text-white" href="#">BASKET</a>
|
||||
</div>
|
||||
<button class="navbar-toggler bg-light" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link text-white" href="#">Connexion <span class="sr-only">(current)</span></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-white" href="#">Galerie</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle text-white" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Nouvelle page
|
||||
</a>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item" id="demo" href="#" onclick="afficherDemiTerrainDroit()">TERRAIN DROIT</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item " href="#" onclick="afficherDemiTerrainGauche()">TERRAIN GAUCHE</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item " href="#" onclick="afficherFullTerrain()" >FULL TERRAIN</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle text-white" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Partager
|
||||
</a>
|
||||
<div class="dropdown-menu text-white" aria-labelledby="navbarDropdown">
|
||||
<a href="#" class="button dropdown-item" id="btn-download">PNG</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/three@0.118.3/build/three.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js" integrity="sha384-NaWTHo/8YCBYJ59830LTz/P4aQZK1sS0SneOgAvhsIl3zBu8r9RevNg5lHCHAuQ/" crossorigin="anonymous"></script>
|
||||
<button class="dropdown-item" id="download">PDF</button>
|
||||
<div class="dropdown-divider"></div>
|
||||
<button class="dropdown-item" id="download" onclick="exporterTex()">TeX</button>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-white" href="#">Sauvegarder</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle text-white" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Modifier
|
||||
</a>
|
||||
<div class="dropdown-menu text-white" aria-labelledby="navbarDropdown">
|
||||
<button class="button dropdown-item" onclick="togglePopup()">Attaquant</button>
|
||||
<div class="dropdown-divider"></div>
|
||||
<button class="button dropdown-item" onclick="togglePopup2()">Defenseur</button>
|
||||
<div class="dropdown-divider"></div>
|
||||
<button class="button dropdown-item" onclick="togglePopup3()">Terrain</button>
|
||||
<div class="dropdown-divider"></div>
|
||||
<button class="button dropdown-item" onclick="togglePopup4()">Centreinter</button>
|
||||
<div class="dropdown-divider"></div>
|
||||
<button class="button dropdown-item" onclick="togglePopup5()">Zone</button>
|
||||
<div class="dropdown-divider"></div>
|
||||
<button class="button dropdown-item" onclick="togglePopup6()">Mouvement</button>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle text-white" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Taille
|
||||
</a>
|
||||
<div class="dropdown-menu text-white" aria-labelledby="navbarDropdown">
|
||||
<button id="boutonatt+" class="button dropdown-item">+</button>
|
||||
<div class="dropdown-divider"></div>
|
||||
<button id="boutonatt-" class="button dropdown-item">-</button>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block sidebar collapse">
|
||||
<div class="row list-group list-group">
|
||||
<div >
|
||||
<div class="list-group list-group-horizontal" id="bouton" role="tablist">
|
||||
<a class="list-group-item list-group-item-action active" id="list-home-list" data-toggle="list" href="#list-home" role="tab" aria-controls="home">CREATION
|
||||
</a>
|
||||
<a class="list-group-item list-group-item-action" data-toggle="list" id="list-tab" href="#list-profile" role="tab" aria-controls="profile">VUE ARBRE
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="tab-content" id="nav-tabContent">
|
||||
<div class="tab-pane fade show active" id="list-home" role="tabpanel" aria-labelledby="list-home-list">
|
||||
<div class="sidebar-sticky pt-3">
|
||||
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted font-weight-bold">
|
||||
<span>AJOUTER JOUEUR</span>
|
||||
<a class="d-flex align-items-center text-muted" href="#" aria-label="Add a new report">
|
||||
<span data-feather="plus-circle"></span>
|
||||
</a>
|
||||
</h6>
|
||||
<ul class="nav flex-column" id="ul">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" onclick="ajouterjoueur()" id="bouttonattaquant">
|
||||
<span data-feather="file"></span>
|
||||
ATTAQUANT
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item" id="bouttonadd">
|
||||
<a class="nav-link " onclick="ajouteradversaire()" id="bouttonadversaire">
|
||||
<span data-feather="shopping-cart"></span>
|
||||
DÉFENSEUR
|
||||
</a>
|
||||
</ul>
|
||||
|
||||
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted font-weight-bold">
|
||||
<span>ACTIONS</span>
|
||||
<a class="d-flex align-items-center text-muted" href="#" aria-label="Add a new report">
|
||||
<span data-feather="plus-circle"></span>
|
||||
</a>
|
||||
</h6>
|
||||
<ul class="nav flex-column mb-2" id="ul">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" onclick="triggerfairepasse()" id="bouttonpasse">
|
||||
<span data-feather="file-text"></span>
|
||||
PASSE
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" onclick="deplace()" id="bouttondeplacer">
|
||||
<span data-feather="file-text"></span>
|
||||
DÉPLACER
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" onclick="dribble()" id="bouttondribbler">
|
||||
<span data-feather="file-text"></span>
|
||||
DRIBBLER
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="bouttonecran" onclick="ecraner()">
|
||||
<span data-feather="file-text"></span>
|
||||
ÉCRAN
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" onclick="tire()" id="bouttontirer">
|
||||
<span data-feather="file-text"></span>
|
||||
TIRER
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" onclick="retourarriere()" id="bouttonretour">
|
||||
<span data-feather="file-text"></span>
|
||||
RETOUR ARRIERE
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" onclick="triggerdonnerlaballe()" id="bouttondonner">
|
||||
<span data-feather="file-text"></span>
|
||||
DONNER LA BALLE
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" onclick="influer()" id="bouttoninfluence">
|
||||
<span data-feather="file-text"></span>
|
||||
ZONE D'INFLUENCE
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" onclick="editer()" id="bouttonediter">
|
||||
<span data-feather="file-text"></span>
|
||||
EDITER
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item yay" id="gauche">
|
||||
<a class="nav-link" onclick="tournergauche()" id="tournergauche">
|
||||
<span data-feather="file"></span>
|
||||
<--
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item yay" id="droite">
|
||||
<a class="nav-link" onclick="tournerdroite()" id="tournerdroite">
|
||||
<span data-feather="file"></span>
|
||||
-->
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item yay" id="perso">
|
||||
<form name="myform" action="" method="get">
|
||||
Entrez un angle personalisé <br>
|
||||
<input type="text" name="inputbox" value="" id="myTextBox">
|
||||
<input type="button" name="button" value="Set" onclick="showData(this.form)">
|
||||
</form>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="list-profile" role="tabpanel" aria-labelledby="list-profile-list">
|
||||
<div class="sidebar-sticky pt-3">
|
||||
<ul class="nav flex-column" id="ul">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" href="#">
|
||||
<span data-feather="home"></span>
|
||||
<span class="sr-only">(current)</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">
|
||||
<span data-feather="file"></span>
|
||||
<img id="arbre" src="arbre.PNG" width="30" height="30" alt="">
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
<div class="boutons">
|
||||
<button type="button" class="btn btn-warning">
|
||||
<img src="flèche_gauche.png" height="30">
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-warning">
|
||||
<img src="flèche_droite.png" height="30">
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div id="divTerrains">
|
||||
<canvas id="terrain" style="display:block;"></canvas>
|
||||
<script src ="Terrains/Horizontal/entier.js"></script>
|
||||
|
||||
<canvas id="demiTerrainDroit" style="display:none;"></canvas>
|
||||
<script src ="Terrains/Horizontal/demiDroit.js"></script>
|
||||
|
||||
<canvas id="demiTerrainGauche" style="display:none;"></canvas>
|
||||
<script src ="Terrains/Horizontal/demiGauche.js"></script>
|
||||
</div>
|
||||
<div class="popup" id="popup-1">
|
||||
<div class="overlay"></div>
|
||||
<div class="content">
|
||||
<div class="close-btn" onclick="togglePopup()">×</div>
|
||||
<div id="barre" class="skin_barre" onmousedown="clique('barre')"> </div>
|
||||
<div id="curseur1" class="skin_curseur1" onmousedown="clique('barre')"> </div>
|
||||
<div id="carre" class="skin_carre" onmousedown="clique('carre')"> </div>
|
||||
<div id="curseur2" class="skin_curseur2" onmousedown="clique('carre')"> </div>
|
||||
|
||||
<form>
|
||||
<input type="text" id="resultat" class="skin_resultat" size=20 name="affichage_couleur" disabled="true" value="#FF0000" />
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="popup" id="popup-2">
|
||||
<div class="overlay"></div>
|
||||
<div class="content">
|
||||
<div class="close-btn" onclick="togglePopup2()">×</div>
|
||||
<div id="labarre" class="skin_barre" onmousedown="clique('barre')"> </div>
|
||||
<div id="curseur1def" class="skin_curseur1" onmousedown="clique('barre')"> </div>
|
||||
<div id="lecarre" class="skin_carre" onmousedown="clique('carre')"> </div>
|
||||
<div id="curseur2def" class="skin_curseur2" onmousedown="clique('carre')"> </div>
|
||||
|
||||
<form>
|
||||
<input type="text" id="resultatdef" class="skin_resultat" size=20 name="affichage_couleur" disabled="true" value="#4A51CE " />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="popup" id="popup-3">
|
||||
<div class="overlay"></div>
|
||||
<div class="content">
|
||||
<div class="close-btn" onclick="togglePopup3()">×</div>
|
||||
<div id="labarreTer" class="skin_barre" onmousedown="clique('barre')"> </div>
|
||||
<div id="curseur1ter" class="skin_curseur1" onmousedown="clique('barre')"> </div>
|
||||
<div id="lecarret" class="skin_carre" onmousedown="clique('carre')"> </div>
|
||||
<div id="curseur2ter" class="skin_curseur2" onmousedown="clique('carre')"> </div>
|
||||
|
||||
<form>
|
||||
<input type="text" id="resultatter" class="skin_resultat" size=20 name="affichage_couleur" disabled="true" value="#808080 " />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="popup" id="popup-4">
|
||||
<div class="overlay"></div>
|
||||
<div class="content">
|
||||
<div class="close-btn" onclick="togglePopup4()">×</div>
|
||||
<div id="labarreinTer" class="skin_barre" onmousedown="clique('barre')"> </div>
|
||||
<div id="curseur1inter" class="skin_curseur1" onmousedown="clique('barre')"> </div>
|
||||
<div id="lecarreint" class="skin_carre" onmousedown="clique('carre')"> </div>
|
||||
<div id="curseur2inter" class="skin_curseur2" onmousedown="clique('carre')"> </div>
|
||||
|
||||
<form>
|
||||
<input type="text" id="resultatinter" class="skin_resultat" size=20 name="affichage_couleur" disabled="true"value="#9E0E40" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="popup" id="popup-5">
|
||||
<div class="overlay"></div>
|
||||
<div class="content">
|
||||
<div class="close-btn" onclick="togglePopup5()">×</div>
|
||||
<div id="labarrezone" class="skin_barre" onmousedown="clique('barre')"> </div>
|
||||
<div id="curseur1zone" class="skin_curseur1" onmousedown="clique('barre')"> </div>
|
||||
<div id="lecarrezone" class="skin_carre" onmousedown="clique('carre')"> </div>
|
||||
<div id="curseur2zone" class="skin_curseur2" onmousedown="clique('carre')"> </div>
|
||||
|
||||
<form>
|
||||
<input id="resultatzone" class="skin_resultat" size=20 name="affichage_couleur" disabled="true" value="#40E0D0" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="popup" id="popup-6">
|
||||
<div class="overlay"></div>
|
||||
<div class="content">
|
||||
<div class="close-btn" onclick="togglePopupTa()">×</div>
|
||||
|
||||
<button id="boutonatt+" >+</button>
|
||||
<button id="boutonatt-" >-</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="popup" id="popup-7">
|
||||
<div class="overlay"></div>
|
||||
<div class="content">
|
||||
<div class="close-btn" onclick="togglePopup2Td()">×</div>
|
||||
|
||||
<button id="boutondef+" >+</button>
|
||||
<button id="boutondef-" >-</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function afficherFullTerrain() {
|
||||
document.getElementById("terrain").style.display = "block";
|
||||
document.getElementById("demiTerrainDroit").style.display = "none";
|
||||
document.getElementById("demiTerrainGauche").style.display = "none";
|
||||
}
|
||||
|
||||
function afficherDemiTerrainDroit() {
|
||||
document.getElementById("terrain").style.display = "none";
|
||||
document.getElementById("demiTerrainDroit").style.display = "block";
|
||||
document.getElementById("demiTerrainGauche").style.display = "none";
|
||||
}
|
||||
|
||||
function afficherDemiTerrainGauche() {
|
||||
document.getElementById("terrain").style.display = "none";
|
||||
document.getElementById("demiTerrainDroit").style.display = "none";
|
||||
document.getElementById("demiTerrainGauche").style.display = "block";
|
||||
}
|
||||
</script>
|
||||
|
||||
<button type="button" class="btn btn-warning fixed-bottom font-weight-bold" onclick="nextStep()">+</button>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="rectest.js"></script>
|
||||
<script src="latex.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js" integrity="sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
Before Width: | Height: | Size: 187 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 821 B |
Before Width: | Height: | Size: 706 B |
@ -1,4 +0,0 @@
|
||||
enlever le flag dragging quand 2 ballons
|
||||
enlever le fait de se faire une passe a soit meme
|
||||
|
||||
fix la passe avec le toogle et untoggle
|
@ -1,174 +0,0 @@
|
||||
function exporterTex(){
|
||||
let txt;
|
||||
let nomFichier;
|
||||
let nom = prompt("Veuillez entrer le nom du schéma", "Schéma1");
|
||||
if (nom == null || nom == "") {
|
||||
txt = "Schéma1";
|
||||
}
|
||||
|
||||
let TeX = '';
|
||||
let i;
|
||||
TeX = TeX.concat('\\', 'begin{figure}\n');
|
||||
TeX = TeX.concat('\\', 'begin{center}\n');
|
||||
TeX = TeX.concat('\\', 'resizebox{.48\\linewidth}{!}{\n');
|
||||
TeX = TeX.concat('\\', 'begin{tikzpicture}\n');
|
||||
TeX = TeX.concat('\n\n', '%%%Zone d\'action');
|
||||
if(zone.length != 0) {
|
||||
TeX = TeX.concat('\n','\\fill[color=gray!20] ');
|
||||
for (i = 0; i < zone.length; i++) {
|
||||
TeX = TeX.concat('', '(');
|
||||
TeX = TeX.concat(findY(zone[i].y), ',');
|
||||
TeX = TeX.concat(findX(zone[i].x), ') -- ');
|
||||
}
|
||||
TeX = TeX.concat('','cycle;');
|
||||
}
|
||||
|
||||
TeX = TeX.concat('\n\n', '%%%Terrain');
|
||||
TeX = TeX.concat('\n', '\\draw (0,0) -- (0,28);');
|
||||
TeX = TeX.concat('\n', '\\draw (15,0) -- (15,28);');
|
||||
TeX = TeX.concat('\n', '\\draw (0,28) -- (15,28);');
|
||||
TeX = TeX.concat('\n', '\\draw (0,0) -- (15,0);');
|
||||
TeX = TeX.concat('\n', '\\draw (15,14) -- (0,14);');
|
||||
TeX = TeX.concat('\n', '\\draw (7.5,14) circle [radius=2.4];;');
|
||||
TeX = TeX.concat('\n', '\\draw (7.5,1.776) circle [radius=0.2];;');
|
||||
TeX = TeX.concat('\n', '\\draw (6.5,1.575) -- (8.5,1.575);');
|
||||
TeX = TeX.concat('\n', '\\draw (7.5,26.2) circle [radius=0.2];;');
|
||||
TeX = TeX.concat('\n', '\\draw (6.5,26.425) -- (8.5,26.425);');
|
||||
TeX = TeX.concat('\n', '\\draw (5,0) -- (5,5.8);');
|
||||
TeX = TeX.concat('\n', '\\draw (10,0) -- (10,5.8);');
|
||||
TeX = TeX.concat('\n', '\\draw (10,5.8) -- (5,5.8);;');
|
||||
TeX = TeX.concat('\n', '\\draw (9.3,5.8) arc [radius=1.8, start angle=0, end angle= 180];');
|
||||
TeX = TeX.concat('\n', '\\draw (10,28) -- (10,22.2);');
|
||||
TeX = TeX.concat('\n', '\\draw (5,28) -- (5,22.2);');
|
||||
TeX = TeX.concat('\n', '\\draw (5,22.2) -- (10,22.2);');
|
||||
TeX = TeX.concat('\n', '\\draw (5.6,22.2) arc [radius=1.8, start angle=180, end angle= 360]; ');
|
||||
TeX = TeX.concat('\n', '\\draw (14.1,1.7) arc [radius=6.6, start angle=0, end angle= 180];');
|
||||
TeX = TeX.concat('\n', '\\draw (.9,0) -- (.9,1.7);');
|
||||
TeX = TeX.concat('\n', '\\draw (14.1,0) -- (14.1,1.7);');
|
||||
TeX = TeX.concat('\n', '\\draw (0.9,26.3) arc [radius=6.6, start angle=180, end angle= 360];');
|
||||
TeX = TeX.concat('\n', '\\draw (.9,28) -- (.9,26.2);');
|
||||
TeX = TeX.concat('\n', '\\draw (14.1,28) -- (14.1,26.2);');
|
||||
|
||||
TeX = TeX.concat('\n\n', '%%%Joueurs\n');
|
||||
for (i = 0; i < joueurs.length; i++) {
|
||||
let z = joueurs[i];
|
||||
TeX = TeX.concat('\\','node[draw, circle] (');
|
||||
TeX = TeX.concat('', z.nom);
|
||||
TeX = TeX.concat('', ') at ');
|
||||
TeX = TeX.concat('(', findY(z.y));
|
||||
TeX = TeX.concat(', ', findX(z.x));
|
||||
TeX = TeX.concat(') {\\LARGE ', i+1);
|
||||
TeX = TeX.concat('', '};\n');
|
||||
}
|
||||
TeX = TeX.concat('\n', '%%%Adversaires\n');
|
||||
for (i = 0; i < adversaire.length; i++) {
|
||||
let r = adversaire[i];
|
||||
let tx = r.a + r.rayon*Math.cos(r.angle);
|
||||
let ty = r.b+ r.rayon *Math.sin(r.angle);
|
||||
let px = r.a + r.rayon*Math.cos(r.inverse);
|
||||
let py = r.b+ r.rayon *Math.sin(r.inverse);
|
||||
let rx = tx + r.rretour *Math.cos(r.rangle);
|
||||
let ry = ty+ r.rretour *Math.sin(r.rangle);
|
||||
let ox = px + r.rretour*Math.cos(r.rangle);
|
||||
let oy = py + r.rretour *Math.sin(r.rangle);
|
||||
TeX = TeX.concat('\n', '\\draw (');
|
||||
TeX = TeX.concat(findY(ty), ',');
|
||||
TeX = TeX.concat(findX(tx), ') -- (');
|
||||
TeX = TeX.concat(findY(ry), ',');
|
||||
TeX = TeX.concat(findX(rx), ');');
|
||||
TeX = TeX.concat('\n', '\\draw (');
|
||||
TeX = TeX.concat(findY(py), ',');
|
||||
TeX = TeX.concat(findX(px), ') -- (');
|
||||
TeX = TeX.concat(findY(oy), ',');
|
||||
TeX = TeX.concat(findX(ox), ');');
|
||||
TeX = TeX.concat('\n', '\\draw (');
|
||||
TeX = TeX.concat(findY(ty), ',');
|
||||
TeX = TeX.concat(findX(tx), ') -- (');
|
||||
TeX = TeX.concat(findY(py), ',');
|
||||
TeX = TeX.concat(findX(px), ');\n');
|
||||
}
|
||||
TeX = TeX.concat('\n', '%%%Passes\n');
|
||||
for (i = 0; i < passes.length; i++) {
|
||||
TeX = TeX.concat('\\', 'draw[thick,dashed] [-latex] (');
|
||||
TeX = TeX.concat(passes[i].x.nom, ') -- (');
|
||||
TeX = TeX.concat(passes[i].x2.nom, ');');
|
||||
TeX = TeX.concat('', '\n');
|
||||
}
|
||||
TeX = TeX.concat('\n', '%%%Déplacements/Écrans\n');
|
||||
for (i = 0; i < deple.length/4; i++) {
|
||||
let r = deple[3+i*4];
|
||||
if (r.ec == true){
|
||||
TeX = TeX.concat('\\', 'draw[thick] [-[] (' );
|
||||
} else {
|
||||
TeX = TeX.concat('\\', 'draw[thick] [-latex] (' );
|
||||
}
|
||||
TeX = TeX.concat(deple[0+i*4].jbase + 1, ') .. controls (');
|
||||
TeX = TeX.concat(findY(deple[1+i*4].y),', ');
|
||||
TeX = TeX.concat(findX(deple[1+i*4].x),') and ');
|
||||
TeX = TeX.concat('(', '');
|
||||
TeX = TeX.concat(findY(deple[2+i*4].y), ', ');
|
||||
TeX = TeX.concat(findX(deple[2+i*4].x), ') .. (');
|
||||
TeX = TeX.concat(findY(deple[3+i*4].y), ', ');
|
||||
TeX = TeX.concat(findX(deple[3+i*4].x), ');\n');
|
||||
|
||||
}
|
||||
TeX = TeX.concat('\n', '%%%Dribbles\n');
|
||||
for (i = 0; i < dribblement.length/4; i++) {
|
||||
TeX = TeX.concat('\\', '\draw[thick, decoration = {zigzag}, decorate] [-latex] (' );
|
||||
TeX = TeX.concat(dribblement[0+i*4].dbase + 1, ') .. controls (');
|
||||
TeX = TeX.concat(findY(dribblement[1+i*4].y),', ');
|
||||
TeX = TeX.concat(findX(dribblement[1+i*4].x),') and ');
|
||||
TeX = TeX.concat('(', '');
|
||||
TeX = TeX.concat(findY(dribblement[2+i*4].y), ', ');
|
||||
TeX = TeX.concat(findX(dribblement[2+i*4].x), ') .. (');
|
||||
TeX = TeX.concat(findY(dribblement[3+i*4].y), ', ');
|
||||
TeX = TeX.concat(findX(dribblement[3+i*4].x), ');\n');
|
||||
}
|
||||
TeX = TeX.concat('\n', '%%%Tir\n');
|
||||
let t;
|
||||
for (i = 0; i < joueurs.length; i++) {
|
||||
let r = joueurs[i];
|
||||
if (r.tiring == true) {
|
||||
t = r;
|
||||
TeX = TeX.concat('\\', '\draw[thick, dashed] [-latex] (' );
|
||||
TeX = TeX.concat(findY(t.y),',');
|
||||
TeX = TeX.concat(findX(t.x),') -- (');
|
||||
TeX = TeX.concat(findY(ht/2),',');
|
||||
TeX = TeX.concat(findX(lt-lt*0.072),');\n');
|
||||
}
|
||||
}
|
||||
TeX = TeX.concat('\n', '%%%Dribbles\n');
|
||||
TeX = TeX.concat('','\n');
|
||||
TeX = TeX.concat('\\', 'end{tikzpicture}\n}\n');
|
||||
TeX = TeX.concat('\\', 'end{center}\n');
|
||||
TeX = TeX.concat('\\', 'caption{');
|
||||
TeX = TeX.concat(nom, '}\n');
|
||||
TeX = TeX.concat('\\', 'end{figure}');
|
||||
nomFichier = nom + ".tex";
|
||||
download(nomFichier, TeX);
|
||||
}
|
||||
|
||||
//Permet de trouver la position en longueur du terrain (vertical) en LaTeX + questions décimales
|
||||
function findX(dim) {
|
||||
let longueur = 28;
|
||||
return Math.round((dim*longueur/lt)*100)/100;
|
||||
}
|
||||
|
||||
//Permet de trouver la position en largeur du terrain (vertical) en LaTeX
|
||||
function findY(dim) {
|
||||
let largeur = 15;
|
||||
return Math.round((dim*largeur/ht)*100)/100;
|
||||
}
|
||||
|
||||
function download(filename, text) {
|
||||
var element = document.createElement('a');
|
||||
element.setAttribute('href', 'data:application/x-tex;charset=utf-8,' + encodeURIComponent(text));
|
||||
element.setAttribute('download', filename);
|
||||
|
||||
element.style.display = 'none';
|
||||
document.body.appendChild(element);
|
||||
|
||||
element.click();
|
||||
|
||||
document.body.removeChild(element);
|
||||
}
|