Initial: static site migrated from S3

This commit is contained in:
Jarvis Prime
2026-03-23 16:10:59 +00:00
commit ca8d059a9f
275 changed files with 55854 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
(function($) {
var validation = function() {
var rules = { // Private object
email : {
check: function(value) {
if(value) {
var pattern = /^[a-zA-Z0-9\._-]+@[a-zA-Z0-9\.-]+\.[a-zA-Z]{2,4}$/;
return testValue(value, pattern);
}
return false;
},
msg : ""
},
required : {
check: function(value) {
if(value) {
return true;
}
else {
return false;
}
},
msg : ""
}
}
var testValue = function(value, pattern) { // Private Method
return pattern.test(value);
}
return { // Public methods
addRule : function(name, rule) {
rules[name] = rule;
},
getRule : function(name) {
return rules[name];
}
}
}
//A new instance of our object in the jQuery namespace.
$.validation = new validation();
})(jQuery);