Uber vs Cab
How do I make an uber vs cab?
A simple calculator to compare the cost of using Uber versus a cab. What is a uber vs cab? How do you make a uber vs cab? This script and codes were developed by Scott Bram on 11 August 2022, Thursday.
Uber vs Cab - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Uber vs Cab</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Uber vs. Cab</h1> <h2>The best Thing Evar!</h2>
<form action="" method="get" name="UberVsCab" dir="ltr" lang="en"> <div class="field" id="tripDistance"> <label for="tripDistance">Trip distance (in miles) </label> <input name="tripDistance" type="number" size="4" maxlength="5" placeholder="12.5" pattern="" autocorrect="off"> </div> <div class="field" id="baseFare"> <label for="baseFare">(Uber) Base Fare/<br>(Cab) Meter Drop </label> <input name="baseFare" type="number" size="5" maxlength="5" placeholder="7.50" autocorrect="off"> </div> <div class="field" id="perMile"> <label for="perMile">Rate per mile </label> <input name="perMile" type="number" size="5" maxlength="5" placeholder="3.25" autocorrect="off"> </div> <div class="field" id="addlFees"> <label for="addlFees">Total additional fees </label> <input name="addlFees" type="number" size="5" maxlength="5" placeholder="4.00" autocorrect="off"> </div> <div class="field" id="minFare"> <label for="minFare">Minimum fare </label> <input name="minFare" type="number" size="5" maxlength="5" placeholder="15.00" autocorrect="off"> </div>
</form>
<div id="estimatedCost">$<span id="calcTotal">0</span></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Uber vs Cab - Script Codes CSS Codes
body { margin: 0 auto; padding: 10px 0; width: 320px; color: gray; font: normal 20px Arial, Helvetica, sans-serif;
}
div { clear: both; height: 50px;
}
label { float: left; padding-top: 15px; font-weight: bold;
}
input { float: right; padding: 5px; width: 70px; height: 40px; border: solid 1px silver; font: normal 20px Arial, Helvetica, sans-serif;
}
.field { padding-top: 10px;
}
#baseFare label { padding-top: 0;
}
#estimatedCost { padding-top: 20px; height: auto; color: green; text-align: right; font-size: 80px;
}
Developer | Scott Bram |
Username | thatbram |
Uploaded | August 11, 2022 |
Rating | 3 |
Size | 2,116 Kb |
Views | 52,624 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
AOR site logo | 2,527 Kb |
Trail detail example | 2,361 Kb |
Site switcher bookmarklet | 2,115 Kb |
Event demo | 2,104 Kb |
WindowSizr | 3,447 Kb |
Squareple | 3,232 Kb |
Strip ASCII characters that break JSON parsing | 3,100 Kb |
HTML5 File API demo | 3,316 Kb |
Idea for Colorectal Cancer Awareness Month promo for developers | 1,803 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Rainbow Drops | Csbarnes | 2,365 Kb |
SCSS Unit Conversion | Jakob-e | 8,210 Kb |
Elon Musk - Tribute Page - FreeCodeCamp | Yunnimun | 8,615 Kb |
Simple star rating using js and data-uri | TheEnd | 5,795 Kb |
CSS Letter animations | Sladix | 2,116 Kb |
DIV wormhole | Heydon | 1,932 Kb |
Loading animation | Hafizfattah | 0 Kb |
Random Gradients - JS | Aldlevine | 2,026 Kb |
Learning FlexBox | Alex_rodrigues | 2,821 Kb |
Parallax with only CSS | Thulioph | 2,297 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!