Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
Showing
with 747 additions and 0 deletions
@charset "UTF-8";
/* Font customization */
/* latin */
@font-face {
font-family: 'Geo';
font-style: normal;
font-weight: 400;
src: local('Geo'), local('Geo-Regular'), url(./fonts/geo.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
/* devanagari */
@font-face {
font-family: 'Mukta';
font-style: normal;
font-weight: 400;
src: local('Mukta Regular'), local('Mukta-Regular'), url(./fonts/mukta1.woff2) format('woff2');
unicode-range: U+02BC, U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200B-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* latin-ext */
@font-face {
font-family: 'Mukta';
font-style: normal;
font-weight: 400;
src: local('Mukta Regular'), local('Mukta-Regular'), url(./fonts/mukta1.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Mukta';
font-style: normal;
font-weight: 400;
src: local('Mukta Regular'), local('Mukta-Regular'), url(./fonts/mukta1.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
/* Body style */
body {
width: 470px;
margin: auto;
font-family: 'Mutka', sans-serif;
}
textarea {
resize: none;
width: 100%;
margin-bottom: 10px;
}
/* Order Header */
.progress-container {
width: fit-content;
border-collapse:separate;
border-spacing: 10px 10px;
display: table;
}
.progress {
width: 30%;
height: 50px;
font-size: 105%;
border: 1px solid black;
text-align: left;
vertical-align: middle;
display: table-cell;
}
.progress-num {
display:inline-block;
background-color: #DDD;
width: 35px;
height: 35px;
border-radius: 100%;
margin: 0px 5px;
line-height: 200%;
text-align: center;
vertical-align: middle;
}
.selected {
background-color: #FFFF44;
}
/* Header style */
.header-box {
height: fit-content content-box;
width: fit-content content-box;
margin-left: auto;
margin-right: auto;
margin-top: none;
margin-bottom: none;
column-count: 2;
-moz-column-count: 2;
-webkit-column-count: 2;
-webkit-column-span: all; /* Chrome, Safari, Opera */
column-span: all;
column-gap: 40px;
}
.col-header-left {
width: 50% content-box;
float: left;
vertical-align: middle;
}
.logo-title {
font-family: 'Geo', sans-serif;
font-weight: bold;
font-size: 250%;
color: #5A1E83;
}
.tagline {
color: #311B92;
}
.col-header-right {
width: 50% content-box;
float: right;
text-align: right;
vertical-align: middle;
line-height: 2;
}
/* Menu style */
.menu {
width: 100%;
display: table;
table-layout: fixed;
}
.menu > div.menu-column {
display: table-column;
}
.menu > div.menu-cell {
display: table-cell;
font-family: 'Mukta', sans-serif;
vertical-align: middle;
line-height: 50px;
text-align: center;
font-weight: bold;
border-style: solid;
border-width: 1px;
}
.menu-item:hover, .menu-item#selected {
color: #ffffff;
border-color: #000000;
background-color: #5A1E83;
}
/* Footer style */
.footer {
width: 100% fit-content;
display: inline-block;
column-count: 3;
column-span: all;
column-gap: 1.5em;
column-rule-style: solid;
border-style: solid;
border-width: 2px;
margin: auto;
}
.footer > div {
text-align: center;
font-weight: bold;
font-family: 'Mukta', sans-serif;
vertical-align: middle;
}
.img-chooser {
padding-top: 20px;
}
/* Container */
.container {
width: inherit;
}
.header {
line-height: 1.5;
text-transform: uppercase;
}
.selectdriver-header {
text-transform: uppercase;
font-weight: bold;
}
.edit-profile-container {
font-family: Verdana;
}
.edit-profile-header {
text-transform: uppercase;
font-weight: bold;
width: 100%;
font-size: 170%;
}
.edit-profile-btm {
clear: both;
}
.form-editprofile{
margin: 5px 0;
}
.ep-textarea{
width: 60%;
float: right;
clear: both;
}
.content-layout {
background-color: rgb(124, 206, 43);
padding: 50px;
border: 10px solid rgb(10, 127, 10);
border-radius: 100px;
width: 350px;
}
.title {
height: 27px;
padding: 0px 20px;
}
.title>div>h1 {
text-align: center;
margin-top: 0px;
width: 100px;
float: left;
}
.title>div>hr {
float:left;
position: relative;
width: 100px;
top: 5px;
background-color: rgb(10, 127, 10);
height: 5px;
border: none;
}
.form-layout {
clear: left;
}
.form-input {
width: 350px;
margin-bottom: 5px;
}
.form-input>div {
float: left;
width: 130px;
}
.form-input>input {
width: 198px;
}
.driver-checkbox {
margin: 20px 0px;
}
.driver-checkbox>input {
float: left;
margin-left: 0px;
}
.cancel-button {
width: 75px;
height: 30px;
text-align: center;
text-transform: uppercase;
letter-spacing: 1px;
border: 1px solid black;
background-color: #D2002E;
border-radius: 10px;
}
.accept-button {
width: 75px;
height: 30px;
text-transform: uppercase;
letter-spacing: 1px;
border: 1px solid black;
background-color: #83D535;
border-radius: 10px;
}
.driver-completeorder-pic {
height: 100px;
width: 100px;
margin: 10px;
border-radius: 100%;
border: 3px solid #5A1E83;
}
.completeorder-container {
text-align: center;
clear: both;
}
.right-align {
width: 100%;
text-align: right;
}
.driver-fullname-disp {
font-size: 105%;
font-weight: bold;
margin-top: 5px;
}
/*Select driver*/
.select-driver {
width: fit-content;
padding: 0 10px;
border-radius: 12px;
border: 1px solid black;
margin: 10px 0;
}
.driver-content {
height: 120px;
overflow: hidden;
}
.driver-pic {
height: 100px;
width: 100px;
margin: 10px;
border-radius: 100%;
border: 3px solid #5A1E83;
float: left;
}
.driver-name-disp {
font-size: 160%;
font-weight: bold;
margin-top: 10px;
}
.driver-rating-disp {
color: orange;
font-size: 110%;
}
.driver-not-found {
color: grey;
height: 70px;
text-align: center;
text-transform: none;
line-height: 70px;
vertical-align: middle;
}
.vote-disp {
color: black;
}
.select-driver-btn {
width: auto;
color: white;
background-color: #5A1E83;
letter-spacing: 0.5px;
float: right;
}
.order-btn {
float: none;
clear: both;
}
#profile-pic {
width: 150px;
height: 150px;
border: 1px solid black;
float: left;
margin-right: 25px;
margin-bottom: 30px;
}
#save-profile {
float: right;
}
#register-button {
background-color: #4CAF50;
border: 5px solid rgb(10, 127, 10);
border-radius: 20px;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
#button-layout>div {
float: left;
width: 200px;
height: 66px;
}
#button-layout a {
position: relative;
top: 20px;
}
.button-form {
text-align: right;
width: 100%;
}
.button-form div {
float: left;
}
.completeorder-btn {
width: 100px;
height: 50px;
float: none;
}
/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 50px;
height: 25px;
}
/* Hide default HTML checkbox */
.switch input {display:none;}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 19px;
width: 19px;
left: 4px;
bottom: 3px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #1E7B25;
}
input:focus + .slider {
box-shadow: 0 0 1px #1E7B25;
}
input:checked + .slider:before {
-webkit-transform: translateX(23px);
-ms-transform: translateX(23px);
transform: translateX(23px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}
/* Menu Order */
.menu-order {
height: 100%;
width: 100%;
position: relative;
font-size: 12px;
border-spacing: 20px 12px;
}
.menu-order-column {
height: 100%;
}
.menu-order-cell {
display: table-cell;
position: relative;
text-align: left;
font-weight: bold;
}
.menu-order-number
{
position: relative;
display: block;
width: 50px;
height: 50px;
border-radius: 25px; /* or 50% */
text-align: center;
margin-left: auto;
margin-right: auto;
background-color: #311B92;
color: #ffffff;
line-height: 50px;
}
.menu-order-title
{
position: relative;
display: inline-block;
}
#next-button-text {
line-height: 20px;
width: 75%;
padding-right: 1px;
}
input.next-button {
width: 20%;
height: 30px;
line-height: 20px;
text-transform: uppercase;
letter-spacing: 1px;
border: 1px solid black;
background-color: #83D535;
border-radius: 10px;
display: inline-block;
}
table, th, td {
table-layout: auto !important;
width: 100% auto !important;
max-width:100%;
white-space:nowrap;
border: 1px solid black;
border-collapse: collapse;
}
.pref-button {
width: 21px;
height: 21px;
vertical-align: middle;
border: none;
display: inline-block;
}
/** Rating **/
.starRating:not(old){
display : inline-block;
width : 7.5em;
height : 1.5em;
overflow : hidden;
vertical-align : bottom;
}
.starRating:not(old) > input{
margin-right : -100%;
opacity : 0;
}
.starRating:not(old) > label{
display : block;
float : right;
position : relative;
background : url('../img/star-off.svg');
background-size : contain;
}
.starRating:not(old) > label:before{
content : '';
display : block;
width : 1.5em;
height : 1.5em;
background : url('../img/star-on.svg');
background-size : contain;
opacity : 0;
transition : opacity 0.2s linear;
}
.starRating:not(old) > label:hover:before,
.starRating:not(old) > label:hover ~ label:before,
.starRating:not(:hover) > :checked ~ label:before{
opacity : 1;
}
File added
File added
HelloWeb/build/web/img/delete.png

