forked from goelnaman66/lightWebsite2020
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5c5c8f5
Showing
86 changed files
with
35,459 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
jQuery(document).ready(function($) { | ||
"use strict"; | ||
|
||
//Contact | ||
$('form.contactForm').submit(function() { | ||
var f = $(this).find('.form-group'), | ||
ferror = false, | ||
emailExp = /^[^\s()<>@,;:\/]+@\w[\w\.-]+\.[a-z]{2,}$/i; | ||
|
||
f.children('input').each(function() { // run all inputs | ||
|
||
var i = $(this); // current input | ||
var rule = i.attr('data-rule'); | ||
|
||
if (rule !== undefined) { | ||
var ierror = false; // error flag for current input | ||
var pos = rule.indexOf(':', 0); | ||
if (pos >= 0) { | ||
var exp = rule.substr(pos + 1, rule.length); | ||
rule = rule.substr(0, pos); | ||
} else { | ||
rule = rule.substr(pos + 1, rule.length); | ||
} | ||
|
||
switch (rule) { | ||
case 'required': | ||
if (i.val() === '') { | ||
ferror = ierror = true; | ||
} | ||
break; | ||
|
||
case 'minlen': | ||
if (i.val().length < parseInt(exp)) { | ||
ferror = ierror = true; | ||
} | ||
break; | ||
|
||
case 'email': | ||
if (!emailExp.test(i.val())) { | ||
ferror = ierror = true; | ||
} | ||
break; | ||
|
||
case 'checked': | ||
if (! i.is(':checked')) { | ||
ferror = ierror = true; | ||
} | ||
break; | ||
|
||
case 'regexp': | ||
exp = new RegExp(exp); | ||
if (!exp.test(i.val())) { | ||
ferror = ierror = true; | ||
} | ||
break; | ||
} | ||
i.next('.validation').html((ierror ? (i.attr('data-msg') !== undefined ? i.attr('data-msg') : 'wrong Input') : '')).show('blind'); | ||
} | ||
}); | ||
f.children('textarea').each(function() { // run all inputs | ||
|
||
var i = $(this); // current input | ||
var rule = i.attr('data-rule'); | ||
|
||
if (rule !== undefined) { | ||
var ierror = false; // error flag for current input | ||
var pos = rule.indexOf(':', 0); | ||
if (pos >= 0) { | ||
var exp = rule.substr(pos + 1, rule.length); | ||
rule = rule.substr(0, pos); | ||
} else { | ||
rule = rule.substr(pos + 1, rule.length); | ||
} | ||
|
||
switch (rule) { | ||
case 'required': | ||
if (i.val() === '') { | ||
ferror = ierror = true; | ||
} | ||
break; | ||
|
||
case 'minlen': | ||
if (i.val().length < parseInt(exp)) { | ||
ferror = ierror = true; | ||
} | ||
break; | ||
} | ||
i.next('.validation').html((ierror ? (i.attr('data-msg') != undefined ? i.attr('data-msg') : 'wrong Input') : '')).show('blind'); | ||
} | ||
}); | ||
if (ferror) return false; | ||
else var str = $(this).serialize(); | ||
var action = $(this).attr('action'); | ||
if( ! action ) { | ||
action = 'contactform/contactform.php'; | ||
} | ||
$.ajax({ | ||
type: "POST", | ||
url: action, | ||
data: str, | ||
success: function(msg) { | ||
// alert(msg); | ||
if (msg == 'OK') { | ||
$("#sendmessage").addClass("show"); | ||
$("#errormessage").removeClass("show"); | ||
$('.contactForm').find("input, textarea").val(""); | ||
} else { | ||
$("#sendmessage").removeClass("show"); | ||
$("#errormessage").addClass("show"); | ||
$('#errormessage').html(msg); | ||
} | ||
|
||
} | ||
}); | ||
return false; | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,230 @@ | ||
/* | ||
Theme Name: TheEvent | ||
Theme URL: https://bootstrapmade.com/theevent-conference-event-bootstrap-template/ | ||
Author: BootstrapMade.com | ||
License: https://bootstrapmade.com/license/ | ||
*/ | ||
|
||
/*-------------------------------------------------------------- | ||
# General | ||
--------------------------------------------------------------*/ | ||
|
||
body { | ||
background: #fff; | ||
color: #2f3138; | ||
font-family: "Open Sans", sans-serif; | ||
} | ||
|
||
a { | ||
color: rgb(0,228,105); | ||
transition: 0.5s; | ||
} | ||
|
||
a:hover, | ||
a:active, | ||
a:focus { | ||
color:rgb(0,228,105); | ||
outline: none; | ||
text-decoration: none; | ||
} | ||
|
||
p { | ||
padding: 0; | ||
margin: 0 0 30px 0; | ||
} | ||
|
||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
font-family: "Raleway", sans-serif; | ||
font-weight: 400; | ||
margin: 0 0 20px 0; | ||
padding: 0; | ||
color: #0e1b4d; | ||
} | ||
|
||
.main-page { | ||
margin-top: 70px; | ||
} | ||
|
||
.wow { | ||
visibility: hidden; | ||
} | ||
|
||
/* Prelaoder */ | ||
|
||
#preloader { | ||
position: fixed; | ||
left: 0; | ||
top: 0; | ||
z-index: 999; | ||
width: 100%; | ||
height: 100%; | ||
overflow: visible; | ||
background: #fff url("../img/preloader.svg") no-repeat center center; | ||
} | ||
/* Back to top button */ | ||
|
||
.back-to-top { | ||
position: fixed; | ||
display: none; | ||
background: rgb(0,228,105); | ||
color: #fff; | ||
width: 40px; | ||
height: 40px; | ||
text-align: center; | ||
border-radius: 50px; | ||
right: 15px; | ||
bottom: 15px; | ||
transition: background 0.5s ease-in-out; | ||
} | ||
|
||
.back-to-top i { | ||
font-size: 24px; | ||
padding-top: 6px; | ||
} | ||
|
||
.back-to-top:focus { | ||
background:rgb(0,228,105); | ||
color: #fff; | ||
outline: none; | ||
} | ||
|
||
.back-to-top:hover { | ||
background:rgb(0,228,105); | ||
color: #fff; | ||
} | ||
|
||
/* Sections Header | ||
--------------------------------*/ | ||
|
||
.section-header { | ||
margin-bottom: 60px; | ||
position: relative; | ||
padding-bottom: 20px; | ||
} | ||
|
||
.section-header::before { | ||
content: ''; | ||
position: absolute; | ||
display: block; | ||
width: 60px; | ||
height: 5px; | ||
background:rgb(0,228,105); | ||
bottom: 0; | ||
left: calc(50% - 25px); | ||
} | ||
|
||
.section-header h2 { | ||
font-size: 36px; | ||
text-transform: uppercase; | ||
text-align: center; | ||
font-weight: 700; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.section-header p { | ||
text-align: center; | ||
padding: 0; | ||
margin: 0; | ||
font-size: 18px; | ||
font-weight: 500; | ||
color: #9195a2; | ||
} | ||
|
||
.section-with-bg { | ||
background-color: #f6f7fd; | ||
} | ||
|
||
|
||
|
||
/*-------------------------------------------------------------- | ||
# Centers Section | ||
--------------------------------------------------------------*/ | ||
|
||
#hotels { | ||
padding: 60px 0; | ||
} | ||
|
||
#hotels .hotel { | ||
border: 1px solid #e0e5fa; | ||
background: #fff; | ||
margin-bottom: 30px; | ||
} | ||
|
||
#hotels .hotel:hover .hotel-img img { | ||
-webkit-transform: scale(1.1); | ||
transform: scale(1.1); | ||
} | ||
|
||
#hotels .hotel-img { | ||
overflow: hidden; | ||
margin-bottom: 15px; | ||
} | ||
|
||
#hotels .hotel-img img { | ||
transition: 0.3s ease-in-out; | ||
} | ||
|
||
#hotels h3 { | ||
font-weight: 600; | ||
font-size: 20px; | ||
margin-bottom: 5px; | ||
padding: 0 20px; | ||
} | ||
|
||
#hotels a { | ||
color: #152b79; | ||
} | ||
|
||
#hotels a:hover { | ||
color: rgb(0,228,105); | ||
} | ||
|
||
#hotels .stars { | ||
padding: 0 20px; | ||
margin-bottom: 5px; | ||
} | ||
|
||
#hotels .stars i { | ||
color: #ffc31d; | ||
} | ||
|
||
#hotels p { | ||
padding: 0 20px; | ||
margin-bottom: 20px; | ||
color: #060c22; | ||
font-style: italic; | ||
font-size: 15px; | ||
} | ||
|
||
|
||
h4 { font-family: 'Open Sans'; margin: 0;} | ||
|
||
.modal,body.modal-open { | ||
padding-right: 0!important | ||
} | ||
|
||
body.modal-open { | ||
overflow: auto | ||
} | ||
|
||
body.scrollable { | ||
overflow-y: auto | ||
} | ||
|
||
.modal-footer { | ||
display: flex; | ||
justify-content: flex-start; | ||
.btn { | ||
position: absolute; | ||
right: 10px; | ||
} | ||
} | ||
|
||
|
||
|
||
|
Oops, something went wrong.