Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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;
- height: 110px;
- float: left;
- background:url(https://steamcommunity-a.akamaihd.net/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpotLu8JAllx8zJfAJP7c60mIW0kfbwNoTdn2xZ_ItwjuqTrdrz2w238ks9am_wJICXclc3ZlDT-wLvw7vqhZO8vp_AnSQ1pGB8slyqDZmn/165x80) no-repeat center center;
- background-color: #eb4b4b;
- " data-hasqtip="0" aria-describedby="qtip-0"></div>
- <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;
- height: 110px;
- float: left;
- background:url(https://steamcommunity-a.akamaihd.net/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpovbSsLQJf1f_BYQJD7eOwlYSOqPv9NLPF2DMAucMpj7HA897w2ATi_EY_Y230dY_Gc1M3N1jUqAPrxL-80J6_7pzXiSw05jfk9VU/165x80) no-repeat center center;
- background-color: #eb4b4b;
- " data-hasqtip="0" aria-describedby="qtip-0"></div>
- <script>
- document.getElementById('5688165062').onclick = function() {
- var className = document.getElementById('5688165062').className;
- if ( ~className.indexOf(' active') ) {
- this.className = className.replace(' active', '');
- document.getElementById(5688165062).style['background-color'] = '#eb4b4b'
- value = value - (parseInt(document.getElementById(5688165062).getAttribute('value')));
- rewritevalue(value);
- } else {
- this.className += ' active';
- document.getElementById(5688165062).style['background-color'] = 'orange'
- value = value + (parseFloat(document.getElementById(5688165062).getAttribute('value')));
- rewritevalue(value);
- }
- }
- document.getElementById('5688865062').onclick = function() {
- var className = document.getElementById('5688865062').className;
- if ( ~className.indexOf(' active') ) {
- this.className = className.replace(' active', '');
- document.getElementById(5688865062).style['background-color'] = '#eb4b4b'
- value = value - (parseInt(document.getElementById(5688865062).getAttribute('value')));
- rewritevalue(value);
- } else {
- this.className += ' active';
- document.getElementById(5688865062).style['background-color'] = 'orange'
- value = value + (parseFloat(document.getElementById(5688865062).getAttribute('value')));
- rewritevalue(value);
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement