index.html 16 KB
Newer Older
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
1 2 3 4 5
<!doctype html>
<html lang="fr">
<head>
  <meta charset="utf-8">
  <title>Toile de confiance de la monnaie libre Ğ1</title>
6
  <meta property="og:url" content="https://wotmap.duniter.org" />
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
7 8 9
  <meta property="og:type" content="article" />
  <meta property="og:title" content="Wotmap" />
  <meta property="og:description" content="La toile de confiance de la monnaie libre Ğ1" />
10
  <meta property="og:image" content="https://wotmap.duniter.org/img/capture.jpg" />
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
11 12 13 14 15 16
  <meta property="og:image:width" content="1225" />
  <meta property="og:image:height" content="736" />
  <meta name="description" content="La toile de confiance de la monnaie libre Ğ1">
  <meta name="keywords" content="Monnaie libre,duniter,toile de confiance">
  <meta name="author" content="Pierre-Jean CHANCELLIER">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
17
  <link rel="icon" href="img/duniter-logo.ico" />
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
  <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  <link rel="stylesheet" href="css/auto-complete.css">
  <link rel="stylesheet" href="css/style.css">
</head>
<body id="body">
<div id="loader" class="w3-modal">
	<div class="w3-modal-content w3-round-large w3-card-4 w3-animate-zoom">
		<header class="w3-container w3-teal">
			<h2>Veuillez patienter</h2>
		</header>
		<div class="w3-container" style="padding-bottom:15px;">
			<p>Le calcul de la position des noeuds est en cours...</p>
			<div class="w3-light-grey w3-round">
				<div id="myBar2" class="w3-container w3-green" style="border-radius:4px 0 0 4px;height:24px;width:0%">0%</div>
			</div>
		</div>
	</div>
</div> 
<div id="myProgress">
	<div style="color:white;">Chargement des avatars</div>
	<div class="w3-light-grey w3-round">
		<div id="myBar" class="w3-container w3-green" style="border-radius:4px 0 0 4px;height:24px;width:0%">0%</div>
	</div>
</div>
<div id="about" class="w3-modal">
	<div class="w3-modal-content w3-round-large w3-card-4 w3-animate-zoom">
		<header class="w3-container w3-teal">
			<span onclick="document.getElementById('about').style.display='none'" class="w3-button w3-display-topright" style="color:white;height:65px;">&times;</span>
			<h2 style="width:90%;">Toile de confiance de la monnaie libre Ğ1</h2>
		</header>
		<div class="w3-container">
			<p>Voici une représentation visuelle de la toile de confiance de la monnaie <b><span id="currency1"></span></b>. Il s'agit d'une monnaie libre au sens de la <a href="http://trm.creationmonetaire.info/" target="_blank">Théorie Relative de la Monnaie</a>. C'est-à-dire qu'elle est issue uniquement de Dividendes Universels produits par ses membres.</p>
			<p>Vous pouvez échanger dans cette monnaie, tout de suite, même sans en être co-créateur grâce à l'application <a href="https://cesium.app" target="_blank">Cesium</a>.</p>
			<p>Les données représentées ici sont mises à jour toutes les 24h (à 3h30).</p>
			<p>Actuellement, elles sont extraites à partir du bloc n°<b><span id="block"></span></b>.</p>
			<p>La monnaie <b><span id="currency2"></span></b> compte <b><span id="nb_members"></span></b> membres dont <b><span id="nb_referents"></span></b> référents et <b><span id="nb_noreferents"></span></b> non référents. Les membres sont certifiés entre eux par <b><span id="nb_certifs"></span></b> certifications et regroupés en <b><span id="nb_communities"></span></b> communautés via l'algorithme LPA (Label Propagation Algorithm).</p>
			<p>La wotmap est développée et maintenue par  : <ul><li>Paidge</li><li>Tuxmain</li></ul></p>
			<p>N'hésitez pas à soutenir les développeurs de la monnaie libre :</p>
			<p class="w3-center">
58
				<a href="https://g1.duniter.fr/api/#/v1/payment/78ZwwgpgdH5uLZLbThUQH7LKwPgjMunYfLiCfUCySkM8?amount=15&amp;comment=wotmap&amp;redirect_url=https%3A%252F%252Fwotmap.duniter.org&amp;cancel_url=https%3A%252F%252Fwotmap.duniter.org">
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
59 60 61
				  <img src="img/duniter_button.svg">
				</a>
				<br /><br />
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
62
				<a id="gitlab" href="https://git.duniter.org/paidge/wotmap" target="_blank">
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
					 <img src="img/gitlab.png" width="20" /> Code source disponible sur le Gitlab Duniter
				</a>
			</p>
		</div>
	</div>
