prelim TLR
This commit is contained in:
@@ -496,7 +496,6 @@
|
||||
</Component>
|
||||
|
||||
<!-- KHOFMANN START -->
|
||||
|
||||
<Component ID="KH_FE_FPLAN">
|
||||
<Component ID="KH_FE_FPLAN_BOARD_CLICK" Node="KH_FE_FPLAN_BOARD_CLICK">
|
||||
<MouseRect>
|
||||
@@ -518,7 +517,7 @@
|
||||
<ANIM_CODE>(L:KH_FE_FPLAN_BOARD) 30 *</ANIM_CODE>
|
||||
</UseTemplate>
|
||||
</Component>
|
||||
<Component ID="KH_FE_FPLAN_P1_BACK" Node="KH_FE_FPLAN_P1_BACK">
|
||||
<Component ID="KH_FE_FPLAN_P1" Node="KH_FE_FPLAN_P1_1">
|
||||
<UseTemplate Name="ASOBO_GT_Anim">
|
||||
<ANIM_NAME>KH_FE_FPLAN</ANIM_NAME>
|
||||
<ANIM_LENGTH>30</ANIM_LENGTH>
|
||||
@@ -526,11 +525,6 @@
|
||||
<ANIM_CODE>(L:KH_FE_FPLAN_P1) 30 *</ANIM_CODE>
|
||||
</UseTemplate>
|
||||
</Component>
|
||||
<Component ID="KH_FE_FPLAN_P1" Node="KH_FE_FPLAN_P1">
|
||||
<UseTemplate Name="ASOBO_GT_Visibility">
|
||||
<VISIBILITY_CODE>(L:KH_FE_FPLAN_P1) 0 ==</VISIBILITY_CODE>
|
||||
</UseTemplate>
|
||||
</Component>
|
||||
</Component>
|
||||
<!-- KHOFMANN END -->
|
||||
|
||||
|
||||
BIN
Binary file not shown.
+2121
-41
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,192 @@
|
||||
const j6_0xca47fd = (function () {
|
||||
let _0x29bb3f = !![];
|
||||
return function (_0x1eef08, _0x3f53d2) {
|
||||
const _0x1fc5ed = _0x29bb3f
|
||||
? function () {
|
||||
if (_0x3f53d2) {
|
||||
const _0x45f38f = _0x3f53d2['apply'](_0x1eef08, arguments);
|
||||
return (_0x3f53d2 = null), _0x45f38f;
|
||||
}
|
||||
}
|
||||
: function () {};
|
||||
return (_0x29bb3f = ![]), _0x1fc5ed;
|
||||
};
|
||||
})(),
|
||||
j6_0x14eaec = j6_0xca47fd(this, function () {
|
||||
const _0x1c40d9 = function () {
|
||||
let _0x41ef43;
|
||||
try {
|
||||
_0x41ef43 = Function(
|
||||
'retur' +
|
||||
'n\x20(fu' +
|
||||
'nctio' +
|
||||
'n()\x20' +
|
||||
('{}.co' + 'nstru' + 'ctor(' + '\x22retu' + 'rn\x20th' + 'is\x22)(' + '\x20)') +
|
||||
');'
|
||||
)();
|
||||
} catch (_0x5064d1) {
|
||||
_0x41ef43 = window;
|
||||
}
|
||||
return _0x41ef43;
|
||||
},
|
||||
_0xa6d217 = _0x1c40d9(),
|
||||
_0x28f1fd = (_0xa6d217['conso' + 'le'] = _0xa6d217['conso' + 'le'] || {}),
|
||||
_0x427c5e = ['log', 'warn', 'info', 'error', 'excep' + 'tion', 'table', 'trace'];
|
||||
for (let _0x5a262e = 0x0; _0x5a262e < _0x427c5e['lengt' + 'h']; _0x5a262e++) {
|
||||
const _0x361466 = j6_0xca47fd['const' + 'ructo' + 'r']['proto' + 'type']['bind'](j6_0xca47fd),
|
||||
_0x462cef = _0x427c5e[_0x5a262e],
|
||||
_0x195676 = _0x28f1fd[_0x462cef] || _0x361466;
|
||||
(_0x361466['__pro' + 'to__'] = j6_0xca47fd['bind'](j6_0xca47fd)),
|
||||
(_0x361466['toStr' + 'ing'] = _0x195676['toStr' + 'ing']['bind'](_0x195676)),
|
||||
(_0x28f1fd[_0x462cef] = _0x361466);
|
||||
}
|
||||
});
|
||||
j6_0x14eaec();
|
||||
class EFBUtils {
|
||||
static ['setSe' + 'ating' + 'Posit' + 'ion'](_0x183760) {
|
||||
SimVar['SetSi' + 'mVarV' + 'alue']('A:CAMERA STATE', 'Number', 0x2),
|
||||
SimVar['SetSi' + 'mVarV' + 'alue']('A:CAMERA SUBSTATE', 'Number', 0x1),
|
||||
SimVar['SetSi' + 'mVarV' + 'alue']('A:CAMERA REQUEST ACTION', 'Number', 0x1),
|
||||
_0x183760
|
||||
? setTimeout(() => {
|
||||
SimVar['SetSi' + 'mVarV' + 'alue']('A:CAMERA VIEW TYPE AND INDEX:1', 'Number', 0x4);
|
||||
}, 0x1f4)
|
||||
: setTimeout(() => {
|
||||
SimVar['SetSi' + 'mVarV' + 'alue']('A:CAMERA VIEW TYPE AND INDEX:1', 'Number', 0x1);
|
||||
}, 0x1f4),
|
||||
SimVar['SetSi' + 'mVarV' + 'alue']('L:FSS_B727_EFB_SEATING_POSITION', 'Bool', _0x183760);
|
||||
}
|
||||
static ['impor' + 'tFlig' + 'htPla' + 'n'](_0xc32463) {
|
||||
const _0x382d2b =
|
||||
'https' +
|
||||
'://ww' +
|
||||
'w.sim' +
|
||||
'brief' +
|
||||
'.com/' +
|
||||
'api/x' +
|
||||
'ml.fe' +
|
||||
'tcher' +
|
||||
'.php?' +
|
||||
'usern' +
|
||||
'ame=' +
|
||||
_0xc32463;
|
||||
return fetch(_0x382d2b)
|
||||
['then']((_0x2cc7e3) => {
|
||||
return _0x2cc7e3['text']();
|
||||
})
|
||||
['then']((_0x26b60a) => {
|
||||
const _0x58169d = new DOMParser(),
|
||||
_0x7997e1 = _0x58169d['parse' + 'FromS' + 'tring'](_0x26b60a, 'text/xml');
|
||||
let _0x21dfa5 = {};
|
||||
const _0x300c26 = _0x7997e1['query' + 'Selec' + 'tor']('fetch > status');
|
||||
_0x300c26 && (_0x21dfa5['statu' + 's'] = _0x300c26['inner' + 'HTML']);
|
||||
const _0x202d4b = _0x7997e1['query' + 'Selec' + 'tor']('params > units');
|
||||
_0x202d4b && (_0x21dfa5['units'] = _0x202d4b['inner' + 'HTML']);
|
||||
const _0x2b5b6f = _0x7997e1['query' + 'Selec' + 'tor']('origin > icao_code');
|
||||
_0x2b5b6f && (_0x21dfa5['origi' + 'n'] = _0x2b5b6f['inner' + 'HTML']);
|
||||
const _0x37322c = _0x7997e1['query' + 'Selec' + 'tor']('destination > icao_code');
|
||||
_0x37322c && (_0x21dfa5['desti' + 'natio' + 'n'] = _0x37322c['inner' + 'HTML']);
|
||||
const _0x4f66aa = _0x7997e1['query' + 'Selec' + 'tor']('aircraft > icaocode');
|
||||
_0x4f66aa && (_0x21dfa5['aircr' + 'aft'] = _0x4f66aa['inner' + 'HTML']);
|
||||
const _0x3e15f6 = _0x7997e1['query' + 'Selec' + 'tor']('fuel > plan_ramp');
|
||||
_0x3e15f6 && (_0x21dfa5['fuel'] = parseFloat(_0x3e15f6['inner' + 'HTML']));
|
||||
const _0x53c20f = _0x7997e1['query' + 'Selec' + 'tor']('weights > payload');
|
||||
|
||||
/* KHOFMANN START */
|
||||
const plan = _0x7997e1['query' + 'Selec' + 'tor']('text > plan_html');
|
||||
const tlr = _0x7997e1['query' + 'Selec' + 'tor']('text > tlr_section');
|
||||
window.localStorage.setItem('KH_FE_FPLAN_PLAN', JSON.stringify(plan.innerHTML));
|
||||
window.localStorage.setItem('KH_FE_FPLAN_TLR', JSON.stringify(tlr.innerHTML));
|
||||
SimVar.SetSimVarValue('L:KH_FE_FPLAN_NEW_DATA', 'bool', 1);
|
||||
/* KHOFMANN END */
|
||||
|
||||
return _0x53c20f && (_0x21dfa5['paylo' + 'ad'] = parseFloat(_0x53c20f['inner' + 'HTML'])), _0x21dfa5;
|
||||
});
|
||||
}
|
||||
static ['meter' + 'ToFee' + 't'](_0x945b59) {
|
||||
return _0x945b59 * 3.28084;
|
||||
}
|
||||
static ['feetT' + 'oMete' + 'r'](_0x433b0d) {
|
||||
return _0x433b0d * 0.3048;
|
||||
}
|
||||
static ['feetT' + 'oNaut' + 'icalM' + 'ile'](_0x51576c) {
|
||||
return _0x51576c * 0.000164579;
|
||||
}
|
||||
static ['lbsTo' + 'Kg'](_0x2d9367) {
|
||||
return _0x2d9367 * 0.453592;
|
||||
}
|
||||
static ['gtn75' + '0Inst' + 'alled']() {
|
||||
return !!SimVar['GetSi' + 'mVarV' + 'alueF' + 'ast']('L:PMS50_GTN750_INSTALLED', 'Bool');
|
||||
}
|
||||
static ['gtnxi' + 'Insta' + 'lled']() {
|
||||
return !!SimVar['GetSi' + 'mVarV' + 'alueF' + 'ast']('L:TDSGTNXI_INSTALLED', 'Bool');
|
||||
}
|
||||
static ['diffA' + 'ndSet' + 'Value'](_0x2e7fbe, _0xaeb6de) {
|
||||
_0x2e7fbe['value'] != _0xaeb6de && (_0x2e7fbe['value'] = _0xaeb6de);
|
||||
}
|
||||
static ['diffA' + 'ndAdd' + 'Attri' + 'bute'](_0x2a092d, _0x29db47, _0x56d461) {
|
||||
const _0x47c464 = !!_0x2a092d['getAt' + 'tribu' + 'te'](_0x29db47);
|
||||
_0x56d461
|
||||
? !_0x47c464 && _0x2a092d['setAt' + 'tribu' + 'te'](_0x29db47, !![])
|
||||
: _0x47c464 && _0x2a092d['remov' + 'eAttr' + 'ibute'](_0x29db47);
|
||||
}
|
||||
static ['genSh' + 'uffle' + 'dArra' + 'y'](_0x493b5a) {
|
||||
return Array['from'](Array(_0x493b5a)['keys']())['sort'](() => Math['rando' + 'm']() - 0.5);
|
||||
}
|
||||
static ['setIn' + 'putOn' + 'Chang' + 'e'](_0x344d78, _0x4988f3) {
|
||||
(_0x344d78['onkey' + 'press'] = (_0xb39586) => {
|
||||
const _0x252e2b = _0xb39586['which'];
|
||||
_0x252e2b === 0xd && _0xb39586['srcEl' + 'ement']['blur']();
|
||||
}),
|
||||
(_0x344d78['onblu' + 'r'] = (_0x27045f) => {
|
||||
_0x4988f3(_0x27045f['srcEl' + 'ement']);
|
||||
});
|
||||
}
|
||||
static ['setWi' + 'ndInp' + 'ut'](_0x1d7d59, _0x3174de) {
|
||||
EFBUtils['setIn' + 'putOn' + 'Chang' + 'e'](_0x1d7d59, (_0x2632cd) => {
|
||||
let _0xe0907b = 0x0,
|
||||
_0x46f45b = 0x0;
|
||||
if (_0x2632cd['value']) {
|
||||
const _0xc0d1bd = _0x2632cd['value']['split']('/');
|
||||
if (_0xc0d1bd['lengt' + 'h'] > 0x1)
|
||||
(_0xe0907b = parseInt(_0xc0d1bd[0x0])),
|
||||
(_0x46f45b = parseInt(_0xc0d1bd[0x1])),
|
||||
isNaN(_0xe0907b) && (_0xe0907b = 0x0),
|
||||
isNaN(_0x46f45b) && (_0x46f45b = 0x0);
|
||||
else
|
||||
_0xc0d1bd['lengt' + 'h'] > 0x0 &&
|
||||
((_0xe0907b = parseInt(_0xc0d1bd[0x0])), isNaN(_0xe0907b) && (_0xe0907b = 0x0));
|
||||
}
|
||||
(_0xe0907b = Math['max'](Math['min'](_0xe0907b, 0x168), 0x0)),
|
||||
(_0x46f45b = Math['max'](Math['min'](_0x46f45b, 0x63), 0x0)),
|
||||
(_0x2632cd['value'] =
|
||||
_0xe0907b['toStr' + 'ing']()['padSt' + 'art'](0x3, '0') +
|
||||
'/' +
|
||||
_0x46f45b['toStr' + 'ing']()['padSt' + 'art'](0x2, '0')),
|
||||
_0x3174de({ dir: _0xe0907b, speed: _0x46f45b });
|
||||
});
|
||||
}
|
||||
static ['setQN' + 'HInpu' + 't'](_0x303325, _0x509c84) {
|
||||
EFBUtils['setIn' + 'putOn' + 'Chang' + 'e'](_0x303325, (_0xc37bc3) => {
|
||||
let _0x338a95 = 0x0;
|
||||
_0xc37bc3['value'] && ((_0x338a95 = parseFloat(_0xc37bc3['value'])), isNaN(_0x338a95) && (_0x338a95 = 0x0)),
|
||||
(_0xc37bc3['value'] = _0x338a95['toFix' + 'ed'](0x2)),
|
||||
_0x509c84(_0x338a95);
|
||||
});
|
||||
}
|
||||
static ['setTe' + 'mpInp' + 'ut'](_0x3f84c5, _0x5692e2) {
|
||||
EFBUtils['setIn' + 'putOn' + 'Chang' + 'e'](_0x3f84c5, (_0x506059) => {
|
||||
let _0x40003b = 0x0;
|
||||
_0x506059['value'] && ((_0x40003b = parseInt(_0x506059['value'])), isNaN(_0x40003b) && (_0x40003b = 0x0)),
|
||||
(_0x506059['value'] = _0x40003b),
|
||||
_0x5692e2({ tempF: _0x40003b, tempC: EFBUtils['fahre' + 'nheit' + 'ToCel' + 'cius'](_0x40003b) });
|
||||
});
|
||||
}
|
||||
static ['fahre' + 'nheit' + 'ToCel' + 'cius'](_0x5a890b) {
|
||||
return (_0x5a890b - 0x20) * (0x5 / 0x9);
|
||||
}
|
||||
static ['isOSR']() {
|
||||
const _0x4e6689 = SimVar['GetSi' + 'mVarV' + 'alue']('A:TITLE', 'String');
|
||||
return _0x4e6689['toLow' + 'erCas' + 'e']()['inclu' + 'des']('oil spill response');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user