translate commandSender into English
This commit is contained in:
parent
89a1fa312c
commit
dad65159b5
7
dist/commandSender.js
vendored
7
dist/commandSender.js
vendored
|
@ -120,7 +120,7 @@ parcelRequire = (function (modules, cache, entry, globalName) {
|
||||||
})({"tYTs":[function(require,module,exports) {
|
})({"tYTs":[function(require,module,exports) {
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Command sender
|
// @name Command sender
|
||||||
// @namespace https://github.com/
|
// @namespace https://github.com/tribalwarshelp/scripts
|
||||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/commandSender.js
|
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/commandSender.js
|
||||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/commandSender.js
|
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/commandSender.js
|
||||||
// @version 0.1
|
// @version 0.1
|
||||||
|
@ -156,8 +156,7 @@ const calcMillisecondsToAttack = date => {
|
||||||
|
|
||||||
const handleStart = () => {
|
const handleStart = () => {
|
||||||
const ms = calcMillisecondsToAttack(document.querySelector('#' + INPUT_ID).value);
|
const ms = calcMillisecondsToAttack(document.querySelector('#' + INPUT_ID).value);
|
||||||
console.log(ms);
|
if (ms <= 0 || isNaN(ms)) return UI.ErrorMessage('Invalid date!');
|
||||||
if (ms <= 0 || isNaN(ms)) return UI.ErrorMessage('Wprowadzono nieprawidłowy czas!');
|
|
||||||
document.querySelector('#' + START_BUTTON_ID).disabled = true;
|
document.querySelector('#' + START_BUTTON_ID).disabled = true;
|
||||||
document.querySelector('#' + CANCEL_BUTTON_ID).disabled = false;
|
document.querySelector('#' + CANCEL_BUTTON_ID).disabled = false;
|
||||||
timeoutID = setTimeout(() => {
|
timeoutID = setTimeout(() => {
|
||||||
|
@ -174,7 +173,7 @@ const handleCancel = () => {
|
||||||
const render = () => {
|
const render = () => {
|
||||||
const container = document.createElement('div');
|
const container = document.createElement('div');
|
||||||
const label = document.createElement('label');
|
const label = document.createElement('label');
|
||||||
label.innerHTML = 'Czas dotarcia ataku:';
|
label.innerHTML = 'Attack time:';
|
||||||
label.style.marginRight = '15px';
|
label.style.marginRight = '15px';
|
||||||
container.appendChild(label);
|
container.appendChild(label);
|
||||||
const input = document.createElement('input');
|
const input = document.createElement('input');
|
||||||
|
|
2
dist/extendedPlayerProfile.js
vendored
2
dist/extendedPlayerProfile.js
vendored
|
@ -455,7 +455,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
||||||
|
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Extended Player Profile
|
// @name Extended Player Profile
|
||||||
// @namespace https://github.com/
|
// @namespace https://github.com/tribalwarshelp/scripts
|
||||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js
|
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js
|
||||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js
|
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js
|
||||||
// @version 0.5
|
// @version 0.5
|
||||||
|
|
2
dist/latestEnnoblements.js
vendored
2
dist/latestEnnoblements.js
vendored
|
@ -442,7 +442,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
||||||
|
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Latest ennoblements
|
// @name Latest ennoblements
|
||||||
// @namespace https://github.com/
|
// @namespace https://github.com/tribalwarshelp/scripts
|
||||||
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/latestEnnoblements.js
|
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/latestEnnoblements.js
|
||||||
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/latestEnnoblements.js
|
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/latestEnnoblements.js
|
||||||
// @version 0.5
|
// @version 0.5
|
||||||
|
|
|
@ -47,8 +47,7 @@ const handleStart = () => {
|
||||||
const ms = calcMillisecondsToAttack(
|
const ms = calcMillisecondsToAttack(
|
||||||
document.querySelector('#' + INPUT_ID).value
|
document.querySelector('#' + INPUT_ID).value
|
||||||
);
|
);
|
||||||
if (ms <= 0 || isNaN(ms))
|
if (ms <= 0 || isNaN(ms)) return UI.ErrorMessage('Invalid date!');
|
||||||
return UI.ErrorMessage('Wprowadzono nieprawidłowy czas!');
|
|
||||||
|
|
||||||
document.querySelector('#' + START_BUTTON_ID).disabled = true;
|
document.querySelector('#' + START_BUTTON_ID).disabled = true;
|
||||||
document.querySelector('#' + CANCEL_BUTTON_ID).disabled = false;
|
document.querySelector('#' + CANCEL_BUTTON_ID).disabled = false;
|
||||||
|
@ -67,7 +66,7 @@ const handleCancel = () => {
|
||||||
const render = () => {
|
const render = () => {
|
||||||
const container = document.createElement('div');
|
const container = document.createElement('div');
|
||||||
const label = document.createElement('label');
|
const label = document.createElement('label');
|
||||||
label.innerHTML = 'Czas dotarcia ataku:';
|
label.innerHTML = 'Attack time:';
|
||||||
label.style.marginRight = '15px';
|
label.style.marginRight = '15px';
|
||||||
container.appendChild(label);
|
container.appendChild(label);
|
||||||
const input = document.createElement('input');
|
const input = document.createElement('input');
|
||||||
|
|
Reference in New Issue
Block a user