|
|
@ -13,6 +13,9 @@ var tThreadsCan = $('#tThreads');
|
|
|
|
var tIdsCan= $('#tIds');
|
|
|
|
var tIdsCan= $('#tIds');
|
|
|
|
var tSubjectsCan = $('#tSubjects');
|
|
|
|
var tSubjectsCan = $('#tSubjects');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var tNmaesDetailedCan = $('#tNmaesDetailed');
|
|
|
|
|
|
|
|
var tsNmaesDetailedCan = $('#tsNmaesDetailed');
|
|
|
|
|
|
|
|
|
|
|
|
var tsflagCan = $('#tsPostsByFlag');
|
|
|
|
var tsflagCan = $('#tsPostsByFlag');
|
|
|
|
var tsflagPieCan = $('#tsPostsByFlagPie');
|
|
|
|
var tsflagPieCan = $('#tsPostsByFlagPie');
|
|
|
|
var tsNmaesCan = $('#tsNmaes');
|
|
|
|
var tsNmaesCan = $('#tsNmaes');
|
|
|
@ -47,6 +50,22 @@ function _lerpRGB(a,b,t)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function addExpander(ex, ct)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$(ex).on("click", function() {
|
|
|
|
|
|
|
|
if($(ct).is(":hidden")) {
|
|
|
|
|
|
|
|
$(ct).slideDown(500, function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(ex).text("-");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$(ct).slideUp(500, function() {
|
|
|
|
|
|
|
|
$(ex).text("+");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function lerpRGB(a,b,c,s,l)
|
|
|
|
function lerpRGB(a,b,c,s,l)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var t = s/l;
|
|
|
|
var t = s/l;
|
|
|
@ -177,6 +196,30 @@ function updateSection(gr, pfx, allTime, allTimeAverage,data=null)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
allTime.namefags["Anonymous"] = (allTime.number-(allTime.names+allTime.trips+allTime.nametrips));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var nshare = flagShare(allTime.number, allTime.namefags);
|
|
|
|
|
|
|
|
nshare.sort(function (a, b) {
|
|
|
|
|
|
|
|
return a.total < b.total ? 1 : -1;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gr.anamedpie.data.labels.length =
|
|
|
|
|
|
|
|
gr.anamedpie.data.datasets[0].data.length =
|
|
|
|
|
|
|
|
gr.anamedpie.data.datasets[0].backgroundColor.length = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!$(gr.anamedpie.options.showAnon).is(":checked")) {
|
|
|
|
|
|
|
|
for(var i in nshare)
|
|
|
|
|
|
|
|
if(nshare[i]["key"] == "Anonymous")
|
|
|
|
|
|
|
|
delete nshare[i];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
for(var i in nshare)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
gr.anamedpie.data.labels.push(nshare[i]["key"]);
|
|
|
|
|
|
|
|
gr.anamedpie.data.datasets[0].data.push(nshare[i]["total"]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gr.anamedpie.data.datasets[0].backgroundColor.push(colstr(lerpRGB(cols,colm,cole,i,nshare.length)));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gr.anamepie.data.datasets[0].data[0] = allTime.number-(allTime.names+allTime.trips+allTime.nametrips);
|
|
|
|
gr.anamepie.data.datasets[0].data[0] = allTime.number-(allTime.names+allTime.trips+allTime.nametrips);
|
|
|
|
gr.anamepie.data.datasets[0].data[1] = allTime.names;
|
|
|
|
gr.anamepie.data.datasets[0].data[1] = allTime.names;
|
|
|
@ -198,6 +241,7 @@ function updateSection(gr, pfx, allTime, allTimeAverage,data=null)
|
|
|
|
gr.aflag.update();
|
|
|
|
gr.aflag.update();
|
|
|
|
gr.aflagpie.update();
|
|
|
|
gr.aflagpie.update();
|
|
|
|
gr.anamepie.update();
|
|
|
|
gr.anamepie.update();
|
|
|
|
|
|
|
|
gr.anamedpie.update();
|
|
|
|
gr.aimagepie.update();
|
|
|
|
gr.aimagepie.update();
|
|
|
|
gr.athreadpie.update();
|
|
|
|
gr.athreadpie.update();
|
|
|
|
gr.aidspie.update();
|
|
|
|
gr.aidspie.update();
|
|
|
@ -395,6 +439,7 @@ function begin() {
|
|
|
|
maintainAspectRatio: false,
|
|
|
|
maintainAspectRatio: false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
var chartAFlagsPie = new Chart(tflagPieCan, {
|
|
|
|
var chartAFlagsPie = new Chart(tflagPieCan, {
|
|
|
|
type: "pie",
|
|
|
|
type: "pie",
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
@ -415,6 +460,27 @@ function begin() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var chartANamesDetailedPie = new Chart(tNmaesDetailedCan, {
|
|
|
|
|
|
|
|
type: "pie",
|
|
|
|
|
|
|
|
data: {
|
|
|
|
|
|
|
|
labels: ["Anonymous"],
|
|
|
|
|
|
|
|
datasets: [{
|
|
|
|
|
|
|
|
label: "Share",
|
|
|
|
|
|
|
|
backgroundColor: ["blue","green","red"],
|
|
|
|
|
|
|
|
//fillColor: ["blue", "green", "red"],
|
|
|
|
|
|
|
|
borderColor: 'rgba(255,255,255, 0.75)',
|
|
|
|
|
|
|
|
data: [1]
|
|
|
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
}, options: {
|
|
|
|
|
|
|
|
maintainAspectRatio: false,
|
|
|
|
|
|
|
|
animation: false,
|
|
|
|
|
|
|
|
legend: {
|
|
|
|
|
|
|
|
display: false
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
showAnon: '#at_idbd_showanon'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
var chartAFlags = new Chart(tflagCan, {
|
|
|
|
var chartAFlags = new Chart(tflagCan, {
|
|
|
|
type: "bar",
|
|
|
|
type: "bar",
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
@ -533,6 +599,27 @@ function begin() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var chartSNamesDetailedPie = new Chart(tsNmaesDetailedCan, {
|
|
|
|
|
|
|
|
type: "pie",
|
|
|
|
|
|
|
|
data: {
|
|
|
|
|
|
|
|
labels: ["Anonymous"],
|
|
|
|
|
|
|
|
datasets: [{
|
|
|
|
|
|
|
|
label: "Share",
|
|
|
|
|
|
|
|
backgroundColor: ["blue","green","red"],
|
|
|
|
|
|
|
|
//fillColor: ["blue", "green", "red"],
|
|
|
|
|
|
|
|
borderColor: 'rgba(255,255,255, 0.75)',
|
|
|
|
|
|
|
|
data: [1]
|
|
|
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
}, options: {
|
|
|
|
|
|
|
|
maintainAspectRatio: false,
|
|
|
|
|
|
|
|
animation: false,
|
|
|
|
|
|
|
|
legend: {
|
|
|
|
|
|
|
|
display: false
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
showAnon: '#s_idbd_showanon'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
var chartSFlags = new Chart(tsflagCan, {
|
|
|
|
var chartSFlags = new Chart(tsflagCan, {
|
|
|
|
type: "bar",
|
|
|
|
type: "bar",
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
@ -762,6 +849,7 @@ function begin() {
|
|
|
|
aflag: chartAFlags,
|
|
|
|
aflag: chartAFlags,
|
|
|
|
aflagpie: chartAFlagsPie,
|
|
|
|
aflagpie: chartAFlagsPie,
|
|
|
|
anamepie: chartsANamesPie,
|
|
|
|
anamepie: chartsANamesPie,
|
|
|
|
|
|
|
|
anamedpie: chartANamesDetailedPie,
|
|
|
|
aimagepie: chartAImagesPie,
|
|
|
|
aimagepie: chartAImagesPie,
|
|
|
|
athreadpie: chartAthreadsPie,
|
|
|
|
athreadpie: chartAthreadsPie,
|
|
|
|
aidspie: chartAIdsPie,
|
|
|
|
aidspie: chartAIdsPie,
|
|
|
@ -774,6 +862,7 @@ function begin() {
|
|
|
|
aflag: chartSFlags,
|
|
|
|
aflag: chartSFlags,
|
|
|
|
aflagpie: chartSFlagsPie,
|
|
|
|
aflagpie: chartSFlagsPie,
|
|
|
|
anamepie: chartsSNamesPie,
|
|
|
|
anamepie: chartsSNamesPie,
|
|
|
|
|
|
|
|
anamedpie: chartSNamesDetailedPie,
|
|
|
|
aimagepie: chartSImagesPie,
|
|
|
|
aimagepie: chartSImagesPie,
|
|
|
|
athreadpie: chartSthreadsPie,
|
|
|
|
athreadpie: chartSthreadsPie,
|
|
|
|
aidspie: chartSIdsPie,
|
|
|
|
aidspie: chartSIdsPie,
|
|
|
@ -822,6 +911,9 @@ function begin() {
|
|
|
|
chartAGLine.data.datasets[1].data.push(client.superBuffer[i].number/client.superBuffer[i]._cycles);
|
|
|
|
chartAGLine.data.datasets[1].data.push(client.superBuffer[i].number/client.superBuffer[i]._cycles);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(client.superBuffer[i]!==undefined)
|
|
|
|
|
|
|
|
cyTotal = client.superBuffer[i]._cycles;
|
|
|
|
|
|
|
|
|
|
|
|
/*if(client.superBuffer.length<1)
|
|
|
|
/*if(client.superBuffer.length<1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
add_new_candle(g_chartsSuper(), {_candle:{number:{o:0,c:0,h:0,l:0,t:new Date()}}}, false);
|
|
|
|
add_new_candle(g_chartsSuper(), {_candle:{number:{o:0,c:0,h:0,l:0,t:new Date()}}}, false);
|
|
|
@ -838,7 +930,7 @@ function begin() {
|
|
|
|
chartAGLine.update();
|
|
|
|
chartAGLine.update();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#at_flagshare_exp').on("click", function() {
|
|
|
|
/*$('#at_flagshare_exp').on("click", function() {
|
|
|
|
if($('#at_flagshare_container').is(":hidden")) {
|
|
|
|
if($('#at_flagshare_container').is(":hidden")) {
|
|
|
|
$('#at_flagshare_container').show(1000, function() {
|
|
|
|
$('#at_flagshare_container').show(1000, function() {
|
|
|
|
|
|
|
|
|
|
|
@ -849,9 +941,10 @@ function begin() {
|
|
|
|
$('#at_flagshare_exp').text("+");
|
|
|
|
$('#at_flagshare_exp').text("+");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});*/
|
|
|
|
|
|
|
|
addExpander('#at_flagshare_exp', '#at_flagshare_container');
|
|
|
|
|
|
|
|
|
|
|
|
$('#s_flagshare_exp').on("click", function() {
|
|
|
|
/*$('#s_flagshare_exp').on("click", function() {
|
|
|
|
if($('#s_flagshare_container').is(":hidden")) {
|
|
|
|
if($('#s_flagshare_container').is(":hidden")) {
|
|
|
|
$('#s_flagshare_container').show(1000, function() {
|
|
|
|
$('#s_flagshare_container').show(1000, function() {
|
|
|
|
|
|
|
|
|
|
|
@ -862,7 +955,13 @@ function begin() {
|
|
|
|
$('#s_flagshare_exp').text("+");
|
|
|
|
$('#s_flagshare_exp').text("+");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addExpander('#s_flagshare_exp', '#s_flagshare_container');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addExpander('#at_ident_bd_expand', '#at_idbd_share');
|
|
|
|
|
|
|
|
addExpander('#s_ident_bd_expand', '#s_idbd_share');
|
|
|
|
|
|
|
|
|
|
|
|
$('#cytb_purge').on("click", function() {
|
|
|
|
$('#cytb_purge').on("click", function() {
|
|
|
|
$('#cytb_body').empty();
|
|
|
|
$('#cytb_body').empty();
|
|
|
|