</div>
<div id="help" class="w3-modal">
	<div class="w3-modal-content w3-round-large w3-card-4 w3-animate-zoom">
		<header class="w3-container w3-teal">
			<span onclick="document.getElementById('help').style.display='none'" class="w3-button w3-display-topright" style="color:white;height:65px;">&times;</span>
			<h2 style="width:90%;">Aide sur l'utilisation de la wotmap</h2>
		</header>
		<div class="w3-container">
			<ul class="w3-ul w3-border w3-card-4 w3-section">
				<li><h3><b>Manipulation de la wot</b></h3></li>
				<li>- <u>Clic appuyé :</u> Déplacer la toile de confiance</li>
				<li>- <u>Clic sur un noeud :</u> Affiche les infos du noeud</li>
				<li>- <u>Clic droit sur un noeud :</u> Masque la communauté du noeud</li>
				<li>- <u>Double-clic sur un noeud :</u> Affiche uniquement la communauté du noeud</li>
				<li>- <u>Molette de la souris :</u> gestion du zoom</li>
			</ul>
			<div class="container-kbd w3-card-4">
				<div><span class="left"><kbd>&larr;</kbd></span> Déplacer la caméra vers la gauche</div>
				<div><span class="left"><kbd>&uarr;</kbd></span> Déplacer la caméra vers le haut</div>
				<div><span class="left"><kbd>&rarr;</kbd></span> Déplacer la caméra vers la droite</div>
				<div><span class="left"><kbd>&darr;</kbd></span> Déplacer la caméra vers le bas</div>
				<div><span class="left"><kbd>spacebar</kbd> + <kbd>&uarr;</kbd></span> Zoomer</div>
				<div><span class="left"><kbd>spacebar</kbd> + <kbd>&darr;</kbd></span> Dézoomer</div>
			</div>
			<ul class="w3-ul w3-border w3-card-4 w3-section">
				<li><h3><b>Lexique</b></h3></li>
				<li>- <u>Noeud :</u> membre</li>
				<li>- <u>Lien :</u> certification</li>
				<li>- <u>In-Degree :</u> Nombre total de certifications reçues par un membre</li>
				<li>- <u>Out-Degree :</u> Nombre total de certifications émises par un membre</li>
				<li>- <u>Degree :</u> Nombre total de certifications émises <b>ET</b> reçues par un membre</li>
				<li>- <u>Référent :</u> Membre ayant émis ET reçu <b><span id="crit_referent"></span></b> certifications</li>
			</ul>
		</div>
	</div>
</div>
<main class="container">
	<div id="menu" class="w3-bar w3-border w3-card-4 w3-light-grey w3-large">
		<div>
			<div class="w3-bar-item w3-border-right"><h5 style="margin:0"><b>Wotmap</b>&nbsp;<small><span id ="version"></span></small></h5></div>
			<div class="w3-dropdown-hover w3-border-right">
				<button class="w3-button"><i class="fa fa-filter"></i>&nbsp;Filtres&nbsp;<i class="fa fa-caret-down"></i></button>
				<div class="w3-dropdown-content w3-bar-block w3-card-4 w3-small">
					<div class="w3-bar-item w3-button w3-border-bottom">
						<input id="referentsFilter" type="checkbox">
						<label for="referentsFilter">Membres référents</label>
					</div>
					<div class="w3-bar-item w3-button w3-border-bottom">
						<input id="noreferentsFilter" type="checkbox">
						<label for="noreferentsFilter">Membres non-référents</label>
					</div>
					<div class="w3-border-bottom w3-bar-item">
						<div>Min Degree <span id="min-degree-val">0</span></div>
						<div class="w3-center">0 <input id="min-degree" type="range" min="0" max="0" value="0"> <span id="max-degree-value">0</span></div>
					</div>
					<a id="reset-btn-filters" href="#" class="w3-bar-item w3-button w3-border-bottom">Supprimer les filtres</a>
				</div>
			</div>
			<div class="w3-dropdown-hover w3-border-right">
				<button class="w3-button"><i class="fa fa-tv"></i>&nbsp;Affichage&nbsp;<i class="fa fa-caret-down"></i></button>
				<div id="affichage" class="w3-dropdown-content w3-bar-block w3-card-4 w3-small">
					<a id="reset-btn-cam" href="#" class="w3-bar-item w3-button w3-border-bottom">Recentrer la caméra</a>
					<div class="w3-bar-item w3-button w3-border-bottom">
						<input id="displayAvatars" type="checkbox">
						<label for="displayAvatars">Afficher les avatars</label>
					</div>
					<div class="w3-bar-item w3-button w3-border-bottom">
						<input id="displayNames" type="checkbox">
						<label for="displayNames">Afficher les noms</label>
					</div>
					<div class="w3-bar-item w3-button w3-border-bottom">
						<input id="displayEdges" type="checkbox">
						<label for="displayEdges">Afficher les liens</label>
					</div>
					<div class="w3-bar-item w3-button w3-border-bottom">
						<label for="html5colorpicker">Arrière-plan :</label>
						<input id="html5colorpicker" onchange="document.body.style.backgroundColor = this.value;" value="#455660" style="width:45%;padding:0;height:18px;" type="color">
					</div>
				</div>
			</div>
			<a id="export" href="#" class="w3-bar-item w3-button w3-border-right"><i class="fa fa-camera"></i>&nbsp;Capture</a>
			<a href="#" class="w3-bar-item w3-button w3-border-right" onclick="document.getElementById('help').style.display='block';">
				<i class="fa fa-question-circle"></i>&nbsp;Aide
			</a>
			<a href="#" class="w3-bar-item w3-button w3-border-right" onclick="document.getElementById('about').style.display='block';">
				<i class="fa fa-info-circle"></i>&nbsp;À propos
			</a>
			<div class="w3-bar-item w3-green"><i class="fa fa-search"></i></div>
			<input id="search" type="text" name="pseudo" class="w3-input" placeholder="Recherche.." autocomplete="off">
		</div>
	</div>
	<div id="nodeInfos" class="w3-panel w3-round-large w3-card-4 w3-display-right w3-center">
		<span onclick="this.parentElement.style.display='none'" class="w3-button w3-large w3-display-topright">&times;</span>
		<img id="avatar" class="w3-circle" src="" />
		<h2 id="pseudo" class=""></h2>
		<div class="w3-opacity"><a id="pubkey" href='#' target='_blank'></a></div>
		<table class="w3-table-all w3-hoverable">
			<tr>
			  <th>Référent</th>
			  <td><span id="referent"></span></td>
			</tr>
			<tr>
			  <th>Nbre de voisins directs</th>
			  <td><span id="value" class="w3-badge"></span></td>
			</tr>
			<tr>
			  <th>Degree (nbre total de certifs)</th>
			  <td><span id="degree" class="w3-badge"></span></td>
			</tr>
			<tr>
			  <th>In-Degree (nbre total de certifs reçues)</th>
			  <td><span id="indegree" class="w3-badge"></span></td>
			</tr>
			<tr>
			  <th>Out-Degree (nbre total de certifs données)</th>
			  <td><span id="outdegree" class="w3-badge"></span></td>
			</tr>
			<tr id="communityInfo">
			  <th>Communauté</th>
			  <td><span id="communityNumber" class="w3-badge"></span></td>
			</tr>
		</table>
	</div>
	<div id="edgeInfos" class="w3-panel w3-round-large w3-card-4 w3-display-right w3-center">
		<span onclick="this.parentElement.style.display='none'" class="w3-button w3-large w3-display-topright">&times;</span>
		<div>
			<div class="w3-panel">Certification envoyée le <b id="start_cert"></b></div>
			<div class="w3-cell-row">
				<div class="w3-cell">
					<div class="w3-container w3-center">
198
						<img id="avatar_certifieur" width="100" class="w3-circle" src="" />
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
199 200 201 202 203 204 205 206
						<h5 id="avatar_certifieur_name"></h5>
						<small><a id="certifieur_link" href='#' target='_blank'>Profil Cesium</a></small>
						
					</div>
				</div>
				<div class="w3-cell w3-cell-middle"><i class="fa fa-angle-double-right fa-3x"></i><i class="fa fa-angle-double-right fa-3x"></i><i class="fa fa-angle-double-right fa-3x"></i></div>
				<div class="w3-cell">
					<div class="w3-container w3-center">
207
						<img id="avatar_certifie" width="100" class="w3-circle" src="" />
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288
						<h5 id="avatar_certifie_name"></h5>
						<small><a id="certifie_link" href='#' target='_blank'>Profil Cesium</a></small>
					</div>
				</div>
			</div>
			<div class="w3-panel">Certification valide jusqu'au <b id="end_cert"></b></div>
		</div>
	</div>
	<div id="graph-container"></div>
