Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Akhil Hakkim #39

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,075 changes: 1,075 additions & 0 deletions Akhil Hakkim/assets/css/main.css

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions Akhil Hakkim/assets/css/plugins.css

Large diffs are not rendered by default.

Binary file added Akhil Hakkim/assets/fonts/FontAwesome.otf
Binary file not shown.
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions Akhil Hakkim/assets/fonts/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Akhil Hakkim/assets/img/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Akhil Hakkim/assets/img/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Akhil Hakkim/assets/img/work/item-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Akhil Hakkim/assets/img/work/item-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Akhil Hakkim/assets/img/work/item-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Akhil Hakkim/assets/img/work/item-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 changes: 113 additions & 0 deletions Akhil Hakkim/assets/js/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
jQuery(window).on('load', function() {
"use strict";


// HIDE PRELOADER
$(".preloader").addClass("hide-preloader");

// SHOW/ANIMATE ANIMATION CONTAINER
setTimeout(function(){

$("#intro .animation-container").each(function() {

var e = $(this);

setTimeout(function(){

e.addClass("run-animation");

}, e.data("animation-delay") );

});

}, 700 );


});


jQuery(document).ready(function($) {
"use strict";


// SMOOTH SCROLL FOR SAME PAGE LINKS
$(document).on('click', 'a.smooth-scroll', function(event) {

event.preventDefault();

$('html, body').animate({
scrollTop: $( $.attr(this, 'href') ).offset().top - 80
}, 500);

});


// SCROLL REVEAL SETUP
window.sr = ScrollReveal();
sr.reveal(".scroll-animated-from-right", {
duration: 600,
delay: 0,
origin: "right",
rotate: { x: 0, y: 0, z: 0 },
opacity: 0,
distance: "20vh",
viewFactor: 0.4,
scale: 1,
});


// AJAX CONTACT FORM SUBMIT
$("#contact-form").submit(function(e) {

e.preventDefault();
var postdata = $(this).serialize();

$.ajax({

type: "POST",
url: "assets/php/contact.php",
data: postdata,
dataType: "json",
success: function(json) {

$("#contact-form input, #contact-form textarea").removeClass("error");

setTimeout(function(){

if (json.nameMessage !== "") {

$("#contact-form-name").addClass("error");

}

if (json.emailMessage !== "") {

$("#contact-form-email").addClass("error");

}

if (json.messageMessage !== "") {

$("#contact-form-message").addClass("error");

}

}, 10);

if (json.nameMessage === "" && json.emailMessage === "" && json.messageMessage === "") {

$("#contact-form.error input, #contact-form.error textarea").removeClass("error");
$('#contact-form').addClass("success");
$('#contact-form textarea, #contact-form input').attr("placeholder","");
$('#contact-form input, #contact-form button, #contact-form textarea').val('').prop('disabled', true);

}

}

});

});


});
36 changes: 36 additions & 0 deletions Akhil Hakkim/assets/js/plugins.js

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions Akhil Hakkim/assets/php/contact.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?php

// ENTER YOUR EMAIL
$emailTo = "[email protected]";

// ENTER IDENTIFIER
$emailIdentifier = "Message sent via contact form from " . $_SERVER["SERVER_NAME"];


if($_POST) {

$name = addslashes(trim($_POST["name"]));
$clientEmail = addslashes(trim($_POST["email"]));
$message = addslashes(trim($_POST["message"]));
$fhp_input = addslashes(trim($_POST["company"]));

$array = array("nameMessage" => "", "emailMessage" => "", "messageMessage" => "","succesMessage" => "");

if($name == "") {
$array["nameMessage"] = "x";
}

if(!filter_var($clientEmail, FILTER_VALIDATE_EMAIL)) {
$array["emailMessage"] = "x";
}

if($message == "") {
$array["messageMessage"] = "x";
}

if($name != "" && filter_var($clientEmail, FILTER_VALIDATE_EMAIL) && $message != "" && $fhp_input == "") {

$array["succesMessage"] = "";

$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= "From: " . $name . " <" . $clientEmail .">\r\n";
$headers .= "Reply-To: " . $clientEmail;

mail($emailTo, $emailIdentifier, $message, $headers);

}

echo json_encode($array);

}

?>
Loading