ACE WSK Client Pages
Simple form template
script.js
?
theme.css
?
index.html
Preview
Download
Ace.el('#demo').ace('form', { // "server" setting will need to be changed to 'public' once you go live. // Also, it can be passed as URL argument. I.e. http://public.com?server=value server: 'public', // Please update "authkey" with the one provided to you by an Account Manager. // Testing and Production AuthKeys are different. // AuthKey determines a product type as well as the type of flow. // Also, it can be passed as URL argument. I.e. http://public.com?authkey=value authkey: '52ab62e8-f9fc-4986-8a4e-dc10573c21bd', // Below are form specific settings // "pages" setting allows to break a single form into virtual pages. // Can be omitted (rendering single page with all available fields). pages: [ // You can specify what fields are belong to a "page". {fields: ['Program', 'Concentration', 'FirstName']}, {fields: ['PostalCode', 'City', 'State']}, // And skip rendering auto-generated page witn remaining fields. {fields: 'auto-skip'} ], // Custom options can be applied to individual fields. fields: { // Changing field label, placeholder, etc. Concentration: {label: 'Subject of interest', placeholder: '-- choose one --'}, // Combine depended fields into one. Program: {depend_combine: true}, // Add custom field validation. FirstName: {validation: /^Bruce$/, placeholder: 'type "Bruce"'} }, zip: { // Always validate City-State pairs alwaysvalidate: true } });
.ace-container { font-size: 1em; line-height: 1.6em; color: #222; background: #fff; } .ace-container + .ace-container { margin-top: 1em; } /* form page layout styling */ .ace-form-page { padding: 1em 0; margin: 0; border: 0; } .ace-form-page-title { padding: 0 1.5em; margin-bottom: 1em; font-size: 1.4em; line-height: 2em; color: #333; border-bottom: 1px solid #eee; } .ace-field-no-controls .ace-field-title { width: auto; } .ace-result { margin: 0.5em 0; padding: 1em 1.5em; } .ace-result .ace-form-container { margin-top: 1em; } .ace-result .ace-form-page, .ace-form-actions { border-top: 2px solid #eee; } .ace-results-actions { border-bottom: 2px solid #eee; } .ace-form-actions, .ace-results-actions { background-color: #f5f5f5; padding: 1em 1.5em; text-align: right; } .ace-result-actions .ace-action { margin: 1em 0.5em 1em 0; } /* form fields styling */ .ace-field-title { float: left; width: 38%; padding-top: 0.35em; text-align: right; } .ace-field-controls { margin: 0 20% 0 40%; } .ace-field-wrapper { margin: 0.5em 0; } /* field item for checkboxes and radios */ .ace-field-item { padding-left: 22px; display: block; line-height: 145%; } .ace-field-item > * { vertical-align: middle; } .ace-field-item:first-child { padding-top: .4em; } /* controls styling */ .ace-field-controls .ace-control { margin: 0; border-radius: 0; font: inherit; color: inherit; } .ace-field-controls .ace-control-select, .ace-field-controls .ace-control-text, .ace-field-controls .ace-control-textarea { height: 2.2em; padding: .37em .3em .3em .4em; line-height: 1.35; } .ace-field-controls .ace-field-value { padding: .37em .3em .3em .4em; display: inline-block; } .ace-field-controls .ace-control-select { text-transform: none; max-width: 100%; } .ace-field-controls .ace-control-text, .ace-field-controls .ace-control-textarea { padding-left: .6em; padding-right: .6em; } .ace-field-controls .ace-control-select, .ace-field-controls .ace-control-text, .ace-field-controls .ace-control-textarea { width: 100%; border: 1px solid #aaa; background-color: #fff; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .ace-field-controls .ace-control-textarea { height: auto; } .ace-field-controls .ace-control[disabled], .ace-field-controls .ace-control[readonly] { background-color: #eee; opacity: 1; } .ace-field-controls .ace-control[disabled] { cursor: not-allowed; } /* radio or checkbox styling */ .ace-field-controls .ace-control-radio, .ace-field-controls .ace-control-checkbox { padding: 0; line-height: normal; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; display: inline-block; margin: -0.1em 0.2em 0 -22px; } /* controls focus */ .ace-field-controls .ace-control-select:focus, .ace-field-controls .ace-control-text:focus, .ace-field-controls .ace-control-textarea:focus { border-color: #66afe9; color: inherit; outline: 0; } .ace-field-controls .ace-control-radio:focus, .ace-field-controls .ace-control-checkbox:focus { outline: thin dotted; outline-offset: -2px; } /* mozilla outline remove */ .ace-field-controls .ace-control-select:-moz-focusring { color: transparent; text-shadow: 0 0 0 #000;; } /* .ace-field-required .ace-control-select .ace-placeholder { display: none!important; }*/ /* field placeholders */ .ace-field-controls .ace-control-text::-moz-placeholder, .ace-field-controls .ace-control-textarea::-moz-placeholder { color: #999; opacity: 1; } .ace-field-controls .ace-control-text:-ms-input-placeholder, .ace-field-controls .ace-control-textarea:-ms-input-placeholder { color: #999; } .ace-field-controls .ace-control-text::-webkit-input-placeholder, .ace-field-controls .ace-control-textarea::-webkit-input-placeholder { color: #999; } .ace-field-controls .ace-control-text:focus::-webkit-input-placeholder, .ace-field-controls .ace-control-textarea:focus::-webkit-input-placeholder { color: transparent!important; } .ace-field-controls .ace-control-select option, .ace-field-controls .ace-control-select optgroup { color: #222; } .ace-field-controls .ace-control-select.ace-control-empty, .ace-field-controls .ace-control-select .ace-placeholder { color: #999; } /* field validation messages styling */ .ace-validation-message { color: #C44102; margin-bottom: 0; vertical-align: middle; } .ace-field-validation-error .ace-control, .ace-field-validation-error .ace-field-item-label { color: #C44102; border-color: #C44102; } .ace-field-validation-error .ace-control:focus { border-color: #C44102; } /* asterisk for required fields */ .ace-required { color: #EF5003; } /* select controls customize */ .ace-field-controls .ace-control-select::-ms-expand { display: none; } .ace-ua-ie-lte9 + .ace-form .ace-control-select { background-position: -100px top; padding-right: .4em; } .ace-field-controls .ace-control-select { padding-right: 1.7em; -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url('data:image/gif;base64,R0lGODlhCQAFAIABAFVVVf///yH5BAEAAAEALAAAAAAJAAUAAAIKhH+BGYoNGWxgFgA7'); background-repeat: no-repeat; background-position: right 0.5em top 55%; } /* result styling */ .ace-result-index { display: inline-block; font-size: 2.2em; margin: 0 1% 0 0; width: 5%; font-family: serif; font-weight: bold; vertical-align: middle; } .ace-result-index:after { content: '.'; } .ace-result-logo { display: inline-block; width: 33%; margin: 0 1% 0 0; vertical-align: middle; } .ace-result-logo img { max-width: 100%; } .ace-result-title { text-align: right; font-family: serif; font-style: italic; display: inline-block; font-size: 2em; line-height: 120%; width: 60%; vertical-align: middle; } .ace-result-description { margin: 1em 0 0 0; } .ace-result-processed { background-color: #e9fcdd } .ace-result .ace-form-container { background-color: #fbfbfb; } /* action button styling */ .ace-action { margin: 0 0 0 0.5em; } .ace-action, .ace-action:link { cursor: pointer; display: inline-block; text-decoration: none; padding: 0.5em 1.5em; vertical-align: middle; background-color: #fff; color: #337ab7; border: 1px solid #eee; } .ace-action:hover, .ace-action:focus { color: #222; background-color: #f5f5f5; } /* form submit button styling */ .ace-action-form-submit, .ace-action-form-submit:link { color: #fff; background-color: #549fdd; border-color: #549fdd; } .ace-action-form-submit:hover, .ace-action-form-submit:focus { background-color: #5594d3; } /* messages styling */ .ace-message { padding: 0.5em 1em; margin-bottom: 0.5em; border: 1px solid #bce8f1; color: #31708f; background-color: #d9edf7; } .ace-message-error { color: #a94442; background-color: #f2dede; border-color: #ebccd1; } .ace-message .ace-action { vertical-align: baseline; padding: 0 1em; } /* busy marker styling */ .ace-busy { background-color: #fff; } .ace-busy span { text-transform: lowercase; font-size: 10px; color: #555; } .ace-busy span:before { content: ' '; display: inline-block; vertical-align: middle; width: 20px; height: 20px; margin: 0 6px 2px 0; background-color: #333; border-radius: 100%; -webkit-animation: sk-scaleout 1.0s infinite ease-in-out; animation: sk-scaleout 1.0s infinite ease-in-out; } @-webkit-keyframes sk-scaleout { 0% { -webkit-transform: scale(0) } 100% { -webkit-transform: scale(1.0); opacity: 0; } } @keyframes sk-scaleout { 0% { -webkit-transform: scale(0); transform: scale(0); } 100% { -webkit-transform: scale(1.0); transform: scale(1.0); opacity: 0; } } .ace-zip-container.ace-field-controls .ace-busy { background: transparent; } .ace-zip-container.ace-field-controls .ace-busy span:before { right: 0; margin: 0; position: absolute; } .ace-container.ace-zip-container.ace-field-controls .ace-busy span { top: 0.5em; right: 0.5em; margin: 0; text-indent: 9999px; overflow: hidden; }
Simple form template