Compare commits
8 Commits
158f07e374
...
feature/is
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1fcdca95b7 | ||
| 88ef7aa6ac | |||
| bf53da13be | |||
| 2307c379dc | |||
| 2c6ed749d5 | |||
| c2f2709790 | |||
| 69ca8efa47 | |||
| 40001adbce |
@@ -991,6 +991,36 @@ nav.scrolled .nav-hamburger span::after {
|
|||||||
transform: translateY(-1px);
|
transform: translateY(-1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-errors {
|
||||||
|
background: #fdf2f2;
|
||||||
|
border: 1px solid #e8a0a0;
|
||||||
|
padding: 1rem 1.2rem;
|
||||||
|
margin-bottom: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-errors ul {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 0 0 1.2rem;
|
||||||
|
list-style: disc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-errors li {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: #9e2c2c;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hp-field {
|
||||||
|
position: absolute;
|
||||||
|
left: -9999px;
|
||||||
|
top: -9999px;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
.form-success {
|
.form-success {
|
||||||
display: none;
|
display: none;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ module.exports = [
|
|||||||
sourceType: "script",
|
sourceType: "script",
|
||||||
globals: {
|
globals: {
|
||||||
...globals.browser,
|
...globals.browser,
|
||||||
...globals.jquery,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
|
|||||||
@@ -1,3 +1,127 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
|
||||||
|
// --- Helper functions ---
|
||||||
|
function normalizeContactValue(string $value): string
|
||||||
|
{
|
||||||
|
return trim($value);
|
||||||
|
}
|
||||||
|
|
||||||
|
function escapeContactValue(string $value): string
|
||||||
|
{
|
||||||
|
return htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
|
||||||
|
}
|
||||||
|
|
||||||
|
function containsHeaderInjection(string $value): bool
|
||||||
|
{
|
||||||
|
return (bool) preg_match('/[\r\n]/', $value);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// --- Form processing ---
|
||||||
|
$formErrors = [];
|
||||||
|
$formSuccess = false;
|
||||||
|
if (!empty($_SESSION['form_success'])) {
|
||||||
|
$formSuccess = true;
|
||||||
|
unset($_SESSION['form_success']);
|
||||||
|
}
|
||||||
|
if (!empty($_SESSION['form_errors'])) {
|
||||||
|
$formErrors = $_SESSION['form_errors'];
|
||||||
|
unset($_SESSION['form_errors']);
|
||||||
|
}
|
||||||
|
if (!empty($_SESSION['form_data'])) {
|
||||||
|
$formData = $_SESSION['form_data'];
|
||||||
|
unset($_SESSION['form_data']);
|
||||||
|
} else {
|
||||||
|
$formData = ['fname' => '', 'lname' => '', 'email' => '', 'phone' => '', 'interest' => 'Besichtigung anfragen', 'message' => ''];
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||||
|
// Collect and normalize input
|
||||||
|
$formData['fname'] = normalizeContactValue((string) ($_POST['fname'] ?? ''));
|
||||||
|
$formData['lname'] = normalizeContactValue((string) ($_POST['lname'] ?? ''));
|
||||||
|
$formData['email'] = normalizeContactValue((string) ($_POST['email'] ?? ''));
|
||||||
|
$formData['phone'] = normalizeContactValue((string) ($_POST['phone'] ?? ''));
|
||||||
|
$formData['interest'] = normalizeContactValue((string) ($_POST['interest'] ?? ''));
|
||||||
|
$formData['message'] = normalizeContactValue((string) ($_POST['message'] ?? ''));
|
||||||
|
|
||||||
|
// Honeypot check – hidden field must be empty
|
||||||
|
$honeypot = normalizeContactValue((string) ($_POST['website'] ?? ''));
|
||||||
|
if ($honeypot !== '') {
|
||||||
|
// Bot detected – pretend success
|
||||||
|
header('Location: ' . $_SERVER['REQUEST_URI'] . '#form-result');
|
||||||
|
$_SESSION['form_success'] = true;
|
||||||
|
exit;
|
||||||
|
} else {
|
||||||
|
// Server-side validation
|
||||||
|
if ($formData['fname'] === '') {
|
||||||
|
$formErrors[] = 'Bitte geben Sie Ihren Vornamen an.';
|
||||||
|
}
|
||||||
|
if ($formData['lname'] === '') {
|
||||||
|
$formErrors[] = 'Bitte geben Sie Ihren Nachnamen an.';
|
||||||
|
}
|
||||||
|
if ($formData['email'] === '' || !filter_var($formData['email'], FILTER_VALIDATE_EMAIL)) {
|
||||||
|
$formErrors[] = 'Bitte geben Sie eine gültige E-Mail-Adresse an.';
|
||||||
|
}
|
||||||
|
if ($formData['message'] === '') {
|
||||||
|
$formErrors[] = 'Bitte geben Sie eine Nachricht ein.';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Header injection check
|
||||||
|
if (containsHeaderInjection($formData['email']) || containsHeaderInjection($formData['fname'] . ' ' . $formData['lname'])) {
|
||||||
|
$formErrors[] = 'Ungültige Zeichen in den Eingabefeldern.';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Minimum time check – form submitted too fast (< 3 seconds)
|
||||||
|
$formTime = isset($_POST['form_time']) ? (int) $_POST['form_time'] : 0;
|
||||||
|
if ($formTime > 0 && (time() - $formTime) < 3) {
|
||||||
|
$formErrors[] = 'Das Formular wurde zu schnell abgeschickt. Bitte versuchen Sie es erneut.';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Session rate limit – max 1 submission per 60 seconds
|
||||||
|
$lastSubmit = $_SESSION['last_contact_submit'] ?? 0;
|
||||||
|
if ($lastSubmit && (time() - $lastSubmit) < 60) {
|
||||||
|
$formErrors[] = 'Bitte warten Sie einen Moment vor der nächsten Anfrage.';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Send email if no errors
|
||||||
|
if (empty($formErrors)) {
|
||||||
|
$to = 'mki@kies-media.de';
|
||||||
|
$subject = 'Kontaktanfrage: ' . $formData['interest'];
|
||||||
|
$body = "Von: {$formData['fname']} {$formData['lname']}\n"
|
||||||
|
. "E-Mail: {$formData['email']}\n";
|
||||||
|
if ($formData['phone'] !== '') {
|
||||||
|
$body .= "Telefon: {$formData['phone']}\n";
|
||||||
|
}
|
||||||
|
$body .= "Anliegen: {$formData['interest']}\n\n"
|
||||||
|
. $formData['message'];
|
||||||
|
|
||||||
|
$headers = "From: {$formData['email']}\r\n";
|
||||||
|
$headers .= "Reply-To: {$formData['email']}\r\n";
|
||||||
|
$headers .= "Content-Type: text/plain; charset=UTF-8\r\n";
|
||||||
|
$headers .= "X-Mailer: PHP/" . phpversion();
|
||||||
|
|
||||||
|
$mailSent = mail($to, $subject, $body, $headers);
|
||||||
|
|
||||||
|
if ($mailSent) {
|
||||||
|
$_SESSION['last_contact_submit'] = time();
|
||||||
|
header('Location: ' . $_SERVER['REQUEST_URI'] . '#form-result');
|
||||||
|
$_SESSION['form_success'] = true;
|
||||||
|
exit;
|
||||||
|
} else {
|
||||||
|
$formErrors[] = 'Leider konnte die E-Mail nicht gesendet werden. Bitte versuchen Sie es später erneut oder schreiben Sie uns direkt an mki@kies-media.de.';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!empty($formErrors)) {
|
||||||
|
header('Location: ' . $_SERVER['REQUEST_URI'] . '#form-result');
|
||||||
|
$_SESSION['form_errors'] = $formErrors;
|
||||||
|
$_SESSION['form_data'] = $formData;
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
@@ -58,7 +182,6 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="fonts/fonts.css" />
|
<link rel="stylesheet" href="fonts/fonts.css" />
|
||||||
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
|
||||||
<link rel="stylesheet" href="css/haus-schleusingen.css" />
|
<link rel="stylesheet" href="css/haus-schleusingen.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -531,15 +654,31 @@
|
|||||||
paar Terminvorschläge an.
|
paar Terminvorschläge an.
|
||||||
</p>
|
</p>
|
||||||
<div class="contact-form">
|
<div class="contact-form">
|
||||||
<form id="contactForm">
|
<?php if ($formSuccess): ?>
|
||||||
|
<div id="form-result" class="form-success" style="display: block">
|
||||||
|
<p>Vielen Dank für Ihre Anfrage!</p>
|
||||||
|
<br />
|
||||||
|
<small>Wir haben Ihre Nachricht erhalten und melden uns innerhalb von 24 Stunden bei Ihnen.</small>
|
||||||
|
</div>
|
||||||
|
<?php else: ?>
|
||||||
|
<?php if (!empty($formErrors)): ?>
|
||||||
|
<div id="form-result" class="form-errors">
|
||||||
|
<ul>
|
||||||
|
<?php foreach ($formErrors as $error): ?>
|
||||||
|
<li><?= escapeContactValue($error) ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<form id="contactForm" method="post">
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-field">
|
<div class="form-field">
|
||||||
<label for="fname">Vorname</label>
|
<label for="fname">Vorname</label>
|
||||||
<input type="text" id="fname" name="fname" placeholder="Max" required />
|
<input type="text" id="fname" name="fname" placeholder="Max" required value="<?= escapeContactValue($formData['fname']) ?>" />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-field">
|
<div class="form-field">
|
||||||
<label for="lname">Nachname</label>
|
<label for="lname">Nachname</label>
|
||||||
<input type="text" id="lname" name="lname" placeholder="Mustermann" required />
|
<input type="text" id="lname" name="lname" placeholder="Mustermann" required value="<?= escapeContactValue($formData['lname']) ?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
@@ -551,20 +690,25 @@
|
|||||||
name="email"
|
name="email"
|
||||||
placeholder="max@beispiel.de"
|
placeholder="max@beispiel.de"
|
||||||
required
|
required
|
||||||
|
value="<?= escapeContactValue($formData['email']) ?>"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-field">
|
<div class="form-field">
|
||||||
<label for="phone">Telefon</label>
|
<label for="phone">Telefon</label>
|
||||||
<input type="tel" id="phone" name="phone" placeholder="+49 ..." />
|
<input type="tel" id="phone" name="phone" placeholder="+49 ..." value="<?= escapeContactValue($formData['phone']) ?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-field full">
|
<div class="form-field full">
|
||||||
<label for="interest">Anliegen</label>
|
<label for="interest">Anliegen</label>
|
||||||
<select id="interest" name="interest">
|
<select id="interest" name="interest">
|
||||||
<option>Besichtigung anfragen</option>
|
<?php
|
||||||
<option>Allgemeine Informationen</option>
|
$interestOptions = ['Besichtigung anfragen', 'Allgemeine Informationen', 'Mietbewerbung einreichen'];
|
||||||
<option>Mietbewerbung einreichen</option>
|
foreach ($interestOptions as $opt):
|
||||||
|
$selected = ($formData['interest'] === $opt) ? ' selected' : '';
|
||||||
|
?>
|
||||||
|
<option<?= $selected ?>><?= escapeContactValue($opt) ?></option>
|
||||||
|
<?php endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -576,16 +720,20 @@
|
|||||||
name="message"
|
name="message"
|
||||||
rows="4"
|
rows="4"
|
||||||
placeholder="Ihre Nachricht ..."
|
placeholder="Ihre Nachricht ..."
|
||||||
></textarea>
|
required
|
||||||
|
><?= escapeContactValue($formData['message']) ?></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Honeypot: hidden field for spam bots -->
|
||||||
|
<div class="hp-field" aria-hidden="true">
|
||||||
|
<label for="website">Website</label>
|
||||||
|
<input type="text" id="website" name="website" tabindex="-1" autocomplete="off" />
|
||||||
|
</div>
|
||||||
|
<!-- Form load timestamp for minimum-submit-time check -->
|
||||||
|
<input type="hidden" name="form_time" value="<?= time() ?>" />
|
||||||
<button type="submit" class="btn-submit">Anfrage absenden</button>
|
<button type="submit" class="btn-submit">Anfrage absenden</button>
|
||||||
</form>
|
</form>
|
||||||
<div class="form-success" id="formSuccess">
|
<?php endif; ?>
|
||||||
<p>Vielen Dank für Ihre Anfrage!</p>
|
|
||||||
<br />
|
|
||||||
<small>Ihr E-Mail-Programm wurde geöffnet. Bitte senden Sie die E-Mail ab, damit Ihre Anfrage bei uns eingeht.</small>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="contact-details">
|
<div class="contact-details">
|
||||||
<p>Oder schreiben Sie uns direkt: <a href="mailto:mki@kies-media.de">mki@kies-media.de</a></p>
|
<p>Oder schreiben Sie uns direkt: <a href="mailto:mki@kies-media.de">mki@kies-media.de</a></p>
|
||||||
@@ -1,86 +1,119 @@
|
|||||||
$(function () {
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
// Navbar scroll
|
// Navbar scroll
|
||||||
$(window).on("scroll", function () {
|
var navbar = document.getElementById("navbar");
|
||||||
if ($(this).scrollTop() > 60) $("#navbar").addClass("scrolled");
|
window.addEventListener("scroll", function () {
|
||||||
else $("#navbar").removeClass("scrolled");
|
if (window.scrollY > 60) navbar.classList.add("scrolled");
|
||||||
|
else navbar.classList.remove("scrolled");
|
||||||
});
|
});
|
||||||
|
|
||||||
// Hero animation on load
|
// Hero animation on load
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
$("#heroContent").addClass("visible");
|
document.getElementById("heroContent").classList.add("visible");
|
||||||
$("#heroBg").addClass("loaded");
|
document.getElementById("heroBg").classList.add("loaded");
|
||||||
}, 200);
|
}, 200);
|
||||||
|
|
||||||
// Scroll animations
|
// Scroll animations via IntersectionObserver
|
||||||
function checkVisible() {
|
var animElements = document.querySelectorAll(".fact, [data-animate]");
|
||||||
$(".fact, [data-animate]").each(function () {
|
animElements.forEach(function (el) {
|
||||||
var el = $(this);
|
el.style.opacity = "0";
|
||||||
var top = el.offset().top;
|
el.style.transform = "translateY(30px)";
|
||||||
var windowBottom = $(window).scrollTop() + $(window).height();
|
el.style.transition = "opacity 0.8s ease, transform 0.8s ease";
|
||||||
if (windowBottom > top + 60) {
|
});
|
||||||
el.addClass("visible");
|
|
||||||
el.css({ opacity: 1, transform: "translateY(0)" });
|
if ("IntersectionObserver" in window) {
|
||||||
|
var observer = new IntersectionObserver(
|
||||||
|
function (entries) {
|
||||||
|
entries.forEach(function (entry) {
|
||||||
|
if (entry.isIntersecting) {
|
||||||
|
entry.target.classList.add("visible");
|
||||||
|
entry.target.style.opacity = "1";
|
||||||
|
entry.target.style.transform = "translateY(0)";
|
||||||
|
observer.unobserve(entry.target);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
$("[data-animate]").css({
|
{ rootMargin: "0px 0px -60px 0px" }
|
||||||
opacity: 0,
|
);
|
||||||
transform: "translateY(30px)",
|
animElements.forEach(function (el) {
|
||||||
transition: "opacity 0.8s ease, transform 0.8s ease",
|
observer.observe(el);
|
||||||
});
|
});
|
||||||
$(window).on("scroll", checkVisible);
|
} else {
|
||||||
checkVisible();
|
// Fallback: show all immediately
|
||||||
|
animElements.forEach(function (el) {
|
||||||
|
el.classList.add("visible");
|
||||||
|
el.style.opacity = "1";
|
||||||
|
el.style.transform = "translateY(0)";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Floor accordion
|
// Floor accordion
|
||||||
$(".floor-header").on("click", function () {
|
document.querySelectorAll(".floor-header").forEach(function (header) {
|
||||||
var item = $(this).closest(".floor-item");
|
header.addEventListener("click", function () {
|
||||||
var isOpen = item.hasClass("open");
|
var item = this.closest(".floor-item");
|
||||||
$(".floor-item").removeClass("open");
|
var isOpen = item.classList.contains("open");
|
||||||
$(".floor-body").slideUp(300);
|
var allItems = document.querySelectorAll(".floor-item");
|
||||||
|
|
||||||
|
// Close all
|
||||||
|
allItems.forEach(function (fi) {
|
||||||
|
fi.classList.remove("open");
|
||||||
|
var body = fi.querySelector(".floor-body");
|
||||||
|
if (body) body.style.display = "none";
|
||||||
|
});
|
||||||
|
|
||||||
|
// Open clicked if it was closed
|
||||||
if (!isOpen) {
|
if (!isOpen) {
|
||||||
item.addClass("open");
|
item.classList.add("open");
|
||||||
item.find(".floor-body").slideDown(300);
|
var body = item.querySelector(".floor-body");
|
||||||
|
if (body) body.style.display = "block";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
// Lightbox – gallery grid items
|
// Lightbox – gallery grid items
|
||||||
$(document).on("click", ".grid-item", function () {
|
document.querySelectorAll(".grid-item").forEach(function (item) {
|
||||||
var src = $(this).data("img") || $(this).find("img").attr("src");
|
item.addEventListener("click", function () {
|
||||||
$("#lightboxImg").attr("src", src);
|
var src = this.dataset.img || this.querySelector("img").getAttribute("src");
|
||||||
$("#lightbox").addClass("open");
|
openLightbox(src);
|
||||||
$("body").css("overflow", "hidden");
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Lightbox – floor plan images in Raumaufteilung
|
// Lightbox – floor plan images in Raumaufteilung
|
||||||
$(document).on("click", ".floor-plan img[data-img]", function () {
|
document.querySelectorAll(".floor-plan img[data-img]").forEach(function (img) {
|
||||||
var src = $(this).data("img");
|
img.addEventListener("click", function () {
|
||||||
$("#lightboxImg").attr("src", src);
|
openLightbox(this.dataset.img);
|
||||||
$("#lightbox").addClass("open");
|
|
||||||
$("body").css("overflow", "hidden");
|
|
||||||
});
|
});
|
||||||
$("#lightboxClose, #lightbox").on("click", function (e) {
|
|
||||||
if (e.target === this) {
|
|
||||||
$("#lightbox").removeClass("open");
|
|
||||||
$("body").css("overflow", "");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$(document).on("keydown", function (e) {
|
|
||||||
if (e.key === "Escape") {
|
|
||||||
$("#lightbox").removeClass("open");
|
|
||||||
$("body").css("overflow", "");
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function openLightbox(src) {
|
||||||
|
document.getElementById("lightboxImg").setAttribute("src", src);
|
||||||
|
document.getElementById("lightbox").classList.add("open");
|
||||||
|
document.body.style.overflow = "hidden";
|
||||||
|
}
|
||||||
|
|
||||||
|
function closeLightbox() {
|
||||||
|
document.getElementById("lightbox").classList.remove("open");
|
||||||
|
document.body.style.overflow = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
document.getElementById("lightboxClose").addEventListener("click", closeLightbox);
|
||||||
|
document.getElementById("lightbox").addEventListener("click", function (e) {
|
||||||
|
if (e.target === this) closeLightbox();
|
||||||
|
});
|
||||||
|
document.addEventListener("keydown", function (e) {
|
||||||
|
if (e.key === "Escape") closeLightbox();
|
||||||
|
});
|
||||||
|
|
||||||
|
// Form submit is handled server-side by PHP – no JS intervention needed.
|
||||||
// Form submit – opens email client with pre-filled mailto: link
|
// Form submit – opens email client with pre-filled mailto: link
|
||||||
$("#contactForm").on("submit", function (e) {
|
document.getElementById("contactForm").addEventListener("submit", function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
var fname = $("#fname").val().trim();
|
var fname = document.getElementById("fname").value.trim();
|
||||||
var lname = $("#lname").val().trim();
|
var lname = document.getElementById("lname").value.trim();
|
||||||
var email = $("#email").val().trim();
|
var email = document.getElementById("email").value.trim();
|
||||||
var phone = $("#phone").val().trim();
|
var phone = document.getElementById("phone").value.trim();
|
||||||
var interest = $("#interest").val();
|
var interest = document.getElementById("interest").value;
|
||||||
var message = $("#message").val().trim();
|
var message = document.getElementById("message").value.trim();
|
||||||
|
|
||||||
var subject = "Kontaktanfrage: " + interest;
|
var subject = "Kontaktanfrage: " + interest;
|
||||||
var body = "Von: " + fname + " " + lname + "\n";
|
var body = "Von: " + fname + " " + lname + "\n";
|
||||||
@@ -97,8 +130,14 @@ $(function () {
|
|||||||
window.location.href = mailto;
|
window.location.href = mailto;
|
||||||
|
|
||||||
// Show success message
|
// Show success message
|
||||||
$("#contactForm").hide();
|
this.style.display = "none";
|
||||||
$("#formSuccess").fadeIn(400);
|
var success = document.getElementById("formSuccess");
|
||||||
|
success.style.display = "block";
|
||||||
|
success.style.opacity = "0";
|
||||||
|
success.style.transition = "opacity 0.4s ease";
|
||||||
|
requestAnimationFrame(function () {
|
||||||
|
success.style.opacity = "1";
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
9
js/masonry.pkgd.min.js
vendored
9
js/masonry.pkgd.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user