Advertisement
spyfly

Untitled

Apr 25th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. <div class="element" data-title="★ Bayonet | Marble Fade (Factory New)" data-tooltip="Value: 329.53$" id="5688165062" value="32953" style="margin: 5px; padding: 5px;border: 2px solid gray; width: 110px;
  2. height: 110px;
  3. float: left;
  4. background:url(https://steamcommunity-a.akamaihd.net/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpotLu8JAllx8zJfAJP7c60mIW0kfbwNoTdn2xZ_ItwjuqTrdrz2w238ks9am_wJICXclc3ZlDT-wLvw7vqhZO8vp_AnSQ1pGB8slyqDZmn/165x80) no-repeat center center;
  5. background-color: #eb4b4b;
  6. " data-hasqtip="0" aria-describedby="qtip-0"></div>
  7. <div class="element" data-title="★ Flip Knife | Fade" data-tooltip="Value: 185.01$" id="5688865062" value="18501" style="margin: 5px; padding: 5px;border: 2px solid gray; width: 110px;
  8. height: 110px;
  9. float: left;
  10. background:url(https://steamcommunity-a.akamaihd.net/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpovbSsLQJf1f_BYQJD7eOwlYSOqPv9NLPF2DMAucMpj7HA897w2ATi_EY_Y230dY_Gc1M3N1jUqAPrxL-80J6_7pzXiSw05jfk9VU/165x80) no-repeat center center;
  11. background-color: #eb4b4b;
  12. " data-hasqtip="0" aria-describedby="qtip-0"></div>
  13. <script>
  14.  
  15. document.getElementById('5688165062').onclick = function() {
  16.  
  17. var className = document.getElementById('5688165062').className;
  18. if ( ~className.indexOf(' active') ) {
  19. this.className = className.replace(' active', '');
  20. document.getElementById(5688165062).style['background-color'] = '#eb4b4b'
  21. value = value - (parseInt(document.getElementById(5688165062).getAttribute('value')));
  22. rewritevalue(value);
  23.  
  24. } else {
  25. this.className += ' active';
  26. document.getElementById(5688165062).style['background-color'] = 'orange'
  27. value = value + (parseFloat(document.getElementById(5688165062).getAttribute('value')));
  28. rewritevalue(value);
  29.  
  30. }
  31. }
  32. document.getElementById('5688865062').onclick = function() {
  33.  
  34. var className = document.getElementById('5688865062').className;
  35. if ( ~className.indexOf(' active') ) {
  36. this.className = className.replace(' active', '');
  37. document.getElementById(5688865062).style['background-color'] = '#eb4b4b'
  38. value = value - (parseInt(document.getElementById(5688865062).getAttribute('value')));
  39. rewritevalue(value);
  40.  
  41. } else {
  42. this.className += ' active';
  43. document.getElementById(5688865062).style['background-color'] = 'orange'
  44. value = value + (parseFloat(document.getElementById(5688865062).getAttribute('value')));
  45. rewritevalue(value);
  46.  
  47. }
  48. }
  49. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement