diff --git a/dist/wikimaptotal.js b/dist/wikimaptotal.js index 9f0d502..f3e5b7d 100644 --- a/dist/wikimaptotal.js +++ b/dist/wikimaptotal.js @@ -4932,7 +4932,7 @@ var wikimap = (function (exports) { seconds = date.getUTCSeconds(), milliseconds = date.getUTCMilliseconds(); return isNaN(date) ? "Invalid Date" - : formatYear(date.getUTCFullYear(), 4) + "-" + pad(date.getUTCMonth() + 1, 2) + "-" + pad(date.getUTCDate(), 2) + : formatYear(date.getUTCFullYear()) + "-" + pad(date.getUTCMonth() + 1, 2) + "-" + pad(date.getUTCDate(), 2) + (milliseconds ? "T" + pad(hours, 2) + ":" + pad(minutes, 2) + ":" + pad(seconds, 2) + "." + pad(milliseconds, 3) + "Z" : seconds ? "T" + pad(hours, 2) + ":" + pad(minutes, 2) + ":" + pad(seconds, 2) + "Z" : minutes || hours ? "T" + pad(hours, 2) + ":" + pad(minutes, 2) + "Z" @@ -5179,6 +5179,7 @@ var wikimap = (function (exports) { node_enter.append("use") .attr("xlink:href", d => this.get_symbol(d, "default")) .attr("class", "testcolor"); + // { // for (var i=0, l=d.cats.length; id.active); + this.simulation .nodes(graph.nodes) .on("tick", ticked); @@ -5225,6 +5227,10 @@ var wikimap = (function (exports) { node .attr("transform", d => `translate(${d.x},${d.y})`); } + + // document.querySelector("#page").style.background = "purple"; + // return; + this.update_nodes(); this.update_forces(); // this.simulation.alphaTarget(0.3).restart(); @@ -5304,7 +5310,7 @@ var wikimap = (function (exports) { async load_json (source) { var data = await json(source); - + // console.log("got data!", data); // index the nodes by title, init link-arity count var index = {}; this.nodes_by_title = index; diff --git a/img/symbols.svg b/img/symbols.svg new file mode 100644 index 0000000..6ed540b --- /dev/null +++ b/img/symbols.svg @@ -0,0 +1,198 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/symhamburger.png b/img/symhamburger.png new file mode 100644 index 0000000..4ea8bab Binary files /dev/null and b/img/symhamburger.png differ diff --git a/img/symsearch.png b/img/symsearch.png new file mode 100644 index 0000000..50161d5 Binary files /dev/null and b/img/symsearch.png differ diff --git a/img/symup.png b/img/symup.png new file mode 100644 index 0000000..bf58815 Binary files /dev/null and b/img/symup.png differ diff --git a/index.html b/index.html index ea19c01..b800d84 100644 --- a/index.html +++ b/index.html @@ -1,78 +1,102 @@ - + erg - école de recherche graphique -
-
- - - -
-
- +
+ +

+        
+
+ +
+ +
@@ -88,6 +112,10 @@
+ + + diff --git a/src/forcenet.js b/src/forcenet.js index 4c2c0dc..3a0b970 100644 --- a/src/forcenet.js +++ b/src/forcenet.js @@ -128,6 +128,7 @@ export class ForceNet { node_enter.append("use") .attr("xlink:href", d => this.get_symbol(d, "default")) .attr("class", "testcolor"); + // { // for (var i=0, l=d.cats.length; id.active); + this.simulation .nodes(graph.nodes) .on("tick", ticked); @@ -174,6 +176,10 @@ export class ForceNet { node .attr("transform", d => `translate(${d.x},${d.y})`); } + + // document.querySelector("#page").style.background = "purple"; + // return; + this.update_nodes(); this.update_forces(); // this.simulation.alphaTarget(0.3).restart(); diff --git a/src/wikimapsimple.js b/src/wikimapsimple.js index c3f2d63..1839e48 100644 --- a/src/wikimapsimple.js +++ b/src/wikimapsimple.js @@ -45,7 +45,7 @@ export class SimpleMap { async load_json (source) { var data = await json(source); - + // console.log("got data!", data); // index the nodes by title, init link-arity count var index = {}; this.nodes_by_title = index; diff --git a/style.css b/style.css index baee288..1b619fc 100644 --- a/style.css +++ b/style.css @@ -1,33 +1,78 @@ -#content { - position: absolute; - left: 0; top: 0; right: 0; bottom: 0; - background: #EEE; +/* F O N T E S */ +@font-face { + font-family: "Combined"; + src: url('/typo/Combined/combined.otf'); + font-style: normal; + font-weight: normal; } -#wiki { - position: absolute; - left: 50%; - right: 0; - top: 0; - bottom: 0; -} -#wiki iframe { - width: 100%; - height: 100%; - border: none; -} -body { - margin: 0; - overflow: hidden; +@font-face { + font-family: 'combinedregular'; + src: url('/typo/Combined/web/combined.eot'); + src: url('/typo/Combined/web/combined.eot?#iefix') format('embedded-opentype'), + url('/typo/Combined/web/combined.woff2') format('woff2'), + url('/typo/Combined/web/combined.woff') format('woff'), + url('/typo/Combined/web/combined.ttf') format('truetype'), + url('/typo/Combined/web/combined.svg#combinedregular') format('svg'); + font-weight: normal; + font-style: normal; } -#controls { - position: absolute; - z-index:10; - bottom: 0; - display: none; +@font-face { + font-family: 'wremena'; + src: url('typo/Wremema/webfont/wremena_bold-webfont.woff2') format('woff2'), + url('typo/Wremema/webfont/wremena_bold-webfont.woff') format('woff'), + url('typo/Wremema/webfont/wremena_bold-webfont.ttf') format('truetype'), + url('typo/Wremema/webfont/wremena_bold-webfont.svg#wremenabold') format('svg'); + font-weight: bold; + font-style: normal; } +@font-face { + font-family: 'wremena'; + src: url('typo/Wremema/webfont/wremena_regular-webfont.woff2') format('woff2'), + url('typo/Wremema/webfont/wremena_regular-webfont.woff') format('woff'), + url('typo/Wremema/webfont/wremena_regular-webfont.ttf') format('truetype'), + url('typo/Wremema/webfont/wremena_regular-webfont.svg#wremenaregular') format('svg'); + font-weight: normal; + font-style: normal; +} + +@font-face { + font-family: 'wremena'; + src: url('typo/Wremema/webfont/wremena_light-webfont.woff2') format('woff2'), + url('typo/Wremema/webfont/wremena_light-webfont.woff') format('woff'), + url('typo/Wremema/webfont/wremena_light-webfont.ttf') format('truetype'), + url('typo/Wremema/webfont/wremena_light-webfont.svg#wremenalight') format('svg'); + font-weight: normal; + font-style: 200; +} + +@font-face { + font-family: 'Coupeur Monospace Bold'; + src: url('/typo/Coupeur/webfont/CoupeurMonospace-Bold.eot'); /* IE9 Compat Modes */ + src: url('/typo/Coupeur/webfont/CoupeurMonospace-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('/typo/Coupeur/webfont/CoupeurMonospace-Bold.woff') format('woff'), /* Modern Browsers */ + url('/typo/Coupeur/webfont/CoupeurMonospace-Bold.ttf') format('truetype'), /* Safari, Android, iOS */ + url('/typo/Coupeur/webfont/CoupeurMonospace-Bold.svg#fcf36b8f65c0f0737cd36a2be6922659') format('svg'); /* Legacy iOS */ + + font-style: normal; + font-weight: 700; +} + +@font-face { + font-family: 'Coupeur Monospace Normal'; + src: url('/typo/Coupeur/webfont/CoupeurMonospace-Normal.eot'); /* IE9 Compat Modes */ + src: url('/typo/Coupeur/webfont/CoupeurMonospace-Normal.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('/typo/Coupeur/webfont/CoupeurMonospace-Normal.woff') format('woff'), /* Modern Browsers */ + url('/typo/Coupeur/webfont/CoupeurMonospace-Normal.ttf') format('truetype'), /* Safari, Android, iOS */ + url('/typo/Coupeur/webfont/CoupeurMonospace-Normal.svg#4b219f539d302a6ffd9fd41e2da16172') format('svg'); /* Legacy iOS */ + + font-style: normal; + font-weight: 400; +} + + .links line { /*stroke: #aaa;*/ stroke: none;