|
@@ -95,7 +95,7 @@ var load = function () {
|
|
|
$("#main").on("submit", "form", function (event) {
|
|
$("#main").on("submit", "form", function (event) {
|
|
|
console.log("handle submit");
|
|
console.log("handle submit");
|
|
|
|
|
|
|
|
- var form = $("#main").find(".data-form")[0];
|
|
|
|
|
|
|
+ var form = $("#main").find("form")[0];
|
|
|
|
|
|
|
|
// Stop the form from submitting since we’re handling that with AJAX.
|
|
// Stop the form from submitting since we’re handling that with AJAX.
|
|
|
event.preventDefault();
|
|
event.preventDefault();
|
|
@@ -158,7 +158,7 @@ $(window).on('hashchange', function () {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
-//######### MAIN ###############
|
|
|
|
|
|
|
+// ############ MAIN ###############
|
|
|
|
|
|
|
|
// ### Interactions
|
|
// ### Interactions
|
|
|
|
|
|
|
@@ -396,68 +396,68 @@ var formToJSON = function formToJSON(elements) {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
-/*
|
|
|
|
|
- Intensify by TEMPLATED
|
|
|
|
|
- templated.co @templatedco
|
|
|
|
|
- Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
|
|
|
|
|
-*/
|
|
|
|
|
-
|
|
|
|
|
-(function ($) {
|
|
|
|
|
-
|
|
|
|
|
- skel.breakpoints({
|
|
|
|
|
- xlarge: '(max-width: 1680px)',
|
|
|
|
|
- large: '(max-width: 1280px)',
|
|
|
|
|
- medium: '(max-width: 980px)',
|
|
|
|
|
- small: '(max-width: 736px)',
|
|
|
|
|
- xsmall: '(max-width: 480px)'
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- $(function () {
|
|
|
|
|
-
|
|
|
|
|
- var $window = $(window),
|
|
|
|
|
- $body = $('body'),
|
|
|
|
|
- $header = $('#header');
|
|
|
|
|
-
|
|
|
|
|
- // Disable animations/transitions until the page has loaded.
|
|
|
|
|
- $body.addClass('is-loading');
|
|
|
|
|
-
|
|
|
|
|
- $window.on('load', function () {
|
|
|
|
|
- window.setTimeout(function () {
|
|
|
|
|
- $body.removeClass('is-loading');
|
|
|
|
|
- }, 100);
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Fix: Placeholder polyfill.
|
|
|
|
|
- $('form').placeholder();
|
|
|
|
|
-
|
|
|
|
|
- // Prioritize "important" elements on medium.
|
|
|
|
|
- skel.on('+medium -medium', function () {
|
|
|
|
|
- $.prioritize(
|
|
|
|
|
- '.important\\28 medium\\29',
|
|
|
|
|
- skel.breakpoint('medium').active
|
|
|
|
|
- );
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Scrolly.
|
|
|
|
|
- $('.scrolly').scrolly({
|
|
|
|
|
- offset: function () {
|
|
|
|
|
- return $header.height();
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Menu.
|
|
|
|
|
- $('#menu')
|
|
|
|
|
- .append('<a href="#menu" class="close"></a>')
|
|
|
|
|
- .appendTo($body)
|
|
|
|
|
- .panel({
|
|
|
|
|
- delay: 500,
|
|
|
|
|
- hideOnClick: true,
|
|
|
|
|
- hideOnSwipe: true,
|
|
|
|
|
- resetScroll: true,
|
|
|
|
|
- resetForms: true,
|
|
|
|
|
- side: 'right'
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
-})(jQuery);
|
|
|
|
|
|
|
+///*
|
|
|
|
|
+// Intensify by TEMPLATED
|
|
|
|
|
+// templated.co @templatedco
|
|
|
|
|
+// Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
|
|
|
|
|
+//*/
|
|
|
|
|
+
|
|
|
|
|
+//(function ($) {
|
|
|
|
|
+
|
|
|
|
|
+// skel.breakpoints({
|
|
|
|
|
+// xlarge: '(max-width: 1680px)',
|
|
|
|
|
+// large: '(max-width: 1280px)',
|
|
|
|
|
+// medium: '(max-width: 980px)',
|
|
|
|
|
+// small: '(max-width: 736px)',
|
|
|
|
|
+// xsmall: '(max-width: 480px)'
|
|
|
|
|
+// });
|
|
|
|
|
+
|
|
|
|
|
+// $(function () {
|
|
|
|
|
+
|
|
|
|
|
+// var $window = $(window),
|
|
|
|
|
+// $body = $('body'),
|
|
|
|
|
+// $header = $('#header');
|
|
|
|
|
+
|
|
|
|
|
+// // Disable animations/transitions until the page has loaded.
|
|
|
|
|
+// $body.addClass('is-loading');
|
|
|
|
|
+
|
|
|
|
|
+// $window.on('load', function () {
|
|
|
|
|
+// window.setTimeout(function () {
|
|
|
|
|
+// $body.removeClass('is-loading');
|
|
|
|
|
+// }, 100);
|
|
|
|
|
+// });
|
|
|
|
|
+
|
|
|
|
|
+// // Fix: Placeholder polyfill.
|
|
|
|
|
+// $('form').placeholder();
|
|
|
|
|
+
|
|
|
|
|
+// // Prioritize "important" elements on medium.
|
|
|
|
|
+// skel.on('+medium -medium', function () {
|
|
|
|
|
+// $.prioritize(
|
|
|
|
|
+// '.important\\28 medium\\29',
|
|
|
|
|
+// skel.breakpoint('medium').active
|
|
|
|
|
+// );
|
|
|
|
|
+// });
|
|
|
|
|
+
|
|
|
|
|
+// // Scrolly.
|
|
|
|
|
+// $('.scrolly').scrolly({
|
|
|
|
|
+// offset: function () {
|
|
|
|
|
+// return $header.height();
|
|
|
|
|
+// }
|
|
|
|
|
+// });
|
|
|
|
|
+
|
|
|
|
|
+// // Menu.
|
|
|
|
|
+// $('#menu')
|
|
|
|
|
+// .append('<a href="#menu" class="close"></a>')
|
|
|
|
|
+// .appendTo($body)
|
|
|
|
|
+// .panel({
|
|
|
|
|
+// delay: 500,
|
|
|
|
|
+// hideOnClick: true,
|
|
|
|
|
+// hideOnSwipe: true,
|
|
|
|
|
+// resetScroll: true,
|
|
|
|
|
+// resetForms: true,
|
|
|
|
|
+// side: 'right'
|
|
|
|
|
+// });
|
|
|
|
|
+
|
|
|
|
|
+// });
|
|
|
|
|
+
|
|
|
|
|
+//})(jQuery);
|