update dependencies and run build

This commit is contained in:
David Miller 2021-04-27 15:33:34 -04:00
parent 8647dd5d47
commit 68298be8b9
7 changed files with 3888 additions and 917 deletions

View File

@ -21,7 +21,7 @@ $(function () {
$this = $("#sendMessageButton");
$this.prop("disabled", true); // Disable submit button until AJAX call is complete to prevent duplicate messages
$.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",
data: {
name: name,

View File

@ -8,7 +8,7 @@
* http://ReactiveRaven.github.com/jqBootstrapValidation/
*/
(function($) {
(function ($) {
var createdElements = [];
@ -23,13 +23,13 @@
autoAdd: {
helpBlocks: true
},
filter: function() {
filter: function () {
// return $(this).is(":visible"); // only validate elements you can see
return true; // validate everything
}
},
methods: {
init: function(options) {
init: function (options) {
var settings = $.extend(true, {}, defaults);
@ -38,18 +38,18 @@
var $siblingElements = this;
var uniqueForms = $.unique(
$siblingElements.map(function() {
$siblingElements.map(function () {
return $(this).parents("form")[0];
}).toArray()
);
$(uniqueForms).bind("submit", function(e) {
$(uniqueForms).bind("submit", function (e) {
var $form = $(this);
var warningsFound = 0;
var $inputs = $form.find("input,textarea,select").not("[type=submit],[type=image]").filter(settings.options.filter);
$inputs.trigger("submit.validation").trigger("validationLostFocus.validation");
$inputs.each(function(i, el) {
$inputs.each(function (i, el) {
var $this = $(el),
$controlGroup = $this.parents(".form-group").first();
if (
@ -78,7 +78,7 @@
}
});
return this.each(function() {
return this.each(function () {
// Get references to everything we're interested in
var $this = $(this),
@ -225,7 +225,7 @@
}
// 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(",");
if (parts[0] === "validation" && parts[1]) {
validatorNames.push(parts[1]);
@ -242,7 +242,7 @@
do // repeatedly expand 'shortcut' validators into their real validators
{
// Uppercase only the first letter of each name
$.each(validatorNames, function(i, el) {
$.each(validatorNames, function (i, el) {
validatorNames[i] = formatValidatorName(el);
});
@ -251,11 +251,11 @@
// Pull out the new validator names from each shortcut
newValidatorNamesToInspect = [];
$.each(validatorNamesToInspect, function(i, el) {
$.each(validatorNamesToInspect, function (i, el) {
if ($this.data("validation" + el + "Shortcut") !== undefined) {
// Are these custom validators?
// 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);
});
} else if (settings.builtInValidators[el.toLowerCase()]) {
@ -263,7 +263,7 @@
// Pull it out!
var validator = settings.builtInValidators[el.toLowerCase()];
if (validator.type.toLowerCase() === "shortcut") {
$.each(validator.shortcut.split(","), function(i, el) {
$.each(validator.shortcut.split(","), function (i, el) {
el = formatValidatorName(el);
newValidatorNamesToInspect.push(el);
validatorNames.push(el);
@ -282,7 +282,7 @@
var validators = {};
$.each(validatorNames, function(i, el) {
$.each(validatorNames, function (i, el) {
// Set up the 'override' message
var message = $this.data("validation" + el + "Message");
var hasOverrideMessage = (message !== undefined);
@ -296,7 +296,7 @@
$.each(
settings.validatorTypes,
function(validatorType, validatorTemplate) {
function (validatorType, validatorTemplate) {
if (validators[validatorType] === undefined) {
validators[validatorType] = [];
}
@ -328,7 +328,7 @@
} else {
$.each(
settings.validatorTypes,
function(validatorTemplateType, validatorTemplate) {
function (validatorTemplateType, validatorTemplate) {
if (validators[validatorTemplateType] === undefined) {
validators[validatorTemplateType] = [];
}
@ -398,16 +398,16 @@
$this.bind(
"validation.validation",
function(event, params) {
function (event, params) {
var value = getValue($this);
// Get a list of the errors to apply
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)) {
$.each(validatorTypeArray, function(i, validator) {
$.each(validatorTypeArray, function (i, validator) {
if (settings.validatorTypes[validatorType].validate($this, value, validator)) {
errorsFound.push(validator.message);
}
@ -421,7 +421,7 @@
$this.bind(
"getValidators.validation",
function() {
function () {
return validators;
}
);
@ -431,7 +431,7 @@
// =============================================================
$this.bind(
"submit.validation",
function() {
function () {
return $this.triggerHandler("change.validation", {
submitting: true
});
@ -447,15 +447,15 @@
"keypress",
"change"
].join(".validation ") + ".validation",
function(e, params) {
function (e, params) {
var value = getValue($this);
var errorsFound = [];
$controlGroup.find("input,textarea,select").each(function(i, el) {
$controlGroup.find("input,textarea,select").each(function (i, el) {
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);
});
if (errorsFound.length > oldCount) {
@ -498,15 +498,15 @@
}
}
);
$this.bind("validationLostFocus.validation", function() {
$this.bind("validationLostFocus.validation", function () {
$controlGroup.removeClass("success");
});
});
},
destroy: function() {
destroy: function () {
return this.each(
function() {
function () {
var
$this = $(this),
@ -532,10 +532,10 @@
);
},
collectErrors: function(includeEmpty) {
collectErrors: function (includeEmpty) {
var errorMessages = {};
this.each(function(i, el) {
this.each(function (i, el) {
var $el = $(el);
var name = $el.attr("name");
var errors = $el.triggerHandler("validation.validation", {
@ -544,7 +544,7 @@
errorMessages[name] = $.extend(true, errors, errorMessages[name]);
});
$.each(errorMessages, function(i, el) {
$.each(errorMessages, function (i, el) {
if (el.length === 0) {
delete errorMessages[i];
}
@ -553,11 +553,11 @@
return errorMessages;
},
hasErrors: function() {
hasErrors: function () {
var errorMessages = [];
this.each(function(i, el) {
this.each(function (i, el) {
errorMessages = errorMessages.concat(
$(el).triggerHandler("getValidators.validation") ? $(el).triggerHandler("validation.validation", {
submitting: true
@ -567,14 +567,14 @@
return (errorMessages.length > 0);
},
override: function(newDefaults) {
override: function (newDefaults) {
defaults = $.extend(true, defaults, newDefaults);
}
},
validatorTypes: {
callback: {
name: "callback",
init: function($this, name) {
init: function ($this, name) {
return {
validatorName: name,
callback: $this.data("validation" + name + "Callback"),
@ -583,7 +583,7 @@
lastFinished: true
};
},
validate: function($this, value, validator) {
validate: function ($this, value, validator) {
if (validator.lastValue === value && validator.lastFinished) {
return !validator.lastValid;
}
@ -600,7 +600,7 @@
window,
$this,
value,
function(data) {
function (data) {
if (rrjqbvValidator.lastValue === data.value) {
rrjqbvValidator.lastValid = data.valid;
if (data.message) {
@ -609,7 +609,7 @@
rrjqbvValidator.lastFinished = true;
rrjqbvThis.data("validation" + rrjqbvValidator.validatorName + "Message", rrjqbvValidator.message);
// Timeout is set to avoid problems with the events being considered 'already fired'
setTimeout(function() {
setTimeout(function () {
rrjqbvThis.trigger("change.validation");
}, 1); // doesn't need a long timeout, just long enough for the event bubble to burst
}
@ -623,7 +623,7 @@
},
ajax: {
name: "ajax",
init: function($this, name) {
init: function ($this, name) {
return {
validatorName: name,
url: $this.data("validation" + name + "Ajax"),
@ -632,7 +632,7 @@
lastFinished: true
};
},
validate: function($this, value, validator) {
validate: function ($this, value, validator) {
if ("" + validator.lastValue === "" + value && validator.lastFinished === true) {
return validator.lastValid === false;
}
@ -645,7 +645,7 @@
url: validator.url,
data: "value=" + value + "&field=" + $this.attr("name"),
dataType: "json",
success: function(data) {
success: function (data) {
if ("" + validator.lastValue === "" + data.value) {
validator.lastValid = !!(data.valid);
if (data.message) {
@ -654,18 +654,18 @@
validator.lastFinished = true;
$this.data("validation" + validator.validatorName + "Message", validator.message);
// Timeout is set to avoid problems with the events being considered 'already fired'
setTimeout(function() {
setTimeout(function () {
$this.trigger("change.validation");
}, 1); // doesn't need a long timeout, just long enough for the event bubble to burst
}
},
failure: function() {
failure: function () {
validator.lastValid = true;
validator.message = "ajax call failed";
validator.lastFinished = true;
$this.data("validation" + validator.validatorName + "Message", validator.message);
// Timeout is set to avoid problems with the events being considered 'already fired'
setTimeout(function() {
setTimeout(function () {
$this.trigger("change.validation");
}, 1); // doesn't need a long timeout, just long enough for the event bubble to burst
}
@ -678,22 +678,22 @@
},
regex: {
name: "regex",
init: function($this, name) {
init: function ($this, name) {
return {
regex: regexFromString($this.data("validation" + name + "Regex"))
};
},
validate: function($this, value, validator) {
validate: function ($this, value, validator) {
return (!validator.regex.test(value) && !validator.negative) ||
(validator.regex.test(value) && validator.negative);
}
},
required: {
name: "required",
init: function($this, name) {
init: function ($this, name) {
return {};
},
validate: function($this, value, validator) {
validate: function ($this, value, validator) {
return !!(value.length === 0 && !validator.negative) ||
!!(value.length > 0 && validator.negative);
},
@ -701,9 +701,9 @@
},
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();
element.bind("validation.validation", function() {
element.bind("validation.validation", function () {
$this.trigger("change.validation", {
submitting: true
});
@ -712,7 +712,7 @@
"element": element
};
},
validate: function($this, value, validator) {
validate: function ($this, value, validator) {
return (value !== validator.element.val() && !validator.negative) ||
(value === validator.element.val() && validator.negative);
},
@ -720,57 +720,57 @@
},
max: {
name: "max",
init: function($this, name) {
init: function ($this, name) {
return {
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) ||
(parseFloat(value, 10) <= parseFloat(validator.max, 10) && validator.negative);
}
},
min: {
name: "min",
init: function($this, name) {
init: function ($this, name) {
return {
min: $this.data("validation" + name + "Min")
};
},
validate: function($this, value, validator) {
validate: function ($this, value, validator) {
return (parseFloat(value) < parseFloat(validator.min) && !validator.negative) ||
(parseFloat(value) >= parseFloat(validator.min) && validator.negative);
}
},
maxlength: {
name: "maxlength",
init: function($this, name) {
init: function ($this, name) {
return {
maxlength: $this.data("validation" + name + "Maxlength")
};
},
validate: function($this, value, validator) {
validate: function ($this, value, validator) {
return ((value.length > validator.maxlength) && !validator.negative) ||
((value.length <= validator.maxlength) && validator.negative);
}
},
minlength: {
name: "minlength",
init: function($this, name) {
init: function ($this, name) {
return {
minlength: $this.data("validation" + name + "Minlength")
};
},
validate: function($this, value, validator) {
validate: function ($this, value, validator) {
return ((value.length < validator.minlength) && !validator.negative) ||
((value.length >= validator.minlength) && validator.negative);
}
},
maxchecked: {
name: "maxchecked",
init: function($this, name) {
init: function ($this, 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", {
includeEmpty: true
});
@ -780,7 +780,7 @@
elements: elements
};
},
validate: function($this, value, validator) {
validate: function ($this, value, validator) {
return (validator.elements.filter(":checked").length > validator.maxchecked && !validator.negative) ||
(validator.elements.filter(":checked").length <= validator.maxchecked && validator.negative);
},
@ -788,9 +788,9 @@
},
minchecked: {
name: "minchecked",
init: function($this, name) {
init: function ($this, 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", {
includeEmpty: true
});
@ -800,7 +800,7 @@
elements: elements
};
},
validate: function($this, value, validator) {
validate: function ($this, value, validator) {
return (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
.toLowerCase()
.replace(
/(^|\s)([a-z])/g,
function(m, p1, p2) {
function (m, p1, p2) {
return p1 + p2.toUpperCase();
}
);
};
var getValue = function($this) {
var getValue = function ($this) {
// Extract the value we're talking about
var value = $this.val();
var type = $this.attr("type");
@ -917,7 +917,7 @@
return context[func].apply(this, args);
}
$.fn.jqBootstrapValidation = function(method) {
$.fn.jqBootstrapValidation = function (method) {
if (defaults.methods[method]) {
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);
};

2
dist/css/styles.css vendored
View File

@ -1,6 +1,6 @@
@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
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-agency/blob/master/LICENSE)
*/

2
dist/index.html vendored
View File

@ -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-panel">
<div class="timeline-heading">
<h4>July 2021</h4>
<h4>July 2020</h4>
<h4 class="subheading">Phase Two Expansion</h4>
</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
View File

@ -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
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-agency/blob/master/LICENSE)
*/

2999
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
{
"title": "Agency",
"name": "startbootstrap-agency",
"version": "6.0.4",
"version": "6.0.5",
"scripts": {
"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",
@ -42,11 +42,11 @@
"autoprefixer": "10.2.5",
"browser-sync": "2.26.14",
"chokidar": "3.5.1",
"concurrently": "6.0.0",
"postcss": "8.2.8",
"concurrently": "6.0.2",
"postcss": "8.2.13",
"prettier": "2.2.1",
"pug": "3.0.2",
"sass": "1.32.8",
"sass": "1.32.11",
"shelljs": "0.8.4",
"upath": "2.0.1"
}