Commit fb2959a5 authored by Sven Franck's avatar Sven Franck

slapos-ui: first commit

parent fbc271ee
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title></title>
<link rel="stylesheet" href="css/jquery-mobile/jquery-mobile.latest.css">
<link rel="stylesheet" href="css/extensions.css">
<link rel="stylesheet" href="css/fontawesome.css">
<link rel="stylesheet" href="css/themes.css">
<link rel="stylesheet" href="css/css.css">
</head>
<body>
<!-- global panel -->
<!-- global header -->
<div id="account" data-role="page" data-theme="slapos-white">
<div class="ui-content">
<div class="content_element">
<p>
Personal and Security Settings.
</p>
</div>
<div class="content_element">
<div class="erp5_gadget" data-gadget="actionMenu" data-gadget-id="account_actions">
<!-- action menu -->
</div>
</div>
<hr>
<!--
<div class="erp5_gadget" data-gadget="fieldlist" data-gadget-id="account_01">
</div>
-->
</div>
</div>
<!-- global footer (not used) -->
<!-- global popup -->
<script src="js/libs/jquery/jquery.js"></script>
<script src="js/libs/jquery-mobile/jquery-mobile.js"></script>
<script src="js/extensions.js"></script>
<script src="js/libs/jio/sha256.amd.js"></script>
<script src="js/libs/jio/jio.js"></script>
<script src="js/libs/jio/complex_queries.js"></script>
<script src="js/libs/jio/localstorage.js"></script>
<!-- stuff happens here -->
<script src="js/erp5_loader.js"></script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title></title>
<link rel="stylesheet" href="css/main.css">
<script data-main="js/main.js" src="js/libs/require/require.js"></script>
</head>
<body>
<div id="basket"
data-role="page"
data-gadget="modules/basket/basket.html"
data-gadget-module="basket">
</div>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
/* global CSS */
.rebate {
color: red !important;
.bold {
font-weight: bold;
}
.dashed a, .dashed.a {
border-style: dashed;
opacity: .75;
}
.note {
font-weight: bold;
display: block;
}
.center {
display: block;
text-align: center;
margin: 0;
}
.left {
display: block;
text-align: left;
}
.right {
display: block;
text-align: right;
}
.starred {
color: #0FBABD;
}
.large {
font-size: 125%;
}
.ui-popup .file {
max-width: 70%;
}
.inline {
max-width: 50%;
margin: 0 auto;
}
.inline a.ui-btn:after {
font-size: .9em;
}
@media (max-width: 40em) {
/* convert button with text to icon-only */
/*
.ui-controlgroup .morph {
width: auto;
height: 100%;
}
.ui-controlgroup .morph .ui-btn-inner {
height: 20px;
padding: .6em 20px .6em 20px;
.inline {
max-width: 70%;
margin: 0 auto;
}
.ui-controlgroup-horizontal .morph .ui-btn-inner {
width: 11px;
}
html a.ui-btn.error.status,
html a.ui-btn.error.status:hover,
html a.ui-btn.error.status:active {
background-color: red !important;
color: #fff !important;
}
.alert {
color: red;
font-weight: bold;
}
.alert textarea {
color: red !important;
font-weight: normal;
}
.alert label {
display: block;
width: 100%;
float: none;
}
tbody .alert,
tbody .proceed,
tbody .large {
display: block;
text-align: center
}
@media (max-width: 40em) {
tbody .alert,
tbody .proceed {
font-size: 1.5em;
}
.ui-header .ui-controlgroup .morph .ui-btn-inner,
.ui-footer .ui-controlgroup .morph .ui-btn-inner {
height: 16px;
padding: .55em 11px .5em 11px;
}
.proceed {
color: #0FBABD;
font-weight: bold;
}
.static {
cursor: default;
}
.input_board {
margin: 0;
}
.input_board .ui-controlgroup-controls {
width: 100%;
}
.input_board .ui-controlgroup-controls .ui-input-text input {
box-shadow: 0 0 2px #999999 inset;
-webkit-box-shadow: 0 0 2px #999999 inset;
}
.button_board {
text-align: center;
}
a.confirm, a.action {
font-weight: bold !important;
}
.profile {
display: inline-block;
border: 1px solid;
}
@media (max-width: 40em) {
.profile {
margin-top: 1em;
}
*/
.morph.ui-btn-icon-left:after {
left: 0.2em;/* ui-btn-icon-left:after */
}
.profile img {
padding-right: 1em;
float: left;
vertical-align: middle;
max-width: 120px;
}
.tag {
margin: 0;
font-size: 200%;
}
/* Modified on BASE */
.mini {
font-size: 80%;
}
@media (max-width: 40em) {
.tag {
margin: 0;
font-size: 150%;
}
.morph.ui-btn-icon-right:after {
left: 0.2em;/* ui-btn-icon-right:after */
}
.downloads:before {
content: "·";
}
.inline-icon {
padding: 0 .5em;
}
.logo_wrap {
margin-top: 0em;
margin-bottom: 2em;
padding: 0.5em;
text-align: center;
}
.logo_wrap img {
max-height: 8em;
}
@media (max-width: 40em) {
.logo_wrap {
margin-top: 1em;
margin-bottom: 1em;
}
.morph.ui-btn-icon-left,
.morph.ui-btn-icon-right {
height: 1.5em;
text-indent: -9999px;
white-space: nowrap !important;
width: 1.5em;
padding: 0;
border-radius: 1em;
font-size: 16px;
-webkit-border-radius: 1em;
.logo_wrap img {
max-height: 7em;
}
}
/* upper boundaries */
@media (min-width: 45em) {
.ui-controlgroup .morph {
padding: 0 .75em;
@media (max-width: 30em) {
.logo_wrap {
margin-top: .5em;
margin-bottom: .5em;
}
}
/* ranges */
@media (max-width: 20em) {
.ui-controlgroup .morph {
padding: 0 .25em;
.logo_wrap {
margin-top: .25em;
margin-bottom: .25em;
}
}
@media (min-width: 20.01em) and (max-width: 30em) {
.ui-controlgroup .morph {
padding: 0 .4em;
}
/* custom signin buttons: thx Zocial http://zocial.smcllns.com/ */
.signin_google,
.signin_google:visited {
background: #DD4B39 !important;
color: #fff !important;
text-shadow: none !important;
cursor: pointer !important;
}
@media (min-width: 30.01em) and (max-width: 40em) {
.ui-controlgroup .morph {
padding: 0 .75em;
}
}
\ No newline at end of file
.signin_fb,
.signin_fb:visited {
background: #4863ae !important;
color: #fff !important;
text-shadow: none !important;
cursor: pointer !important;
}
.signin_fb:hover,
.signin_fb:active,
.signin_fb.ui-btn-active,
.signin_google:hover,
.signin_google:active,
.signin_google.ui-btn-active {
background-image: -webkit-gradient(linear, center bottom, center top, from(rgba(255, 255, 255, 0.1)), color-stop(0.30, rgba(255, 255, 255, 0)), to(rgba(0, 0, 0, 0.1))) !important;
background-image: -webkit-linear-gradient(center bottom , rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 30%, transparent 50%, rgba(0, 0, 0, 0.1)) !important;
background-image: -ms-linear-gradient(center bottom , rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 30%, transparent 50%, rgba(0, 0, 0, 0.1)) !important;
background-image: -moz-linear-gradient(center bottom , rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 30%, transparent 50%, rgba(0, 0, 0, 0.1)) !important;
background-image: -o-linear-gradient(center bottom , rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 30%, transparent 50%, rgba(0, 0, 0, 0.1)) !important;
background-image: linear-gradient(center bottom , rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 30%, transparent 50%, rgba(0, 0, 0, 0.1)) !important;
}
.signin_google:focus,
.signin_google.ui-focus
.signin_fb:focus,
.signin_fb.ui-focus {
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}
......@@ -9,7 +9,7 @@
.ui-input-text .ui-input-action {
position: absolute;
right: 0;
top: 50%;
top: 55%;
margin: -15px .3125em 0;
border: 0;
background-color: transparent;
......@@ -21,9 +21,9 @@
.ui-input-has-action.ui-input-has-clear .ui-input-clear {
right: 2em !important;
}
html body .ui-input-search .ui-input-action:after,
html body .ui-input-text .ui-input-action:after {
margin-top: -12px;
html body .ui-input-search .ui-btn-icon-notext.ui-input-action:after,
html body .ui-input-text .ui-btn-icon-notext.ui-input-action:after {
margin-top: -10px;
}
html body .ui-input-search .ui-input-action:hover,
html body .ui-input-text .ui-input-action:hover,
......@@ -155,6 +155,9 @@ html div.ui-collapsible-set {
html table.ui-table {
font-size: 80%;
}
html div.ui-collapsible-set table.ui-table {
font-size: 90%;
}
html div.ui-table-wrapper-top > *,
html div.ui-table-wrapper-bottom > *,
html div.ui-collapsible-set {
......@@ -169,10 +172,15 @@ html div.ui-collapsible-set {
.ui-page .ui-table-wrapper-bottom .ui-btn[class*="ui-icon-"]:after,
.ui-page .ui-table-wrapper-top .ui-btn[class*="ui-icon-"]:after,
.ui-page .ui-table-wrapper-bottom .ui-btn[class*="ui-icon-"]:after,
html div.ui-collapsible-set h1 .ui-btn[class*="ui-icon-"]:after{
.ui-page .ui-table thead .ui-btn[class*="ui-icon-"]:after,
html div.ui-collapsible-set h1 .ui-btn[class*="ui-icon-"]:after{
font-size: 125%;
margin-top: -9px;
}
html table.ui-table tbdoy th,
html table.ui-table tbody td {
text-align: right;
}
html table.ui-table tbody td a,
html table.ui-table tbody th a {
text-decoration: none;
......@@ -180,7 +188,7 @@ html table.ui-table tbody th a {
}
html table.ui-table tbody td:hover a,
html table.ui-table tbody th:hover a {
text-decoration: underline;
text-decoration: none;
}
/* override JQM */
html table.ui-table {
......@@ -190,7 +198,41 @@ html table.ui-table {
border-right: 1px solid;
}
html table td, html table th {
padding: 0px !important;
/* padding: 0px !important; */
height: 34px; /* width with action menu without margins TODO: flex! */
}
/* table action menu */
html table.ui-table tr td .ui-controlgroup {
margin: 0;
text-align: center;
}
/* TODO: bad... */
html .content_element > .action_menu {
font-size: 95%;
margin: 0 auto;
max-width: 60%;
}
@media (min-width: 40em) {
html .content_element > .action_menu {
font-size: 90%;
margin: 0 auto;
max-width: 50%;
}
}
html table.ui-table tr td .ui-controlgroup .ui-controlgroup-controls {
width: auto;
}
html table.ui-table tr td a.ui-btn {
border: 0 none;
background: transparent;
}
html table.ui-table tr td a.ui-btn:after {
margin-top: -10px;
}
/* default */
html table.table_default {
width: 100%;
text-align: center;
}
/* checkbox cells */
html table th .ui-checkbox .ui-btn,
......@@ -265,18 +307,18 @@ html table tr td .ui-checkbox {
border-top-left-radius: 0;
}
/* first grid and button get bottom left */
.ui-table-wrapper-bottom.ui-table-wrapper-inset > div:first-child,
.ui-table-wrapper-bottom.ui-table-wrapper-inset > div:first-child .ui-btn,
.ui-table-wrapper-bottom.ui-table-wrapper-inset > div:first-child .ui-select {
.ui-table-wrapper-bottom.ui-table-wrapper-inset > div:first-child:not(.ui-controlgroup-controls),
.ui-table-wrapper-bottom.ui-table-wrapper-inset > div:first-child:not(.ui-controlgroup-controls) .ui-btn,
.ui-table-wrapper-bottom.ui-table-wrapper-inset > div:first-child:not(.ui-controlgroup-controls) .ui-select {
border-radius: inherit;
-webkit-border-radius: inherit;
border-bottom-right-radius: 0;
-webkit-border-bottom-right-radius: 0;
}
/* last grid and button get bottom right */
.ui-table-wrapper-bottom.ui-table-wrapper-inset > div:last-child,
.ui-table-wrapper-bottom.ui-table-wrapper-inset > div:last-child .ui-btn,
.ui-table-wrapper-bottom.ui-table-wrapper-inset > div:last-child .ui-select {
.ui-table-wrapper-bottom.ui-table-wrapper-inset > div:last-child:not(.ui-controlgroup-controls),
.ui-table-wrapper-bottom.ui-table-wrapper-inset > div:last-child:not(.ui-controlgroup-controls) .ui-btn ,
.ui-table-wrapper-bottom.ui-table-wrapper-inset > div:last-child:not(.ui-controlgroup-controls) .ui-select {
border-radius: 0;
-webkit-border-radius: 0;
border-bottom-right-radius: inherit;
......@@ -303,7 +345,7 @@ html table tr td .ui-checkbox {
.ui-table-wrapper-top div > .ui-btn,
.ui-table-wrapper-bottom div > .ui-select,
.ui-table-wrapper-bottom div > .ui-btn {
width: 100%;
width: auto;
margin: 0;
}
/* table borders */
......@@ -319,8 +361,8 @@ html table tr td .ui-checkbox {
border: 1px solid;
}
/* wrapper buttons */
.ui-table-wrapper-top .ui-btn:not(.ui-input-clear),
.ui-table-wrapper-bottom .ui-btn:not(.ui-input-clear) {
.ui-table-wrapper-top:not(.ui-grid) .ui-btn:not(.ui-input-clear),
.ui-table-wrapper-bottom:not(.ui-grid) .ui-btn:not(.ui-input-clear) {
margin: 0;
border: 0 none;
-moz-border-radius: 0;
......@@ -331,8 +373,9 @@ html table tr td .ui-checkbox {
-moz-box-shadow: none;
box-shadow: none;
font-weight: normal;
padding: .625em 1em;
vertical-align: middle;
padding: .625em 1em;
}
.ui-table-wrapper-top > div, .ui-table-wrapper-bottom > div {
text-align: center;
......@@ -469,8 +512,13 @@ html table tr td .ui-checkbox {
font-weight: normal !important;
/* padding: 0px; */
}
.ui-table thead th div.ui-checkbox {
position:relative; /*FF*/
height: 100%;
width: 100%;
}
.ui-table thead th a {
margin: 0px !important;
margin: 0 1px 0 0 !important;
border-width: 0px !important;
height: inherit !important;
}
......@@ -490,21 +538,22 @@ html table tr td .ui-checkbox {
html table.ui-table-reflow tbody th:before {
width: 100%;
}
.ui-table-wrapper-top.ui-table-wrapper-inset .ui-btn,
.ui-table-wrapper-top.ui-table-wrapper-inset .ui-select,
.ui-table-wrapper-bottom.ui-table-wrapper-inset .ui-btn,
.ui-table-wrapper-bottom.ui-table-wrapper-inset .ui-select {
.ui-table-wrapper-top .ui-btn,
.ui-table-wrapper-top .ui-select,
.ui-table-wrapper-bottom .ui-btn,
.ui-table-wrapper-bottom .ui-select {
/* width: auto; */
text-indent: -9999px;
white-space: nowrap !important;
}
.ui-table-wrapper-top.ui-table-wrapper-inset .ui-btn:after,
.ui-table-wrapper-top.ui-table-wrapper-inset .ui-select:after,
.ui-table-wrapper-bottom.ui-table-wrapper-inset .ui-btn:after,
.ui-table-wrapper-bottom.ui-table-wrapper-inset .ui-select:after {
/* only way it works... */
.ui-table-wrapper-top [class*="ui-icon-"]:after,
.ui-table-wrapper-bottom [class*="ui-icon-"]:after {
text-indent: 0px;
left: auto;
left: 0;
margin: 0 auto;
right: 0;
}
}
......@@ -521,7 +570,38 @@ html table tr td .ui-checkbox {
.ui-controlbar .ui-select {
padding: 0 1%;
}
/* ui-collapsible-tabs - above 40em */
/* ui-collapsible-tabs */
/* action btns */
.ui-collapsible-tabs.ui-dynamic-tabs .ui-collapsible-heading a.tab_action.ui-btn {
background: none repeat scroll 0 0 transparent;
border-width: 0px;
margin: 0 -1px;
border-radius: 0;
-webkit-border-radius: 0;
box-shadow: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
position: absolute;
right: 2em;
height: 100%;
top: 0;
width: 2em;
}
.ui-collapsible-tabs.ui-dynamic-tabs .ui-collapsible-collapsed .ui-collapsible-heading a.tab_action.ui-btn {
display: none;
}
.ui-collapsible-tabs.ui-dynamic-tabs .ui-collapsible-heading a.tab_action.ui-btn,
.ui-collapsible-tabs.ui-dynamic-tabs .ui-collapsible-heading a.tab_action.ui-btn:hover {
background: none repeat scroll 0 0 transparent;
}
.ui-collapsible-tabs.ui-dynamic-tabs .ui-collapsible-heading a.tab_action + a.tab_action {
right: 0;
}
.ui-collapsible-tabs.ui-dynamic-tabs.ui-dynamic-tabs-added ~ .ui-dynamic-info {
display: none;
}
/* side-by-side */
@media (min-width: 40em) {
.ui-collapsible-tabs {
display: table;
......@@ -536,6 +616,34 @@ html table tr td .ui-checkbox {
padding: 0;
position: relative;
}
/* if we only have 1 element, we don't strecht full screen */
/* thx: http://lea.verou.me/2011/01/styling-children-based-on-their-number-with-css3/ */
.ui-collapsible-tabs .ui-collapsible:first-child:nth-last-child(1).add_tab {
width: 15%;
display: block;
margin: 0 auto;
}
.ui-collapsible-tabs .ui-collapsible:first-child:nth-last-child(1) h1 a {
text-align: center;
}
/* 1/2/3/4 items
li:first-child:nth-last-child(1) {
width: 100%;
}
li:first-child:nth-last-child(2),
li:first-child:nth-last-child(2) ~ li {
width: 50%;
}
li:first-child:nth-last-child(3),
li:first-child:nth-last-child(3) ~ li {
width: 33.3333%;
}
li:first-child:nth-last-child(4),
li:first-child:nth-last-child(4) ~ li {
width: 25%;
}
*/
/* content - IE8 ignores this and falls back to regular collapsible-set */
.ui-collapsible-tabs[data-tabs="10"] .ui-collapsible .ui-collapsible-content {width: 1000%; }
.ui-collapsible-tabs[data-tabs="9"] .ui-collapsible .ui-collapsible-content {width: 900%; }
......@@ -584,6 +692,11 @@ html table tr td .ui-checkbox {
-webkit-border-bottom-left-radius: 0;
border-bottom-left-radius: 0;
}
/* if it's only a single tab, revert */
.ui-collapsible-tabs .ui-collapsible.ui-last-child.ui-first-child {
-webkit-border-radius: inherit;
border-radius: inherit;
}
/* straight corner last-tab if one tab is open */
.ui-collapsible-tabs .ui-collapsible:not(.ui-collapsible-collapsed) ~ .ui-collapsible.ui-last-child {
-webkit-border-bottom-right-radius: 0;
......
This diff is collapsed.
/*! normalize.css v2.1.2 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
display: block;
}
/**
* Correct `inline-block` display not defined in IE 8/9.
*/
audio,
canvas,
video {
display: inline-block;
}
/**
* Prevent modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Address styling not present in IE 8/9.
*/
[hidden] {
display: none;
}
/* ==========================================================================
Base
========================================================================== */
/**
* 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;
}
/* ==========================================================================
Links
========================================================================== */
/**
* Address `outline` inconsistency between Chrome and other browsers.
*/
a:focus {
outline: thin dotted;
}
/**
* Improve readability when focused and also mouse hovered in all browsers.
*/
a:active,
a:hover {
outline: 0;
}
/* ==========================================================================
Typography
========================================================================== */
/**
* Address variable `h1` font-size and margin within `section` and `article`
* contexts in Firefox 4+, Safari 5, and Chrome.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/**
* Address styling not present in IE 8/9, Safari 5, and Chrome.
*/
abbr[title] {
border-bottom: 1px dotted;
}
/**
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
*/
b,
strong {
font-weight: bold;
}
/**
* Address styling not present in Safari 5 and Chrome.
*/
dfn {
font-style: italic;
}
/**
* Address differences between Firefox and other browsers.
*/
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
/**
* Address styling not present in IE 8/9.
*/
mark {
background: #ff0;
color: #000;
}
/**
* Correct font family set oddly in Safari 5 and Chrome.
*/
code,
kbd,
pre,
samp {
font-family: monospace, serif;
font-size: 1em;
}
/**
* Improve readability of pre-formatted text in all browsers.
*/
pre {
white-space: pre-wrap;
}
/**
* Set consistent quote types.
*/
q {
quotes: "\201C" "\201D" "\2018" "\2019";
}
/**
* 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.
*/
img {
border: 0;
}
/**
* Correct overflow displayed oddly in IE 9.
*/
svg:not(:root) {
overflow: hidden;
}
/* ==========================================================================
Figures
========================================================================== */
/**
* Address margin not present in IE 8/9 and Safari 5.
*/
figure {
margin: 0;
}
/* ==========================================================================
Forms
========================================================================== */
/**
* 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.
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
*/
legend {
border: 0; /* 1 */
padding: 0; /* 2 */
}
/**
* 1. Correct font family not being inherited in all browsers.
* 2. Correct font size not being inherited in all browsers.
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
*/
button,
input,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 2 */
margin: 0; /* 3 */
}
/**
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.
*/
button,
input {
line-height: normal;
}
/**
* 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 Chrome, Safari 5+, and IE 8+.
* Correct `select` style inheritance in Firefox 4+ and Opera.
*/
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;
}
/**
* 1. Address box sizing set to `content-box` in IE 8/9.
* 2. Remove excess padding in IE 8/9.
*/
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari 5 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 5 and Chrome
* on OS X.
*/
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* Remove inner padding and border in Firefox 4+.
*/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/**
* 1. Remove default vertical scrollbar in IE 8/9.
* 2. Improve readability and alignment in all browsers.
*/
textarea {
overflow: auto; /* 1 */
vertical-align: top; /* 2 */
}
/* ==========================================================================
Tables
========================================================================== */
/**
* Remove most spacing between table cells.
*/
table {
border-collapse: collapse;
border-spacing: 0;
}
This diff is collapsed.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title></title>
<link rel="stylesheet" href="js/main.css">
<script data-main="js/main.js" src="js/libs/require/require.js"></script>
</head>
<body>
<div id="details"
data-role="page"
data-gadget="modules/details/details.html"
data-gadget-module="details">
</div>
</body>
</html>
\ No newline at end of file
.bold {
font-weight: bold;
}
.note {
font-weight: bold;
display: block;
}
.center {
display: block;
text-align: center;
}
.left {
display: block;
text-align: left;
}
.right {
display: block;
text-align: right;
}
.starred {
color: #0FBABD;
}
.large {
font-size: 125%;
}
.ui-popup .file {
max-width: 70%;
}
.inline {
max-width: 50%;
margin: 0 auto;
}
.inline a.ui-btn:after {
font-size: .9em;
}
@media (max-width: 40em) {
.inline {
max-width: 70%;
margin: 0 auto;
}
}
.alert {
color: red;
font-weight: bold;
}
.alert textarea {
color: red !important;
font-weight: normal;
}
.alert label {
display: block;
width: 100%;
float: none;
}
tbody .alert,
tbody .proceed,
tbody .large {
display: block;
text-align: center
}
@media (max-width: 40em) {
tbody .alert,
tbody .proceed {
font-size: 1.5em;
}
}
.proceed {
color: #0FBABD;
font-weight: bold;
}
.static {
cursor: default;
}
.input_board {
margin: 0;
}
.input_board .ui-controlgroup-controls {
width: 100%;
}
.input_board .ui-controlgroup-controls .ui-input-text input {
box-shadow: 0 0 2px #999999 inset;
-webkit-box-shadow: 0 0 2px #999999 inset;
}
.button_board {
text-align: center;
}
a.confirm, a.action {
font-weight: bold !important;
}
.profile {
display: inline-block;
border: 1px solid;
}
@media (max-width: 40em) {
.profile {
margin-top: 1em;
}
}
.profile img {
padding-right: 1em;
float: left;
vertical-align: middle;
max-width: 120px;
}
.tag {
margin: 0;
font-size: 200%;
}
/* Modified on BASE */
.mini {
font-size: 80%;
}
@media (max-width: 40em) {
.tag {
margin: 0;
font-size: 150%;
}
}
.downloads:before {
content: "·";
}
.inline-icon {
padding: 0 .5em;
}
.logo_wrap {
margin-top: 0em;
margin-bottom: 2em;
padding: 0.5em;
text-align: center;
}
.logo_wrap img {
max-height: 8em;
}
@media (max-width: 40em) {
.logo_wrap {
margin-top: 1em;
margin-bottom: 1em;
}
.logo_wrap img {
max-height: 7em;
}
}
@media (max-width: 30em) {
.logo_wrap {
margin-top: .5em;
margin-bottom: .5em;
}
}
@media (max-width: 20em) {
.logo_wrap {
margin-top: .25em;
margin-bottom: .25em;
}
}
/* custom signin buttons: thx Zocial http://zocial.smcllns.com/ */
.signin_google,
.signin_google:visited {
background: #DD4B39 !important;
color: #fff !important;
text-shadow: none !important;
cursor: pointer !important;
}
.signin_fb,
.signin_fb:visited {
background: #4863ae !important;
color: #fff !important;
text-shadow: none !important;
cursor: pointer !important;
}
.signin_fb:hover,
.signin_fb:active,
.signin_fb.ui-btn-active,
.signin_google:hover,
.signin_google:active,
.signin_google.ui-btn-active {
background-image: -webkit-gradient(linear, center bottom, center top, from(rgba(255, 255, 255, 0.1)), color-stop(0.30, rgba(255, 255, 255, 0)), to(rgba(0, 0, 0, 0.1))) !important;
background-image: -webkit-linear-gradient(center bottom , rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 30%, transparent 50%, rgba(0, 0, 0, 0.1)) !important;
background-image: -ms-linear-gradient(center bottom , rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 30%, transparent 50%, rgba(0, 0, 0, 0.1)) !important;
background-image: -moz-linear-gradient(center bottom , rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 30%, transparent 50%, rgba(0, 0, 0, 0.1)) !important;
background-image: -o-linear-gradient(center bottom , rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 30%, transparent 50%, rgba(0, 0, 0, 0.1)) !important;
background-image: linear-gradient(center bottom , rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 30%, transparent 50%, rgba(0, 0, 0, 0.1)) !important;
}
.signin_google:focus,
.signin_google.ui-focus
.signin_fb:focus,
.signin_fb.ui-focus {
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}
.popup_element {
padding-top: .75em;
padding-left: .75em;
padding-right: .75em;
}
.popup_element p {
margin-bottom: 0.15em;
}
.content_element {
display: inline-block;
vertical-align: top;
width: 45%;
padding-left: 2%;
padding-right: 2%;
/* ~ 98% for 2 col layout */
padding-top: 2%;
}
.content_element_fullscreen {
width: 96% /* 2% padding-left/right */
}
/* is this padding really necessary? */
.content_element .ui-controlgroup-vertical,
.content_element .ui-controlgroup-horizontal,
.content_element form {
margin-top: 1em;
margin-bottom: 1em;
vertical-align: middle;
}
@media (max-width: 40em) {
.content_element {
width: 100%;
padding: 0;
}
}
.content_element .ui-input-search {
width: 50%;
}
@media (max-width: 45em) {
.content_element .ui-input-search {
width: 60%;
}
}
@media (max-width: 30em) {
.content_element .ui-input-search {
width: 65%;
}
}
@media (max-width: 20em) {
.content_element .ui-input-search{
width: 70%;
}
}
.panel .ui-panel-inner .panel_element {
margin-left: -1em;
margin-right: -1em;
}
.panel .ui-panel-inner .panel_element.panel_element_first {
margin-top: -1em;
}
.panel .ui-panel-inner .panel_element.panel_element_last {
margin-bottom: -1em;
}
.panel .panel_element.panel_header {
border-width: 0;
padding-top: 1px;
top: -1px;
}
/* navbar */
.navbar ul li a.ui-btn-active.clone_item span.navbar_clone {
font-weight: bold;
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -4,16 +4,40 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title></title>
<link rel="stylesheet" href="css/main.css">
<script data-main="js/main.js" src="js/libs/require/require.js"></script>
<link rel="stylesheet" href="css/jquery-mobile/jquery-mobile.latest.css">
<link rel="stylesheet" href="css/extensions.css">
<link rel="stylesheet" href="css/fontawesome.css">
<link rel="stylesheet" href="css/themes.css">
<link rel="stylesheet" href="css/css.css">
</head>
<body>
<div id="index"
data-role="page"
data-gadget="modules/index/index.html"
data-gadget-module="index">
<!-- global panel -->
<!-- global header -->
<div id="dashboard" data-role="page" data-theme="slapos-white">
<div class="ui-content">
<!-- nothing to see here -->
</div>
</div>
<!-- global footer (not used) -->
<!-- global popup -->
<script src="js/libs/jquery/jquery.js"></script>
<script src="js/libs/jquery-mobile/jquery-mobile.js"></script>
<script src="js/extensions.js"></script>
<script src="js/libs/jio/sha256.amd.js"></script>
<script src="js/libs/jio/jio.js"></script>
<script src="js/libs/jio/complex_queries.js"></script>
<script src="js/libs/jio/localstorage.js"></script>
<!-- stuff happens here -->
<script src="js/erp5_loader.js"></script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title></title>
<link rel="stylesheet" href="css/jquery-mobile/jquery-mobile.latest.css">
<link rel="stylesheet" href="css/extensions.css">
<link rel="stylesheet" href="css/fontawesome.css">
<link rel="stylesheet" href="css/themes.css">
<link rel="stylesheet" href="css/css.css">
</head>
<body>
<!-- global panel -->
<!-- global header -->
<div id="invoices" data-role="page" data-theme="slapos-white">
<div class="ui-content">
<div class="content_element">
<p>Overview of invoices for SlapOS and installed software usage. Select an invoice to download.</p>
</div>
<div class="content_element">
</div>
<hr>
<div class="content_element content_element_fullscreen">
<table class="erp5_gadget" data-gadget="listbox" data-gadget-id="invoices_01">
<!-- dynamic -->
</table>
</div>
</div>
</div>
<!-- global footer (not used) -->
<!-- global popup -->
<script src="js/libs/jquery/jquery.js"></script>
<script src="js/libs/jquery-mobile/jquery-mobile.js"></script>
<script src="js/extensions.js"></script>
<script src="js/libs/jio/sha256.amd.js"></script>
<script src="js/libs/jio/jio.js"></script>
<script src="js/libs/jio/complex_queries.js"></script>
<script src="js/libs/jio/localstorage.js"></script>
<!-- stuff happens here -->
<script src="js/erp5_loader.js"></script>
</body>
</html>
This diff is collapsed.
......@@ -284,7 +284,10 @@ if (init) {
options: {
actionBtn: false,
actionBtnText: "Search",
actionBtnIcon: "search"
actionBtnIcon: "search",
actionBtnPop: false,
actionBtnPopId: null,
actionBtnClass: null
},
_create: function () {
......@@ -295,11 +298,15 @@ if (init) {
},
actionButton: function () {
return $("<a href='#' class='ui-input-action ui-btn ui-icon-" +
this.options.actionBtnIcon + " ui-btn-icon-notext ui-corner-all" +
"' title='" + this.options.actionBtnText + "'>" +
this.options.actionBtnText + "</a>");
var o = this.options;
return $("<a href='#" + (o.actionBtnPop ?
(o.actionBtnPopId +
"' data-rel='popup' data-position-to='window' " +
"data-transition='pop'") : "'") +
" tabindex='-1' class='ui-input-action ui-btn ui-icon-" +
o.actionBtnIcon + " ui-btn-icon-notext ui-corner-all" + " " + o.actionBtnClass +
"' title='" + o.actionBtnText + "'>" +
o.actionBtnText + "</a>");
},
_addActionBtn: function () {
......@@ -353,6 +360,8 @@ if (init) {
}());
/* ============================= TABLE ====================================*/
(function( $, undefined ) {
......@@ -441,12 +450,14 @@ $.widget( "mobile.table", {
$.widget( "mobile.table", $.mobile.table, {
options: {
mode: "columntoggle",
columnBtnShow: true,
columnBtnTheme: null,
columnPopupTheme: null,
columnBtnText: "Columns...",
columnBtnIcon: "Search",
sort: null,
wrap: null,
embedded: null,
topGrid: null,
bottomGrid: null,
classes: $.extend( $.mobile.table.prototype.options.classes, {
......@@ -566,7 +577,7 @@ $.widget( "mobile.table", $.mobile.table, {
_generateWrapper: function ( grids ) {
return $("<div/>", {
class: "ui-table-wrapper ui-table-wrapper-inset ui-corner-all"
class: "ui-table-wrapper ui-table-wrapper-inset " + (this.options.embedded ? "" : "ui-corner-all")
}).append($.map(new Array( grids ), function(){
return $("<div/>");
})).grid({ grid: grids > 1 ? this._toLetter(grids-2) : "solo" });
......@@ -588,7 +599,6 @@ $.widget( "mobile.table", $.mobile.table, {
popup = $( "<div data-" + ns + "role='popup' data-" + ns + "role='fieldcontain' class='" + opts.classes.popup + "' id='" + id + "'></div>" );
menu = $( "<fieldset data-" + ns + "role='controlgroup'></fieldset>" );
// set extension here, send "false" to trigger build/rebuild
this._addToggles( menu, false );
......@@ -604,8 +614,8 @@ $.widget( "mobile.table", $.mobile.table, {
fill = table.parent().find( "div[data-slot]" );
if (opts.wrap === "both") {
front = this._generateWrapper( opts.topGrid );
back = this._generateWrapper( opts.bottomGrid );
front = this._generateWrapper( opts.topGrid ).addClass("ui-table-wrapper-top");
back = this._generateWrapper( opts.bottomGrid ).addClass("ui-table-wrapper-bottom");
if (fill) {
slots = front.add( back ).children("div");
......@@ -619,12 +629,9 @@ $.widget( "mobile.table", $.mobile.table, {
.appendTo( slots.eq( item || (i === 2 ? 3 : i)) );
}
}
front
.addClass("ui-table-wrapper-top")
.children("div").last().append( menuButton[ 0 ] );
back
.addClass("ui-table-wrapper-bottom");
if (opts.columnBtnShow) {
front.children("div").last().append( menuButton[ 0 ] );
}
fragment.appendChild( front[ 0 ] );
fragment.appendChild( popup[ 0 ] );
// not possible in one-go...
......@@ -632,7 +639,7 @@ $.widget( "mobile.table", $.mobile.table, {
table.after(back);
} else {
front = this._generateWrapper( opts.topGrid || opts.bottomGrid || 3);
front = this._generateWrapper( opts.topGrid || opts.bottomGrid || 3).addClass("ui-table-wrapper-top");
if (fill.length) {
slots = front.children("div");
......@@ -646,10 +653,9 @@ $.widget( "mobile.table", $.mobile.table, {
.appendTo( slots.eq( i === 2 ? 3 : i ) );
}
}
front
.addClass("ui-table-wrapper-top")
.children("div").last().append( menuButton[ 0 ] );
if (opts.columnBtnShow) {
front.children("div").last().append( menuButton[ 0 ] );
}
fragment.appendChild( front[ 0 ] );
fragment.appendChild( popup[ 0 ] );
......@@ -660,15 +666,16 @@ $.widget( "mobile.table", $.mobile.table, {
// no wrap
} else {
fragment.appendChild( popup[ 0 ] );
fragment.appendChild( menuButton[ 0 ] );
if (opts.columnBtnShow) {
fragment.appendChild( menuButton[ 0 ] );
}
table.before( fragment );
}
if (opts.sort) {
sorts = table.find( "thead tr th[data-sortable]" );
sorts = table.find( "thead tr th[data-sorting]" );
btn = $("<a />", {
class: "ui-sortable ui-btn ui-icon-sort-down ui-icon ui-btn-icon-right",
class: "ui-sorting ui-btn ui-icon-sort ui-icon ui-btn-icon-right",
});
sorts.each(function(i, el) {
var $el = $(el);
......@@ -933,7 +940,12 @@ $.widget( "mobile.collapsible", {
//modify markup & attributes
.addClass( "ui-collapsible-heading" )
.append( ui.status )
.wrapInner( "<a href='#' class='ui-collapsible-heading-toggle'></a>" )
.contents()
.filter(function() {
return this.nodeType === 3;
})
.wrap( "<a href='#' class='ui-collapsible-heading-toggle'></a>" )
.parents(".ui-collapsible-heading")
.find( "a" )
.first()
.addClass( "ui-btn " +
......@@ -1053,6 +1065,9 @@ $.widget( "mobile.collapsible", {
var opts = this._getOptions( this.options ),
ui = this._ui;
if ( !this._trigger( isCollapse ? "beforecollapse" : "beforeexpand" ) ) {
return;
}
ui.status.text( isCollapse ? opts.expandCueText : opts.collapseCueText );
ui.heading
.toggleClass( "ui-collapsible-heading-collapsed", isCollapse )
......@@ -1125,6 +1140,18 @@ $.mobile.collapsible.defaults = {
};
})( jQuery );
/* ============================= before expand/collapse ================== */
/*
$.widget( "mobile.collapsible", $.mobile.collapsible, {
_handleExpandCollapse: function( isCollapse ) {
if ( this._trigger( "collapsiblebefore" +
( isCollapse ? "collapse" : "expand" ) ) ) {
this._superApply( arguments );
}
}
});
*/
/* ============================= COLLAPSIBLE_SET =========================*/
(function( $, undefined ) {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
(function (dependencies, module) {
if (typeof define === 'function' && define.amd) {
return define(dependencies, module);
}
if (typeof exports === 'object') {
return module(exports);
}
module(window);
}(['exports'], function (window) {
/* A JavaScript implementation of the Secure Hash Algorithm, SHA-256
* Version 0.3 Copyright Angel Marin 2003-2004 - http://anmar.eu.org/
* Distributed under the BSD License
* Some bits taken from Paul Johnston's SHA-1 implementation
*/
(function () {
var chrsz = 8; /* bits per input character. 8 - ASCII; 16 - Unicode */
function safe_add (x, y) {
var lsw = (x & 0xFFFF) + (y & 0xFFFF);
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
return (msw << 16) | (lsw & 0xFFFF);
}
function S (X, n) {return ( X >>> n ) | (X << (32 - n));}
function R (X, n) {return ( X >>> n );}
function Ch(x, y, z) {return ((x & y) ^ ((~x) & z));}
function Maj(x, y, z) {return ((x & y) ^ (x & z) ^ (y & z));}
function Sigma0256(x) {return (S(x, 2) ^ S(x, 13) ^ S(x, 22));}
function Sigma1256(x) {return (S(x, 6) ^ S(x, 11) ^ S(x, 25));}
function Gamma0256(x) {return (S(x, 7) ^ S(x, 18) ^ R(x, 3));}
function Gamma1256(x) {return (S(x, 17) ^ S(x, 19) ^ R(x, 10));}
function newArray (n) {
var a = [];
for (;n>0;n--) {
a.push(undefined);
}
return a;
}
function core_sha256 (m, l) {
var K = [0x428A2F98,0x71374491,0xB5C0FBCF,0xE9B5DBA5,0x3956C25B,0x59F111F1,0x923F82A4,0xAB1C5ED5,0xD807AA98,0x12835B01,0x243185BE,0x550C7DC3,0x72BE5D74,0x80DEB1FE,0x9BDC06A7,0xC19BF174,0xE49B69C1,0xEFBE4786,0xFC19DC6,0x240CA1CC,0x2DE92C6F,0x4A7484AA,0x5CB0A9DC,0x76F988DA,0x983E5152,0xA831C66D,0xB00327C8,0xBF597FC7,0xC6E00BF3,0xD5A79147,0x6CA6351,0x14292967,0x27B70A85,0x2E1B2138,0x4D2C6DFC,0x53380D13,0x650A7354,0x766A0ABB,0x81C2C92E,0x92722C85,0xA2BFE8A1,0xA81A664B,0xC24B8B70,0xC76C51A3,0xD192E819,0xD6990624,0xF40E3585,0x106AA070,0x19A4C116,0x1E376C08,0x2748774C,0x34B0BCB5,0x391C0CB3,0x4ED8AA4A,0x5B9CCA4F,0x682E6FF3,0x748F82EE,0x78A5636F,0x84C87814,0x8CC70208,0x90BEFFFA,0xA4506CEB,0xBEF9A3F7,0xC67178F2];
var HASH = [0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A, 0x510E527F, 0x9B05688C, 0x1F83D9AB, 0x5BE0CD19];
var W = newArray(64);
var a, b, c, d, e, f, g, h, i, j;
var T1, T2;
/* append padding */
m[l >> 5] |= 0x80 << (24 - l % 32);
m[((l + 64 >> 9) << 4) + 15] = l;
for ( var i = 0; i<m.length; i+=16 ) {
a = HASH[0]; b = HASH[1]; c = HASH[2]; d = HASH[3];
e = HASH[4]; f = HASH[5]; g = HASH[6]; h = HASH[7];
for ( var j = 0; j<64; j++) {
if (j < 16) {
W[j] = m[j + i];
} else {
W[j] = safe_add(safe_add(safe_add(Gamma1256(
W[j - 2]), W[j - 7]), Gamma0256(W[j - 15])), W[j - 16]);
}
T1 = safe_add(safe_add(safe_add(
safe_add(h, Sigma1256(e)), Ch(e, f, g)), K[j]), W[j]);
T2 = safe_add(Sigma0256(a), Maj(a, b, c));
h = g; g = f; f = e; e = safe_add(d, T1);
d = c; c = b; b = a; a = safe_add(T1, T2);
}
HASH[0] = safe_add(a, HASH[0]); HASH[1] = safe_add(b, HASH[1]);
HASH[2] = safe_add(c, HASH[2]); HASH[3] = safe_add(d, HASH[3]);
HASH[4] = safe_add(e, HASH[4]); HASH[5] = safe_add(f, HASH[5]);
HASH[6] = safe_add(g, HASH[6]); HASH[7] = safe_add(h, HASH[7]);
}
return HASH;
}
function str2binb (str) {
var bin = Array();
var mask = (1 << chrsz) - 1;
for(var i = 0; i < str.length * chrsz; i += chrsz)
bin[i>>5] |= (str.charCodeAt(i / chrsz) & mask) << (24 - i%32);
return bin;
}
function binb2hex (binarray) {
var hexcase = 0; /* hex output format. 0 - lowercase; 1 - uppercase */
var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
var str = "";
for (var i = 0; i < binarray.length * 4; i++) {
str += hex_tab.charAt((binarray[i>>2] >> ((3 - i%4)*8+4)) & 0xF) +
hex_tab.charAt((binarray[i>>2] >> ((3 - i%4)*8 )) & 0xF);
}
return str;
}
function hex_sha256(s){
return binb2hex(core_sha256(str2binb(s),s.length * chrsz));
}
window.hex_sha256 = hex_sha256;
}());
}));
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
$.fn.validVal.customValidations = { 'nl_postalcode': function( val ) { var v = val.split( ' ' ).join( '' ); // Empty value is OK, required-test will follow if clas="required". if ( v.length == 0 ) { return true; } // NL postalcode should be formatted as: "1234AB". if ( v.length != 6 || isNaN( v.charAt( 0 ) ) || isNaN( v.charAt( 1 ) ) || isNaN( v.charAt( 2 ) ) || isNaN( v.charAt( 3 ) ) || !isNaN( v.charAt( 4 ) ) || !isNaN( v.charAt( 5 ) ) ) { return false; } else { return true; } } };
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment