Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $.getJSON('/fetchTicker', function (data) {
- $.each(data.result, function () {
- $("#marqueecontent").append("<span"
- if (this['scoreChange'] >= 0){
- "style='color:#66FF13'>" + this['playerName']
- + " + " + this['scoreChange'] + " % " + " ▲ ";
- }else(this['scoreChange'] < 0){
- "style='color:#FF2020'>" + this['playerName']
- + this['scoreChange'] + " % " + " ▼ ";
- }
- "❘ </span>"
- );
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement