Skip to content
This repository has been archived by the owner on Mar 3, 2019. It is now read-only.

Jared #5

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,22 @@

<div class="container-fluid">
<!-- Page Content -->
<div class="row">
<div class="blue col-lg-12">
<div class="thin text-center">
<p class="lead">Do you have any questions? Feel free to contact us at <a class="contact-link" href="mailto:[email protected]">[email protected]</a>.</p>
<a href="mailto:[email protected]" class="btn bm0">Contact us</a>
</div>
<div id="title" class="row text-center">
<h1 class="home-title title-margin">UB Hacking</h1>
<p class="home-subtitle">400 Hackers</p>
<p class="home-subtitle">November 14 - November 15</p>
<span>
<a href="mailto:[email protected]" class="btn">Register</a>
<a href="mailto:[email protected]" class="btn">Login</a>
</span>
<div id="scroll">
<a href="#contact" class="btn glyphicon glyphicon-chevron-down"></a>
</div>
</div>
<div id="contact" class="row">
<div class="blue col-lg-12 text-center">
<p>Do you have any questions? Feel free to contact us at [email protected]</p>
<a href="mailto:[email protected]" class="btn">Contact us</a>
</div>
</div>
</div>
Expand All @@ -76,13 +86,9 @@

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

<script type="text/javascript">
$("#bg-img").delay(800).fadeTo("slow", 1);
$("#tagline").delay(1700).addClass('anim').fadeTo("slow", 1);
$(".subtitle").delay(2700).addClass('anim-2').fadeTo("slow", 1);
$("subtitle-btn").delay(3600).addClass('anim-3').fadeTo("slow", 1);
</script>

<!-- Custom js -->
<script type="text/javascript" src="style/js/homepage.js"></script>

</body>

Expand Down
7 changes: 4 additions & 3 deletions registration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<h1 class="reg-title">UB Hacking Registration</h1>
<p>Thanks for your interest in UBHacking! Please fill in all the fields that you are able to, as it helps us keep track of data.</p>
<p><span class="">*</span> Indicates field</p>
<form method="post">
<form method="post" action="http://localhost:5000/registration/add_hacker" enctype="multipart/form-data">
<h2 class="group-title">Account Information</h2>
<div class="panel panel-default">
<div class="panel-body">
Expand All @@ -69,7 +69,8 @@ <h2 class="group-title">Account Information</h2>
<input type="password" name="password" id="password" class="form-reg" placeholder="Password" >
</li>
<li><label for="confirm-password">Confirm password</label><span class=""> *</span>
<input type="password" name="confirm-password" id="confirm-password" class="form-reg" placeholder="Confirm password" >
<input type="password" name="confirm-password" id="confirm-password" class="form-reg" placeholder="Confirm password" onChange="checkPasswordsMatch();" >
<p id="confirm-password-header"></p>
</li>
</ul>
</div>
Expand Down Expand Up @@ -167,7 +168,7 @@ <h2 class="group-title">Hackathon Stuff</h2>
<li>
<div>
<label for="resume">Resume: (as .pdf)<span class=""> *</span></label>
<input data-label="upload" type="file" name="resume" id="resume" accept="application/pdf" >
<input data-label="upload" type="file" name="resume" id="resume" accept="application/pdf">
</div>
</li>

Expand Down
86 changes: 23 additions & 63 deletions style/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@ select {
text-decoration: none;
}

.thin {
margin-top: 65px;
}

/*alex, changed font color*/
.lead {
font-size: 16px;
color: #212121;
}

