Giter VIP home page Giter VIP logo

Comments (3)

topeterk avatar topeterk commented on May 19, 2024

Hi,
sorry that my answer comes quite late.

I guess you are using the "numeric" HTML files...

You can find this expression in the HTML file's javascript code:
(list[i][1] == 0 ? 'better' : 'worse')
Since the goal is getting 0 hits by default, anything thats more is "bad" and gets red.
However, you can try to change this to that expression:
(list[i][1] <= list[i][2] ? 'better' : 'worse')

Hopefully that works for you.

Cheers

PS: Would be nice to give me feedback if that works as you would expect it.

from hitcountermanager.

chemileon avatar chemileon commented on May 19, 2024

hey,
yes, this works! but: obviously this also shows splits that are the same in green (no matter if it is splits with hits or without) because the <= .. if i change that to < only then of course it shows splits with 0/0/0 as red.. man logic is a bitch :D
last time i worked with html and javascript was about 5 years ago.. but i figured it out:
(list[i][1] < list[i][2] || list[i][1] == 0 ? 'better' : 'worse') does the trick!

thx for the help :)

from hitcountermanager.

topeterk avatar topeterk commented on May 19, 2024

Hey,

glad to hear that I was able to help you.

you're welcome :)

PS: I committed an update of the HTML files today. I would recommend to get them from the sources just to prevent problems when the HTML files are kept open for a longer period of time.

from hitcountermanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.