Permalink
Browse files

All templates

1 parent 383b713 commit d05f2c09f3cbbfc3138ab6c7b67f6eb5e0b0ab11 @nolimits4web nolimits4web committed Feb 22, 2016
Showing 2,277 changed files with 121,577 additions and 0 deletions.
@@ -0,0 +1,5 @@
+ErrorDocument 404 http://localhost/404/404.php
+ErrorDocument 403 http://localhost/404/404.php
+ErrorDocument 500 http://localhost/404/404.php
+
+
@@ -0,0 +1,76 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<link rel="stylesheet" type="text/css" href="css/404.css" />
+<script type="text/javascript" src="scripts/jquery-1.4.3.min.js"></script>
+<script type="text/javascript" src="scripts/404.js"></script>
+<title>404 Error Page Template by iDangerous</title>
+</head>
+<body>
+<div class="wrapper">
+ <a id="home" href="http://www.idangero.us">
+ <img src="images/404/home.png" alt="Home" title="Home" width="140" height="130" />
+ </a>
+ <a id="contacts" href="#contacts">
+ <img src="images/404/contacts.png" alt="Contacts" title="Contacts" width="140" height="130" />
+ </a>
+ <div class="logo"><img src="images/404/logo.jpg" width="460" height="110" alt="" /></div>
+ <div id="content">
+ <div class="content-top">
+ <div class="content-mid">
+ <div class="error-message"> <img src="images/404/oops.png" width="154" height="56" alt="" />
+ <h2>Some error has occured</h2>
+ <h3>Here are the reasons that could cause this error:</h3>
+ </div>
+ <form id="contact-form" action="javascript:sendMessage()" method="post">
+ <p>You can contact us using the following contact form:</p>
+ <label><strong>Your Name:</strong><br />
+ <input type="text" id="contact-name" />
+ </label>
+ <label><strong>Email:*</strong><br />
+ <input type="text" id="contact-email" onblur="validateEmail()"/>
+ </label>
+ <label><strong>Subject:</strong><br />
+ <input type="text" id="contact-subject" />
+ </label>
+ <label><strong>Message:*</strong><br />
+ <textarea id="contact-message" rows="10" cols="30" onblur="validateMessage()"></textarea>
+ </label>
+ <input type="submit" name="button" value="Send Message" />
+ </form>
+ </div>
+ </div>
+ </div>
+ <div class="errors">
+ <div class="error">
+ <div class="error-r">
+ <div class="error-m">
+ <h2>Error 404</h2>
+ <h3>Document not found</h3>
+ <p>Seems to be a page or document you requested does not exist.</p>
+ </div>
+ </div>
+ </div>
+ <div class="error">
+ <div class="error-r">
+ <div class="error-m">
+ <h2>Error 403</h2>
+ <h3>Forbidden</h3>
+ <p>You haven't access for viewing the requested page or document.</p>
+ </div>
+ </div>
+ </div>
+ <div class="error">
+ <div class="error-r">
+ <div class="error-m">
+ <h2>Error 500</h2>
+ <h3>Internal Server Error</h3>
+ <p>Some internal server error. Try to request this page or document later.</p>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+</body>
+</html>
@@ -0,0 +1,173 @@
+@charset "utf-8";
+/* CSS Document */
+/*--- Common Rules ---*/
+body {
+ background:#ddd;
+ font-family:Arial, Helvetica, sans-serif;
+ margin:0px;
+ font-size:13px;
+ line-height:1.5em;
+ color:#333;
+}
+p {
+ margin:0px 0px 10px;
+}
+h1, h2, h3, h4, h5, h6 {
+ margin:0px 0px 10px;
+}
+h2,h3 {
+ font-weight:normal;
+}
+h2 {
+ color:#851c1c;
+ font-size:24px;
+ line-height:30px;
+}
+h3 {
+ font-size:18px;
+}
+a,img {
+ outline:none;
+ border:none;
+}
+.wrapper {
+ width:820px;
+ margin-left:auto;
+ margin-right:auto;
+ position:relative;
+}
+/*--- Logo ---*/
+.logo {
+ text-align:center;
+ height:110px;
+}
+/*--- Home & Contacts Buttons ---*/
+#home,#contacts {
+ position:absolute;
+ top:270px;
+}
+#home {
+ left:130px;
+}
+#contacts {
+ right:130px;
+}
+/*--- Content & Error Blocks ---*/
+#content {
+ width:500px;
+ padding-bottom:60px;
+ background:url(../images/404/bg-bot.png) no-repeat left bottom;
+ margin-left:auto;
+ margin-right:auto;
+ position:relative;
+ margin-top:100px;
+}
+.content-top {
+ padding-top:20px;
+ background:url(../images/404/bg-top.png) no-repeat left top;
+}
+.content-mid {
+ background:#fff;
+ padding:10px 20px 20px 20px;
+ height:140px;
+}
+.errors {
+ position:absolute;
+ top:430px;
+}
+.error {
+ background:url(../images/404/error-bg.png) no-repeat left top;
+ padding-left:10px;
+ width:240px;
+ display:block;
+ float:left;
+ margin-left:10px;
+ margin-right:10px;
+ -o-transition-duration:0.3s;
+ -o-transition-property:-o-transform;
+ -o-transform:scale(1,1);
+ -webkit-transition-duration:0.3s;
+ -webkit-transition-property:-webkit-transform;
+ -webkit-transform:scale(1,1);
+ -moz-transition-duration:0.3s;
+ -moz-transition-property:-moz-transform;
+ -moz-transform:scale(1,1);
+}
+.zoom {
+ -o-transform:scale(0.9,0.9);
+ -webkit-transform:scale(0.9,0.9);
+ -moz-transform:scale(0.9,0.9);
+}
+.error-r {
+ background:url(../images/404/error-bg.png) no-repeat right bottom;
+ padding-right:10px;
+}
+.error-m {
+ width:210px;
+ background:url(../images/404/error-bg.png) repeat-x left -250px;
+ height:180px;
+ padding:20px 10px 50px 10px;
+}
+/*--- Contact Form ---*/
+#contact-form {
+ display:none;
+}
+#contact-form h3 {
+ font-weight:normal;
+}
+label {
+ display:block;
+ margin-bottom:10px;
+}
+input[type=text],textarea {
+ font-size:inherit;
+ font-family:inherit;
+ border:1px solid #bbb;
+ border-radius:5px;
+ -moz-border-radius:5px;
+ -webkit-border-radius:5px;
+}
+input[type=text] {
+ padding:5px;
+ width:250px;
+}
+textarea {
+ width:300px;
+ padding:2px;
+ height:80px;
+}
+.required {
+ border:1px solid red!important;
+}
+input[type=submit] {
+ border:none;
+ background:#333;
+ color:#fff;
+ font-weight:bold;
+ font-size:inherit;
+ font-family:inherit;
+ padding:5px;
+ cursor:pointer;
+ border-radius:5px;
+ -moz-border-radius:5px;
+ -webkit-border-radius:5px;
+}
+/*--- Ajax Loader ---*/
+.ajax-loader {
+ background:none repeat scroll 0 0 #000000;
+ color:#FFFFFF;
+ font-size:16px;
+ height:30px;
+ left:50%;
+ margin-left:-40px;
+ margin-top:-15px;
+ padding:10px;
+ position:absolute;
+ top:50%;
+ width:70px;
+ z-index:2000;
+ text-align:center;
+ -moz-box-shadow:0px 0px 10px #333;
+ -webkit-box-shadow:0px 0px 10px #333;
+ box-shadow:0px 0px 10px #333;
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,28 @@
+<?php
+if (isset($_POST['name'])) $name = $_POST['name'];
+if (isset($_POST['email'])) $email = $_POST['email'];
+if (isset($_POST['subject'])) $subject = $_POST['subject'];
+if (isset($_POST['message'])) $message = $_POST['message'];
+
+$mail_to = "demo@idangero.us"; //change this email to yours
+
+$message = stripslashes($message);
+$headers = "From: ".$name." <".$email.">\r\n";
+$headers .= "Reply-To: ".$email."\r\n";
+$headers .= "X-Mailer: PHPMailer"."\r\n";
+$headers .= "Content-Type: text/plain; charset=\"utf-8\"";
+if (mail($mail_to, $subject, $message, $headers)) {
+?>
+<div class="mail-sent">
+<h3>Thanks!</h3><h3>Your message has been successfully sent.</h4>
+</div>
+<?php
+ }
+else {
+?>
+<div class="mail-error">
+<h3>Sorry!</h3><h3> Error occured. Try again later please.</h4>
+</div>
+<?php
+ }
+?>
@@ -0,0 +1,11 @@
+<?php
+if (isset($_POST['email'])) {
+ $email = $_POST['email'];
+ if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
+ echo 1;
+ }
+ else echo 0;
+}
+else echo 0;
+
+?>
@@ -0,0 +1,82 @@
+// JavaScript Document
+jQuery(document).ready(function(){
+ $(".error").hover(function(){$(this).addClass("zoom")},function(){$(this).removeClass("zoom")})
+ $("#home").hover(
+ function(){
+ $(this).animate({"left":"40px"},500)
+ },
+ function(){
+ $(this).stop().animate({"left":"130px"},500)
+ }
+ )
+ $("#contacts").hover(
+ function(){
+ $(this).animate({"right":"40px"},500)
+ },
+ function(){
+ $(this).stop().animate({"right":"130px"},500)
+ }
+ )
+ $("#contacts").click(function(e){
+ e.preventDefault()
+ if($("#contact-form").css('display')=='none') {
+ $("#content").animate({"margin-top":"-=210px"},300)
+ $('.content-mid').animate({"height":"+=210px"},300)
+ $(".error-message").delay(300).fadeOut(400)
+ $("#contact-form").delay(800).fadeIn(400)
+ }
+ else {
+ $("#contact-form").fadeOut(400)
+ $("#content").delay(500).animate({"margin-top":"+=210px"},300)
+ $('.content-mid').delay(500).animate({"height":"-=210px"},300)
+ $(".error-message").delay(900).fadeIn(400)
+ }
+ })
+ /*----------Ajax Loader----------*/
+ $(".wrapper").ajaxStart(function(){
+ $(this).prepend('<div class="ajax-loader">Loading...</div>');
+ })
+ $(".wrapper").ajaxComplete(function(){
+ $(".ajax-loader").remove();
+ })
+});
+/*----------Validation And Send Message Functions----------*/
+function validateEmail() {
+ $email = $("#contact-email").attr("value");
+ jQuery.post("includes/validate_email.php",
+ {email: $email},
+ function (data) {
+ if (data != 1) {
+ $("#contact-email").addClass("required");
+ };
+ if (data == 1) {
+ $("#contact-email").removeClass("required");
+ };
+ }
+ );
+}
+function validateMessage() {
+ var $textarea = $("#contact-message")
+ message = $textarea.val();
+ if ($.trim(message).length < 10) $textarea.addClass("required");
+ else $textarea.removeClass("required");
+
+}
+function sendMessage() {
+ validateEmail();
+ validateMessage();
+ if (!$("#contact-form input,#contact-form textarea").hasClass("required")) {
+ name = $("input#contact-name").attr("value");
+ email = $("input#contact-email").attr("value");
+ subject = $("input#contact-subject").attr("value");
+ message= $("textarea#contact-message").val().replace(/<\/?[^>]+>/gi, '');
+ jQuery.post("includes/send_message.php",{name : name, email : email, subject : subject, message : message},
+ function (status) {
+ $("#contact-form").fadeOut(600,function(){
+ $(this).html(status);
+ $(this).fadeIn(500)
+ })
+ }
+ );
+ }
+}
Oops, something went wrong.

0 comments on commit d05f2c0

Please sign in to comment.