</main>
<!-- START SIGMA IMPORTS -->
<script src="js/sigmajs/sigma.core.js"></script>
<script src="js/sigmajs/conrad.js"></script>
<script src="js/sigmajs/utils/sigma.utils.js"></script>
<script src="js/sigmajs/utils/sigma.polyfills.js"></script>
<script src="js/sigmajs/sigma.settings.js"></script>
<script src="js/sigmajs/classes/sigma.classes.dispatcher.js"></script>
<script src="js/sigmajs/classes/sigma.classes.configurable.js"></script>
<script src="js/sigmajs/classes/sigma.classes.graph.js"></script>
<script src="js/sigmajs/classes/sigma.classes.camera.js"></script>
<script src="js/sigmajs/classes/sigma.classes.quad.js"></script>
<script src="js/sigmajs/classes/sigma.classes.edgequad.js"></script>
<script src="js/sigmajs/captors/sigma.captors.mouse.js"></script>
<script src="js/sigmajs/captors/sigma.captors.touch.js"></script>
<script src="js/sigmajs/renderers/sigma.renderers.canvas.js"></script>
<script src="js/sigmajs/renderers/sigma.renderers.webgl.js"></script>
<script src="js/sigmajs/renderers/sigma.renderers.svg.js"></script>
<script src="js/sigmajs/renderers/sigma.renderers.def.js"></script>
<script src="js/sigmajs/renderers/webgl/sigma.webgl.nodes.def.js"></script>
<script src="js/sigmajs/renderers/webgl/sigma.webgl.nodes.fast.js"></script>
<script src="js/sigmajs/renderers/webgl/sigma.webgl.edges.def.js"></script>
<script src="js/sigmajs/renderers/webgl/sigma.webgl.edges.fast.js"></script>
<script src="js/sigmajs/renderers/webgl/sigma.webgl.edges.arrow.js"></script>
<script src="js/sigmajs/renderers/canvas/sigma.canvas.labels.def.js"></script>
<script src="js/sigmajs/renderers/canvas/sigma.canvas.hovers.def.js"></script>
<script src="js/sigmajs/renderers/canvas/sigma.canvas.nodes.def.js"></script>
<script src="js/sigmajs/renderers/canvas/sigma.canvas.edges.def.js"></script>
<script src="js/sigmajs/renderers/canvas/sigma.canvas.edges.curve.js"></script>
<script src="js/sigmajs/renderers/canvas/sigma.canvas.edges.arrow.js"></script>
<script src="js/sigmajs/renderers/canvas/sigma.canvas.edges.curvedArrow.js"></script>
<script src="js/sigmajs/renderers/canvas/sigma.canvas.edgehovers.def.js"></script>
<script src="js/sigmajs/renderers/canvas/sigma.canvas.edgehovers.curve.js"></script>
<script src="js/sigmajs/renderers/canvas/sigma.canvas.edgehovers.arrow.js"></script>
<script src="js/sigmajs/renderers/canvas/sigma.canvas.edgehovers.curvedArrow.js"></script>
<script src="js/sigmajs/renderers/canvas/sigma.canvas.extremities.def.js"></script>
<script src="js/sigmajs/renderers/svg/sigma.svg.utils.js"></script>
<script src="js/sigmajs/renderers/svg/sigma.svg.nodes.def.js"></script>
<script src="js/sigmajs/renderers/svg/sigma.svg.edges.def.js"></script>
<script src="js/sigmajs/renderers/svg/sigma.svg.edges.curve.js"></script>
<script src="js/sigmajs/renderers/svg/sigma.svg.labels.def.js"></script>
<script src="js/sigmajs/renderers/svg/sigma.svg.hovers.def.js"></script>
<script src="js/sigmajs/middlewares/sigma.middlewares.rescale.js"></script>
<script src="js/sigmajs/middlewares/sigma.middlewares.copy.js"></script>
<script src="js/sigmajs/misc/sigma.misc.animation.js"></script>
<script src="js/sigmajs/misc/sigma.misc.bindEvents.js"></script>
<script src="js/sigmajs/misc/sigma.misc.bindDOMEvents.js"></script>
<script src="js/sigmajs/misc/sigma.misc.drawHovers.js"></script>
<!-- END SIGMA IMPORTS -->
<!-- Gestion du clavier -->
<script src="js/sigmajs/plugins/sigma.plugins.keyboard/sigma.plugins.keyboard.js"></script>
<!-- Affichage personnalisé des noeuds -->
<script src="js/custom/sigma.renderers.img.js"></script>
<!-- Gestion du force layout -->
<script src="js/sigmajs/plugins/sigma.plugins.animate/sigma.plugins.animate.js"></script>
<script src="js/sigmajs/plugins/sigma.layout.forceLink/worker.js"></script>
<script src="js/sigmajs/plugins/sigma.layout.forceLink/supervisor.js"></script>
<script src="js/sigmajs/plugins/sigma.parsers.json/sigma.parsers.json.js"></script>
<!-- Filters -->
<script src="js/sigmajs/plugins/sigma.plugins.filter/sigma.plugins.filter.js"></script>
<!-- Export -->
<script src="js/sigmajs/plugins/sigma.exporters.svg/sigma.exporters.svg.js"></script>
<!-- Custom functions -->
<script src="js/custom/sigma.filter.functions.js"></script>
<script src="js/custom/custom.js"></script>
<!-- Autocomplétion -->
<script src="js/dist/auto-complete.min.js"></script>
<!-- Lancement du graph -->
<script src="js/graph.js"></script>
<script src="js/main.js"></script>
</body>
</html>