Skip to content

Commit

Permalink
cab booking system
Browse files Browse the repository at this point in the history
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
dydevops authored Jan 3, 2021
1 parent 832c0dd commit edf1cf9
Show file tree
Hide file tree
Showing 9 changed files with 3,618 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/jquery.min.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions js/jquery.slicknav.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/jquery.uniform.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions js/location.js
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;
}
122 changes: 122 additions & 0 deletions js/scripts.js
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);
27 changes: 27 additions & 0 deletions js/search.js
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);
16 changes: 16 additions & 0 deletions js/topbutton.js
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;
}
Loading

0 comments on commit edf1cf9

Please sign in to comment.