update dependencies and run build
This commit is contained in:
parent
8647dd5d47
commit
68298be8b9
2
dist/assets/mail/contact_me.js
vendored
2
dist/assets/mail/contact_me.js
vendored
@ -21,7 +21,7 @@ $(function () {
|
|||||||
$this = $("#sendMessageButton");
|
$this = $("#sendMessageButton");
|
||||||
$this.prop("disabled", true); // Disable submit button until AJAX call is complete to prevent duplicate messages
|
$this.prop("disabled", true); // Disable submit button until AJAX call is complete to prevent duplicate messages
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/assets/mail/contact_me.php",
|
url: "/assets/mail/contact_me.php", // Make sure this points to the contact_me.php file on your server
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {
|
data: {
|
||||||
name: name,
|
name: name,
|
||||||
|
136
dist/assets/mail/jqBootstrapValidation.js
vendored
136
dist/assets/mail/jqBootstrapValidation.js
vendored
@ -8,7 +8,7 @@
|
|||||||
* http://ReactiveRaven.github.com/jqBootstrapValidation/
|
* http://ReactiveRaven.github.com/jqBootstrapValidation/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function($) {
|
(function ($) {
|
||||||
|
|
||||||
var createdElements = [];
|
var createdElements = [];
|
||||||
|
|
||||||
@ -23,13 +23,13 @@
|
|||||||
autoAdd: {
|
autoAdd: {
|
||||||
helpBlocks: true
|
helpBlocks: true
|
||||||
},
|
},
|
||||||
filter: function() {
|
filter: function () {
|
||||||
// return $(this).is(":visible"); // only validate elements you can see
|
// return $(this).is(":visible"); // only validate elements you can see
|
||||||
return true; // validate everything
|
return true; // validate everything
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init: function(options) {
|
init: function (options) {
|
||||||
|
|
||||||
var settings = $.extend(true, {}, defaults);
|
var settings = $.extend(true, {}, defaults);
|
||||||
|
|
||||||
@ -38,18 +38,18 @@
|
|||||||
var $siblingElements = this;
|
var $siblingElements = this;
|
||||||
|
|
||||||
var uniqueForms = $.unique(
|
var uniqueForms = $.unique(
|
||||||
$siblingElements.map(function() {
|
$siblingElements.map(function () {
|
||||||
return $(this).parents("form")[0];
|
return $(this).parents("form")[0];
|
||||||
}).toArray()
|
}).toArray()
|
||||||
);
|
);
|
||||||
|
|
||||||
$(uniqueForms).bind("submit", function(e) {
|
$(uniqueForms).bind("submit", function (e) {
|
||||||
var $form = $(this);
|
var $form = $(this);
|
||||||
var warningsFound = 0;
|
var warningsFound = 0;
|
||||||
var $inputs = $form.find("input,textarea,select").not("[type=submit],[type=image]").filter(settings.options.filter);
|
var $inputs = $form.find("input,textarea,select").not("[type=submit],[type=image]").filter(settings.options.filter);
|
||||||
$inputs.trigger("submit.validation").trigger("validationLostFocus.validation");
|
$inputs.trigger("submit.validation").trigger("validationLostFocus.validation");
|
||||||
|
|
||||||
$inputs.each(function(i, el) {
|
$inputs.each(function (i, el) {
|
||||||
var $this = $(el),
|
var $this = $(el),
|
||||||
$controlGroup = $this.parents(".form-group").first();
|
$controlGroup = $this.parents(".form-group").first();
|
||||||
if (
|
if (
|
||||||
@ -78,7 +78,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return this.each(function() {
|
return this.each(function () {
|
||||||
|
|
||||||
// Get references to everything we're interested in
|
// Get references to everything we're interested in
|
||||||
var $this = $(this),
|
var $this = $(this),
|
||||||
@ -225,7 +225,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get extra ones defined on the element's data attributes
|
// Get extra ones defined on the element's data attributes
|
||||||
$.each($this.data(), function(i, el) {
|
$.each($this.data(), function (i, el) {
|
||||||
var parts = i.replace(/([A-Z])/g, ",$1").split(",");
|
var parts = i.replace(/([A-Z])/g, ",$1").split(",");
|
||||||
if (parts[0] === "validation" && parts[1]) {
|
if (parts[0] === "validation" && parts[1]) {
|
||||||
validatorNames.push(parts[1]);
|
validatorNames.push(parts[1]);
|
||||||
@ -242,7 +242,7 @@
|
|||||||
do // repeatedly expand 'shortcut' validators into their real validators
|
do // repeatedly expand 'shortcut' validators into their real validators
|
||||||
{
|
{
|
||||||
// Uppercase only the first letter of each name
|
// Uppercase only the first letter of each name
|
||||||
$.each(validatorNames, function(i, el) {
|
$.each(validatorNames, function (i, el) {
|
||||||
validatorNames[i] = formatValidatorName(el);
|
validatorNames[i] = formatValidatorName(el);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -251,11 +251,11 @@
|
|||||||
|
|
||||||
// Pull out the new validator names from each shortcut
|
// Pull out the new validator names from each shortcut
|
||||||
newValidatorNamesToInspect = [];
|
newValidatorNamesToInspect = [];
|
||||||
$.each(validatorNamesToInspect, function(i, el) {
|
$.each(validatorNamesToInspect, function (i, el) {
|
||||||
if ($this.data("validation" + el + "Shortcut") !== undefined) {
|
if ($this.data("validation" + el + "Shortcut") !== undefined) {
|
||||||
// Are these custom validators?
|
// Are these custom validators?
|
||||||
// Pull them out!
|
// Pull them out!
|
||||||
$.each($this.data("validation" + el + "Shortcut").split(","), function(i2, el2) {
|
$.each($this.data("validation" + el + "Shortcut").split(","), function (i2, el2) {
|
||||||
newValidatorNamesToInspect.push(el2);
|
newValidatorNamesToInspect.push(el2);
|
||||||
});
|
});
|
||||||
} else if (settings.builtInValidators[el.toLowerCase()]) {
|
} else if (settings.builtInValidators[el.toLowerCase()]) {
|
||||||
@ -263,7 +263,7 @@
|
|||||||
// Pull it out!
|
// Pull it out!
|
||||||
var validator = settings.builtInValidators[el.toLowerCase()];
|
var validator = settings.builtInValidators[el.toLowerCase()];
|
||||||
if (validator.type.toLowerCase() === "shortcut") {
|
if (validator.type.toLowerCase() === "shortcut") {
|
||||||
$.each(validator.shortcut.split(","), function(i, el) {
|
$.each(validator.shortcut.split(","), function (i, el) {
|
||||||
el = formatValidatorName(el);
|
el = formatValidatorName(el);
|
||||||
newValidatorNamesToInspect.push(el);
|
newValidatorNamesToInspect.push(el);
|
||||||
validatorNames.push(el);
|
validatorNames.push(el);
|
||||||
@ -282,7 +282,7 @@
|
|||||||
|
|
||||||
var validators = {};
|
var validators = {};
|
||||||
|
|
||||||
$.each(validatorNames, function(i, el) {
|
$.each(validatorNames, function (i, el) {
|
||||||
// Set up the 'override' message
|
// Set up the 'override' message
|
||||||
var message = $this.data("validation" + el + "Message");
|
var message = $this.data("validation" + el + "Message");
|
||||||
var hasOverrideMessage = (message !== undefined);
|
var hasOverrideMessage = (message !== undefined);
|
||||||
@ -296,7 +296,7 @@
|
|||||||
|
|
||||||
$.each(
|
$.each(
|
||||||
settings.validatorTypes,
|
settings.validatorTypes,
|
||||||
function(validatorType, validatorTemplate) {
|
function (validatorType, validatorTemplate) {
|
||||||
if (validators[validatorType] === undefined) {
|
if (validators[validatorType] === undefined) {
|
||||||
validators[validatorType] = [];
|
validators[validatorType] = [];
|
||||||
}
|
}
|
||||||
@ -328,7 +328,7 @@
|
|||||||
} else {
|
} else {
|
||||||
$.each(
|
$.each(
|
||||||
settings.validatorTypes,
|
settings.validatorTypes,
|
||||||
function(validatorTemplateType, validatorTemplate) {
|
function (validatorTemplateType, validatorTemplate) {
|
||||||
if (validators[validatorTemplateType] === undefined) {
|
if (validators[validatorTemplateType] === undefined) {
|
||||||
validators[validatorTemplateType] = [];
|
validators[validatorTemplateType] = [];
|
||||||
}
|
}
|
||||||
@ -398,16 +398,16 @@
|
|||||||
|
|
||||||
$this.bind(
|
$this.bind(
|
||||||
"validation.validation",
|
"validation.validation",
|
||||||
function(event, params) {
|
function (event, params) {
|
||||||
|
|
||||||
var value = getValue($this);
|
var value = getValue($this);
|
||||||
|
|
||||||
// Get a list of the errors to apply
|
// Get a list of the errors to apply
|
||||||
var errorsFound = [];
|
var errorsFound = [];
|
||||||
|
|
||||||
$.each(validators, function(validatorType, validatorTypeArray) {
|
$.each(validators, function (validatorType, validatorTypeArray) {
|
||||||
if (value || value.length || (params && params.includeEmpty) || (!!settings.validatorTypes[validatorType].blockSubmit && params && !!params.submitting)) {
|
if (value || value.length || (params && params.includeEmpty) || (!!settings.validatorTypes[validatorType].blockSubmit && params && !!params.submitting)) {
|
||||||
$.each(validatorTypeArray, function(i, validator) {
|
$.each(validatorTypeArray, function (i, validator) {
|
||||||
if (settings.validatorTypes[validatorType].validate($this, value, validator)) {
|
if (settings.validatorTypes[validatorType].validate($this, value, validator)) {
|
||||||
errorsFound.push(validator.message);
|
errorsFound.push(validator.message);
|
||||||
}
|
}
|
||||||
@ -421,7 +421,7 @@
|
|||||||
|
|
||||||
$this.bind(
|
$this.bind(
|
||||||
"getValidators.validation",
|
"getValidators.validation",
|
||||||
function() {
|
function () {
|
||||||
return validators;
|
return validators;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -431,7 +431,7 @@
|
|||||||
// =============================================================
|
// =============================================================
|
||||||
$this.bind(
|
$this.bind(
|
||||||
"submit.validation",
|
"submit.validation",
|
||||||
function() {
|
function () {
|
||||||
return $this.triggerHandler("change.validation", {
|
return $this.triggerHandler("change.validation", {
|
||||||
submitting: true
|
submitting: true
|
||||||
});
|
});
|
||||||
@ -447,15 +447,15 @@
|
|||||||
"keypress",
|
"keypress",
|
||||||
"change"
|
"change"
|
||||||
].join(".validation ") + ".validation",
|
].join(".validation ") + ".validation",
|
||||||
function(e, params) {
|
function (e, params) {
|
||||||
|
|
||||||
var value = getValue($this);
|
var value = getValue($this);
|
||||||
|
|
||||||
var errorsFound = [];
|
var errorsFound = [];
|
||||||
|
|
||||||
$controlGroup.find("input,textarea,select").each(function(i, el) {
|
$controlGroup.find("input,textarea,select").each(function (i, el) {
|
||||||
var oldCount = errorsFound.length;
|
var oldCount = errorsFound.length;
|
||||||
$.each($(el).triggerHandler("validation.validation", params), function(j, message) {
|
$.each($(el).triggerHandler("validation.validation", params), function (j, message) {
|
||||||
errorsFound.push(message);
|
errorsFound.push(message);
|
||||||
});
|
});
|
||||||
if (errorsFound.length > oldCount) {
|
if (errorsFound.length > oldCount) {
|
||||||
@ -498,15 +498,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
$this.bind("validationLostFocus.validation", function() {
|
$this.bind("validationLostFocus.validation", function () {
|
||||||
$controlGroup.removeClass("success");
|
$controlGroup.removeClass("success");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
destroy: function() {
|
destroy: function () {
|
||||||
|
|
||||||
return this.each(
|
return this.each(
|
||||||
function() {
|
function () {
|
||||||
|
|
||||||
var
|
var
|
||||||
$this = $(this),
|
$this = $(this),
|
||||||
@ -532,10 +532,10 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
},
|
},
|
||||||
collectErrors: function(includeEmpty) {
|
collectErrors: function (includeEmpty) {
|
||||||
|
|
||||||
var errorMessages = {};
|
var errorMessages = {};
|
||||||
this.each(function(i, el) {
|
this.each(function (i, el) {
|
||||||
var $el = $(el);
|
var $el = $(el);
|
||||||
var name = $el.attr("name");
|
var name = $el.attr("name");
|
||||||
var errors = $el.triggerHandler("validation.validation", {
|
var errors = $el.triggerHandler("validation.validation", {
|
||||||
@ -544,7 +544,7 @@
|
|||||||
errorMessages[name] = $.extend(true, errors, errorMessages[name]);
|
errorMessages[name] = $.extend(true, errors, errorMessages[name]);
|
||||||
});
|
});
|
||||||
|
|
||||||
$.each(errorMessages, function(i, el) {
|
$.each(errorMessages, function (i, el) {
|
||||||
if (el.length === 0) {
|
if (el.length === 0) {
|
||||||
delete errorMessages[i];
|
delete errorMessages[i];
|
||||||
}
|
}
|
||||||
@ -553,11 +553,11 @@
|
|||||||
return errorMessages;
|
return errorMessages;
|
||||||
|
|
||||||
},
|
},
|
||||||
hasErrors: function() {
|
hasErrors: function () {
|
||||||
|
|
||||||
var errorMessages = [];
|
var errorMessages = [];
|
||||||
|
|
||||||
this.each(function(i, el) {
|
this.each(function (i, el) {
|
||||||
errorMessages = errorMessages.concat(
|
errorMessages = errorMessages.concat(
|
||||||
$(el).triggerHandler("getValidators.validation") ? $(el).triggerHandler("validation.validation", {
|
$(el).triggerHandler("getValidators.validation") ? $(el).triggerHandler("validation.validation", {
|
||||||
submitting: true
|
submitting: true
|
||||||
@ -567,14 +567,14 @@
|
|||||||
|
|
||||||
return (errorMessages.length > 0);
|
return (errorMessages.length > 0);
|
||||||
},
|
},
|
||||||
override: function(newDefaults) {
|
override: function (newDefaults) {
|
||||||
defaults = $.extend(true, defaults, newDefaults);
|
defaults = $.extend(true, defaults, newDefaults);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
validatorTypes: {
|
validatorTypes: {
|
||||||
callback: {
|
callback: {
|
||||||
name: "callback",
|
name: "callback",
|
||||||
init: function($this, name) {
|
init: function ($this, name) {
|
||||||
return {
|
return {
|
||||||
validatorName: name,
|
validatorName: name,
|
||||||
callback: $this.data("validation" + name + "Callback"),
|
callback: $this.data("validation" + name + "Callback"),
|
||||||
@ -583,7 +583,7 @@
|
|||||||
lastFinished: true
|
lastFinished: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
validate: function($this, value, validator) {
|
validate: function ($this, value, validator) {
|
||||||
if (validator.lastValue === value && validator.lastFinished) {
|
if (validator.lastValue === value && validator.lastFinished) {
|
||||||
return !validator.lastValid;
|
return !validator.lastValid;
|
||||||
}
|
}
|
||||||
@ -600,7 +600,7 @@
|
|||||||
window,
|
window,
|
||||||
$this,
|
$this,
|
||||||
value,
|
value,
|
||||||
function(data) {
|
function (data) {
|
||||||
if (rrjqbvValidator.lastValue === data.value) {
|
if (rrjqbvValidator.lastValue === data.value) {
|
||||||
rrjqbvValidator.lastValid = data.valid;
|
rrjqbvValidator.lastValid = data.valid;
|
||||||
if (data.message) {
|
if (data.message) {
|
||||||
@ -609,7 +609,7 @@
|
|||||||
rrjqbvValidator.lastFinished = true;
|
rrjqbvValidator.lastFinished = true;
|
||||||
rrjqbvThis.data("validation" + rrjqbvValidator.validatorName + "Message", rrjqbvValidator.message);
|
rrjqbvThis.data("validation" + rrjqbvValidator.validatorName + "Message", rrjqbvValidator.message);
|
||||||
// Timeout is set to avoid problems with the events being considered 'already fired'
|
// Timeout is set to avoid problems with the events being considered 'already fired'
|
||||||
setTimeout(function() {
|
setTimeout(function () {
|
||||||
rrjqbvThis.trigger("change.validation");
|
rrjqbvThis.trigger("change.validation");
|
||||||
}, 1); // doesn't need a long timeout, just long enough for the event bubble to burst
|
}, 1); // doesn't need a long timeout, just long enough for the event bubble to burst
|
||||||
}
|
}
|
||||||
@ -623,7 +623,7 @@
|
|||||||
},
|
},
|
||||||
ajax: {
|
ajax: {
|
||||||
name: "ajax",
|
name: "ajax",
|
||||||
init: function($this, name) {
|
init: function ($this, name) {
|
||||||
return {
|
return {
|
||||||
validatorName: name,
|
validatorName: name,
|
||||||
url: $this.data("validation" + name + "Ajax"),
|
url: $this.data("validation" + name + "Ajax"),
|
||||||
@ -632,7 +632,7 @@
|
|||||||
lastFinished: true
|
lastFinished: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
validate: function($this, value, validator) {
|
validate: function ($this, value, validator) {
|
||||||
if ("" + validator.lastValue === "" + value && validator.lastFinished === true) {
|
if ("" + validator.lastValue === "" + value && validator.lastFinished === true) {
|
||||||
return validator.lastValid === false;
|
return validator.lastValid === false;
|
||||||
}
|
}
|
||||||
@ -645,7 +645,7 @@
|
|||||||
url: validator.url,
|
url: validator.url,
|
||||||
data: "value=" + value + "&field=" + $this.attr("name"),
|
data: "value=" + value + "&field=" + $this.attr("name"),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data) {
|
success: function (data) {
|
||||||
if ("" + validator.lastValue === "" + data.value) {
|
if ("" + validator.lastValue === "" + data.value) {
|
||||||
validator.lastValid = !!(data.valid);
|
validator.lastValid = !!(data.valid);
|
||||||
if (data.message) {
|
if (data.message) {
|
||||||
@ -654,18 +654,18 @@
|
|||||||
validator.lastFinished = true;
|
validator.lastFinished = true;
|
||||||
$this.data("validation" + validator.validatorName + "Message", validator.message);
|
$this.data("validation" + validator.validatorName + "Message", validator.message);
|
||||||
// Timeout is set to avoid problems with the events being considered 'already fired'
|
// Timeout is set to avoid problems with the events being considered 'already fired'
|
||||||
setTimeout(function() {
|
setTimeout(function () {
|
||||||
$this.trigger("change.validation");
|
$this.trigger("change.validation");
|
||||||
}, 1); // doesn't need a long timeout, just long enough for the event bubble to burst
|
}, 1); // doesn't need a long timeout, just long enough for the event bubble to burst
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
failure: function() {
|
failure: function () {
|
||||||
validator.lastValid = true;
|
validator.lastValid = true;
|
||||||
validator.message = "ajax call failed";
|
validator.message = "ajax call failed";
|
||||||
validator.lastFinished = true;
|
validator.lastFinished = true;
|
||||||
$this.data("validation" + validator.validatorName + "Message", validator.message);
|
$this.data("validation" + validator.validatorName + "Message", validator.message);
|
||||||
// Timeout is set to avoid problems with the events being considered 'already fired'
|
// Timeout is set to avoid problems with the events being considered 'already fired'
|
||||||
setTimeout(function() {
|
setTimeout(function () {
|
||||||
$this.trigger("change.validation");
|
$this.trigger("change.validation");
|
||||||
}, 1); // doesn't need a long timeout, just long enough for the event bubble to burst
|
}, 1); // doesn't need a long timeout, just long enough for the event bubble to burst
|
||||||
}
|
}
|
||||||
@ -678,22 +678,22 @@
|
|||||||
},
|
},
|
||||||
regex: {
|
regex: {
|
||||||
name: "regex",
|
name: "regex",
|
||||||
init: function($this, name) {
|
init: function ($this, name) {
|
||||||
return {
|
return {
|
||||||
regex: regexFromString($this.data("validation" + name + "Regex"))
|
regex: regexFromString($this.data("validation" + name + "Regex"))
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
validate: function($this, value, validator) {
|
validate: function ($this, value, validator) {
|
||||||
return (!validator.regex.test(value) && !validator.negative) ||
|
return (!validator.regex.test(value) && !validator.negative) ||
|
||||||
(validator.regex.test(value) && validator.negative);
|
(validator.regex.test(value) && validator.negative);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
required: {
|
required: {
|
||||||
name: "required",
|
name: "required",
|
||||||
init: function($this, name) {
|
init: function ($this, name) {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
validate: function($this, value, validator) {
|
validate: function ($this, value, validator) {
|
||||||
return !!(value.length === 0 && !validator.negative) ||
|
return !!(value.length === 0 && !validator.negative) ||
|
||||||
!!(value.length > 0 && validator.negative);
|
!!(value.length > 0 && validator.negative);
|
||||||
},
|
},
|
||||||
@ -701,9 +701,9 @@
|
|||||||
},
|
},
|
||||||
match: {
|
match: {
|
||||||
name: "match",
|
name: "match",
|
||||||
init: function($this, name) {
|
init: function ($this, name) {
|
||||||
var element = $this.parents("form").first().find("[name=\"" + $this.data("validation" + name + "Match") + "\"]").first();
|
var element = $this.parents("form").first().find("[name=\"" + $this.data("validation" + name + "Match") + "\"]").first();
|
||||||
element.bind("validation.validation", function() {
|
element.bind("validation.validation", function () {
|
||||||
$this.trigger("change.validation", {
|
$this.trigger("change.validation", {
|
||||||
submitting: true
|
submitting: true
|
||||||
});
|
});
|
||||||
@ -712,7 +712,7 @@
|
|||||||
"element": element
|
"element": element
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
validate: function($this, value, validator) {
|
validate: function ($this, value, validator) {
|
||||||
return (value !== validator.element.val() && !validator.negative) ||
|
return (value !== validator.element.val() && !validator.negative) ||
|
||||||
(value === validator.element.val() && validator.negative);
|
(value === validator.element.val() && validator.negative);
|
||||||
},
|
},
|
||||||
@ -720,57 +720,57 @@
|
|||||||
},
|
},
|
||||||
max: {
|
max: {
|
||||||
name: "max",
|
name: "max",
|
||||||
init: function($this, name) {
|
init: function ($this, name) {
|
||||||
return {
|
return {
|
||||||
max: $this.data("validation" + name + "Max")
|
max: $this.data("validation" + name + "Max")
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
validate: function($this, value, validator) {
|
validate: function ($this, value, validator) {
|
||||||
return (parseFloat(value, 10) > parseFloat(validator.max, 10) && !validator.negative) ||
|
return (parseFloat(value, 10) > parseFloat(validator.max, 10) && !validator.negative) ||
|
||||||
(parseFloat(value, 10) <= parseFloat(validator.max, 10) && validator.negative);
|
(parseFloat(value, 10) <= parseFloat(validator.max, 10) && validator.negative);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
min: {
|
min: {
|
||||||
name: "min",
|
name: "min",
|
||||||
init: function($this, name) {
|
init: function ($this, name) {
|
||||||
return {
|
return {
|
||||||
min: $this.data("validation" + name + "Min")
|
min: $this.data("validation" + name + "Min")
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
validate: function($this, value, validator) {
|
validate: function ($this, value, validator) {
|
||||||
return (parseFloat(value) < parseFloat(validator.min) && !validator.negative) ||
|
return (parseFloat(value) < parseFloat(validator.min) && !validator.negative) ||
|
||||||
(parseFloat(value) >= parseFloat(validator.min) && validator.negative);
|
(parseFloat(value) >= parseFloat(validator.min) && validator.negative);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
maxlength: {
|
maxlength: {
|
||||||
name: "maxlength",
|
name: "maxlength",
|
||||||
init: function($this, name) {
|
init: function ($this, name) {
|
||||||
return {
|
return {
|
||||||
maxlength: $this.data("validation" + name + "Maxlength")
|
maxlength: $this.data("validation" + name + "Maxlength")
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
validate: function($this, value, validator) {
|
validate: function ($this, value, validator) {
|
||||||
return ((value.length > validator.maxlength) && !validator.negative) ||
|
return ((value.length > validator.maxlength) && !validator.negative) ||
|
||||||
((value.length <= validator.maxlength) && validator.negative);
|
((value.length <= validator.maxlength) && validator.negative);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
minlength: {
|
minlength: {
|
||||||
name: "minlength",
|
name: "minlength",
|
||||||
init: function($this, name) {
|
init: function ($this, name) {
|
||||||
return {
|
return {
|
||||||
minlength: $this.data("validation" + name + "Minlength")
|
minlength: $this.data("validation" + name + "Minlength")
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
validate: function($this, value, validator) {
|
validate: function ($this, value, validator) {
|
||||||
return ((value.length < validator.minlength) && !validator.negative) ||
|
return ((value.length < validator.minlength) && !validator.negative) ||
|
||||||
((value.length >= validator.minlength) && validator.negative);
|
((value.length >= validator.minlength) && validator.negative);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
maxchecked: {
|
maxchecked: {
|
||||||
name: "maxchecked",
|
name: "maxchecked",
|
||||||
init: function($this, name) {
|
init: function ($this, name) {
|
||||||
var elements = $this.parents("form").first().find("[name=\"" + $this.attr("name") + "\"]");
|
var elements = $this.parents("form").first().find("[name=\"" + $this.attr("name") + "\"]");
|
||||||
elements.bind("click.validation", function() {
|
elements.bind("click.validation", function () {
|
||||||
$this.trigger("change.validation", {
|
$this.trigger("change.validation", {
|
||||||
includeEmpty: true
|
includeEmpty: true
|
||||||
});
|
});
|
||||||
@ -780,7 +780,7 @@
|
|||||||
elements: elements
|
elements: elements
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
validate: function($this, value, validator) {
|
validate: function ($this, value, validator) {
|
||||||
return (validator.elements.filter(":checked").length > validator.maxchecked && !validator.negative) ||
|
return (validator.elements.filter(":checked").length > validator.maxchecked && !validator.negative) ||
|
||||||
(validator.elements.filter(":checked").length <= validator.maxchecked && validator.negative);
|
(validator.elements.filter(":checked").length <= validator.maxchecked && validator.negative);
|
||||||
},
|
},
|
||||||
@ -788,9 +788,9 @@
|
|||||||
},
|
},
|
||||||
minchecked: {
|
minchecked: {
|
||||||
name: "minchecked",
|
name: "minchecked",
|
||||||
init: function($this, name) {
|
init: function ($this, name) {
|
||||||
var elements = $this.parents("form").first().find("[name=\"" + $this.attr("name") + "\"]");
|
var elements = $this.parents("form").first().find("[name=\"" + $this.attr("name") + "\"]");
|
||||||
elements.bind("click.validation", function() {
|
elements.bind("click.validation", function () {
|
||||||
$this.trigger("change.validation", {
|
$this.trigger("change.validation", {
|
||||||
includeEmpty: true
|
includeEmpty: true
|
||||||
});
|
});
|
||||||
@ -800,7 +800,7 @@
|
|||||||
elements: elements
|
elements: elements
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
validate: function($this, value, validator) {
|
validate: function ($this, value, validator) {
|
||||||
return (validator.elements.filter(":checked").length < validator.minchecked && !validator.negative) ||
|
return (validator.elements.filter(":checked").length < validator.minchecked && !validator.negative) ||
|
||||||
(validator.elements.filter(":checked").length >= validator.minchecked && validator.negative);
|
(validator.elements.filter(":checked").length >= validator.minchecked && validator.negative);
|
||||||
},
|
},
|
||||||
@ -873,18 +873,18 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var formatValidatorName = function(name) {
|
var formatValidatorName = function (name) {
|
||||||
return name
|
return name
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.replace(
|
.replace(
|
||||||
/(^|\s)([a-z])/g,
|
/(^|\s)([a-z])/g,
|
||||||
function(m, p1, p2) {
|
function (m, p1, p2) {
|
||||||
return p1 + p2.toUpperCase();
|
return p1 + p2.toUpperCase();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
var getValue = function($this) {
|
var getValue = function ($this) {
|
||||||
// Extract the value we're talking about
|
// Extract the value we're talking about
|
||||||
var value = $this.val();
|
var value = $this.val();
|
||||||
var type = $this.attr("type");
|
var type = $this.attr("type");
|
||||||
@ -917,7 +917,7 @@
|
|||||||
return context[func].apply(this, args);
|
return context[func].apply(this, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
$.fn.jqBootstrapValidation = function(method) {
|
$.fn.jqBootstrapValidation = function (method) {
|
||||||
|
|
||||||
if (defaults.methods[method]) {
|
if (defaults.methods[method]) {
|
||||||
return defaults.methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
|
return defaults.methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
|
||||||
@ -930,7 +930,7 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$.jqBootstrapValidation = function(options) {
|
$.jqBootstrapValidation = function (options) {
|
||||||
$(":input").not("[type=image],[type=submit]").jqBootstrapValidation.apply(this, arguments);
|
$(":input").not("[type=image],[type=submit]").jqBootstrapValidation.apply(this, arguments);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
2
dist/css/styles.css
vendored
2
dist/css/styles.css
vendored
@ -1,6 +1,6 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/*!
|
/*!
|
||||||
* Start Bootstrap - Agency v6.0.4 (https://startbootstrap.com/theme/agency)
|
* Start Bootstrap - Agency v6.0.5 (https://startbootstrap.com/theme/agency)
|
||||||
* Copyright 2013-2021 Start Bootstrap
|
* Copyright 2013-2021 Start Bootstrap
|
||||||
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-agency/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-agency/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -215,7 +215,7 @@
|
|||||||
<div class="timeline-image"><img class="rounded-circle img-fluid" src="assets/img/about/4.jpg" alt="..." /></div>
|
<div class="timeline-image"><img class="rounded-circle img-fluid" src="assets/img/about/4.jpg" alt="..." /></div>
|
||||||
<div class="timeline-panel">
|
<div class="timeline-panel">
|
||||||
<div class="timeline-heading">
|
<div class="timeline-heading">
|
||||||
<h4>July 2021</h4>
|
<h4>July 2020</h4>
|
||||||
<h4 class="subheading">Phase Two Expansion</h4>
|
<h4 class="subheading">Phase Two Expansion</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="timeline-body"><p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt ut voluptatum eius sapiente, totam reiciendis temporibus qui quibusdam, recusandae sit vero unde, sed, incidunt et ea quo dolore laudantium consectetur!</p></div>
|
<div class="timeline-body"><p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt ut voluptatum eius sapiente, totam reiciendis temporibus qui quibusdam, recusandae sit vero unde, sed, incidunt et ea quo dolore laudantium consectetur!</p></div>
|
||||||
|
2
dist/js/scripts.js
vendored
2
dist/js/scripts.js
vendored
@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* Start Bootstrap - Agency v6.0.4 (https://startbootstrap.com/theme/agency)
|
* Start Bootstrap - Agency v6.0.5 (https://startbootstrap.com/theme/agency)
|
||||||
* Copyright 2013-2021 Start Bootstrap
|
* Copyright 2013-2021 Start Bootstrap
|
||||||
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-agency/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-agency/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
2999
package-lock.json
generated
2999
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"title": "Agency",
|
"title": "Agency",
|
||||||
"name": "startbootstrap-agency",
|
"name": "startbootstrap-agency",
|
||||||
"version": "6.0.4",
|
"version": "6.0.5",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run clean && npm run build:pug && npm run build:scss && npm run build:scripts && npm run build:assets",
|
"build": "npm run clean && npm run build:pug && npm run build:scss && npm run build:scripts && npm run build:assets",
|
||||||
"build:assets": "node scripts/build-assets.js",
|
"build:assets": "node scripts/build-assets.js",
|
||||||
@ -42,11 +42,11 @@
|
|||||||
"autoprefixer": "10.2.5",
|
"autoprefixer": "10.2.5",
|
||||||
"browser-sync": "2.26.14",
|
"browser-sync": "2.26.14",
|
||||||
"chokidar": "3.5.1",
|
"chokidar": "3.5.1",
|
||||||
"concurrently": "6.0.0",
|
"concurrently": "6.0.2",
|
||||||
"postcss": "8.2.8",
|
"postcss": "8.2.13",
|
||||||
"prettier": "2.2.1",
|
"prettier": "2.2.1",
|
||||||
"pug": "3.0.2",
|
"pug": "3.0.2",
|
||||||
"sass": "1.32.8",
|
"sass": "1.32.11",
|
||||||
"shelljs": "0.8.4",
|
"shelljs": "0.8.4",
|
||||||
"upath": "2.0.1"
|
"upath": "2.0.1"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user