.btn {
margin-right: 5px;
border-radius: 3px;
Expand All @@ -74,55 +64,52 @@ select {

/*changed color of page content bar*/
.blue {
height: 225px;
background-color: #CFD8DC;
padding: 40px 0px 40px;
font-size: 16px;
color: #FFF;
background-color: #607D8B;
}

.navbar .container {
height: 7em;
}

body {
padding-top: 7em; /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */
}

html {
/* font-weight: 800;
padding-top: 18em;
height: 100%;*/
background: url('../images/background_full.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;}
-o-background-size: cover;
}

#tagline {
font-size: 35px;
text-decoration: bold;
transition: all 0s ease 0s;
body {
padding-top: 7em; /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */
}

.subtitle {
font-size: 22px;
#scroll {
position: absolute;
bottom: 0;
right: 20px;
}

.main-title {
opacity: .01;
.home-title {
font-size: 60px;
font-weight: bold;
text-shadow: 0 0 10px #000;
color: #fff;
-webkit-transition: -webkit-transform 2.5s ease-in-out;
-webkit-font-smoothing: antialiased
}

.title-margin {
margin-top: 150px;
.home-subtitle {
font-size: 32px;
font-weight: bold;
}

.img-center {
margin: 0 auto;
}

.title-margin {
margin-top: 15%;
}

/*alex, changed footer color*/
footer {
padding-top: 20px;
Expand All @@ -132,11 +119,6 @@ footer {
width: 100%;
}


:root{
background-color: #2c2c2c;
}

ul {
list-style: none;
padding: 0 10px;
Expand Down Expand Up @@ -242,7 +224,8 @@ textarea {
border-width: 0;
}
.full-screen {
height: 100vh;
/* height: 100vh;*/
/* set using javascript */
}
.transparent {
background-color: rgba(255, 255, 255, 0);
Expand All @@ -256,27 +239,4 @@ body {
color: #212121;
}

/* Palette generated by Material Palette - materialpalette.com/blue-grey/indigo */

.dark-primary-color { background: #455A64; }
.default-primary-color { background: #607D8B; }
.light-primary-color { background: #CFD8DC; }
.text-primary-color { color: #FFFFFF; }
.accent-color { background: #536DFE; }
.primary-text-color { color: #212121; }
.secondary-text-color { color: #727272; }
.divider-color { border-color: #B6B6B6; }

/* Palette generated by Material Palette - materialpalette.com/grey/blue */

.dark-primary-color { background: #455A64; }
.default-primary-color { background: #607D8B; }
.light-primary-color { background: #CFD8DC; }
.text-primary-color { color: #FFFFFF; }
.accent-color { background: #536DFE; }
.primary-text-color { color: #212121; }
.secondary-text-color { color: #727272; }
.divider-color { border-color: #B6B6B6; }


/* End Alex's additions */
Binary file added style/images/background_full copy 2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added style/images/background_full copy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified style/images/background_full.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions style/js/homepage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// make the title the size of the window

$(document).ready(function() {
var height = $(window).height();
var element = $("#title");
element.height(height - $(".container").height());
});
79 changes: 21 additions & 58 deletions style/js/registration.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
$(document).ready(function() {

jsonToDatalist('http://localhost:5000/registration/colleges', '#colleges');
jsonToDatalist('http://localhost:5000/registration/majors', '#majors');

// process the form: sends json of everything except resume via AJAX and separately uploads
// file.
$('form').submit(function(event) {
/*$('form').submit(function(event) {

// get the form data
// get the- form data
// there are many ways to get this data using jQuery (you can use the class or id also)
var formData = {
'email' : $('input[name=email]').val(),
'password' : $('input[name=password').val(),
'confirm-password' : $('input[name=confirm-password').val(),
'password' : $('input[name=password]').val(),
'confirm-password' : $('input[name=confirm-password]').val(),
'firstname' : $('input[name=firstname]').val(),
'lastname' : $('input[name=lastname]').val(),
'phone' : $('input[name=phone]').val(),
Expand Down Expand Up @@ -57,12 +58,12 @@ $(document).ready(function() {

}

/*

// handle errors for email --------------- EXAMPLE
if (data.errors.email) {
$('#email-group').addClass('has-error'); // add the error class to show red input
$('#email-group').append('<div class="help-block">' + data.errors.email + '</div>'); // add the actual error message under our input
}*/
}

} else {
alert("success");
Expand All @@ -86,11 +87,23 @@ $(document).ready(function() {

// stop the form from submitting the normal way and refreshing the page
event.preventDefault();
});
});*/

});

//method used to populate datalists from a JSON array
function checkPasswordsMatch() {

if ($('input[name=password]').val() === $('input[name=confirm-password]').val()) {
$("#confirm-password-header").text("Passwords match :)");
}

else {
$("#confirm-password-header").text("Passwords do not match :(");
}

}

function jsonToDatalist(url, id) {
$.getJSON(url, function(data) {
var options;
Expand Down Expand Up @@ -163,54 +176,4 @@ function disable_fields() {

x=document.getElementById("other")
x.disabled = !x.disabled;
}

// Validate all the fields
function validateForm() {

var is_valid;
// An array of all the fields that must be filled out
var required_fields = {
var email = document.forms["hacker_profile"]["email"].value;
var password = document.forms["hacker_profile"]["password"].value;
var confirm-password = document.forms["hacker_profile"]["confirm-password"].value;
var firstname = document.forms["hacker_profile"]["firstname"].value;
var lastname = document.forms["hacker_profile"]["lastname"].value;
var school = document.forms["hacker_profile"]["school"].value;
var major = document.forms["hacker_profile"]["major"].value;
var year = document.forms["hacker_profile"]["year"].value;
var first-hackathon = document.forms["hacker_profile"]["first-hackathon"].value;
var project-type = document.forms["hacker_profile"]["project-type"].value;
var diet = document.forms["hacker_profile"]["diet"].value;
var shirt = document.forms["hacker_profile"]["shirt"].value;
}

var counter = 0;

for (var i = 0; i < required_fields.length; i++){
console.log(required_fields[i].x); //Test to print it out
if(x == null || x == "")
{
++counter;
alert(required_fields[i].x + "must be filld out.");
}
is_valid = counter > 0 ? true : false;
}

if (document.forms["hacker_profile"]["password"] != document.forms["hacker_profile"]["confirm-password"]) {
is_valid = false;
}

return is_valid;
}

//THIS WAS ABSTRACTED INTO jsonToDatalist
// setup colleges
/*$.getJSON('http://localhost:5000/colleges', function(data) {
var collegeOptions;
$(data).each(function() {
collegeOptions = "<option value=\'" + this.name + "\'></option>";
$('#colleges').append(collegeOptions);

});
});*/
}