-
Notifications
You must be signed in to change notification settings - Fork 0
/
c7k_restricted.html
144 lines (126 loc) · 4.6 KB
/
c7k_restricted.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>C7K Restricted</title>
<meta name="description" content="C7K Restricted">
<meta property="og:type" content="website">
<meta property="og:title" content="malikremgcregion.github.io">
<meta property="og:description" content="Showing you the C7K Restricted">
<meta property="og:url" content="https://malikremgcregion.github.io/c7k_restricted.html">
<meta property="og:image" content="https://malikremgcregion.github.io/assets/colored_body_top2.png">
<meta name="twitter:site" content="@C7K Restricted">
<meta name="twitter:image" content="https://malikremgcregion.github.io/assets/colored_body_top2.png">
<meta name="twitter:card" content="summary_large_image">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.10.1/bootstrap-table.min.css">
<script src="./js/sortable.min.js"></script>
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GMKFV61CZ9"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-GMKFV61CZ9');
</script>
<body>
<!-- put into a nav file -->
<nav class="navbar navbar-expand-sm bg-dark navbar-dark" id="myNavbar"></nav>
<div class="container">
<table class="table sortable text-light">
<thead class="thead-dark">
<tr>
<th scope="col">id</th>
</tr>
</thead>
<tbody id="rrgc_acc_disabled_locked">
</tbody>
</table>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.10.1/bootstrap-table.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script>
///GetMarketEligibility
var ReasonFlags = [0,1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768];
var EMarketNotAllowedReason_Enums = {
"0": "None",
"1": "TemporaryFailure",
"2": "AccountDisabled",
"4": "AccountLockedDown",
"8": "AccountLimited",
"16": "TradeBanned",
"32": "AccountNotTrusted",
"64": "SteamGuardNotEnabled",
"128": "SteamGuardOnlyRecentlyEnabled",
"256": "RecentPasswordReset",
"512": "NewPaymentMethod",
"1024": "InvalidCookie",
"2048": "UsingNewDevice",
"4096": "RecentSelfRefund",
"8192": "NewPaymentMethodCannotBeVerified",
"16384": "NoRecentPurchases",
"32768": "AcceptedWalletGift"
};
$.ajax({
url: "https://raw.githubusercontent.com/MalikRemgcRegion/MalikRemgcRegion.github.io/main/db_club7000/db/getmarketeligibility2.json",
type:"get",
dataType: 'text',
error: function(data){
//debugger;
//alert('err');
},
success:function(data) {
var data = JSON.parse( data );
var profile_restricted = [];
$.each(data, function (i) {
if(data[i].response.reason > 0 ){
var GME = GetMarketEligibility(ReasonFlags, data[i].response.reason);
if(GME[0].includes(2) || GME[0].includes(4)){
profile_restricted.push( [data[i].id, data[i].response.reason, GME] );
}
}
});
var tr = '';
for (let j = 0; j < profile_restricted.length; j++) {
profile_id = profile_restricted[j][0];
tr += '<tr><td><a href="https://malikremgcregion.github.io/?id='+profile_id+'">' + profile_id +'</a></td></tr>';
}
$('#rrgc_acc_disabled_locked').append(tr);
}
});
function GetMarketEligibility(reasonsFlags, reasonSum) {
reasonsFlags = reasonsFlags.filter(function (value) {
return value <= reasonSum;
});
reasonsFlags.sort(function (a, b) {
return b - a;
});
var result = [];
while (reasonsFlags.length > 0) {
var i;
var sum = 0;
var addedIndices = [];
for (i = 0; i < reasonsFlags.length; i++) {
if (sum + reasonsFlags[i] <= reasonSum) {
sum += reasonsFlags[i];
addedIndices.push(i);
}
}
var subset = [];
for (i = addedIndices.length - 1; i >= 0; i--) {
subset.unshift(reasonsFlags[addedIndices[i]]);
reasonsFlags.splice(addedIndices[i], 1);
}
result.push(subset);
}
return result;
}
</script>
<script>$('body').css('background-image', 'url("./assets/colored_body_top2.png")');</script>
<script src="./js/nav.js"></script>
</body>
</html>