6.05 KiB

File added
HelloWeb/build/web/img/edit.png

5.99 KiB

HelloWeb/build/web/img/images.jpg

6.43 KiB

HelloWeb/build/web/img/motaraido.png

12.4 KiB

HelloWeb/build/web/img/pen.png

18.3 KiB

HelloWeb/build/web/img/profilepic.png

12.4 KiB

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
<path fill="#fff" stroke="#ccc" d="M 12,2.5 14.4,9.5 21.5,9.5 15.8,13.75 18.5,21.5 12,16.625 5.5,21.5 8.2,13.75 2.5,9.5 9.6,9.5 z"/>
</svg>
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
<path fill="#311B92" stroke="#000" d="M 12,2.5 14.4,9.5 21.5,9.5 15.8,13.75 18.5,21.5 12,16.625 5.5,21.5 8.2,13.75 2.5,9.5 9.6,9.5 z"/>
</svg>
File added
File added
File added
<%--
Document : index
Created on : Nov 4, 2017, 9:23:05 AM
Author : nim_13515091
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>Hello World!</h1>
<form name="Name Input Form" action="Order.jsp">
Enter Your Name:
<input type="text" name="name" value="" />
<input type="submit" value="OK" />
</form>
</body>
</html>
function loginValidation() {
var username = document.forms["loginform"]["username"];
var pwd = document.forms["loginform"]["password"];
var usrVerify = Validate(username, "empty");
var pwdVerify = Validate(pwd, "empty");
return (usrVerify && pwdVerify);
}
function editProfileValidation() {
var name = document.forms["editprofile-form"]["your-name"];
var phone = document.forms["editprofile-form"]["phone-number"];
var nameVerify = Validate(name, "empty", 0, 20, "length");
var phoneVerify = Validate(phone, "empty", 9, 12, "length");
return (nameVerify && phoneVerify);
}
function Validate(inputArea, type1, min = 0, max = 0, type2 = null, type3 = null) {
var error = GetErrorMessage(inputArea.value, type1, min, max);
if(error === "") {
if (type2 != null) {
error = GetErrorMessage(inputArea.value, type2, min, max);
console.log(type2 + "length");
}
if (error === "") {
if (type3 != null) {
error = GetErrorMessage(inputArea.value, type3, min, max);
}
}
}
if(error !== "" && inputArea.nextElementSibling === null) {
var errorEl = document.createElement("p");
errorEl.innerHTML = error;
errorEl.className = "error";
insertAfterElement(errorEl, inputArea);
inputArea.addEventListener("blur", function() {
var error = GetErrorMessage(inputArea.value, type1, min, max);
if(error === "") {
if (type2 != null) {
error = GetErrorMessage(inputArea.value, type2, min, max);
}
if (error === "") {
if (type3 != null) {
error = GetErrorMessage(inputArea.value, type3, min, max);
}
}
}
if (error === ""){
this.nextSibling.remove();
}
},true);
}
return (error === "");
}
function insertAfterElement(el, src) {
src.parentNode.insertBefore(el, src.nextSibling);
}
function GetErrorMessage(textArea, type, min = 0, max = 0) {
var validateText = "";
switch(type) {
case "empty" :
if(isEmpty(textArea)) {
validateText = "Fill in the field";
}
break;
case "email" :
if(!isEmail(textArea)) {
validatedText = "Invalid Email Address";
}
break;
case "number" :
if(isNumber(textArea)){
validateText = "Fill in with only number";
}
break;
case "length" :
if (!isLengthEqual(textArea,min,max)){
validateText = "Character must be between " + min.toString() + " and " + max.toString() + " long";
}
break;
}
return validateText;
}
function isEmpty(textArea) {
return (textArea.match(/^s+$/) || textArea == "");
}
function isNumber(textArea) {
return (!isNaN(textArea));
}
function isLengthEqual(textArea, min, max){
return (textArea.length >= min && textArea.length <= max);
}
function isEmail(textArea) {
return (textArea.match(/^([a-zA-Z0-9])+([.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-]+)+/));
}
\ No newline at end of file