Upvote Upvoted 40 Downvote Downvoted
1 2
ESEA Match Stats on stream
31
#31
1 Frags +

While we're making it pretty, can we reorganize the column order?

Something like: Points, Damage, DPM, Frags, Assists, Deaths, etc

While we're making it pretty, can we reorganize the column order?

Something like: Points, Damage, DPM, Frags, Assists, Deaths, etc
32
#32
1 Frags +

Mockup time:
https://dl.dropboxusercontent.com/u/1811521/areg23fd.png

Mockup time:
https://dl.dropboxusercontent.com/u/1811521/areg23fd.png
33
#33
0 Frags +
wareyaMockup time:
https://dl.dropboxusercontent.com/u/1811521/areg23fd.png

The tagging for the ESEA page is an absolute mess. I don't think the frustration of figuring out how to do that is worth it.

[quote=wareya]Mockup time:
https://dl.dropboxusercontent.com/u/1811521/areg23fd.png[/quote]
The tagging for the ESEA page is an absolute mess. I don't think the frustration of figuring out how to do that is worth it.
34
#34
0 Frags +
Snowy
I know why you're minus-fragging his suggestion, but it does occur to me that points and ppm stats are pretty useless indicators. Perhaps just those can go?

Can someone explain to me what's the point in the following:

Points/min
Captures/Captures blocked
Frags/min
Assists/min
Deaths/min
Doms and Revenges

Basically all the /min stats are useless bar damage. They seem like a legacy from CS stats.

And maybe combine the ubers with the drops. So 15/1 means 15 ubers with 1 drop, and have that number in red.

[quote=Snowy]

I know why you're minus-fragging his suggestion, but it does occur to me that points and ppm stats are pretty useless indicators. Perhaps just those can go?[/quote]
Can someone explain to me what's the point in the following:

Points/min
Captures/Captures blocked
Frags/min
Assists/min
Deaths/min
Doms and Revenges

Basically all the /min stats are useless bar damage. They seem like a legacy from CS stats.

And maybe combine the ubers with the drops. So 15/1 means 15 ubers with 1 drop, and have that number in red.
35
#35
8 Frags +

Implemented some requests:

http://omg.wthax.org/tftv_css_jq_3.png

CSS updated: http://pastebin.com/kY9GJinS

JQuery:

$('acronym').each
(
function (i,e){
$(e).replaceWith($(e).attr('title').replace('DaMaGe dealt', 'Damage').replace('Damage Dealt per Minute', 'Dmg Per Min').replace('Ubercharges','Ubers').replace('Capture Point Captures','Cap Points'));
}
); 

$('td:nth-child(17)').each
(
function (i,e){
if($(e).text() == '0'){$(e).css('color','#ccc');} else { $(e).css('color','red'); $(e).css('font-weight','bold');};
}
); 

$('td:nth-child(16)').each
(
function (i,e){
if($(e).text() == '0'){$(e).css('color','#ccc');}
}
);

Please don't look at my code closely, it's terrible.

Implemented some requests:

[IMG]http://omg.wthax.org/tftv_css_jq_3.png[/IMG]

CSS updated: http://pastebin.com/kY9GJinS

JQuery:[code]$('acronym').each
(
function (i,e){
$(e).replaceWith($(e).attr('title').replace('DaMaGe dealt', 'Damage').replace('Damage Dealt per Minute', 'Dmg Per Min').replace('Ubercharges','Ubers').replace('Capture Point Captures','Cap Points'));
}
);

$('td:nth-child(17)').each
(
function (i,e){
if($(e).text() == '0'){$(e).css('color','#ccc');} else { $(e).css('color','red'); $(e).css('font-weight','bold');};
}
);

$('td:nth-child(16)').each
(
function (i,e){
if($(e).text() == '0'){$(e).css('color','#ccc');}
}
);[/code]

Please don't look at my code closely, it's terrible.
36
#36
1 Frags +

@atmo, love it, much cleaner.

@atmo, love it, much cleaner.
37
#37
4 Frags +

http://omg.wthax.org/tftv_css_jq_4.png

Too complex? Just bold? Just colour highlighting?

