Last active
March 8, 2016 05:31
-
-
Save ademsas/95a6bea47f1b1e192116 to your computer and use it in GitHub Desktop.
Works w/ For-Loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | |
<title>Tish Demsas</title> | |
<!-- Bootstrap core CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
<!-- Custom styles for this template go here --> | |
<link rel="stylesheet" href="css/style.css"> | |
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Raleway"> | |
<script src="js/modal.js"></script> | |
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> | |
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> | |
<!--[if lt IE 9]> | |
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> | |
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | |
<![endif]--> | |
</head> | |
<body data-spy="scroll" data-target=".navbar"> | |
<div id="fb-root"></div> | |
<script>(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5"; | |
fjs.parentNode.insertBefore(js, fjs); | |
}(document, 'script', 'facebook-jssdk'));</script> | |
<!--navbar starts here --> | |
<div class="container-anchor" id="process"> | |
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> | |
<div class="container-fluid"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | |
<span class="sr-only">Toggle Navigation</span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<div class="project-name navbar-brand"> | |
<a href="#">Tish Demsas</a> | |
</div><!--end project-name--> | |
</div><!--end navbar header--> | |
<div class="navbar-collapse collapse"> | |
<ul class="nav navbar-nav navbar-right"> | |
<li><a href="#">Home</a></li> | |
<li><a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Works<span class="caret"></span></a> | |
<ul class="dropdown-menu"> | |
<li class="active"><a href="#work">Work 1</a></li> | |
<li class="active"><a href="#work2">Work 2</a></li> | |
</ul> | |
</li> | |
<li><a href="#about">About Me</a></li> | |
<li><a href="#learnMore">Learn More</a></li> | |
<li><a href="#contact">Contact</a></li> | |
</ul> | |
</div><!--end nav--> | |
</div><!--end nav container--> | |
</nav> <!--end navbar collapse--> | |
</div> | |
<!-- Main jumbotron for a primary marketing message or call to action --> | |
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> | |
<!-- Indicators --> | |
<ol class="carousel-indicators"> | |
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> | |
<li data-target="#carousel-example-generic" data-slide-to="1"></li> | |
<li data-target="#carousel-example-generic" data-slide-to="2"></li> | |
</ol> | |
<!-- Wrapper for slides --> | |
<div class="carousel-inner" role="listbox"> | |
<div class="item active"> | |
<img src="img/mountain1.jpg" alt="mountain"> | |
<div class="carousel-caption"> | |
<h3>The mountains are calling and I must go</h3> | |
<p>- John Muir</p> | |
</div> | |
</div> | |
<div class="item"> | |
<img src="img/shoes.jpg" alt="shoes"> | |
<div class="carousel-caption"> | |
<h3>In every walk with nature one receives far more than he seeks.</h3> | |
<p>- John Muir</p> | |
</div> | |
</div> | |
<div class="item"> | |
<img src="img/trees.jpg" alt="trees"> | |
<div class="carousel-caption"> | |
<h3>When we try to pick out anything by itself, we find it hitched to everything else in the universe.</h3> | |
<p>- John Muir</p> | |
</div> | |
</div> | |
... | |
</div> | |
<!-- Controls --> | |
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"> | |
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> | |
<span class="sr-only">Previous</span> | |
</a> | |
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next"> | |
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> | |
<span class="sr-only">Next</span> | |
</a> | |
</div> | |
<div class="container"> | |
<!-- Example row of columns --> | |
<div class="row"> | |
<div class="col-md-4"> | |
<h2>Portfolio Concepts</h2> | |
<p>Any and all work that I complete will be displayed here. My first piece of work is my <a href="#" data-toggle="tooltip" data-placement="top" title="More Information" id="item1">main page</a>.</p> | |
<a href="#work"><button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="More Information">View details »</button></a> | |
</div><!-- /col --> | |
<div class="col-md-4"> | |
<h2>Portfolio Goals</h2> | |
<p>I want to complete the web development course in 4 months. I can commit 25 hours per week or more depending on my work schedule. </p> | |
<a href="#about"><button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="More Information">View details »</button></a> | |
</div><!-- /col --> | |
<div class="col-md-4"> | |
<h2>Course Goals</h2> | |
<p>I am currently working for a start up. I want to transition from our opertions team to our engineering team. I am hoping this course will equip me with the tools to allow me to do that. </p> | |
<a href="#learnMore"><button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="More Information">View details »</button></a> | |
</div><!-- /col --> | |
</div><!-- /row --> | |
<div class="container-fluid"> | |
<div class="container anchor"> | |
<h2 style="text-align: center;">Work 1</h2> | |
<div class="container-work"> | |
<div class="row" id="works"> | |
</div> | |
</div> | |
</div> | |
<div class="container anchor" id="work2"> | |
<h2 style="text-align: center;">Work 2</h2> | |
<div class="container-work"> | |
<div class="row" id="works2"> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> <!-- /container --> | |
<hr> | |
<div class="container-about" id="about"> | |
<div class="header about"> | |
<h1>About Me</h1> | |
</div><!--header--> | |
<div class="container-about-me"> | |
<div class="row" id="about"> | |
<div class="col-md-6 col-xs-12" style="display: inline-block;"> | |
<h2 style="text-align: center;">Intro</h2> | |
<p style="text-align: center;">I was born and raised in East Africa. I moved to the US in 1998. I currently reside in sunny Santa Barbara, CA.</p> | |
</div> | |
<div class="col-md-6 col-xs-12" style="display: inline-block;"> | |
<h2 style="text-align: center;">My Skills</h2> | |
<ul id="list"> | |
<li>HTML5</li> | |
<li>CSS3</li> | |
<li>Ruby On Rails</li> | |
</ul> | |
</div> | |
</div> | |
<div class="container-about-more"> | |
<div class="main-text"> | |
<h2>More About Me</h2> | |
<p>I am a big Liverpool FC fan. I love to stay active playing soccer and basketball. If I'm not on the pitch or on the basketball court I am enjoying the beautiful outdoors. </p> | |
</div> | |
</div><!--container about me--> | |
</div> <!-- /container --> | |
</div> | |
<hr> | |
<div class="container-learn" id="learnMore"> | |
<div class="row-learn"> | |
<h2 style="text-align:left;float:left;padding-left:15px">Learn More</h2> | |
<!-- Modal Button --> | |
<div class="modal-button"> | |
<button class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Resume/CV</button> | |
</div> | |
<!-- Modal --> | |
<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false"> | |
<div class="modal-dialog modal-lg"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<h4 class="modal-title" id="myModalLabel" style="color:black;">Tish Demsas Resume<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></h4> | |
</div> | |
<div class="modal-body" style="color:black;"><p>I am passionate about growing in knowledge through experience and improving quality of life for others. My diversity of work experience has allowed me to become fluent in customer relations as well as team management. My current profession has perfected my communication skills and my ability to work with a diverse range of personalities. I effectively manage and collaborate with team members to ensure increased productivity. I have a keen ability to grasp new concepts and apply them effectively. I excel at creative problem solving with a unique and inventive perspective.</p> | |
<br><embed id="modalembed" src="https://www.smashingmagazine.com/images/design-cv-resume/evalotta_lamm.pdf"> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true" style="padding-top:70px;"> | |
<div class="panel panel-default"> | |
<div class="panel-heading" role="tab" id="headingOne"> | |
<h4 class="panel-title"> | |
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="false" aria-controls="collapseOne"><span class ="glyphicon glyphicon-triangle-right"></span> | |
What is your motivation for web development? | |
</a> | |
</h4> | |
</div> | |
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne"> | |
<div class="panel-body"> | |
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. | |
</div> | |
</div> | |
</div> | |
<div class="panel panel-default"> | |
<div class="panel-heading" role="tab" id="headingTwo"> | |
<h4 class="panel-title"> | |
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#acccordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo"><span class ="glyphicon glyphicon-triangle-right"></span> | |
What is your pricing structure? | |
</a> | |
</h4> | |
</div> | |
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo"> | |
<div class="panel-body"> | |
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. | |
</div> | |
</div> | |
</div> | |
<div class="panel panel-default"> | |
<div class="panel-heading" role="tab" id="headingThree"> | |
<h4 class="panel-title"> | |
<a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree"><span class ="glyphicon glyphicon-triangle-right"></span> | |
Do you have any experience working in a tech environment? | |
</a> | |
</h4> | |
</div> | |
<div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree"> | |
<div class="panel-body"> | |
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. | |
</div> | |
</div> | |
</div> | |
<div class="panel panel-default"> | |
<div class="panel-heading" role="tab" id="headingFour"> | |
<h4 class="panel-title"> | |
<a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour"><span class ="glyphicon glyphicon-triangle-right"></span> | |
What is your average turn around time for a completed site? | |
</a> | |
</h4> | |
</div> | |
<div id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour"> | |
<div class="panel-body" > | |
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. | |
</div> | |
</div> | |
</div> | |
<div class="panel panel-default"> | |
<div class="panel-heading" role="tab" id="headingFive"> | |
<h4 class="panel-title"> | |
<a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseFive" aria-expanded="false" aria-controls="collapseFive"><span class ="glyphicon glyphicon-triangle-right"></span> | |
What is your educational background? | |
</a> | |
</h4> | |
</div> | |
<div id="collapseFive" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFive"> | |
<div class="panel-body"> | |
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> <!-- /container --> | |
<hr> | |
<div class="container-vid clearfix"> | |
<div class="row-vid"> | |
<div class="col-lg-6 col-md-6 col-xs-6"> | |
<div class="embed-responsive embed-responsive-16by9"> | |
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/YMz2_S2y9WE"></iframe> | |
</div> | |
</div> | |
</div> | |
</div> <!-- /container-vid --> | |
<hr> | |
<div class="container-contact clearfix data-stellar-background-ratio="1""> | |
<h1 class="contact">Contact</h1> | |
<div id="map" class="col-lg-4 col-md-4 col-xs-6"> | |
<script> | |
function initMap() { | |
var mapDiv = document.getElementById('map'); | |
var map = new google.maps.Map(mapDiv, { | |
center: {lat: 34.430325, lng: -119.720748}, | |
zoom: 13 | |
}); | |
} | |
</script> | |
<script src="https://maps.googleapis.com/maps/api/js?callback=initMap" | |
async defer></script> | |
</div> | |
<div class="container-contact-info" class="col-lg-4 col-md-4 col-xs-6"> | |
<div class="phone"> | |
<h3><span class="glyphicon glyphicon-phone-alt"></span> Phone:</h3><p>805-637-2065</p> | |
</div> | |
<div class="email"> | |
<h3><span class="glyphicon glyphicon-envelope"></span> Email:</h3> <p><a href="mailto:[email protected]">[email protected]</a></p> | |
</div> | |
<div class="address"> | |
<h3><span class="glyphicon glyphicon-home"></span> Address:</h3><p>235 W Quinto St Apt 3<br>Santa Barbara, CA 93103</br></p> | |
</div> | |
</div> | |
<form action=”/login” method=”post” name=”login”> | |
<div class="form-group" class="col-lg-4 col-md-4 col-xs-6" id="contact-form"> | |
<label for="name">Name*</label><input type="text" class="form-control" placeholder="John Doe" id="name-box"><p id="visible-name"></P> | |
<label for="email">Email Address*</label><input type="email" class="form-control" placeholder="johndoe@gmailcom" id="email-box" required="required" title="enter your emai"><p id="visible-email"></P> | |
<label for="message-box">Message*</label><textarea style="resize:none" cols="40" rows="5" class="form-control" id="message-box" placeholder="Your message here" required="required"></textarea> | |
<p id="visible-comment"></P> | |
<p id="char-count"></p> | |
<br><button type="submit" class="btn btn-success" id="button-submit">Submit</button> | |
</div> | |
</form> | |
</div> <!-- /container --> | |
<hr width="100%"> | |
<footer class="container-footer"> | |
<nav class="nav-footer"> | |
<a href="https://twitter.com/tishthefish24" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @tishthefish24</a> | |
<div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button_count"></div> | |
</nav> | |
<div class="copyright"> | |
<h4>© Tish Demsas, Inc.</h4> | |
</div> | |
</footer> | |
<!-- ============================= --> | |
<!-- All your JavaScript comes now --> | |
<!-- ============================= --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<!-- Bootstrap core JS --> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> | |
<!-- Can place script tags with JavaScript files here --> | |
<script src="js/jquery.stellar.min.js"></script> | |
<script src="js/script.js"></script> | |
<script src="js/work.js"></script> | |
<script> | |
$(function () { | |
$('#item1').tooltip(); | |
}); | |
</script> | |
<script> | |
$(function () { | |
$('[data-toggle="tooltip"]').tooltip(); | |
}); | |
</script> | |
<script type="text/javascript"> | |
var $root = $('html, body'); | |
$('.navbar-nav a').click(function() { | |
var href = $.attr(this, 'href'); | |
$root.animate({ | |
scrollTop: $(href).offset().top | |
}, 500, function () { | |
window.location.hash = href; | |
}); | |
return false; | |
}); | |
</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5"; | |
fjs.parentNode.insertBefore(js, fjs); | |
}(document, 'script', 'facebook-jssdk')); | |
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs'); | |
// My code below | |
$(document).ready(function(){ | |
// work section | |
for(var i = 0; i < works.length; ++i) { | |
$("#works").append("\ | |
<div class='col-lg-3 col-md-3 col-xs-6'>\ | |
<img class='img-responsive' src='" + works[i] + "'>\ | |
</div>\ | |
"); | |
}; | |
for(var i = 0; i < works2.length; ++i) { | |
$("#works2").append("\ | |
<div class='col-lg-3 col-md-3 col-xs-6'>\ | |
<img class='img-responsive' src='" + works2[i] + "'>\ | |
</div>\ | |
"); | |
var images = $("#works img"); | |
if(i%2 === 0){ | |
$(images[i]).css("border", "2px solid gray"); | |
} else { | |
$(images[i]).css("border", "2px solid salmon"); | |
}; | |
var images2 = $("#works2 img"); | |
if(i%2 === 0){ | |
$(images2[i]).css("border", "2px solid gray"); | |
} else { | |
$(images2[i]).css("border", "2px solid salmon"); | |
}; | |
}; | |
// Smooth scrolling | |
var $root = $('html, body'); | |
$('.navbar-nav a').click(function() { | |
var href = $.attr(this, 'href'); | |
$root.animate({ | |
scrollTop: $(href).offset().top | |
}, 500, function () { | |
window.location.hash = href; | |
}); | |
return false; | |
}); | |
// Stellar | |
// Tooltips | |
$(function () { | |
$('#item1').tooltip(); | |
}); | |
$(function () { | |
$('[data-toggle="tooltip"]').tooltip(); | |
}); | |
// Textarea background | |
$("#message-box").css("background-color", "rgb(136,136,136)"); | |
$("#message-box").css("color", "white") | |
//Submit Button | |
$("#button-submit").on("click", function(){ | |
//work in here | |
//rest of code will go in here | |
console.log("clicked"); | |
// Message box | |
var comment = $("#message-box").val(); | |
console.log("comment"); | |
if(comment === "") { | |
$("#message-box").css("border", "2px solid red") | |
} else { | |
$("#visible-comment").html(comment); | |
$("#message-box").hide("slow"); | |
}; | |
// Name box | |
var name = $("#name-box").val(); | |
console.log("name"); | |
if(name === "") { | |
$("#name-box").css("border", "2px solid red") | |
} else { | |
$("#visible-name").html(name); | |
$("#name-box").hide("slow"); | |
}; | |
// Email box | |
var email = $("#email-box").val(); | |
console.log("email"); | |
if(email === "") { | |
$("#email-box").css("border", "2px solid red") | |
} else { | |
$("#visible-email").html(email); | |
$("#email-box").hide(); | |
}; | |
return false; | |
//no code here | |
}); | |
// Character count | |
$("#message-box").on("keyup", function() { | |
console.log("keyup happened"); | |
var charCount = $("#message-box").val().length; | |
console.log(charCount); | |
$("#char-count").html(charCount); | |
if(charCount > 150) { | |
$("#char-count").css("color", "red"); | |
} else { | |
$("#char-count").css("color", "white"); | |
}; | |
}); | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var works = [ | |
"img/1.png", | |
"img/2.png", | |
"img/3.png", | |
"img/4.png" | |
] | |
var works2 = [ | |
"img/5.png", | |
"img/6.png", | |
"img/7.png", | |
"img/8.png" | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment