From 6577bc3bd367d3dc23b6db6901208b95a6ba7b32 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sat, 20 Apr 2019 00:44:46 -0400 Subject: [PATCH 1/4] html for upload.php --- index.php | 1 + main.css | 7 +------ upload.php | 26 ++++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 upload.php diff --git a/index.php b/index.php index d306974..cb55747 100755 --- a/index.php +++ b/index.php @@ -4,6 +4,7 @@ + + + +
+ + + + + +
+ + + From 4eeda2e474c695f9e23cecc5c8df3c260e153abc Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sat, 20 Apr 2019 03:19:40 -0400 Subject: [PATCH 2/4] upload.php html and temporary style --- main.css | 40 +++++++++++++++++++++++++--------------- upload.php | 43 ++++++++++++++++++++++++++++++++++++++----- 2 files changed, 63 insertions(+), 20 deletions(-) diff --git a/main.css b/main.css index 2f33489..9f88848 100755 --- a/main.css +++ b/main.css @@ -3,21 +3,7 @@ body { } -/* form.search { - width: 80%; - height: 150px; - border: white solid 1px; - border-bottom: #727272 solid 2px; -} */ - -/* div.upload { - width: 5%; - height: 150px; - border: white solid 1px; - border-bottom: #727272 solid 2px; - display: block; - float: left; -} */ +/* Styles for titlebar */ form.search { /* border: white solid 1px; */ @@ -54,4 +40,28 @@ img.upload { /* margin-bottom: -17px; */ margin-top: 45px; float: right; +} + + +/* Styles for upload.php */ + +form.upload-form { + /* border: white solid 1px; */ + border-left: #727272 solid 2px; + border-right: #727272 solid 2px; + margin: 0 25% 0 25%; +} + +.upload-form input, .upload-form textarea, .upload-form select { + display: block; + margin-left: 20px; + /* margin-bottom: 30px; */ + /* border: white solid 1px; */ +} + +.upload-form h3 { + color: #FF3D53; + /* border: white solid 1px; */ + margin-bottom: 0px; + margin-left: 20px; } \ No newline at end of file diff --git a/upload.php b/upload.php index d4e460e..58bf48f 100644 --- a/upload.php +++ b/upload.php @@ -14,11 +14,44 @@ -
- - - - + + +

Youtube URL *

+ + +

Name *

+ + +

Username *

+ + +

Description

+ + +

Event Date

+ + +

Video Length

+ + +

Characters (Seperated by commas) *

+ + +

Players (Seperated by commas) *

+ + +

Select Game *

+ + +

Stage Name *

+ + +
From 02c5c434283b78427c5dd5b253d25dca5438efdc Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sat, 20 Apr 2019 15:17:00 -0400 Subject: [PATCH 3/4] work on the upload page --- scripts/main.js | 6 ++++++ upload.php | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 scripts/main.js diff --git a/scripts/main.js b/scripts/main.js new file mode 100644 index 0000000..03a897d --- /dev/null +++ b/scripts/main.js @@ -0,0 +1,6 @@ + +// Validates the data inputs on the upload form +function validateUpload() { + console.log("Validated!"); + document.getElementById("upload-form").submit(); +} \ No newline at end of file diff --git a/upload.php b/upload.php index 58bf48f..81324b0 100644 --- a/upload.php +++ b/upload.php @@ -2,6 +2,7 @@ FightHub - Upload + @@ -14,7 +15,7 @@ -
+

Youtube URL *

@@ -52,7 +53,7 @@ - +
From a3b3a5b590e4f5ff288d4e3ae187eb2645862708 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sat, 20 Apr 2019 16:40:36 -0400 Subject: [PATCH 4/4] Upload.php html done --- upload.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/upload.php b/upload.php index 81324b0..7bf6d0d 100644 --- a/upload.php +++ b/upload.php @@ -44,9 +44,12 @@

Select Game *

Stage Name *