From 91fe3a77acdc042195d0b4274b65d0f54ac2f0c9 Mon Sep 17 00:00:00 2001 From: Igor Kuzmenko Date: Tue, 18 Jul 2017 14:25:35 +0200 Subject: [PATCH] Remove not used js --- js/main.js | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/js/main.js b/js/main.js index df38fb41..fa4afbf4 100644 --- a/js/main.js +++ b/js/main.js @@ -433,29 +433,6 @@ function walletScoreListener(e) { onTouchClick(e, init); } -function walletDistributionListener(os, platform) { - window.location.hash = "!platform=" + platform + "&os=" + os; - var osContainers = document.querySelectorAll('.wallet-os-container'); - var osButtons = document.querySelectorAll('.wallet-os-btn'); - var selected = document.getElementById(os); - var button = document.getElementById(os + '-btn'); - osContainers.forEach(function(el) { addClass(el, 'hidden'); }); - osButtons.forEach(function(el) { removeClass(el, 'active'); }); - removeClass(selected, 'hidden'); - addClass(button, 'active'); -} - -(function() { - var hash = window.location.hash; - if (hash.indexOf('!') > -1 && hash.indexOf('platform') > -1 && hash.indexOf('os') > -1) { - var platform = hash.split('&')[0].split('=')[1]; - var os = hash.split('&')[1].split('=')[1]; - setTimeout(function() { - walletDistributionListener(os, platform); - }, 0); - } -})(); - function walletShowPlatform(platform) { // Show wallets for given platform in the menu. var t = null,