Load this (custom) CSS before the jQuery Mobile CSS, otherwise some styles will not be applied correctly!
/* | |
* jQuery.ajaxEnvironment.js | |
* https://gist.github.com/jhogervorst/8166217 | |
* | |
* jQuery.Mobile.ajaxUpload.js | |
* https://gist.github.com/jhogervorst/8166385 | |
* | |
* Copyright (C) 2013 Jonathan Hogervorst. All rights reserved. | |
* This code is licensed under MIT license. | |
*/ |
/* | |
* jQuery.ajaxEnvironment.js | |
* https://gist.github.com/jhogervorst/8166217 | |
* | |
* Copyright (C) 2013 Jonathan Hogervorst. All rights reserved. | |
* This code is licensed under MIT license. | |
*/ | |
(function($) { | |
$.ajaxEnvironment = function(settings, block) { |
/** | |
* This code makes all 16px texts in jQuery Mobile 14px. | |
* | |
* It's based on the CSS of jQuery Mobile 1.2.0 Alpha | |
* (by searching for occurrences of "font-size: 16px" | |
* and adding the found selectors to the list below). | |
* | |
* The size of the titles in navigation bars remains 16px | |
* Want those at 14px as well? Uncomment the parts below. | |
**/ |
/* F - Red Theme for jQuery Mobile | |
* Available on: https://gist.github.com/3286492 | |
* Extended from: https://gist.github.com/1117705 (older version!) | |
-----------------------------------------------------------------------------------------------------------*/ | |
.ui-bar-f { | |
border: 1px solid #a60000 /*{a-bar-border}*/; | |
background: #f00 /*{a-bar-background-color}*/; | |
color: #fff /*{a-bar-color}*/; | |
font-weight: bold; |
I was struggling to get jQuery Validation Plugin's regexes working with PHP, to make the server side validation behave exactly the same as the client side validation. I got it working after some hours (and much frustration), so I'd like to share it with all of you!
The regexes are modified versions of the regexes included in jQuery Validation Plugin 1.9.0.