Skip to content

Commit

Permalink
اضافه کردن باتن بروزرسانی کانفیگ برای موبایل
Browse files Browse the repository at this point in the history
  • Loading branch information
ircfspace committed Jun 9, 2023
1 parent 60f88ed commit 86ee9d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ $(document).on('keyup', '#cleanIp', function(e) {
exec();
});

$(document).on('click', '#updater', function(e) {
e.preventDefault();
exec();
});

function exec() {
let cdnip;
let provider = getCleanIp();
Expand All @@ -29,6 +34,10 @@ function exec() {
let nodes =new Array();
$("#result").addClass('hidden');
$("#errorMsg").addClass('hidden');
$('#updater').html('کمی صبر کنید ...');
setTimeout(function() {
$('#updater').html('بروزرسانی کانفیگ');
}, 1000);
if (sample_node.indexOf(vmess_pre) === 0) {
let node_data = atob(sample_node.slice(vmess_pre.length,sample_node.length))
let re = /\"add\": ?\"(.*?)\"/;
Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<meta name="theme-color" content="#ff7900" />
<script src="./assets/js/jquery.min.js"></script>
<script src="./assets/js/bootstrap.min.js"></script>
<script src="./assets/js/script.js?v1.3.3"></script>
<script src="./assets/js/script.js?v1.4"></script>
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
Expand Down Expand Up @@ -68,6 +68,7 @@ <h1>اینترنت برای همه؛ یا هیچ‌کس!</h1>
<option value="rand" selected>انتخاب آی‌پی به‌صورت رندوم</option>
<option value="normal">انتخاب آی‌پی به‌صورت دستی</option>
</select>
<div class="btn btn-block btn-default hidden-lg hidden-md" id="updater">بروزرسانی کانفیگ</div>
<input class="form-control dirLeft none" placeholder="1.1.1.1" id="cleanIp" />
<input type="hidden" id="cdnip" name="cdnip" value='["81.253.239.34","41.210.189.22","80.240.124.4","92.38.142.23","103.211.151.21","46.49.10.229","93.123.17.160","5.188.132.5","5.188.94.5","37.17.119.115","151.248.104.95","5.188.126.4","92.223.124.42","92.223.124.40","93.123.17.150","92.223.116.209","109.230.114.2","79.133.108.4","5.188.121.162","92.223.124.27","171.234.242.198","185.101.136.12","92.223.55.6","92.223.123.41","92.223.63.8","92.223.122.171","5.188.121.184","1.37.77.98","5.101.68.8","92.223.120.13","82.213.5.50","31.184.207.4","45.82.103.4","92.223.63.6","92.223.92.23","92.38.159.5","92.223.76.24","213.156.144.4","92.223.110.4","92.223.92.26","92.223.112.12","92.223.118.20","87.120.164.5","92.223.63.7","92.223.124.17","93.123.17.162","93.123.17.136","93.123.11.12","92.223.63.27","93.123.17.157","92.223.12.25","81.253.239.14","80.240.113.8","146.185.221.132","134.0.219.37","5.188.121.165","92.223.116.214","92.223.68.22","93.123.11.14","92.223.116.224","94.176.183.5","95.85.69.6","79.133.108.6","190.95.248.34","92.223.116.213","92.223.108.5","92.223.107.42","92.223.108.16","92.223.124.15","92.223.123.46","92.223.124.6","92.223.107.58","171.229.196.134","87.120.106.10","5.8.43.5","93.123.17.132","5.188.121.161","92.223.124.37","92.223.123.45","92.223.122.186","93.123.17.159","87.120.106.9","185.244.209.4","92.223.107.39","92.223.12.22","92.223.124.25","93.123.17.166","92.223.118.16","92.223.122.173","217.76.64.90","91.243.83.4","92.223.63.24","45.82.103.6","195.34.58.19","92.223.120.14","87.120.106.5","77.79.161.54","93.123.17.151","197.215.140.235","92.223.124.41","93.123.17.161","95.85.92.5","92.223.118.17","92.223.124.31","81.253.239.30","92.38.142.20","151.248.104.91","92.223.122.187","94.176.183.12","31.184.207.5","92.223.107.36","180.149.90.66","45.82.103.7","171.234.242.197","5.188.133.11","80.240.124.5","92.223.63.10","92.223.124.16","92.38.142.21","80.240.113.5","5.188.121.179","80.15.252.25","92.223.107.45","92.223.12.5","92.223.12.9","92.223.120.12","81.253.239.2","92.223.47.4","93.123.17.148","93.123.17.165","197.215.140.234","92.38.168.6","92.223.43.13","87.120.106.8","91.243.83.5","92.223.124.45","92.223.123.11","194.152.37.185","80.240.113.7","93.123.17.142","185.105.1.10","92.223.123.48","92.223.124.35","181.39.11.210","5.188.121.135","5.189.207.5","31.184.207.7","92.223.118.7","5.188.121.166","5.188.121.192","92.223.107.40","45.82.101.7","5.188.121.183","95.85.69.7","94.128.12.238","92.223.124.10","5.252.26.6","79.133.108.13","92.223.12.27","92.223.12.13","80.93.221.4","185.194.11.74","92.223.123.36","80.15.252.1","89.223.90.4","93.123.11.11","92.223.64.4","197.188.22.102","92.223.107.50","92.223.116.204","92.223.12.14","93.123.17.134","37.17.119.116","93.123.17.140","92.223.63.11","92.223.107.57","80.240.113.6","79.133.108.8","185.163.3.4","93.123.17.137","37.236.95.2","78.111.103.5","45.82.101.5","217.21.47.162","93.123.17.149","93.123.17.153","92.223.107.46","92.223.118.14","5.188.121.180","181.174.80.182","92.223.116.210","185.101.136.8","92.223.107.38","92.223.116.206","92.223.63.26","37.17.119.114","5.188.121.132","92.223.92.24","92.223.63.25","87.120.106.11","93.123.17.143","92.223.108.14","93.123.17.163","92.223.124.47","102.130.69.141","92.223.63.28","93.123.11.15","92.223.118.15","92.223.116.208","93.123.17.156","81.253.239.10","92.223.76.23","5.188.126.6","91.243.87.5","92.223.124.4","185.101.137.10","81.253.239.26","5.188.121.136","93.123.17.164","92.223.114.14","92.223.116.222","5.252.26.7","92.223.123.47","92.38.170.8","92.38.142.24","185.101.136.7","92.223.43.14","92.223.124.28","92.223.64.12","171.234.242.195","92.38.168.7","92.223.107.48","92.223.107.49","92.223.124.12","92.223.76.20","92.223.118.23","93.123.17.172","92.223.124.46","5.101.68.5","92.223.63.29","186.16.19.94","93.123.17.174","5.101.222.5","92.223.63.21","93.123.17.169","92.223.118.39","213.156.144.5","92.223.123.51","93.123.17.167","92.223.107.55","80.93.210.4","80.15.252.33","92.223.116.200","93.123.17.133","5.188.121.178","79.133.108.10","92.223.63.23","185.188.144.4","37.110.209.228","160.242.112.242","31.184.207.8","217.76.64.118","95.85.88.9","92.223.12.17","92.223.61.23","92.223.43.12","197.225.145.26","171.234.242.199","130.193.166.2","80.240.113.4","92.223.116.216","92.223.123.40","92.223.63.5","92.223.118.8","37.98.156.190","93.123.17.154","5.101.219.5","92.223.114.6","92.223.107.54","92.223.64.10","92.223.12.6","82.97.205.5","92.223.120.10","80.240.124.6","213.156.151.4","92.223.116.221","5.8.92.6","92.223.61.21","179.0.200.101","185.188.144.5","92.223.116.203","5.188.126.7","171.229.196.138","90.84.153.33","45.82.101.6","5.1.106.249","92.223.12.15","5.188.121.163","5.188.121.137","93.123.38.5","92.223.124.39","92.223.64.8","92.223.63.9","92.223.12.16","93.123.17.155","92.223.112.28","93.123.17.168","185.101.136.13","92.223.108.13","92.223.116.215","195.22.198.49","45.82.101.8","92.38.170.6","102.68.141.74","80.240.124.8","87.120.164.4","92.223.107.56","80.15.252.9","92.46.108.106","79.133.108.5","178.160.192.38","92.223.118.5","92.223.12.26","194.152.37.183","93.123.17.170","82.200.205.204","93.123.17.173","5.188.121.151","93.123.17.139","94.176.183.11","5.8.92.5","197.148.108.106","5.188.7.12","92.223.55.4","92.223.107.51","81.253.239.6","5.8.43.6","195.14.146.81","78.111.101.4","93.123.17.147","5.101.68.10","93.123.38.4","93.123.17.171","5.8.43.4","92.223.118.40","45.82.100.4","5.101.219.6","94.176.183.6","79.133.108.17","92.223.78.22","87.120.106.4","93.123.17.158","213.156.151.6","92.223.12.7","92.223.124.36","92.223.68.25","92.223.12.18","92.223.76.25","5.188.121.138","82.97.205.4","5.188.121.185","5.252.26.5","92.223.122.188","92.223.123.30","92.223.68.27","80.240.124.7","92.223.108.15","5.188.133.10","185.239.153.9","91.243.87.4","5.252.26.8","195.34.58.17","92.38.170.7","185.101.136.9","5.101.222.4","104.247.172.249","92.223.122.172","79.133.108.9","92.223.12.4","80.240.124.9","92.223.12.8","92.223.74.26","92.223.12.20","92.223.120.15","109.68.233.242","78.111.103.4","212.188.76.67","92.223.122.169","92.223.123.20","92.223.118.4","45.82.101.9","93.123.17.152","92.223.12.12","82.114.163.146","92.223.122.185","92.223.12.24","185.158.211.186","92.223.124.44","95.85.92.7","213.156.144.7","62.209.27.232","171.229.196.132","171.229.196.136","93.123.17.144","92.223.74.20","43.245.140.2","194.44.246.206","5.188.121.181","92.223.12.10","92.223.116.201","5.188.121.133","80.240.113.9","79.133.108.15","5.188.121.182","92.223.78.23","92.223.124.8","93.123.17.141","92.223.118.26","92.223.124.32","92.223.12.19","79.133.108.7","94.176.183.8","92.223.118.27","92.223.12.11","92.223.118.37","92.223.124.13","92.38.159.4","93.123.17.138","92.223.123.12","92.38.168.5","134.0.219.26","92.223.124.33","92.223.107.44","92.223.118.19","92.223.124.30","92.223.118.22","5.101.217.4","194.152.37.181","102.67.99.50","92.223.124.9","95.85.88.8","171.229.196.133","92.223.114.11","92.223.107.52","80.15.252.17","46.19.99.6","92.223.123.34","213.156.151.5","93.123.17.135","45.82.103.5","92.223.118.25","92.223.124.29","94.176.183.7","92.223.124.26","5.188.121.134","92.38.142.25","92.38.170.10","92.223.92.25","93.123.11.13","150.107.126.4","92.223.55.5","31.184.207.6","92.223.118.21","92.223.118.38","92.223.108.7","5.188.7.13","87.120.164.6","93.123.17.146","95.85.92.8","92.223.122.177","95.85.92.4","93.123.17.145","92.223.63.22","92.223.107.43","92.223.114.7","92.223.68.26","185.239.153.16","188.94.153.2","92.223.122.184","92.223.123.32","92.223.116.223","92.223.12.23","92.223.118.10","92.223.74.21","92.223.107.53","120.28.10.46","79.133.108.14","87.120.164.7","92.223.116.212","92.223.124.23","92.223.124.43","92.223.116.205","92.223.108.6","92.223.92.22","45.65.8.4","92.223.63.4","92.223.122.170","82.148.98.42","92.223.116.207","5.188.126.5","92.223.123.15","92.223.118.24","92.223.123.50","170.238.234.217","171.229.196.135","5.8.92.4","92.223.116.220","79.133.108.16","213.156.144.6","92.223.124.38","92.223.124.22","92.223.123.33","94.43.206.202","5.188.121.191","92.223.123.10","171.229.196.137","92.223.124.5","5.252.26.4","92.223.124.34","92.223.116.211","92.223.107.47","5.189.207.4"]' />
<div class="clearfix"></div>
Expand Down

0 comments on commit 86ee9d7

Please sign in to comment.