$('td:nth-child(16), td:nth-child(17)').each(

function (i, e) {
    if ($(e).text() == '0') {
        $(e).css('color', '#ccc');
    }
});

/*jshint loopfunc: true */

var columns = $('#body-match-total1 > tr:nth-child(3) > td').length;

for (var index = 0; index <= columns; index++) {

    var colMax = 0;
    var colMaxIdx = 0;
    $('#body-match-total1 td:nth-child(' + index + '), #body-match-total2 td:nth-child(' + index + ')').each(

    function (i, e) {
        if ($.isNumeric($(e).text()) && (parseFloat($(e).text()) > parseFloat(colMax))) {
            colMax = parseFloat($(e).text());
        }
    });
    var color = 'PaleGreen';
    if (index == 10 || index == 17) /*deaths and uber drops*/
    {
        var color = 'Thistle';
    }

    if (colMax != 0) {
        $('#body-match-total1 td:nth-child(' + index + '):contains(' + colMax + '), #body-match-total2 td:nth-child(' + index + '):contains(' + colMax + ')').css('background-color', color).css('font-weight', 'bold');
    }
}

$('acronym').each(

function (i, e) {
    $(e).replaceWith($(e).attr('title').replace('DaMaGe dealt', 'Damage').replace('Damage Dealt per Minute', 'Dmg Per Min').replace('Ubercharges', 'Ubers').replace('Capture Point Captures', 'Cap Points'));
});

ps had to fake an uber drop by Nos just to show the colour highlighting

[IMG]http://omg.wthax.org/tftv_css_jq_4.png[/IMG]

Too complex? Just bold? Just colour highlighting?

[code]$('td:nth-child(16), td:nth-child(17)').each(

function (i, e) {
if ($(e).text() == '0') {
$(e).css('color', '#ccc');
}
});

/*jshint loopfunc: true */

var columns = $('#body-match-total1 > tr:nth-child(3) > td').length;

for (var index = 0; index <= columns; index++) {

var colMax = 0;
var colMaxIdx = 0;
$('#body-match-total1 td:nth-child(' + index + '), #body-match-total2 td:nth-child(' + index + ')').each(

function (i, e) {
if ($.isNumeric($(e).text()) && (parseFloat($(e).text()) > parseFloat(colMax))) {
colMax = parseFloat($(e).text());
}
});
var color = 'PaleGreen';
if (index == 10 || index == 17) /*deaths and uber drops*/
{
var color = 'Thistle';
}

if (colMax != 0) {
$('#body-match-total1 td:nth-child(' + index + '):contains(' + colMax + '), #body-match-total2 td:nth-child(' + index + '):contains(' + colMax + ')').css('background-color', color).css('font-weight', 'bold');
}
}

$('acronym').each(

function (i, e) {
$(e).replaceWith($(e).attr('title').replace('DaMaGe dealt', 'Damage').replace('Damage Dealt per Minute', 'Dmg Per Min').replace('Ubercharges', 'Ubers').replace('Capture Point Captures', 'Cap Points'));
});[/code]

ps had to fake an uber drop by Nos just to show the colour highlighting
38
#38
1 Frags +

http://pastebin.com/8CPk48b3

CSS updated to work with webkit. background alpha seems to change the brightness too, it's weird.

edit: ok locally injected jquery will not work with the plugin right now, but I've been in touch with the developer and he said he'll add it

http://pastebin.com/8CPk48b3

CSS updated to work with webkit. background alpha seems to change the brightness too, it's weird.

edit: ok locally injected jquery will not work with the plugin right now, but I've been in touch with the developer and he said he'll add it
39
#39
0 Frags +

to clarify, if you're one of the people to whom I've given a link to my site (ie lange, truktruk, comedian) you can ignore all of the code stuff in this thread. the site does all the work for you, you just need to change the match id in the url in the OBS browser source

to clarify, if you're one of the people to whom I've given a link to my site (ie lange, truktruk, comedian) you can ignore all of the code stuff in this thread. the site does all the work for you, you just need to change the match id in the url in the OBS browser source
1 2
Please sign in through STEAM to post a comment.