Comments (3)
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.
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.
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)
- Hide Hit Column possible? HOT 4
- Unicode support HOT 1
- Hotkeys only partially register HOT 3
- Ability to save each run to compare progress HOT 2
- Unsure of how to set this up and unaware of how to reach the developer HOT 3
- Attempts counter is not updated upon reset HOT 4
- Death Counter Hotkeys HOT 7
- Hit Counter Scrolling HOT 2
- Cannot install .NET framework if a later version is installed HOT 3
- HitCounterGui.html does not update when using http url from remote machine. HOT 3
- Any chance to add support for 64 bit mode for Mono version? HOT 7
- PB hits just stop on first split with hit HOT 1
- Global shortcuts (OS not supported) - Windows 10 Pro HOT 2
- What about adding a graph with you statistics through the attempts? HOT 1
- Including Distance PB HOT 2
- Dual PC HOT 1
- Linking a CSS to it's own profile HOT 2
- Need help, when i start the app this appears HOT 2
- HitCounterManager should ensure it references files relative to the application path rather than the pwd HOT 4
- Someway to add in window shortcuts to the mono version? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hitcountermanager.