first commit
@@ -0,0 +1,8 @@
|
||||
|
||||
.logo {
|
||||
line-height: 2.4em;
|
||||
}
|
||||
|
||||
.menu {
|
||||
line-height: 3.4em;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}audio,canvas,video{display:inline-block;}audio:not([controls]){display:none;height:0;}[hidden]{display:none;}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}a:focus{outline:thin dotted;}a:active,a:hover{outline:0;}h1{font-size:2em;margin:0.67em 0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}button,input{line-height:normal;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}textarea{overflow:auto;vertical-align:top;}table{border-collapse:collapse;border-spacing:0;}
|
||||
@@ -0,0 +1,170 @@
|
||||
/**
|
||||
* Owl Carousel v2.2.1
|
||||
* Copyright 2013-2017 David Deutsch
|
||||
* Licensed under ()
|
||||
*/
|
||||
/*
|
||||
* Owl Carousel - Core
|
||||
*/
|
||||
.owl-carousel {
|
||||
display: none;
|
||||
width: 100%;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
/* position relative and z-index fix webkit rendering fonts issue */
|
||||
position: relative;
|
||||
z-index: 1; }
|
||||
.owl-carousel .owl-stage {
|
||||
position: relative;
|
||||
-ms-touch-action: pan-Y;
|
||||
-moz-backface-visibility: hidden;
|
||||
/* fix firefox animation glitch */ }
|
||||
.owl-carousel .owl-stage:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
line-height: 0;
|
||||
height: 0; }
|
||||
.owl-carousel .owl-stage-outer {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
/* fix for flashing background */
|
||||
-webkit-transform: translate3d(0px, 0px, 0px); }
|
||||
.owl-carousel .owl-wrapper,
|
||||
.owl-carousel .owl-item {
|
||||
-webkit-backface-visibility: hidden;
|
||||
-moz-backface-visibility: hidden;
|
||||
-ms-backface-visibility: hidden;
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
-moz-transform: translate3d(0, 0, 0);
|
||||
-ms-transform: translate3d(0, 0, 0); }
|
||||
.owl-carousel .owl-item {
|
||||
position: relative;
|
||||
min-height: 1px;
|
||||
float: left;
|
||||
-webkit-backface-visibility: hidden;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
-webkit-touch-callout: none; }
|
||||
.owl-carousel .owl-item img {
|
||||
display: block;
|
||||
width: 100%; }
|
||||
.owl-carousel .owl-nav.disabled,
|
||||
.owl-carousel .owl-dots.disabled {
|
||||
display: none; }
|
||||
.owl-carousel .owl-nav .owl-prev,
|
||||
.owl-carousel .owl-nav .owl-next,
|
||||
.owl-carousel .owl-dot {
|
||||
cursor: pointer;
|
||||
cursor: hand;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none; }
|
||||
.owl-carousel.owl-loaded {
|
||||
display: block; }
|
||||
.owl-carousel.owl-loading {
|
||||
opacity: 0;
|
||||
display: block; }
|
||||
.owl-carousel.owl-hidden {
|
||||
opacity: 0; }
|
||||
.owl-carousel.owl-refresh .owl-item {
|
||||
visibility: hidden; }
|
||||
.owl-carousel.owl-drag .owl-item {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none; }
|
||||
.owl-carousel.owl-grab {
|
||||
cursor: move;
|
||||
cursor: grab; }
|
||||
.owl-carousel.owl-rtl {
|
||||
direction: rtl; }
|
||||
.owl-carousel.owl-rtl .owl-item {
|
||||
float: right; }
|
||||
|
||||
/* No Js */
|
||||
.no-js .owl-carousel {
|
||||
display: block; }
|
||||
|
||||
/*
|
||||
* Owl Carousel - Animate Plugin
|
||||
*/
|
||||
.owl-carousel .animated {
|
||||
animation-duration: 1000ms;
|
||||
animation-fill-mode: both; }
|
||||
|
||||
.owl-carousel .owl-animated-in {
|
||||
z-index: 0; }
|
||||
|
||||
.owl-carousel .owl-animated-out {
|
||||
z-index: 1; }
|
||||
|
||||
.owl-carousel .fadeOut {
|
||||
animation-name: fadeOut; }
|
||||
|
||||
@keyframes fadeOut {
|
||||
0% {
|
||||
opacity: 1; }
|
||||
100% {
|
||||
opacity: 0; } }
|
||||
|
||||
/*
|
||||
* Owl Carousel - Auto Height Plugin
|
||||
*/
|
||||
.owl-height {
|
||||
transition: height 500ms ease-in-out; }
|
||||
|
||||
/*
|
||||
* Owl Carousel - Lazy Load Plugin
|
||||
*/
|
||||
.owl-carousel .owl-item .owl-lazy {
|
||||
opacity: 0;
|
||||
transition: opacity 400ms ease; }
|
||||
|
||||
.owl-carousel .owl-item img.owl-lazy {
|
||||
transform-style: preserve-3d; }
|
||||
|
||||
/*
|
||||
* Owl Carousel - Video Plugin
|
||||
*/
|
||||
.owl-carousel .owl-video-wrapper {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
background: #000; }
|
||||
|
||||
.owl-carousel .owl-video-play-icon {
|
||||
position: absolute;
|
||||
height: 80px;
|
||||
width: 80px;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -40px;
|
||||
margin-top: -40px;
|
||||
background: url("owl.video.play.png") no-repeat;
|
||||
cursor: pointer;
|
||||
z-index: 1;
|
||||
-webkit-backface-visibility: hidden;
|
||||
transition: transform 100ms ease; }
|
||||
|
||||
.owl-carousel .owl-video-play-icon:hover {
|
||||
-ms-transform: scale(1.3, 1.3);
|
||||
transform: scale(1.3, 1.3); }
|
||||
|
||||
.owl-carousel .owl-video-playing .owl-video-tn,
|
||||
.owl-carousel .owl-video-playing .owl-video-play-icon {
|
||||
display: none; }
|
||||
|
||||
.owl-carousel .owl-video-tn {
|
||||
opacity: 0;
|
||||
height: 100%;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
transition: opacity 400ms ease; }
|
||||
|
||||
.owl-carousel .owl-video-frame {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
height: 100%;
|
||||
width: 100%; }
|
||||
@@ -0,0 +1,46 @@
|
||||
input[type="text"],
|
||||
input[type="email"],
|
||||
textarea {
|
||||
unicode-bidi:bidi-override;/*for normal keyboards*/
|
||||
direction: RTL;
|
||||
}
|
||||
.our-features-elements {
|
||||
text-align: right;
|
||||
}
|
||||
.tilter-caption {
|
||||
text-align: right;
|
||||
}
|
||||
.grid figure figcaption {
|
||||
text-align: right;
|
||||
}
|
||||
.section-title-contact-us {
|
||||
text-align: right;
|
||||
}
|
||||
.contact-us {
|
||||
padding-right: 0;
|
||||
}
|
||||
.contact-us-wrapper {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
.contact-us .textfield-col {
|
||||
padding-right: 0;
|
||||
padding-left: 15px;
|
||||
}
|
||||
.contact-us-elements {
|
||||
text-align: right;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.contact-us {
|
||||
padding-right: 15px;
|
||||
}
|
||||
.section-title-contact-us {
|
||||
text-align: center;
|
||||
}
|
||||
.contact-us-wrapper {
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-flex-direction: column;
|
||||
-moz-box-orient: vertical;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 110 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<square150x150logo src="img/icon/mstile-150x150.png"/>
|
||||
<TileColor>#da532c</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>
|
||||
|
After Width: | Height: | Size: 839 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "",
|
||||
"icons": [
|
||||
{
|
||||
"src": "img/icon/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "img/icon/android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ffffff",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone"
|
||||
}
|
||||
|
After Width: | Height: | Size: 4.4 KiB |
@@ -0,0 +1 @@
|
||||
<svg version="1" xmlns="http://www.w3.org/2000/svg" width="682.667" height="682.667" viewBox="0 0 512.000000 512.000000"><path d="M215.5 8.9c-3.3 1.6-13 6.3-21.5 10.4-8.5 4.1-22.2 10.7-30.5 14.7-8.2 4-19.9 9.6-26 12.5-6 2.9-17.3 8.3-25 12.1-7.7 3.7-14.2 6.8-14.5 6.9-.3.1-4.5 2.1-9.5 4.5-8.5 4.1-10.8 5.7-10 7 .3.5 1.4 7.9 3 21 .2 1.9.7 5.1 1 7 .2 1.9.7 5.5 1 8 .4 2.5.9 6 1.1 7.8.6 3.8.5 3.9-9.6 4.6-4.1.3-10.9.9-15 1.3s-9.2.7-11.2.8c-2.1 0-3.8.2-3.8.5s-1.6.6-3.5.6c-1.9.1-4.1.2-4.8.3-.8 0-2 3-3 7.3-.9 4-3.7 16.3-6.3 27.3-2.5 11-4.8 21.1-5 22.5-.3 1.4-2.1 9.2-4 17.5-2 8.2-3.8 16.1-4.1 17.5-.5 2.8-9.3 41.2-12.3 53.4-1 4.3-1.6 8.4-1.4 9.1.3.7 1.7 1.8 3.2 2.6 1.5.8 7.3 4.2 13 7.6 5.6 3.5 10.5 6.3 10.7 6.3.2 0 3.7 2.1 7.8 4.8l7.4 4.7L31.9 326c-6 9-10.9 16.6-10.9 16.8 0 .2-1.1 1.8-2.5 3.6s-2.5 3.7-2.5 4.3c0 .7 22.7 29.8 39.3 50.3.7.8 3 3.7 5.2 6.5 2.2 2.7 4.2 5.2 4.6 5.5.3.3 1.8 2.3 3.5 4.5 1.6 2.2 3.9 5.1 5 6.5 2 2.3 6.4 7.8 14.9 18.6 1.7 2.1 4.5 5.6 6.3 7.8 1.8 2.3 3.9 4.8 4.5 5.6.7.8 2.3 2.9 3.7 4.6 1.4 1.7 3.7 4.6 5.2 6.5 1.4 1.9 3.5 4.4 4.6 5.6l1.9 2.3 9.4-3.5c5.2-2 15-5.7 21.9-8.2 6.9-2.5 13-5 13.6-5.5.8-.5 1.5.1 2.2 1.9 1 2.7 2.5 7.2 2.7 8.3.2 1.1 6.7 20.6 7.5 22.5.5 1.1 1.6 4.8 2.6 8.2l1.8 6.3h159.1l5-15.5c10-31.6 9.8-31 12.5-30.7 1.4.1 3.4.6 4.5 1.1 6.9 3.3 40 14.9 40.6 14.3.6-.6 19.3-24 53.4-66.8 1.7-2.1 12.3-15.4 23.8-29.7 11.4-14.3 20.7-26.3 20.7-26.8s-5.7-9.6-12.6-20.1c-7-10.6-12.9-19.9-13.1-20.8-.3-1 2.3-3.1 8.2-6.5 4.8-2.8 9.8-5.8 11.3-6.7 1.5-1 3.4-2.1 4.2-2.5.8-.4 4.5-2.6 8.3-5 3.7-2.4 7.1-4.3 7.7-4.3 1.9 0 1.9-2.1-.1-10.7-1.2-4.8-2.2-9.5-2.4-10.3-.3-1.7-.5-2.5-3.5-15.5-1.2-5-2.8-11.7-3.5-15-.8-3.3-1.6-6.9-1.8-8-.2-1.1-.7-3.1-1-4.5-1-4.1-4.5-19.3-5.1-22-1.5-6.9-4.8-21.1-8.1-35.5-2-8.8-3.8-16.5-3.9-17-.1-.6-1.1-4.7-2.1-9.3-1-4.5-2.1-8.2-2.4-8.3-.3-.1-2.2-.2-4.1-.4-1.9-.2-6-.6-9-.9-3-.3-8.2-.8-11.5-1-25.2-2-24.7-1.8-24.1-5.9.3-1.8.8-5.5 1.1-8.2.3-2.8.8-6.1 1-7.5.3-1.4.7-4.4 1-6.7.9-7.4 1.5-11.7 2.3-17 .5-2.9.6-5.6.3-6.1s-4.9-2.9-10.1-5.4c-5.2-2.6-16.7-8.1-25.5-12.3-8.8-4.3-20.5-9.9-26-12.5-5.5-2.6-17.6-8.5-27-13-9.3-4.5-21-10.1-26-12.5-4.9-2.4-13.3-6.4-18.5-8.9L290.5 6l-9 9.4c-4.9 5.1-12.7 13.2-17.2 18L256 42l-10.3-10.7c-5.7-6-13.5-14.1-17.3-18.1l-7-7.2-5.9 2.9z"/></svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 339 B |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 477 B |
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" preserverAspectRatio="none" viewBox="0 0 48 36">
|
||||
<polygon fill="#fff" points="0,36 48,0 48,36 "/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 380 B |
|
After Width: | Height: | Size: 16 KiB |
@@ -0,0 +1,228 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
|
||||
/* Load Map
|
||||
========================= */
|
||||
(function () {
|
||||
|
||||
// Set Maps location and theme
|
||||
var address = "New York";
|
||||
loadMap(address,"ultra-white"); // themes: 1.normal 2.ultra-white
|
||||
|
||||
})();
|
||||
|
||||
|
||||
/* Browser capability
|
||||
========================= */
|
||||
|
||||
if ( (bowser.firefox && bowser.version < 52) || (bowser.msie && bowser.version <= 11)) {
|
||||
$("<link/>", {
|
||||
rel: "stylesheet",
|
||||
type: "text/css",
|
||||
href: "css/browser-fix.css"
|
||||
}).appendTo("head");
|
||||
}
|
||||
|
||||
if( !bowser.msie && !bowser.msedge ) {
|
||||
imagesLoaded(document.querySelector('main'), function() {
|
||||
$('div.tilter').each(function(i, el) {
|
||||
new TiltFx(el, [{}]);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/* Scoll Navigation
|
||||
========================= */
|
||||
|
||||
var NvScr = {
|
||||
|
||||
offset : -10,
|
||||
|
||||
init : function() {
|
||||
|
||||
NvScr.topMenu = $(".menu");
|
||||
NvScr.topMenuHeight = NvScr.topMenu.outerHeight() + NvScr.offset;
|
||||
NvScr.menuItems = NvScr.topMenu.find('a[href*="#"]'),
|
||||
|
||||
NvScr.scrollItems = NvScr.menuItems.map(function(){
|
||||
var href = $(this).attr("href"),
|
||||
id = href.substring(href.indexOf('#')),
|
||||
item = $(id);
|
||||
if (item.length) { return item; }
|
||||
});
|
||||
|
||||
// so we can get a fancy scroll animation
|
||||
NvScr.menuItems.on('click', NvScr.onClick);
|
||||
|
||||
NvScr.shrinkMenu();
|
||||
|
||||
$(window).on("scroll", NvScr.onScroll)
|
||||
|
||||
},
|
||||
|
||||
onClick : function(e) {
|
||||
|
||||
// close menu on click for mobile phones
|
||||
var screen_width = $(window).innerWidth()
|
||||
if(screen_width < 769)
|
||||
$('.navbar-toggle').trigger('click');
|
||||
|
||||
var href = $(this).attr("href"),
|
||||
id = href.substring(href.indexOf('#'));
|
||||
offsetTop = href === "#" ? 0 : $(id).offset().top - NvScr.topMenuHeight+1;
|
||||
$('html, body').stop().animate({
|
||||
scrollTop: offsetTop
|
||||
}, 1000);
|
||||
return false;
|
||||
},
|
||||
|
||||
onScroll: function() {
|
||||
// Get container scroll position
|
||||
var fromTop = $(this).scrollTop() + NvScr.topMenuHeight;
|
||||
|
||||
// Get id of current scroll item
|
||||
var cur = NvScr.scrollItems.map(function(){
|
||||
if ($(this).offset().top < fromTop)
|
||||
return this;
|
||||
});
|
||||
|
||||
// Get the id of the current element
|
||||
cur = cur[cur.length-1];
|
||||
var id = cur && cur.length ? cur[0].id : "";
|
||||
|
||||
NvScr.menuItems.parent().removeClass("menu-item--current");
|
||||
if(id){
|
||||
NvScr.menuItems.parent().end().filter("[href*='#"+id+"']").parent().addClass("menu-item--current");
|
||||
}
|
||||
|
||||
NvScr.shrinkMenu();
|
||||
},
|
||||
|
||||
shrinkMenu: function() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
if ( scrollTop > 150 ) {
|
||||
$("#menu-container").addClass("menu-scrolled");
|
||||
} else {
|
||||
$("#menu-container").removeClass("menu-scrolled");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
NvScr.init();
|
||||
|
||||
|
||||
/* Owl Slider
|
||||
========================= */
|
||||
$('#owl-carousel').owlCarousel({
|
||||
items: 1,
|
||||
singleItem: true,
|
||||
loop: true,
|
||||
autoplay:true
|
||||
});
|
||||
|
||||
|
||||
/* Owl Slider Client Testimonials
|
||||
=================================== */
|
||||
$('#owl-carousel-testimonials').owlCarousel({
|
||||
items: 1,
|
||||
singleItem: true,
|
||||
loop: true,
|
||||
autoplay:true
|
||||
});
|
||||
|
||||
|
||||
/* Owl Slider Our Latest Projects
|
||||
=================================== */
|
||||
$('#owl-carousel-projects').owlCarousel({
|
||||
items: 4,
|
||||
margin: 20,
|
||||
loop: false,
|
||||
navigation: false,
|
||||
dots: false,
|
||||
autoplay:false,
|
||||
|
||||
responsive:{
|
||||
0:{
|
||||
items:1,
|
||||
},
|
||||
601:{
|
||||
items:2
|
||||
},
|
||||
992:{
|
||||
items:3
|
||||
},
|
||||
1200:{
|
||||
items:4
|
||||
}
|
||||
},
|
||||
responsiveRefreshRate : 50,
|
||||
});
|
||||
|
||||
/* Owl Slider Our Team
|
||||
=================================== */
|
||||
$('#owl-carousel-team').owlCarousel({
|
||||
items: 4,
|
||||
margin: 10,
|
||||
loop: false,
|
||||
navigation: false,
|
||||
dots: false,
|
||||
autoplay:false,
|
||||
|
||||
responsive:{
|
||||
0:{
|
||||
items:1,
|
||||
},
|
||||
601:{
|
||||
items:2,
|
||||
},
|
||||
992:{
|
||||
items:3,
|
||||
},
|
||||
1200:{
|
||||
items:4
|
||||
}
|
||||
},
|
||||
responsiveRefreshRate : 50,
|
||||
});
|
||||
|
||||
// Preloader
|
||||
imagesLoaded(document.querySelector('body'), function() {
|
||||
$("#preloader").css('display','none');
|
||||
})
|
||||
|
||||
/* Contact Form
|
||||
========================= */
|
||||
$(function () {
|
||||
|
||||
var contact_form = $("#contact-form");
|
||||
var contact_response = $(".mail-response");
|
||||
|
||||
contact_form.on('submit', function(e) {
|
||||
|
||||
contact_response.html(" ");
|
||||
$.ajax({
|
||||
url: 'contact.php',
|
||||
type: 'POST',
|
||||
data: contact_form.serialize(),
|
||||
success : function(res) {
|
||||
console.log(res);
|
||||
console.log(res.status);
|
||||
if(res.status === 401 || res.status === 400 )
|
||||
contact_response.addClass("error-msg");
|
||||
else if(res.status === "200") {
|
||||
console.log("this is called")
|
||||
contact_response.addClass("success-msg");
|
||||
}
|
||||
|
||||
contact_response.html(res.message);
|
||||
}
|
||||
});
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
@@ -0,0 +1,213 @@
|
||||
'use strict';
|
||||
|
||||
function loadMap(address,theme) {
|
||||
var geocoder;
|
||||
var map;
|
||||
var themes = [];
|
||||
|
||||
themes["normal"] = [];
|
||||
|
||||
themes["ultra-white"] = [
|
||||
{
|
||||
"featureType": "water",
|
||||
"elementType": "geometry",
|
||||
"stylers": [
|
||||
{
|
||||
"color": "#e9e9e9"
|
||||
},
|
||||
{
|
||||
"lightness": 17
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "landscape",
|
||||
"elementType": "geometry",
|
||||
"stylers": [
|
||||
{
|
||||
"color": "#f5f5f5"
|
||||
},
|
||||
{
|
||||
"lightness": 20
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "road.highway",
|
||||
"elementType": "geometry.fill",
|
||||
"stylers": [
|
||||
{
|
||||
"color": "#ffffff"
|
||||
},
|
||||
{
|
||||
"lightness": 17
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "road.highway",
|
||||
"elementType": "geometry.stroke",
|
||||
"stylers": [
|
||||
{
|
||||
"color": "#ffffff"
|
||||
},
|
||||
{
|
||||
"lightness": 29
|
||||
},
|
||||
{
|
||||
"weight": 0.2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "road.arterial",
|
||||
"elementType": "geometry",
|
||||
"stylers": [
|
||||
{
|
||||
"color": "#ffffff"
|
||||
},
|
||||
{
|
||||
"lightness": 18
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "road.local",
|
||||
"elementType": "geometry",
|
||||
"stylers": [
|
||||
{
|
||||
"color": "#ffffff"
|
||||
},
|
||||
{
|
||||
"lightness": 16
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "poi",
|
||||
"elementType": "geometry",
|
||||
"stylers": [
|
||||
{
|
||||
"color": "#f5f5f5"
|
||||
},
|
||||
{
|
||||
"lightness": 21
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "poi.park",
|
||||
"elementType": "geometry",
|
||||
"stylers": [
|
||||
{
|
||||
"color": "#dedede"
|
||||
},
|
||||
{
|
||||
"lightness": 21
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"elementType": "labels.text.stroke",
|
||||
"stylers": [
|
||||
{
|
||||
"visibility": "on"
|
||||
},
|
||||
{
|
||||
"color": "#ffffff"
|
||||
},
|
||||
{
|
||||
"lightness": 16
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"elementType": "labels.text.fill",
|
||||
"stylers": [
|
||||
{
|
||||
"saturation": 36
|
||||
},
|
||||
{
|
||||
"color": "#333333"
|
||||
},
|
||||
{
|
||||
"lightness": 40
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"elementType": "labels.icon",
|
||||
"stylers": [
|
||||
{
|
||||
"visibility": "off"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "transit",
|
||||
"elementType": "geometry",
|
||||
"stylers": [
|
||||
{
|
||||
"color": "#f2f2f2"
|
||||
},
|
||||
{
|
||||
"lightness": 19
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "administrative",
|
||||
"elementType": "geometry.fill",
|
||||
"stylers": [
|
||||
{
|
||||
"color": "#fefefe"
|
||||
},
|
||||
{
|
||||
"lightness": 20
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "administrative",
|
||||
"elementType": "geometry.stroke",
|
||||
"stylers": [
|
||||
{
|
||||
"color": "#fefefe"
|
||||
},
|
||||
{
|
||||
"lightness": 17
|
||||
},
|
||||
{
|
||||
"weight": 1.2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
geocoder = new google.maps.Geocoder();
|
||||
var latlng = new google.maps.LatLng(-34.397, 150.644);
|
||||
var mapProp = {
|
||||
zoom:13,
|
||||
mapTypeId:google.maps.MapTypeId.ROADMAP,
|
||||
scrollwheel: false,
|
||||
disableDefaultUI: true,
|
||||
};
|
||||
map = new google.maps.Map(document.getElementById('map'), mapProp);
|
||||
var img = {
|
||||
url: './img/location.png',
|
||||
scaledSize : new google.maps.Size(40, 40),
|
||||
};
|
||||
geocoder.geocode( { 'address': address}, function(results, status) {
|
||||
if (status == 'OK') {
|
||||
map.setCenter(results[0].geometry.location);
|
||||
var marker = new google.maps.Marker({
|
||||
map: map,
|
||||
position: results[0].geometry.location,
|
||||
icon: img
|
||||
});
|
||||
}
|
||||
else
|
||||
alert("Please set a valid address");
|
||||
});
|
||||
map.set('styles', themes[theme]);
|
||||
}
|
||||