Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8272adc
create sass and js files and directories
matthewrmoyer May 17, 2017
14933ad
html setup
matthewrmoyer May 17, 2017
b94603e
html bootstrap css sanity check
matthewrmoyer May 17, 2017
0e8c46a
write topnav architecture
matthewrmoyer May 17, 2017
cd8c95f
add searchbar
matthewrmoyer May 17, 2017
7642c77
add contact info
matthewrmoyer May 17, 2017
011852b
expandable dropdown on page
matthewrmoyer May 18, 2017
8d6510d
add footer
matthewrmoyer May 18, 2017
162e109
add images and hamburger menu to top navbar
matthewrmoyer May 18, 2017
64a5d1c
add images and hamburger menu to top navbar
matthewrmoyer May 18, 2017
070acd3
add dropdown to navbar
matthewrmoyer May 18, 2017
57ab5d0
small styling changes
matthewrmoyer May 18, 2017
d3b0e3d
add responsiveness to top
matthewrmoyer May 18, 2017
0653f75
add responsiveness to about
matthewrmoyer May 18, 2017
357ae9f
add responsiveness to footer
matthewrmoyer May 18, 2017
ace1169
more responsive
matthewrmoyer May 18, 2017
9cdf7ea
more responsive
matthewrmoyer May 18, 2017
9cd25d9
lots of minor styling updates
matthewrmoyer May 18, 2017
391fd35
add medium media query to hide search button
matthewrmoyer May 18, 2017
b8275f4
add medium links in searchbar row
matthewrmoyer May 18, 2017
66c9dc2
small touchup
matthewrmoyer May 18, 2017
af724b7
small touchup
matthewrmoyer May 19, 2017
006161e
change top box and fix picture element
matthewrmoyer May 19, 2017
81eb778
change top box
matthewrmoyer May 19, 2017
27f1cc8
setup
matthewrmoyer May 19, 2017
fba7f1d
complete challenge 2
matthewrmoyer May 19, 2017
f5afe2f
complete challenge 3
matthewrmoyer May 19, 2017
954387f
refactor 123
matthewrmoyer May 19, 2017
51fd425
complete challenge 4
matthewrmoyer May 19, 2017
48d7637
complete challenge 4
matthewrmoyer May 19, 2017
07715e5
complete challenge 5
matthewrmoyer May 19, 2017
e843300
complete challenge 6
matthewrmoyer May 19, 2017
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
Binary file added .DS_Store
Binary file not shown.
Binary file added HTML:CSS/.DS_Store
Binary file not shown.
Binary file added HTML:CSS/Assets/.DS_Store
Binary file not shown.
Binary file added Javascript/.DS_Store
Binary file not shown.
65 changes: 65 additions & 0 deletions Javascript/js_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>jQuery.noConflict();</script>


<!-- <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script> -->
<!-- <script src ="js_test.js"></script> -->

