Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zekena
/
Unit-calculator
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
50a1bd7b
authored
May 14, 2019
by
zekena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
final stuff
parent
ec0c4c73
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
102 additions
and
82 deletions
categories/area.php
categories/length.php
categories/speed.php
categories/temperature.php
categories/time.php
categories/volume.php
categories/weight.php
home.php
categories/area.php
View file @
50a1bd7b
...
@@ -75,16 +75,13 @@ if ($_POST['submit']) {
...
@@ -75,16 +75,13 @@ if ($_POST['submit']) {
</nav>
</nav>
<div
id=
"side-menu"
class=
"side-nav"
>
<div
id=
"side-menu"
class=
"side-nav"
>
<a
href=
"#"
class=
"btn-close"
onclick=
"closeSlideMenu()"
>
×
</a>
<a
href=
"#"
class=
"btn-close"
onclick=
"closeSlideMenu()"
>
×
</a>
<a
href=
"#"
>
About Us
</a>
<a
href=
"categories/length.php"
>
Length
</a>
<a
href=
" length.php"
>
Length
</a>
<a
href=
"categories/temperature.php"
>
Temperature
</a>
<a
href=
" temperature.php"
>
Temperature
</a>
<a
href=
"categories/area.php"
>
Area
</a>
<a
href=
" area.php"
>
Area
</a>
<a
href=
"categories/volume.php"
>
Volume
</a>
<a
href=
" volume.php"
>
Volume
</a>
<a
href=
"categories/weight.php"
>
Weight
</a>
<a
href=
" weight.php"
>
Weight
</a>
<a
href=
"categories/speed.php"
>
Speed
</a>
<a
href=
"login/login.php"
>
Log in
</a>
<a
href=
" speed.php"
>
Speed
</a>
<a
href=
"../login"
>
Log in
</a>
<a
href=
"../login/signup.php"
>
Sign up
</a>
</div>
</div>
...
@@ -104,31 +101,71 @@ if ($_POST['submit']) {
...
@@ -104,31 +101,71 @@ if ($_POST['submit']) {
Be able to input number from either box.-->
Be able to input number from either box.-->
<input
id=
"Input"
class=
"Input-text"
placeholder=
"Enter amount"
name=
"from_value"
value=
"
<?php
echo
$from_value
;
?>
"
/>
<label
for=
"Input"
class=
"Input-label"
>
Your entry
</label>
<input
id=
"Input"
class=
"Input-text"
placeholder=
"Enter amount"
name=
"from_value"
value=
"
<?php
echo
$from_value
;
?>
"
/>
<label
for=
"Input"
class=
"Input-label"
>
Your entry
</label>
<select
name=
"from_unit"
>
<select
name=
"from_unit"
>
<option
value=
"square_inches"
<?php
if
(
$from_unit
==
'square_inches'
)
{
echo
" selected"
;
}
?>
>
square inches
</option>
<option
value=
"square_inches"
<?php
if
(
$from_unit
==
'square_inches'
)
{
<option
value=
"square_feet"
<?php
if
(
$from_unit
==
'square_feet'
)
{
echo
" selected"
;
}
?>
>
square feet
</option>
echo
" selected"
;
<option
value=
"square_yards"
<?php
if
(
$from_unit
==
'square_yards'
)
{
echo
" selected"
;
}
?>
>
square yards
</option>
}
?>
>
square inches
</option>
<option
value=
"square_miles"
<?php
if
(
$from_unit
==
'square_miles'
)
{
echo
" selected"
;
}
?>
>
square miles
</option>
<option
value=
"square_feet"
<?php
if
(
$from_unit
==
'square_feet'
)
{
<option
value=
"square_millimeters"
<?php
if
(
$from_unit
==
'square_millimeters'
)
{
echo
" selected"
;
}
?>
>
square millimeters
</option>
echo
" selected"
;
<option
value=
"square_centimeters"
<?php
if
(
$from_unit
==
'square_centimeters'
)
{
echo
" selected"
;
}
?>
>
square centimeters
</option>
}
?>
>
square feet
</option>
<option
value=
"square_meters"
<?php
if
(
$from_unit
==
'square_meters'
)
{
echo
" selected"
;
}
?>
>
square meters
</option>
<option
value=
"square_yards"
<?php
if
(
$from_unit
==
'square_yards'
)
{
<option
value=
"square_kilometers"
<?php
if
(
$from_unit
==
'square_kilometers'
)
{
echo
" selected"
;
}
?>
>
square kilometers
</option>
echo
" selected"
;
<option
value=
"acres"
<?php
if
(
$from_unit
==
'acres'
)
{
echo
" selected"
;
}
?>
>
acres
</option>
}
?>
>
square yards
</option>
<option
value=
"hectares"
<?php
if
(
$from_unit
==
'hectares'
)
{
echo
" selected"
;
}
?>
>
hectares
</option>
<option
value=
"square_miles"
<?php
if
(
$from_unit
==
'square_miles'
)
{
echo
" selected"
;
}
?>
>
square miles
</option>
<option
value=
"square_millimeters"
<?php
if
(
$from_unit
==
'square_millimeters'
)
{
echo
" selected"
;
}
?>
>
square millimeters
</option>
<option
value=
"square_centimeters"
<?php
if
(
$from_unit
==
'square_centimeters'
)
{
echo
" selected"
;
}
?>
>
square centimeters
</option>
<option
value=
"square_meters"
<?php
if
(
$from_unit
==
'square_meters'
)
{
echo
" selected"
;
}
?>
>
square meters
</option>
<option
value=
"square_kilometers"
<?php
if
(
$from_unit
==
'square_kilometers'
)
{
echo
" selected"
;
}
?>
>
square kilometers
</option>
<option
value=
"acres"
<?php
if
(
$from_unit
==
'acres'
)
{
echo
" selected"
;
}
?>
>
acres
</option>
<option
value=
"hectares"
<?php
if
(
$from_unit
==
'hectares'
)
{
echo
" selected"
;
}
?>
>
hectares
</option>
</select>
</select>
<br>
<br>
<input
readonly
id=
"Input"
class=
"Input-text"
placeholder=
"Wait for it"
name=
"to_value"
value=
"
<?php
echo
$to_value
;
?>
"
/>
<input
readonly
id=
"Input"
class=
"Input-text"
placeholder=
"Wait for it"
name=
"to_value"
value=
"
<?php
echo
$to_value
;
?>
"
/>
<label
for=
"Input"
class=
"input-label"
>
Converted Result
</label>
<label
for=
"Input"
class=
"input-label"
>
Converted Result
</label>
<select
name=
"to_unit"
>
<select
name=
"to_unit"
>
<option
value=
"square_inches"
<?php
if
(
$to_unit
==
'square_inches'
)
{
echo
" selected"
;
}
?>
>
square inches
</option>
<option
value=
"square_inches"
<?php
if
(
$to_unit
==
'square_inches'
)
{
<option
value=
"square_feet"
<?php
if
(
$to_unit
==
'square_feet'
)
{
echo
" selected"
;
}
?>
>
square feet
</option>
echo
" selected"
;
<option
value=
"square_yards"
<?php
if
(
$to_unit
==
'square_yards'
)
{
echo
" selected"
;
}
?>
>
square yards
</option>
}
?>
>
square inches
</option>
<option
value=
"square_miles"
<?php
if
(
$to_unit
==
'square_miles'
)
{
echo
" selected"
;
}
?>
>
square miles
</option>
<option
value=
"square_feet"
<?php
if
(
$to_unit
==
'square_feet'
)
{
<option
value=
"square_millimeters"
<?php
if
(
$to_unit
==
'square_millimeters'
)
{
echo
" selected"
;
}
?>
>
square millimeters
</option>
echo
" selected"
;
<option
value=
"square_centimeters"
<?php
if
(
$to_unit
==
'square_centimeters'
)
{
echo
" selected"
;
}
?>
>
square centimeters
</option>
}
?>
>
square feet
</option>
<option
value=
"square_meters"
<?php
if
(
$to_unit
==
'square_meters'
)
{
echo
" selected"
;
}
?>
>
square meters
</option>
<option
value=
"square_yards"
<?php
if
(
$to_unit
==
'square_yards'
)
{
<option
value=
"square_kilometers"
<?php
if
(
$to_unit
==
'square_kilometers'
)
{
echo
" selected"
;
}
?>
>
square kilometers
</option>
echo
" selected"
;
<option
value=
"acres"
<?php
if
(
$to_unit
==
'acres'
)
{
echo
" selected"
;
}
?>
>
acres
</option>
}
?>
>
square yards
</option>
<option
value=
"hectares"
<?php
if
(
$to_unit
==
'hectares'
)
{
echo
" selected"
;
}
?>
>
hectares
</option>
<option
value=
"square_miles"
<?php
if
(
$to_unit
==
'square_miles'
)
{
echo
" selected"
;
}
?>
>
square miles
</option>
<option
value=
"square_millimeters"
<?php
if
(
$to_unit
==
'square_millimeters'
)
{
echo
" selected"
;
}
?>
>
square millimeters
</option>
<option
value=
"square_centimeters"
<?php
if
(
$to_unit
==
'square_centimeters'
)
{
echo
" selected"
;
}
?>
>
square centimeters
</option>
<option
value=
"square_meters"
<?php
if
(
$to_unit
==
'square_meters'
)
{
echo
" selected"
;
}
?>
>
square meters
</option>
<option
value=
"square_kilometers"
<?php
if
(
$to_unit
==
'square_kilometers'
)
{
echo
" selected"
;
}
?>
>
square kilometers
</option>
<option
value=
"acres"
<?php
if
(
$to_unit
==
'acres'
)
{
echo
" selected"
;
}
?>
>
acres
</option>
<option
value=
"hectares"
<?php
if
(
$to_unit
==
'hectares'
)
{
echo
" selected"
;
}
?>
>
hectares
</option>
</select>
</select>
<div
id=
"reset"
class=
"button"
>
<div
id=
"reset"
class=
"button"
>
<input
type=
"submit"
name=
"submit"
value=
"Submit"
/>
<input
type=
"submit"
name=
"submit"
value=
"Submit"
/>
...
...
categories/length.php
View file @
50a1bd7b
...
@@ -133,17 +133,13 @@ function length_options(){
...
@@ -133,17 +133,13 @@ function length_options(){
</nav>
</nav>
<div
id=
"side-menu"
class=
"side-nav"
>
<div
id=
"side-menu"
class=
"side-nav"
>
<a
href=
"#"
class=
"btn-close"
onclick=
"closeSlideMenu()"
>
×
</a>
<a
href=
"#"
class=
"btn-close"
onclick=
"closeSlideMenu()"
>
×
</a>
<a
href=
"#"
>
About Us
</a>
<a
href=
"categories/length.php"
>
Length
</a>
<a
href=
" length.php"
>
Length
</a>
<a
href=
"categories/temperature.php"
>
Temperature
</a>
<a
href=
" temperature.php"
>
Temperature
</a>
<a
href=
"categories/area.php"
>
Area
</a>
<a
href=
" area.php"
>
Area
</a>
<a
href=
"categories/volume.php"
>
Volume
</a>
<a
href=
" volume.php"
>
Volume
</a>
<a
href=
"categories/weight.php"
>
Weight
</a>
<a
href=
" weight.php"
>
Weight
</a>
<a
href=
"categories/speed.php"
>
Speed
</a>
<a
href=
"login/login.php"
>
Log in
</a>
<a
href=
" speed.php"
>
Speed
</a>
<a
href=
"../login/index.html"
>
Log in
</a>
<a
href=
"../login/index.html"
>
Sign up
</a>
</div>
</div>
<script
src=
"../js/slide.js"
></script>
<script
src=
"../js/slide.js"
></script>
...
...
categories/speed.php
View file @
50a1bd7b
...
@@ -64,16 +64,13 @@ $speed_options = array(
...
@@ -64,16 +64,13 @@ $speed_options = array(
</nav>
</nav>
<div
id=
"side-menu"
class=
"side-nav"
>
<div
id=
"side-menu"
class=
"side-nav"
>
<a
href=
"#"
class=
"btn-close"
onclick=
"closeSlideMenu()"
>
×
</a>
<a
href=
"#"
class=
"btn-close"
onclick=
"closeSlideMenu()"
>
×
</a>
<a
href=
"#"
>
About Us
</a>
<a
href=
"categories/length.php"
>
Length
</a>
<a
href=
" length.php"
>
Length
</a>
<a
href=
"categories/temperature.php"
>
Temperature
</a>
<a
href=
" temperature.php"
>
Temperature
</a>
<a
href=
"categories/area.php"
>
Area
</a>
<a
href=
" area.php"
>
Area
</a>
<a
href=
"categories/volume.php"
>
Volume
</a>
<a
href=
" volume.php"
>
Volume
</a>
<a
href=
"categories/weight.php"
>
Weight
</a>
<a
href=
" weight.php"
>
Weight
</a>
<a
href=
"categories/speed.php"
>
Speed
</a>
<a
href=
"login/login.php"
>
Log in
</a>
<a
href=
" speed.php"
>
Speed
</a>
<a
href=
"../login"
>
Log in
</a>
<a
href=
"../login/signup.php"
>
Sign up
</a>
</div>
</div>
...
...
categories/temperature.php
View file @
50a1bd7b
...
@@ -111,16 +111,13 @@ $temp_options = array(
...
@@ -111,16 +111,13 @@ $temp_options = array(
</nav>
</nav>
<div
id=
"side-menu"
class=
"side-nav"
>
<div
id=
"side-menu"
class=
"side-nav"
>
<a
href=
"#"
class=
"btn-close"
onclick=
"closeSlideMenu()"
>
×
</a>
<a
href=
"#"
class=
"btn-close"
onclick=
"closeSlideMenu()"
>
×
</a>
<a
href=
"#"
>
About Us
</a>
<a
href=
"categories/length.php"
>
Length
</a>
<a
href=
" length.php"
>
Length
</a>
<a
href=
"categories/temperature.php"
>
Temperature
</a>
<a
href=
" temperature.php"
>
Temperature
</a>
<a
href=
"categories/area.php"
>
Area
</a>
<a
href=
" area.php"
>
Area
</a>
<a
href=
"categories/volume.php"
>
Volume
</a>
<a
href=
" volume.php"
>
Volume
</a>
<a
href=
"categories/weight.php"
>
Weight
</a>
<a
href=
" weight.php"
>
Weight
</a>
<a
href=
"categories/speed.php"
>
Speed
</a>
<a
href=
"login/login.php"
>
Log in
</a>
<a
href=
" speed.php"
>
Speed
</a>
<a
href=
"../login"
>
Log in
</a>
<a
href=
"../login/signup.php"
>
Sign up
</a>
</div>
</div>
...
...
categories/time.php
deleted
100644 → 0
View file @
ec0c4c73
categories/volume.php
View file @
50a1bd7b
...
@@ -79,16 +79,13 @@ $volume_options = array(
...
@@ -79,16 +79,13 @@ $volume_options = array(
</nav>
</nav>
<div
id=
"side-menu"
class=
"side-nav"
>
<div
id=
"side-menu"
class=
"side-nav"
>
<a
href=
"#"
class=
"btn-close"
onclick=
"closeSlideMenu()"
>
×
</a>
<a
href=
"#"
class=
"btn-close"
onclick=
"closeSlideMenu()"
>
×
</a>
<a
href=
"#"
>
About Us
</a>
<a
href=
"categories/length.php"
>
Length
</a>
<a
href=
" length.php"
>
Length
</a>
<a
href=
"categories/temperature.php"
>
Temperature
</a>
<a
href=
" temperature.php"
>
Temperature
</a>
<a
href=
"categories/area.php"
>
Area
</a>
<a
href=
" area.php"
>
Area
</a>
<a
href=
"categories/volume.php"
>
Volume
</a>
<a
href=
" volume.php"
>
Volume
</a>
<a
href=
"categories/weight.php"
>
Weight
</a>
<a
href=
" weight.php"
>
Weight
</a>
<a
href=
"categories/speed.php"
>
Speed
</a>
<a
href=
"login/login.php"
>
Log in
</a>
<a
href=
" speed.php"
>
Speed
</a>
<a
href=
"../login"
>
Log in
</a>
<a
href=
"../login/signup.php"
>
Sign up
</a>
</div>
</div>
...
...
categories/weight.php
View file @
50a1bd7b
...
@@ -117,16 +117,13 @@ $mass_options = array(
...
@@ -117,16 +117,13 @@ $mass_options = array(
</nav>
</nav>
<div
id=
"side-menu"
class=
"side-nav"
>
<div
id=
"side-menu"
class=
"side-nav"
>
<a
href=
"#"
class=
"btn-close"
onclick=
"closeSlideMenu()"
>
×
</a>
<a
href=
"#"
class=
"btn-close"
onclick=
"closeSlideMenu()"
>
×
</a>
<a
href=
"#"
>
About Us
</a>
<a
href=
"categories/length.php"
>
Length
</a>
<a
href=
" length.php"
>
Length
</a>
<a
href=
"categories/temperature.php"
>
Temperature
</a>
<a
href=
" temperature.php"
>
Temperature
</a>
<a
href=
"categories/area.php"
>
Area
</a>
<a
href=
" area.php"
>
Area
</a>
<a
href=
"categories/volume.php"
>
Volume
</a>
<a
href=
" volume.php"
>
Volume
</a>
<a
href=
"categories/weight.php"
>
Weight
</a>
<a
href=
" weight.php"
>
Weight
</a>
<a
href=
"categories/speed.php"
>
Speed
</a>
<a
href=
"login/login.php"
>
Log in
</a>
<a
href=
" speed.php"
>
Speed
</a>
<a
href=
"../login"
>
Log in
</a>
<a
href=
"../login/signup.php"
>
Sign up
</a>
</div>
</div>
...
...
home.php
View file @
50a1bd7b
...
@@ -107,7 +107,6 @@ $message = '';
...
@@ -107,7 +107,6 @@ $message = '';
</nav>
</nav>
<div
id=
"side-menu"
class=
"side-nav"
>
<div
id=
"side-menu"
class=
"side-nav"
>
<a
href=
"#"
class=
"btn-close"
onclick=
"closeSlideMenu()"
>
×
</a>
<a
href=
"#"
class=
"btn-close"
onclick=
"closeSlideMenu()"
>
×
</a>
<a
href=
"#"
>
About Us
</a>
<a
href=
"categories/length.php"
>
Length
</a>
<a
href=
"categories/length.php"
>
Length
</a>
<a
href=
"categories/temperature.php"
>
Temperature
</a>
<a
href=
"categories/temperature.php"
>
Temperature
</a>
<a
href=
"categories/area.php"
>
Area
</a>
<a
href=
"categories/area.php"
>
Area
</a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment