{"size": 18468, "ext": "js", "max_stars_repo_path": "public/customer/custom/js/notification.js", "max_stars_repo_name": "whale-guru-dev/coingrinch-ico", "max_stars_repo_stars_event_min_datetime": "2020-04-06T14:18:48.000Z", "max_stars_repo_stars_event_max_datetime": "2020-04-06T14:18:48.000Z", "max_issues_repo_path": "public/customer/custom/js/notification.js", "max_issues_repo_name": "guru-god/coingrinch-ico", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/customer/custom/js/notification.js", "max_forks_repo_name": "guru-god/coingrinch-ico", "max_forks_repo_forks_event_min_datetime": "2021-05-27T17:51:18.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-27T17:51:18.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 293.1428571429, "max_line_length": 12086, "alphanum_fraction": 0.578460039}
var live_data_time = [{"time_n":13},{"time_n":17},{"time_n":26},{"time_n":26},{"time_n":34},{"time_n":34},{"time_n":43},{"time_n":47},{"time_n":54},{"time_n":61},{"time_n":70},{"time_n":75},{"time_n":82},{"time_n":82},{"time_n":85},{"time_n":100},{"time_n":102},{"time_n":124},{"time_n":124},{"time_n":146},{"time_n":149},{"time_n":151},{"time_n":170},{"time_n":171},{"time_n":177},{"time_n":177},{"time_n":185},{"time_n":192},{"time_n":201},{"time_n":206},{"time_n":211},{"time_n":215},{"time_n":219},{"time_n":225},{"time_n":238},{"time_n":261},{"time_n":267},{"time_n":271},{"time_n":276},{"time_n":285},{"time_n":288},{"time_n":290},{"time_n":292},{"time_n":294},{"time_n":299},{"time_n":303},{"time_n":308},{"time_n":313},{"time_n":313},{"time_n":319},{"time_n":326},{"time_n":326},{"time_n":337},{"time_n":343},{"time_n":345},{"time_n":352},{"time_n":354},{"time_n":362},{"time_n":367},{"time_n":369},{"time_n":373},{"time_n":399},{"time_n":411},{"time_n":413},{"time_n":421},{"time_n":430},{"time_n":434},{"time_n":446},{"time_n":448},{"time_n":463},{"time_n":482},{"time_n":492},{"time_n":497},{"time_n":515},{"time_n":526},{"time_n":526},{"time_n":542},{"time_n":544},{"time_n":544},{"time_n":554},{"time_n":555},{"time_n":559},{"time_n":560},{"time_n":563},{"time_n":569},{"time_n":570},{"time_n":570},{"time_n":570},{"time_n":575},{"time_n":582},{"time_n":583},{"time_n":584},{"time_n":599},{"time_n":610},{"time_n":614},{"time_n":617},{"time_n":624},{"time_n":635},{"time_n":646},{"time_n":648},{"time_n":649},{"time_n":653},{"time_n":658},{"time_n":662},{"time_n":667},{"time_n":682},{"time_n":686},{"time_n":700},{"time_n":717},{"time_n":722},{"time_n":728},{"time_n":736},{"time_n":746},{"time_n":747},{"time_n":750},{"time_n":753},{"time_n":759},{"time_n":764},{"time_n":764},{"time_n":772},{"time_n":774},{"time_n":776},{"time_n":776},{"time_n":787},{"time_n":804},{"time_n":817},{"time_n":819},{"time_n":824},{"time_n":834},{"time_n":838},{"time_n":841},{"time_n":850},{"time_n":852},{"time_n":856},{"time_n":857},{"time_n":868},{"time_n":869},{"time_n":873},{"time_n":873},{"time_n":903},{"time_n":904},{"time_n":905},{"time_n":914},{"time_n":915},{"time_n":921},{"time_n":929},{"time_n":947},{"time_n":952},{"time_n":971},{"time_n":972},{"time_n":977},{"time_n":1003},{"time_n":1016},{"time_n":1016},{"time_n":1019},{"time_n":1031},{"time_n":1035},{"time_n":1042},{"time_n":1043},{"time_n":1049},{"time_n":1055},{"time_n":1058},{"time_n":1064},{"time_n":1065},{"time_n":1068},{"time_n":1068},{"time_n":1069},{"time_n":1074},{"time_n":1082},{"time_n":1085},{"time_n":1088},{"time_n":1090},{"time_n":1092},{"time_n":1108},{"time_n":1112},{"time_n":1116},{"time_n":1120},{"time_n":1124},{"time_n":1126},{"time_n":1135},{"time_n":1150},{"time_n":1151},{"time_n":1159},{"time_n":1165},{"time_n":1167},{"time_n":1171},{"time_n":1171},{"time_n":1193},{"time_n":1196},{"time_n":1198},{"time_n":1199},{"time_n":1204},{"time_n":1211},{"time_n":1215},{"time_n":1216},{"time_n":1222},{"time_n":1227},{"time_n":1229},{"time_n":1238},{"time_n":1248},{"time_n":1257},{"time_n":1258},{"time_n":1258},{"time_n":1267},{"time_n":1270},{"time_n":1272},{"time_n":1280},{"time_n":1283},{"time_n":1283},{"time_n":1285},{"time_n":1297},{"time_n":1299},{"time_n":1300},{"time_n":1302},{"time_n":1303},{"time_n":1304},{"time_n":1308},{"time_n":1311},{"time_n":1329},{"time_n":1329},{"time_n":1336},{"time_n":1338},{"time_n":1340},{"time_n":1342},{"time_n":1348},{"time_n":1362},{"time_n":1362},{"time_n":1364},{"time_n":1381},{"time_n":1392},{"time_n":1393},{"time_n":1395},{"time_n":1396},{"time_n":1404},{"time_n":1408},{"time_n":1411},{"time_n":1418},{"time_n":1427},{"time_n":1427},{"time_n":1432}];
var live_data=[{"time":"00:13","gif":"16200","country":"China"},{"time":"0:17","gif":"11100","country":"South Korea"},{"time":"0:26","gif":"8400","country":"Japan"},{"time":"0:26","gif":"8400","country":"Australia"},{"time":"0:34","gif":"16800","country":"Russia"},{"time":"0:34","gif":"13500","country":"China"},{"time":"0:43","gif":"13900","country":"South Korea"},{"time":"0:47","gif":"7600","country":"Canada"},{"time":"0:54","gif":"8200","country":"Australia"},{"time":"1:01","gif":"10600","country":"South Korea"},{"time":"1:10","gif":"8200","country":"Japan"},{"time":"1:15","gif":"17200","country":"China"},{"time":"1:22","gif":"16800","country":"Indonesia"},{"time":"1:22","gif":"17900","country":"Russia"},{"time":"1:25","gif":"11200","country":"Mexico"},{"time":"1:40","gif":"9000","country":"Indonesia"},{"time":"1:42","gif":"8500","country":"South Korea"},{"time":"2:04","gif":"9100","country":"Indonesia"},{"time":"2:04","gif":"12500","country":"China"},{"time":"2:26","gif":"14700","country":"Australia"},{"time":"2:29","gif":"17700","country":"Mexico"},{"time":"2:31","gif":"12300","country":"China"},{"time":"2:50","gif":"13600","country":"Japan"},{"time":"2:51","gif":"16000","country":"South Korea"},{"time":"2:57","gif":"16200","country":"China"},{"time":"2:57","gif":"13600","country":"Russia"},{"time":"3:05","gif":"16000","country":"Mexico"},{"time":"3:12","gif":"9900","country":"China"},{"time":"3:21","gif":"11100","country":"Indonesia"},{"time":"3:26","gif":"10300","country":"China"},{"time":"3:31","gif":"13300","country":"Australia"},{"time":"3:35","gif":"11100","country":"Canada"},{"time":"3:39","gif":"16200","country":"Indonesia"},{"time":"3:45","gif":"13700","country":"China"},{"time":"3:58","gif":"10100","country":"Japan"},{"time":"4:21","gif":"12000","country":"China"},{"time":"4:27","gif":"15100","country":"China"},{"time":"4:31","gif":"13700","country":"Indonesia"},{"time":"4:36","gif":"9200","country":"Russia"},{"time":"4:45","gif":"17700","country":"Indonesia"},{"time":"4:48","gif":"7700","country":"Russia"},{"time":"4:50","gif":"16200","country":"China"},{"time":"4:52","gif":"13400","country":"China"},{"time":"4:54","gif":"10100","country":"Australia"},{"time":"4:59","gif":"12600","country":"Indonesia"},{"time":"5:03","gif":"17800","country":"Australia"},{"time":"5:08","gif":"8000","country":"China"},{"time":"5:13","gif":"16200","country":"China"},{"time":"5:13","gif":"13300","country":"Indonesia"},{"time":"5:19","gif":"15900","country":"South Korea"},{"time":"5:26","gif":"14900","country":"Indonesia"},{"time":"5:26","gif":"15000","country":"Russia"},{"time":"5:37","gif":"10900","country":"China"},{"time":"5:43","gif":"11500","country":"Canada"},{"time":"5:45","gif":"10500","country":"Canada"},{"time":"5:52","gif":"10500","country":"China"},{"time":"5:54","gif":"7500","country":"China"},{"time":"6:02","gif":"10900","country":"Mexico"},{"time":"6:07","gif":"10600","country":"China"},{"time":"6:09","gif":"13400","country":"Russia"},{"time":"6:13","gif":"8900","country":"China"},{"time":"6:39","gif":"14300","country":"Indonesia"},{"time":"6:51","gif":"9300","country":"Indonesia"},{"time":"6:53","gif":"12500","country":"Russia"},{"time":"7:01","gif":"9500","country":"China"},{"time":"7:10","gif":"9900","country":"Canada"},{"time":"7:14","gif":"13300","country":"China"},{"time":"7:26","gif":"9800","country":"China"},{"time":"7:28","gif":"17800","country":"Indonesia"},{"time":"7:43","gif":"8500","country":"Australia"},{"time":"08:02","gif":"9600","country":"Switzerland"},{"time":"08:12","gif":"9300","country":"Russia"},{"time":"08:17","gif":"10000","country":"Italy"},{"time":"08:35","gif":"11700","country":"France"},{"time":"08:46","gif":"11500","country":"Belgium"},{"time":"08:46","gif":"10400","country":"Germany"},{"time":"09:02","gif":"8400","country":"Belarus"},{"time":"09:04","gif":"8600","country":"Germany"},{"time":"09:04","gif":"11300","country":"Poland"},{"time":"09:14","gif":"8900","country":"Turkey"},{"time":"09:15","gif":"14200","country":"Germany"},{"time":"09:19","gif":"9100","country":"Poland"},{"time":"09:20","gif":"9500","country":"Germany"},{"time":"09:23","gif":"13600","country":"Russia"},{"time":"09:29","gif":"7244","country":"United Kingdom"},{"time":"09:30","gif":"11100","country":"Russia"},{"time":"09:30","gif":"8200","country":"Austria"},{"time":"09:30","gif":"7500","country":"France"},{"time":"09:35","gif":"8500","country":"Germany"},{"time":"09:42","gif":"7503","country":"Belgium"},{"time":"09:43","gif":"7900","country":"Germany"},{"time":"09:44","gif":"9800","country":"Switzerland"},{"time":"09:59","gif":"11600","country":"Spain"},{"time":"10:10","gif":"8900","country":"Germany"},{"time":"10:14","gif":"10800","country":"Italy"},{"time":"10:17","gif":"11000","country":"France"},{"time":"10:24","gif":"8200","country":"Germany"},{"time":"10:35","gif":"7500","country":"France"},{"time":"10:46","gif":"14200","country":"France"},{"time":"10:48","gif":"7777","country":"Belgium"},{"time":"10:49","gif":"14400","country":"Germany"},{"time":"10:53","gif":"7500","country":"Russia"},{"time":"10:58","gif":"9400","country":"Germany"},{"time":"11:02","gif":"10200","country":"France"},{"time":"11:07","gif":"8954","country":"Norway"},{"time":"11:22","gif":"7507","country":"Germany"},{"time":"11:26","gif":"13100","country":"Poland"},{"time":"11:40","gif":"9400","country":"Germany"},{"time":"11:57","gif":"13230","country":"France"},{"time":"12:02","gif":"11500","country":"Estonia"},{"time":"12:08","gif":"9300","country":"France"},{"time":"12:16","gif":"26000","country":"Russia"},{"time":"12:26","gif":"7810","country":"Italy"},{"time":"12:27","gif":"8100","country":"France"},{"time":"12:30","gif":"13700","country":"United Kingdom"},{"time":"12:33","gif":"13500","country":"Germany"},{"time":"12:39","gif":"13400","country":"France"},{"time":"12:44","gif":"14600","country":"Germany"},{"time":"12:44","gif":"8100","country":"Austria"},{"time":"12:52","gif":"12900","country":"Norway"},{"time":"12:54","gif":"9100","country":"Germany"},{"time":"12:56","gif":"13500","country":"Netherlands"},{"time":"12:56","gif":"10800","country":"Spain"},{"time":"13:07","gif":"14200","country":"Germany"},{"time":"13:24","gif":"11500","country":"Germany"},{"time":"13:37","gif":"8000","country":"Russia"},{"time":"13:39","gif":"7900","country":"Germany"},{"time":"13:44","gif":"12600","country":"France"},{"time":"13:54","gif":"13100","country":"Germany"},{"time":"13:58","gif":"9100","country":"Russia"},{"time":"14:01","gif":"11400","country":"France"},{"time":"14:10","gif":"8900","country":"United Kingdom"},{"time":"14:12","gif":"9400","country":"Italy"},{"time":"14:16","gif":"12200","country":"Germany"},{"time":"14:17","gif":"11100","country":"Monaco"},{"time":"14:28","gif":"14000","country":"France"},{"time":"14:29","gif":"8500","country":"Germany"},{"time":"14:33","gif":"14600","country":"Russia"},{"time":"14:33","gif":"13000","country":"Norway"},{"time":"15:03","gif":"14900","country":"Belgium"},{"time":"15:04","gif":"11200","country":"Russia"},{"time":"15:05","gif":"12400","country":"Switzerland"},{"time":"15:14","gif":"11500","country":"Spain"},{"time":"15:15","gif":"14700","country":"France"},{"time":"15:21","gif":"8200","country":"Austria"},{"time":"15:29","gif":"11300","country":"Germany"},{"time":"15:47","gif":"11800","country":"Russia"},{"time":"15:52","gif":"11900","country":"France"},{"time":"16:11","gif":"10500","country":"Germany"},{"time":"16:12","gif":"9700","country":"France"},{"time":"16:17","gif":"12200","country":"Russia"},{"time":"16:43","gif":"14300","country":"United Kingdom"},{"time":"16:56","gif":"11400","country":"Germany"},{"time":"16:56","gif":"12100","country":"Belarus"},{"time":"16:59","gif":"9900","country":"Germany"},{"time":"17:11","gif":"12300","country":"Turkey"},{"time":"17:15","gif":"12300","country":"France"},{"time":"17:22","gif":"9400","country":"Germany"},{"time":"17:23","gif":"11100","country":"United Kingdom"},{"time":"17:29","gif":"8600","country":"France"},{"time":"17:35","gif":"10200","country":"Italy"},{"time":"17:38","gif":"12600","country":"Russia"},{"time":"17:44","gif":"8100","country":"France"},{"time":"17:45","gif":"13500","country":"Russia"},{"time":"17:48","gif":"14600","country":"Germany"},{"time":"17:48","gif":"13700","country":"France"},{"time":"17:49","gif":"14600","country":"Russia"},{"time":"17:54","gif":"13600","country":"Norway"},{"time":"18:02","gif":"11800","country":"Belgium"},{"time":"18:05","gif":"11200","country":"Russia"},{"time":"18:08","gif":"9600","country":"Germany"},{"time":"18:10","gif":"10000","country":"France"},{"time":"18:12","gif":"10000","country":"Monaco"},{"time":"18:28","gif":"13200","country":"Estonia"},{"time":"18:32","gif":"11500","country":"Germany"},{"time":"18:36","gif":"11200","country":"Russia"},{"time":"18:40","gif":"13200","country":"Belarus"},{"time":"18:44","gif":"9600","country":"Germany"},{"time":"18:46","gif":"11800","country":"France"},{"time":"18:55","gif":"8300","country":"Russia"},{"time":"19:10","gif":"9600","country":"Germany"},{"time":"19:11","gif":"11400","country":"United Kingdom"},{"time":"19:19","gif":"7800","country":"Belarus"},{"time":"19:25","gif":"10500","country":"Estonia"},{"time":"19:27","gif":"9800","country":"United Kingdom"},{"time":"19:31","gif":"14100","country":"Germany"},{"time":"19:31","gif":"10500","country":"Italy"},{"time":"19:53","gif":"8500","country":"Austria"},{"time":"19:56","gif":"14800","country":"Russia"},{"time":"19:58","gif":"13100","country":"Germany"},{"time":"19:59","gif":"13400","country":"France"},{"time":"20:04","gif":"10200","country":"Russia"},{"time":"20:11","gif":"8200","country":"Germany"},{"time":"20:15","gif":"13800","country":"France"},{"time":"20:16","gif":"8200","country":"Denmark"},{"time":"20:22","gif":"14800","country":"France"},{"time":"20:27","gif":"14400","country":"Norway"},{"time":"20:29","gif":"13000","country":"Spain"},{"time":"20:38","gif":"7500","country":"Germany"},{"time":"20:48","gif":"11800","country":"France"},{"time":"20:57","gif":"8100","country":"Germany"},{"time":"20:58","gif":"13800","country":"Russia"},{"time":"20:58","gif":"8300","country":"Norway"},{"time":"21:07","gif":"11300","country":"Russia"},{"time":"21:10","gif":"14800","country":"Germany"},{"time":"21:12","gif":"10000","country":"United Kingdom"},{"time":"21:20","gif":"14500","country":"France"},{"time":"21:23","gif":"9300","country":"Germany"},{"time":"21:23","gif":"8800","country":"France"},{"time":"21:25","gif":"9000","country":"Russia"},{"time":"21:37","gif":"11500","country":"Denmark"},{"time":"21:39","gif":"13500","country":"Russia"},{"time":"21:40","gif":"14300","country":"United Kingdom"},{"time":"21:42","gif":"9400","country":"Germany"},{"time":"21:43","gif":"11400","country":"Belgium"},{"time":"21:44","gif":"7600","country":"France"},{"time":"21:48","gif":"14400","country":"Russia"},{"time":"21:51","gif":"14400","country":"Germany"},{"time":"22:09","gif":"11500","country":"France"},{"time":"22:09","gif":"14700","country":"Germany"},{"time":"22:16","gif":"10300","country":"Norway"},{"time":"22:18","gif":"13300","country":"Netherlands"},{"time":"22:20","gif":"11200","country":"France"},{"time":"22:22","gif":"14100","country":"United Kingdom"},{"time":"22:28","gif":"10400","country":"Turkey"},{"time":"22:42","gif":"10100","country":"France"},{"time":"22:42","gif":"8600","country":"Norway"},{"time":"22:44","gif":"13500","country":"Estonia"},{"time":"23:01","gif":"7900","country":"Italy"},{"time":"23:12","gif":"14000","country":"France"},{"time":"23:13","gif":"13500","country":"Germany"},{"time":"23:15","gif":"8800","country":"Monaco"},{"time":"23:16","gif":"13400","country":"France"},{"time":"23:24","gif":"8400","country":"Germany"},{"time":"23:28","gif":"9500","country":"Germany"},{"time":"23:31","gif":"10200","country":"Russia"},{"time":"23:38","gif":"9600","country":"Norway"},{"time":"23:47","gif":"9900","country":"Austria"},{"time":"23:47","gif":"10500","country":"France"},{"time":"23:52","gif":"10100","country":"Germany"}]
var time= moment.utc();
var time_check=time.hours() * 60 + time.minutes();

