-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This UKG Cab project shows a simple method of Creating an cab booking website & system using the basic web development programming languages php, javascript, html5,css.
- Loading branch information
Showing
9 changed files
with
3,618 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,35 @@ | ||
var httpGF = getHTTPObject(); | ||
function handleHttpResponseGF() { | ||
if (httpGF.readyState == 4) { | ||
if(httpGF.status==200) { | ||
var results=httpGF.responseText; | ||
//alert(results); | ||
document.getElementById("divDropOff").innerHTML=results; | ||
} | ||
} | ||
} | ||
|
||
function showDropOff(city) { | ||
var url = "location.php?city="+city; // The server-side script | ||
//alert(url); | ||
httpGF.open("GET", url, true); | ||
httpGF.onreadystatechange = handleHttpResponseGF; | ||
httpGF.send(null); | ||
return true; | ||
} | ||
|
||
function getHTTPObject() { | ||
var xmlhttp; | ||
|
||
if(window.XMLHttpRequest){ | ||
xmlhttp = new XMLHttpRequest(); | ||
} | ||
else if (window.ActiveXObject){ | ||
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); | ||
if (!xmlhttp){ | ||
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); | ||
} | ||
|
||
} | ||
return xmlhttp; | ||
} |
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,122 @@ | ||
(function($){ | ||
|
||
"use strict"; | ||
|
||
$(document).ready(function () { | ||
transfers.init(); | ||
}); | ||
|
||
$(window).load(function () { | ||
transfers.load(); | ||
}); | ||
|
||
// ANIMATIONS | ||
new WOW().init(); | ||
|
||
var transfers = { | ||
|
||
init: function () { | ||
|
||
// MOBILE MENU | ||
$('.main-nav').slicknav({ | ||
prependTo:'.header .wrap', | ||
label:'' | ||
}); | ||
|
||
// CUSTOM FORM ELEMENTS | ||
$('input[type=radio], input[type=checkbox],input[type=number], select').uniform(); | ||
|
||
// SEARCH RESULTS | ||
$('.information').hide(); | ||
$('.trigger').click(function () { | ||
$(this).parent().parent().nextAll('.information').slideToggle(500); | ||
}); | ||
$('.close').click(function () { | ||
$('.information').hide(500); | ||
}); | ||
|
||
// FAQS | ||
$('.faqs dd').hide(); | ||
$('.faqs dt').click(function () { | ||
$(this).next('.faqs dd').slideToggle(500); | ||
$(this).toggleClass('expanded'); | ||
}); | ||
|
||
// CONTACT FORM | ||
$('#contactform').submit(function(){ | ||
var action = $(this).attr('action'); | ||
$("#message").show(500,function() { | ||
$('#message').hide(); | ||
$('#submit') | ||
.after('<img src="images/contact-ajax-loader.gif" class="loader" />') | ||
.attr('disabled','disabled'); | ||
|
||
$.post(action, { | ||
name: $('#name').val(), | ||
email: $('#email').val(), | ||
comments: $('#comments').val() | ||
}, | ||
function(data){ | ||
document.getElementById('message').innerHTML = data; | ||
$('#message').slideDown('slow'); | ||
$('#contactform img.loader').fadeOut('slow',function(){$(this).remove()}); | ||
$('#submit').removeAttr('disabled'); | ||
}); | ||
|
||
}); | ||
return false; | ||
}); | ||
|
||
// TABS | ||
$('.tab-content').hide().first().show(); | ||
$('.tabs li:first').addClass('active'); | ||
|
||
$('.tabs a').on('click', function (e) { | ||
e.preventDefault(); | ||
$(this).closest('li').addClass('active').siblings().removeClass('active'); | ||
$($(this).attr('href')).show().siblings('.tab-content').hide(); | ||
}); | ||
|
||
var hash = $.trim( window.location.hash ); | ||
if (hash) $('.tabs a[href$="'+hash+'"]').trigger('click'); | ||
|
||
// SMOOTH ANCHOR SCROLLING | ||
var $root = $('html, body'); | ||
$('a.anchor').click(function(e) { | ||
var href = $.attr(this, 'href'); | ||
if (typeof ($(href)) != 'undefined' && $(href).length > 0) { | ||
var anchor = ''; | ||
|
||
if(href.indexOf("#") != -1) { | ||
anchor = href.substring(href.lastIndexOf("#")); | ||
} | ||
|
||
if (anchor.length > 0) { | ||
console.log($(anchor).offset().top); | ||
console.log(anchor); | ||
$root.animate({ | ||
scrollTop: $(anchor).offset().top | ||
}, 500, function () { | ||
window.location.hash = anchor; | ||
}); | ||
e.preventDefault(); | ||
} | ||
} | ||
}); | ||
|
||
}, | ||
load: function () { | ||
// UNIFY HEIGHT | ||
var maxHeight = 0; | ||
|
||
$('.heightfix').each(function(){ | ||
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } | ||
}); | ||
$('.heightfix').height(maxHeight); | ||
|
||
// PRELOADER | ||
$('.preloader').fadeOut(); | ||
} | ||
} | ||
|
||
})(jQuery); |
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,27 @@ | ||
(function($){ | ||
|
||
"use strict"; | ||
|
||
$(document).ready(function () { | ||
search.init(); | ||
}); | ||
|
||
var search = { | ||
|
||
init: function () { | ||
|
||
// SEARCH | ||
$('.advanced-search .f-row:nth-child(2)').hide(500); | ||
$('input[type=radio]#oneway').click(function() { | ||
$('.f-row:nth-child(2)').hide(500); | ||
}); | ||
$('input[type=radio]#return').click(function() { | ||
$('.f-row:nth-child(2)').slideToggle(500); | ||
}); | ||
|
||
// DATE & TIME PICKER | ||
$('#dep-date,#ret-date').datetimepicker(); | ||
} | ||
} | ||
|
||
})(jQuery); |
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,16 @@ | ||
// When the user scrolls down 20px from the top of the document, show the button | ||
window.onscroll = function() {scrollFunction()}; | ||
|
||
function scrollFunction() { | ||
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { | ||
document.getElementById("myBtn").style.display = "block"; | ||
} else { | ||
document.getElementById("myBtn").style.display = "none"; | ||
} | ||
} | ||
|
||
// When the user clicks on the button, scroll to the top of the document | ||
function topFunction() { | ||
document.body.scrollTop = 0; | ||
document.documentElement.scrollTop = 0; | ||
} |
Oops, something went wrong.