This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP FUNCTION IF EXISTS random_word; | |
CREATE FUNCTION random_word () | |
RETURNS TEXT | |
RETURN (ELT( FLOOR(1 + (RAND() * (100-1))), | |
'Lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consectetur', 'adipiscing', 'elit', 'Integer', 'nec', | |
'odio', 'Praesent', 'libero', 'Sed', 'cursus', 'ante', 'dapibus', 'diam', 'Sed', 'nisi', | |
'Nulla', 'quis', 'sem', 'at', 'nibh', 'elementum', 'imperdiet', 'Duis', 'sagittis', 'ipsum', | |
'Praesent', 'mauris', 'Fusce', 'nec', 'tellus', 'sed', 'augue', 'semper', 'porta', 'Mauris', | |
'massa', 'Vestibulum', 'lacinia', 'arcu', 'eget', 'nulla', 'Class', 'aptent', 'taciti', 'sociosqu', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.validator.addMethod("numberNotStartWithZero", function(value, element) { | |
return this.optional(element) || /^[1-9][0-9]+$/i.test(value); | |
}, "Please enter a valid number. (Do not start with zero)"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$(".monthPicker").datepicker({ | |
dateFormat: 'mm-yy', | |
changeMonth: true, | |
changeYear: true, | |
showButtonPanel: true, | |
onClose: function(dateText, inst) { | |
var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
// original line that might trigger IE warning | |
// $(":button").button(); | |
var $allButtons = $(":button"); | |
var buttonCount = $allButtons.size(); | |
var buttonized; | |
for(var i = 0; i < buttonCount; i = i + 100){ | |
buttonized = applyButtons($allButtons, i, 100); |
NewerOlder