live_data_time.push({"time_n":time_check});
live_data_time.sort(function(a,b) {return (a.time_n > b.time_n) ? 1 : ((b.time_n > a.time_n) ? -1 : 0);} ); 

var index = live_data_time.findIndex(x => x.time_n==time_check);
moment.tz.add([
    'America/Los_Angeles|PST PDT|80 70|0101|1Lzm0 1zb0 Op0',
    'America/New_York|EST EDT|50 40|0101|1Lz50 1zb0 Op0'
]);
//fallback
var live_txs = [
            {"time":"4","gif":"8400","country":"Korea"},
            {"time":"9","gif":"7500","country":"India"},
            {"time":"17","gif":"8000","country":"Korea"},
            {"time":"19","gif":"7250","country":"China"},
            {"time":"28","gif":"8900","country":"Russia"},
            {"time":"37","gif":"19300","country":"Korea"},
            {"time":"44","gif":"7500","country":"Russia"},
            {"time":"50","gif":"11050","country":"Australia"},
            {"time":"52","gif":"9400","country":"Poland"},
            {"time":"80","gif":"8310","country":"Hungary"},
            {"time":"85","gif":"7555","country":"Russia"},
            {"time":"121","gif":"13520","country":"Austria"},
            {"time":"128","gif":"8510","country":"Canada"},
            {"time":"133","gif":"8033","country":"Thailand"},
            {"time":"147","gif":"7800","country":"Australia"}];

// live notifications: begin
function show_live_tx($txs,$live_data_time,$live_data,$index) {

    alertify.set('notifier', 'position', 'bottom-left');
    $delay = 7000;
    
    for (var i = 0; i <10; i++) {

                
        setTimeout(function() {
                alertify.dismissAll();
                $index--;
                var time= moment.utc();
                var date= time.date();
                var live_time= $live_data[$index]["time"];
                var month = time.month()+1;
                var cur_time= "2018-0"+month+"-"+date+" "+live_time; 
                
                var gif_amount = parseInt($live_data[$index]['gif']);
                if (gif_amount < 7500){gif_amount = 7500;}
                var notifyMessage = 'Someone from <strong>' + $live_data[$index]['country'] + '</strong><br> bought <span class="value">' + gif_amount + ' GRT Tokens</span> ';
                notifyMessage += '<div class="date">' + moment.tz(cur_time,"YYYY-M-D H:mm","America/New_York").fromNow() + '</div>';
                notifyMessage += '<a href="javascript:;" class="disable_live_tx_button" onclick="disable_live_tx()"><i class="fa fa-times"></i></a>';
                var notification = alertify.notify(notifyMessage, '', 10);


        }, $delay);

        $delay = $delay + 32000;

    }
    };