513 lines
29 KiB
HTML
513 lines
29 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<meta name="description" content="">
|
|
<meta name="author" content="Eriks Karls">
|
|
<meta name="generator" content="Jekyll v4.0.1">
|
|
<title>eBot configuration</title>
|
|
<!-- CSS only -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
|
|
<!-- JS, Popper.js, and jQuery -->
|
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="p-3 text-center">
|
|
<h1>eBot configuration file generator</h1>
|
|
<!-- <h2>-->
|
|
<!-- <span class="d-inline d-sm-none d-md-none d-lg-none d-xl-none">XS</span>-->
|
|
<!-- <span class="d-none d-sm-inline d-md-none d-lg-none d-xl-none">SM</span>-->
|
|
<!-- <span class="d-none d-sm-none d-md-inline d-lg-none d-xl-none">MD</span>-->
|
|
<!-- <span class="d-none d-sm-none d-md-none d-lg-inline d-xl-none">LG</span>-->
|
|
<!-- <span class="d-none d-sm-none d-md-none d-lg-none d-xl-inline">XL</span>-->
|
|
<!-- </h2>-->
|
|
</div>
|
|
<div class="row pt-4">
|
|
<div class="col-12">
|
|
<form>
|
|
<div class="row">
|
|
<div class="col-12 col-sm-8 col-md-6">
|
|
<h3>Login data</h3>
|
|
<div class="form-group">
|
|
<label for="email" class="hidden"></label><input type="email" class="form-control" onchange="updateJson()" id="email" placeholder="E-mail...">
|
|
<label for="password" class="hidden"></label><input type="password" class="form-control" onchange="updateJson()" id="password" disabled placeholder="Password..."
|
|
aria-describedby="passwordHelpBlock">
|
|
<small id="passwordHelpBlock" class="form-text text-muted"><strong>NEVER</strong> enter Your passwords on 3rd party sites and <strong class="text-upper">DO NOT</strong> reuse Your
|
|
password!</small>
|
|
</div>
|
|
</div>
|
|
<div class="col-6 col-sm-4 col-md-3">
|
|
<h3>Basic tasks</h3>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="work" checked>
|
|
<label class="custom-control-label" for="work">Work</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="train" checked>
|
|
<label class="custom-control-label" for="train">Train</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="ot" checked>
|
|
<label class="custom-control-label" for="ot">Work overtime</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-12 col-sm-6">
|
|
<h3>Production</h3>
|
|
<div class="form-group">
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="wam" checked>
|
|
<label class="custom-control-label" for="wam">Work as manager</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="employees">
|
|
<label class="custom-control-label" for="employees">Employ employees</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="auto_buy_raw" checked>
|
|
<label class="custom-control-label" for="auto_buy_raw">Auto buy missing RAW</label>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<h6 class="">Auto sell produced products</h6>
|
|
<div class="custom-control custom-switch custom-control-inline">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="auto_sell_frm">
|
|
<label class="custom-control-label" for="auto_sell_frm">Food Raw</label>
|
|
</div>
|
|
<div class="custom-control custom-switch custom-control-inline">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="auto_sell_food">
|
|
<label class="custom-control-label" for="auto_sell_food">Food</label>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<div class="custom-control custom-switch custom-control-inline">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="auto_sell_wrm">
|
|
<label class="custom-control-label" for="auto_sell_wrm">Weapon Raw</label>
|
|
</div>
|
|
<div class="custom-control custom-switch custom-control-inline">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="auto_sell_weapons">
|
|
<label class="custom-control-label" for="auto_sell_weapons">Weapon</label>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<div class="custom-control custom-switch custom-control-inline">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="auto_sell_hrm">
|
|
<label class="custom-control-label" for="auto_sell_hrm">House Raw</label>
|
|
</div>
|
|
<div class="custom-control custom-switch custom-control-inline">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="auto_sell_house">
|
|
<label class="custom-control-label" for="auto_sell_house">House</label>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<div class="custom-control custom-switch custom-control-inline">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="auto_sell_arm">
|
|
<label class="custom-control-label" for="auto_sell_arm">Aircraft Raw</label>
|
|
</div>
|
|
<div class="custom-control custom-switch custom-control-inline">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="auto_sell_air">
|
|
<label class="custom-control-label" for="auto_sell_air">Aircraft Weapon</label>
|
|
</div>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="auto_sell_all">
|
|
<label class="custom-control-label" for="auto_sell_all">Auto sell all (also from inventory)</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12 col-sm-6">
|
|
<h3><span style="text-decoration: line-through;">Fighting</span></h3>
|
|
<div class="form-group">
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="fight" disabled>
|
|
<label class="custom-control-label" for="fight">Fight</label>
|
|
</div>
|
|
<div class="custom-control custom-switch custom-control-inline">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="air" disabled>
|
|
<label class="custom-control-label" for="air">Air</label>
|
|
</div>
|
|
<div class="custom-control custom-switch custom-control-inline">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="ground" disabled>
|
|
<label class="custom-control-label" for="ground">Ground</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="boosters" disabled>
|
|
<label class="custom-control-label" for="boosters">Use ground boosters</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="continuous_fighting" disabled>
|
|
<label class="custom-control-label" for="continuous_fighting">Continue fighting all FF in round</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="next_energy" disabled>
|
|
<label class="custom-control-label" for="next_energy">Fight for next WC +1hp/6min if reachable by FF</label>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="form-check form-check-inline">
|
|
<input type="radio" class="form-check-input" onchange="updateJson()" id="all_in" name="fight_amount" value="all_in" disabled>
|
|
<label class="form-check-label" for="all_in">All energy</label>
|
|
</div>
|
|
<div class="form-check form-check-inline">
|
|
<input type="radio" class="form-check-input" onchange="updateJson()" id="h_energy" name="fight_amount" value="h_energy" disabled>
|
|
<label class="form-check-label" for="h_energy">1h energy</label>
|
|
</div>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="rw_def_side" disabled>
|
|
<label class="custom-control-label" for="rw_def_side">In RWs fight on right side (occupier/defender)</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="travel_to_fight" disabled>
|
|
<label class="custom-control-label" for="travel_to_fight">Travel to fight</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="epic_hunt" disabled>
|
|
<label class="custom-control-label" for="epic_hunt">Hunt epics</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="epic_hunt_ebs" disabled>
|
|
<label class="custom-control-label" for="epic_hunt_ebs">Spend <small>[all]</small> EBs in epics</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-sm-6">
|
|
<h3 class="mt-4">Misc</h3>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="renew_houses" checked>
|
|
<label class="custom-control-label" for="renew_houses">Auto renew houses</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="random_sleep" checked>
|
|
<label class="custom-control-label" for="random_sleep">Random sleep</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="buy_gold">
|
|
<label class="custom-control-label" for="buy_gold">Auto buy 10g</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="interactive" checked>
|
|
<label class="custom-control-label" for="interactive">Interactive</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="debug">
|
|
<label class="custom-control-label" for="debug">Debug</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="spin_wheel_of_fortune">
|
|
<label class="custom-control-label" for="spin_wheel_of_fortune">Auto spin 10% of cc in WheelOfFortune</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="congress">
|
|
<label class="custom-control-label" for="congress">Auto candidate for congress</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="party_president">
|
|
<label class="custom-control-label" for="party_president">Auto candidate for party presidency</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="contribute_cc">
|
|
<label class="custom-control-label" for="contribute_cc">Contribute cc to country's account (weekly)</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-sm-6">
|
|
<h3 class="mt-4">Advanced</h3>
|
|
|
|
<div class="form-group">
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="telegram">
|
|
<label class="custom-control-label" for="telegram">Notify trough Telegram</label>
|
|
</div>
|
|
|
|
<label for="telegram_chat_id">Telegram's chat ID</label>
|
|
<input type="text" class="form-control" onchange="updateJson()" id="telegram_chat_id" placeholder="Chat ID">
|
|
<label for="telegram_token">Telegram Bot token</label>
|
|
<input type="text" class="form-control" onchange="updateJson()" id="telegram_token" placeholder="864251270:AAFzZZdjspI-kIgJVk4gF3TViGFoHnf8H4o">
|
|
<small id="telegramTokenHelp" class="form-text text-muted">Only enter token if You want to use your own Telegram bot for notification sending</small>
|
|
</div>
|
|
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" onchange="updateJson()" id="proxy">
|
|
<label class="custom-control-label" for="proxy">Use proxy</label>
|
|
</div>
|
|
<label for="proxy_kind">Proxy kind</label>
|
|
<div class="form-group">
|
|
<select class="form-control custom-select" id="proxy_kind">
|
|
<option value="socks" selected>SOCKS5</option>
|
|
<option value="http">HTTP</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="proxy_host">Proxy hostname or IP address</label>
|
|
<input type="text" class="form-control" onchange="updateJson()" id="proxy_host" placeholder="localhost">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="proxy_port">Proxy port</label>
|
|
<input type="text" class="form-control" onchange="updateJson()" id="proxy_port" placeholder="8080">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="proxy_user">Proxy username (optional)</label>
|
|
<input type="text" class="form-control" onchange="updateJson()" id="proxy_user" placeholder="user">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="proxy_password">Proxy password (optional)</label>
|
|
<input type="password" class="form-control" onchange="updateJson()" id="proxy_password" placeholder="password" disabled>
|
|
<small id="proxyHelpBlock" class="form-text text-muted"><strong>NEVER</strong> enter Your passwords on 3rd party sites and <strong class="text-upper">DO NOT</strong> reuse Your password!</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<h5 class="card-title">config.json</h5>
|
|
<h6 class="card-subtitle mb-2 text-muted">Copy-paste the content below into 'config.json' file</h6>
|
|
<pre id="json-output" class="bg-light card-text"></pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
function disable(element){
|
|
element.checked = false;
|
|
element.disabled = true;
|
|
element.value = null;
|
|
}
|
|
|
|
function updateJson() {
|
|
let config = {};
|
|
let email = document.getElementById('email'); // Generated
|
|
config.email = email.value;
|
|
config.password = "";
|
|
let work = document.getElementById('work'); // Generated
|
|
config.work = work.checked;
|
|
let train = document.getElementById('train'); // Generated
|
|
config.train = train.checked;
|
|
let ot = document.getElementById('ot'); // Generated
|
|
config.ot = ot.checked;
|
|
let renew_houses = document.getElementById('renew_houses'); // Generated
|
|
config.renew_houses = renew_houses.checked;
|
|
let random_sleep = document.getElementById('random_sleep'); // Generated
|
|
config.random_sleep = random_sleep.checked;
|
|
let spin_wheel_of_fortune = document.getElementById('spin_wheel_of_fortune'); // Generated
|
|
config.spin_wheel_of_fortune = spin_wheel_of_fortune.checked;
|
|
let congress = document.getElementById('congress'); // Generated
|
|
config.congress = congress.checked;
|
|
let party_president = document.getElementById('party_president'); // Generated
|
|
config.party_president = party_president.checked;
|
|
let contribute_cc = document.getElementById('contribute_cc'); // Generated
|
|
config.contribute_cc = contribute_cc.checked ? 10000 : false;
|
|
let buy_gold = document.getElementById('buy_gold'); // Generated
|
|
config.buy_gold = buy_gold.checked;
|
|
let interactive = document.getElementById('interactive'); // Generated
|
|
config.interactive = interactive.checked;
|
|
let debug = document.getElementById('debug'); // Generated
|
|
config.debug = debug.checked;
|
|
let wam = document.getElementById('wam'); // Generated
|
|
config.wam = wam.checked;
|
|
let employees = document.getElementById('employees'); // Generated
|
|
config.employees = employees.checked;
|
|
|
|
let auto_buy_raw = document.getElementById('auto_buy_raw'); // Generated
|
|
let auto_sell_all = document.getElementById('auto_sell_all'); // Generated
|
|
let auto_sell_frm = document.getElementById('auto_sell_frm'); // Generated
|
|
let auto_sell_food = document.getElementById('auto_sell_food'); // Generated
|
|
let auto_sell_wrm = document.getElementById('auto_sell_wrm'); // Generated
|
|
let auto_sell_weapons = document.getElementById('auto_sell_weapons'); // Generated
|
|
let auto_sell_hrm = document.getElementById('auto_sell_hrm'); // Generated
|
|
let auto_sell_house = document.getElementById('auto_sell_house'); // Generated
|
|
let auto_sell_arm = document.getElementById('auto_sell_arm'); // Generated
|
|
let auto_sell_air = document.getElementById('auto_sell_air'); // Generated
|
|
if (config.wam || config.employees) {
|
|
auto_buy_raw.disabled = false;
|
|
auto_sell_all.disabled = false;
|
|
auto_sell_frm.disabled = false;
|
|
auto_sell_food.disabled = false;
|
|
auto_sell_wrm.disabled = false;
|
|
auto_sell_weapons.disabled = false;
|
|
auto_sell_hrm.disabled = false;
|
|
auto_sell_house.disabled = false;
|
|
auto_sell_arm.disabled = false;
|
|
auto_sell_air.disabled = false;
|
|
} else {
|
|
disable(auto_buy_raw);
|
|
disable(auto_sell_all);
|
|
disable(auto_sell_food);
|
|
disable(auto_sell_weapons);
|
|
disable(auto_sell_house);
|
|
disable(auto_sell_air);
|
|
disable(auto_sell_frm);
|
|
disable(auto_sell_wrm);
|
|
disable(auto_sell_hrm);
|
|
disable(auto_sell_arm);
|
|
}
|
|
config.auto_buy_raw = auto_buy_raw.checked;
|
|
config.auto_sell_all = auto_sell_all.checked;
|
|
config.auto_sell = [];
|
|
if (auto_sell_food.checked) config.auto_sell.push("food");
|
|
if (auto_sell_weapons.checked) config.auto_sell.push("weapon");
|
|
if (auto_sell_house.checked) config.auto_sell.push("house");
|
|
if (auto_sell_air.checked) config.auto_sell.push("airplane");
|
|
if (auto_sell_frm.checked) config.auto_sell.push("foodRaw");
|
|
if (auto_sell_wrm.checked) config.auto_sell.push("weaponRaw");
|
|
if (auto_sell_hrm.checked) config.auto_sell.push("houseRaw");
|
|
if (auto_sell_arm.checked) config.auto_sell.push("airplaneRaw");
|
|
|
|
let fight = document.getElementById('fight'); // Generated
|
|
config.fight = fight.checked;
|
|
let air = document.getElementById('air'); // Generated
|
|
let ground = document.getElementById('ground'); // Generated
|
|
let boosters = document.getElementById('boosters'); // Generated
|
|
let continuous_fighting = document.getElementById('continuous_fighting'); // Generated
|
|
let next_energy = document.getElementById('next_energy'); // Generated
|
|
let all_in = document.getElementById('all_in'); // Generated
|
|
let h_energy = document.getElementById('h_energy'); // Generated
|
|
let rw_def_side = document.getElementById('rw_def_side'); // Generated
|
|
let travel_to_fight = document.getElementById('travel_to_fight'); // Generated
|
|
let epic_hunt = document.getElementById('epic_hunt'); // Generated
|
|
let epic_hunt_ebs = document.getElementById('epic_hunt_ebs'); // Generated
|
|
if (config.fight) {
|
|
air.disabled = false;
|
|
ground.disabled = false;
|
|
boosters.disabled = false;
|
|
continuous_fighting.disabled = false;
|
|
next_energy.disabled = false;
|
|
all_in.disabled = false;
|
|
h_energy.disabled = false;
|
|
rw_def_side.disabled = false;
|
|
travel_to_fight.disabled = false;
|
|
epic_hunt.disabled = false;
|
|
epic_hunt_ebs.disabled = false;
|
|
if (!epic_hunt.checked) disable(epic_hunt_ebs);
|
|
} else {
|
|
disable(air);
|
|
disable(ground);
|
|
disable(boosters);
|
|
disable(continuous_fighting);
|
|
disable(next_energy);
|
|
disable(all_in);
|
|
disable(h_energy);
|
|
disable(rw_def_side);
|
|
disable(travel_to_fight);
|
|
disable(epic_hunt);
|
|
disable(epic_hunt_ebs);
|
|
}
|
|
|
|
config.air = air.checked;
|
|
config.ground = ground.checked;
|
|
config.boosters = boosters.checked;
|
|
config.continuous_fighting = continuous_fighting.checked;
|
|
config.next_energy = next_energy.checked;
|
|
config.all_in = all_in.checked;
|
|
config.rw_def_side = rw_def_side.checked;
|
|
config.travel_to_fight = travel_to_fight.checked;
|
|
config.epic_hunt = epic_hunt.checked;
|
|
config.epic_hunt_ebs = config.epic_hunt ? epic_hunt_ebs.checked : config.epic_hunt;
|
|
config.maverick = false;
|
|
|
|
// Advanced
|
|
let telegram = document.getElementById('telegram'); // Generated
|
|
config.telegram = telegram.checked;
|
|
let telegram_chat_id = document.getElementById('telegram_chat_id'); // Generated
|
|
let telegram_token = document.getElementById('telegram_token'); // Generated
|
|
if (config.telegram) {
|
|
telegram_chat_id.disabled = false;
|
|
telegram_token.disabled = false;
|
|
} else {
|
|
disable(telegram_chat_id);
|
|
disable(telegram_token);
|
|
}
|
|
config.telegram_chat_id = telegram_chat_id.value;
|
|
config.telegram_token = telegram_token.value;
|
|
|
|
let _proxy = {};
|
|
let proxy = document.getElementById('proxy'); // Generated
|
|
let proxy_kind = document.getElementById('proxy_kind'); // Generated
|
|
let proxy_host = document.getElementById('proxy_host'); // Generated
|
|
let proxy_port = document.getElementById('proxy_port'); // Generated
|
|
let proxy_user = document.getElementById('proxy_user'); // Generated
|
|
|
|
if (proxy.checked) {
|
|
proxy_kind.disabled = false;
|
|
proxy_host.disabled = false;
|
|
proxy_port.disabled = false;
|
|
proxy_user.disabled = false;
|
|
} else {
|
|
disable(proxy_kind);
|
|
disable(proxy_host);
|
|
disable(proxy_port);
|
|
disable(proxy_user);
|
|
}
|
|
_proxy.kind = proxy_kind.value;
|
|
_proxy.host = proxy_host.value;
|
|
_proxy.port = proxy_port.value;
|
|
_proxy.username = proxy_user.value;
|
|
_proxy.password = ""
|
|
if (proxy.checked) {
|
|
delete config._proxy;
|
|
config.proxy = _proxy;
|
|
} else {
|
|
delete config.proxy;
|
|
config._proxy = {
|
|
'kind': 'socks or http',
|
|
'host': 'localhost',
|
|
'port': 8080,
|
|
'username': 'optional',
|
|
'password': 'optional'
|
|
}
|
|
}
|
|
let pre = document.getElementById('json-output');
|
|
pre.textContent = JSON.stringify(config, null, 2);
|
|
}
|
|
updateJson();
|
|
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|
|
|
|
<!--
|
|
|
|
{
|
|
"email": "",
|
|
"password": "",
|
|
"work": true,
|
|
"train": true,
|
|
"ot": true,
|
|
"renew_houses": true,
|
|
"random_sleep": true,
|
|
"buy_gold": true,
|
|
"interactive": true,
|
|
"debug": true,
|
|
"wam": true,
|
|
"employees": true,
|
|
"auto_buy_raw": true,
|
|
"auto_sell_all": true,
|
|
"auto_sell": [
|
|
"food",
|
|
"weapon",
|
|
"house",
|
|
"airplane",
|
|
"foodRaw",
|
|
"weaponRaw",
|
|
"houseRaw",
|
|
"airplaneRaw"
|
|
],
|
|
"fight": true,
|
|
"air": true,
|
|
"boosters": true,
|
|
"continuous_fighting": true,
|
|
"next_energy": true,
|
|
"all_in": false,
|
|
"rw_def_side": true,
|
|
"travel_to_fight": true,
|
|
"epic_hunt": true,
|
|
"epic_hunt_ebs": true
|
|
}
|
|
|
|
-->
|