Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
function getColor(num){ num = parseInt(num); if(num === 0) return "lime"; const vermelhos = [1,3,5,7,9,12,14,16,18,19,21,23,25,27,30,32,34,36]; return vermelhos.includes(num) ? "red" : "white"; } function checkHighLowSequence(guielement, roletaIndex, numsArray){ const seqLength = 5; let highCount = 0, lowCount = 0; numsArray.forEach(n=>{ if(n>=16 && n<=32){highCount++; lowCount=0;} else if(n>=0 && n<=15){lowCount++; highCount=0;} else{highCount=0; lowCount=0;} }); if(highCount>=seqLength){ /* criar notificação verde */ } if(lowCount>=seqLength){ /* criar notificação laranja */ } }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)