<style>
body{
padding:20px;
Expand Down Expand Up @@ -62,6 +67,7 @@ <h2>Manipulate the Last LI</h2>
<li>First</li>
<li>Second</li>
<li>Third</li>
<!-- turn this red -->
<li>Fourth</li>
</ul>
</div>
Expand All @@ -83,6 +89,7 @@ <h2>Select specific children from a nested list.</h2>
<ul>
<li>Bob</li>
<li>Sally
<!-- select this -->
<ul>
<li>Car</li>
<li>Boat</li>
Expand Down Expand Up @@ -146,5 +153,63 @@ <h2>Ajax</h2>
Note: You have jquery already loaded on the page.
Please also write your jquery in a no conflict manner.
-->

<script>
jQuery(document).ready(function($) {

var sally = $('li:contains("Sally")');
var dropDown = $('select')

// challenge 1
$("#content li:nth-last-of-type(1)").css("color", "red");

// challenge 2
sally.children().css("color", "orange");

// challenge 3
$("select").on("change", appendSelected)

function appendSelected() {
var targetText = $("option:selected").text()
var $newDiv = $(`<div class = "new-div">${targetText}</div>`)
$(".new-div").remove()
if (targetText !== 'Choose') {
$('fieldset').append($newDiv)
}
}

// challenge 4
(function runner() {
var targetHeight = $("#setDims").outerHeight();
var targetWidth = $("#setDims").outerWidth();
$("#setDims").after(" I have a height of " + targetHeight + " and a width of " + targetWidth + "!")
})();


// challenge 5
$("#clickEventLink").on('click', toggleLinkClassName)

function toggleLinkClassName() {
if ($(this).hasClass('not-clicked')) {
$(this).removeClass('not-clicked')
$(this).addClass('clicked')
} else {
$(this).removeClass('clicked')
$(this).addClass('not-clicked')
}
}

// challenge 6
$.get("ajax_return.html").then(function(data){
console.log(data)
$("#jsonResponse").append(data)
});





})
</script>
</body>
</html>
55 changes: 55 additions & 0 deletions Javascript/js_test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
jQuery(document).ready(function($) {

var sally = $('li:contains("Sally")');
var dropDown = $('select')

// challenge 1
$("#content li:nth-last-of-type(1)").css("color", "red");

// challenge 2
sally.children().css("color", "orange");

// challenge 3
$("select").on("change", appendSelected)

function appendSelected() {
var targetText = $("option:selected").text()
var $newDiv = $(`<div class = "new-div">${targetText}</div>`)
$(".new-div").remove()
if (targetText !== 'Choose') {
$('fieldset').append($newDiv)
}
}

// challenge 4
(function runner() {
var targetHeight = $("#setDims").outerHeight();
var targetWidth = $("#setDims").outerWidth();
$("#setDims").after(" I have a height of " + targetHeight + " and a width of " + targetWidth + "!")
})();


// challenge 5
$("#clickEventLink").on('click', toggleLinkClassName)

function toggleLinkClassName() {
if ($(this).hasClass('not-clicked')) {
$(this).removeClass('not-clicked')
$(this).addClass('clicked')
} else {
$(this).removeClass('clicked')
$(this).addClass('not-clicked')
}
}

// challenge 6
$.get("ajax_return.html").then(function(data){
console.log(data)
$("#jsonResponse").append(data)
});





})
21 changes: 21 additions & 0 deletions Javascript/npm-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using npm@3.10.10
3 info using node@v6.9.5
4 verbose config Skipping project config: /Users/matthewmoyer/.npmrc. (matches userconfig)
5 verbose stack Error: ENOENT: no such file or directory, open '/Users/matthewmoyer/package.json'
5 verbose stack at Error (native)
6 verbose cwd /Users/matthewmoyer/Desktop/frontend-code-test/Javascript
7 error Darwin 16.5.0
8 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
9 error node v6.9.5
10 error npm v3.10.10
11 error path /Users/matthewmoyer/package.json
12 error code ENOENT
13 error errno -2
14 error syscall open
15 error enoent ENOENT: no such file or directory, open '/Users/matthewmoyer/package.json'
16 error enoent ENOENT: no such file or directory, open '/Users/matthewmoyer/package.json'
16 error enoent This is most likely not a problem with npm itself
16 error enoent and is related to npm not being able to find a file.
17 verbose exit [ -2, true ]
Binary file added ten-realty/.DS_Store
Binary file not shown.
Binary file added ten-realty/Assets/.DS_Store
Binary file not shown.
Binary file added ten-realty/Assets/Realtor Image/Thumbs.db
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ten-realty/Assets/SVGs/TEN-logo-mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ten-realty/Assets/SVGs/TEN-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ten-realty/Assets/SVGs/account-teal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ten-realty/Assets/SVGs/account.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ten-realty/Assets/SVGs/angle-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ten-realty/Assets/SVGs/contact-teal-big.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ten-realty/Assets/SVGs/contact-teal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ten-realty/Assets/SVGs/contact-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ten-realty/Assets/SVGs/contact.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ten-realty/Assets/SVGs/enewsletter-teal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ten-realty/Assets/SVGs/enewsletter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ten-realty/Assets/SVGs/equal-housing-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading