Commit c678765a authored by cgeek's avatar cgeek

Correction "after"

parent 33555c90
{
"now":
"06/11/2017 10:04:17",
"14/11/2017 08:16:41",
"dates":
[
{
"after":
false,
"date":
"06/11/2017 15:51:42",
"14/11/2017 13:31:25",
"names":
[
{
"name":
"Azimut",
"proba":
20
},
{
"name":
"ClaraLefort",
"proba":
20
},
{
"name":
"DaphneSvanias",
"cerato",
"proba":
20
33
},
{
"name":
"HgO",
"claudia",
"proba":
20
33
},
{
"name":
"MarcLefort",
"proba":
20
}
]
},
{
"after":
false,
"date":
"06/11/2017 16:21:32",
"names":
[
{
"name":
"Sebbaz",
"lia",
"proba":
100
33
}
]
},
......@@ -61,12 +34,12 @@
"after":
false,
"date":
"06/11/2017 18:49:16",
"15/11/2017 08:24:07",
"names":
[
{
"name":
"lili",
"GuillaumeDesplatz",
"proba":
100
}
......@@ -76,14 +49,14 @@
"after":
false,
"date":
"07/11/2017 11:10:30",
"15/11/2017 19:58:06",
"names":
[
{
"name":
"Mathilde",
"resp_corp",
"proba":
100
67
}
]
},
......@@ -91,41 +64,26 @@
"after":
false,
"date":
"08/11/2017 14:58:42",
"16/11/2017 16:07:38",
"names":
[
{
"name":
"evechat",
"Azimut",
"proba":
50
33
},
{
"name":
"KatyHeteau",
"ClaraLefort",
"proba":
50
33
},
{
"name":
"renardisa",
"proba":
100
}
]
},
{
"after":
false,
"date":
"09/11/2017 00:34:47",
"names":
[
{
"name":
"Guillaume",
"HgO",
"proba":
100
33
}
]
},
......@@ -133,12 +91,12 @@
"after":
false,
"date":
"09/11/2017 13:14:56",
"16/11/2017 16:37:58",
"names":
[
{
"name":
"cerato",
"JulienM",
"proba":
100
}
......@@ -148,65 +106,50 @@
"after":
false,
"date":
"11/11/2017 15:51:42",
"18/11/2017 15:25:59",
"names":
[
{
"name":
"Azimut",
"alretailleau",
"proba":
20
40
},
{
"name":
"ClaraLefort",
"dgi",
"proba":
20
75
},
{
"name":
"DaphneSvanias",
"GerardSiegle",
"proba":
20
},
{
"name":
"HgO",
"jeromesabin",
"proba":
20
40
},
{
"name":
"MarcLefort",
"NicolasToudic",
"proba":
20
}
]
},
{
"after":
false,
"date":
"13/11/2017 14:58:42",
"names":
[
{
"name":
"evechat",
"proba":
25
},
{
"name":
"KatyHeteau",
"RemiBouteloup",
"proba":
25
100
},
{
"name":
"nicolemoreau",
"RosineDumesnil",
"proba":
50
20
}
]
},
......@@ -214,12 +157,12 @@
"after":
false,
"date":
"13/11/2017 17:48:17",
"18/11/2017 20:10:30",
"names":
[
{
"name":
"GuillaumeDesplatz",
"Mattgris",
"proba":
100
}
......@@ -229,12 +172,12 @@
"after":
false,
"date":
"15/11/2017 19:50:00",
"19/11/2017 00:50:05",
"names":
[
{
"name":
"damzaza",
"Mari-Sans-E",
"proba":
100
}
......@@ -242,77 +185,50 @@
},
{
"after":
false,
true,
"date":
"16/11/2017 15:51:42",
"19/11/2017 13:31:25",
"names":
[
{
"name":
"Azimut",
"proba":
20
},
{
"name":
"ClaraLefort",
"proba":
20
},
{
"name":
"DaphneSvanias",
"cerato",
"proba":
20
67
},
{
"name":
"HgO",
"claudia",
"proba":
20
67
},
{
"name":
"MarcLefort",
"lia",
"proba":
20
67
}
]
},
{
"after":
false,
true,
"date":
"18/11/2017 14:58:42",
"20/11/2017 19:58:06",
"names":
[
{
"name":
"evechat",
"damzaza",
"proba":
12
100
},
{
"name":
"jeromesabin",
"resp_corp",
"proba":
37
33
},
{
"name":
"nicolemoreau",
"proba":
50
}
]
},
{
"after":
false,
"date":
"20/11/2017 19:50:00",
"names":
[
{
"name":
"Veronika",
......@@ -323,115 +239,73 @@
},
{
"after":
false,
true,
"date":
"21/11/2017 15:51:42",
"21/11/2017 16:07:38",
"names":
[
{
"name":
"Azimut",
"proba":
20
67
},
{
"name":
"ClaraLefort",
"proba":
20
},
{
"name":
"DaphneSvanias",
"proba":
20
67
},
{
"name":
"HgO",
"proba":
20
},
{
"name":
"MarcLefort",
"proba":
20
67
}
]
},
{
"after":
false,
true,
"date":
"23/11/2017 14:58:42",
"23/11/2017 15:25:59",
"names":
[
{
"name":
"evechat",
"alretailleau",
"proba":
12
60
},
{
"name":
"jeromesabin",
"dgi",
"proba":
62
}
]
},
{
"after":
false,
"date":
"25/11/2017 19:50:00",
"names":
[
{
"name":
"claudia",
"proba":
100
}
]
},
{
"after":
false,
"date":
"26/11/2017 15:51:42",
"names":
[
{
"name":
"Azimut",
"proba":
20
25
},
{
"name":
"ClaraLefort",
"GerardSiegle",
"proba":
20
80
},
{
"name":
"DaphneSvanias",
"jeromesabin",
"proba":
20
60
},
{
"name":
"HgO",
"NicolasToudic",
"proba":
20
80
},
{
"name":
"MarcLefort",
"RosineDumesnil",
"proba":
20
80
}
]
},
......@@ -439,15 +313,9 @@
"after":
false,
"date":
"Never",
"Jamais",
"names":
[
{
"name":
"ama",
"proba":
100
},
{
"name":
"annelaure",
......@@ -457,12 +325,6 @@
{
"name":
"KatyHeteau",
"proba":
25
},
{
"name":
"lia",
"proba":
100
}
......
This diff is collapsed.
......@@ -110,7 +110,7 @@
for (var i = 0; i < jsonByDate.dates.length; i++) {
var entry = jsonByDate.dates[i]
var html = '<blockquote>'
html += '<h2 class="' + entry.precision + '">' + entry.date + '</h2>'
html += '<h2 class="' + (entry.after ? 'not_before_or_never' : 'at') + '">' + entry.date + '</h2>'
for (var j = 0; j < entry.names.length; j++) {
var name = entry.names[j]
var proba = name.proba
......@@ -150,7 +150,7 @@
var name = entry.names[j]
names[name.name] = names[name.name] || { name: name.name, dates: [] }
names[name.name].dates.push({
precision: entry.precision,
precision: (entry.after ? 'not_before_or_never' : 'at'),
date: entry.date,
proba: name.proba
})
......
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