Changed headers in About. Changed Contact.
Changed headers in About page to a serif italic font. Removed the contact form in the header part. Created a design which looks more like an actual businesscard. Still to be done: * Fix the design on mobile. * Add vCard as download link
This commit is contained in:
46
js/init.js
46
js/init.js
@@ -156,48 +156,12 @@
|
||||
});
|
||||
|
||||
/*----------------------------------------------------*/
|
||||
/* contact form
|
||||
/* contact
|
||||
------------------------------------------------------*/
|
||||
|
||||
$('form#contactForm button.submit').click(function() {
|
||||
|
||||
$('#image-loader').fadeIn();
|
||||
|
||||
var contactName = $('#contactForm #contactName').val();
|
||||
var contactEmail = $('#contactForm #contactEmail').val();
|
||||
var contactSubject = $('#contactForm #contactSubject').val();
|
||||
var contactMessage = $('#contactForm #contactMessage').val();
|
||||
|
||||
var data = 'contactName=' + contactName + '&contactEmail=' + contactEmail +
|
||||
'&contactSubject=' + contactSubject + '&contactMessage=' + contactMessage;
|
||||
|
||||
$.ajax({
|
||||
|
||||
type: "POST",
|
||||
url: "inc/sendEmail.php",
|
||||
data: data,
|
||||
success: function(msg) {
|
||||
|
||||
// Message was sent
|
||||
if (msg == 'OK') {
|
||||
$('#image-loader').fadeOut();
|
||||
$('#message-warning').hide();
|
||||
$('#contactForm').fadeOut();
|
||||
$('#message-success').fadeIn();
|
||||
}
|
||||
// There was an error
|
||||
else {
|
||||
$('#image-loader').fadeOut();
|
||||
$('#message-warning').html(msg);
|
||||
$('#message-warning').fadeIn();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
// Adapt Riot logo to format of fontawesome icons
|
||||
var faHeight = document.getElementById('contact-fa').clientHeight * 1.3;
|
||||
document.getElementById('contact-riot-logo').setAttribute("style","height:"+faHeight+"px; width:"+faHeight+"px");
|
||||
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user