This file contains hidden or 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
grid-template-columns: 1fr 1fr 50VW<------ 1fr 1fr | |
set the wrappers grid box to VW to make nested items responsive |
This file contains hidden or 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
.wrapper { | |
transition:all 1.4s; | |
height: 2000px; | |
display: grid; | |
grid-template-columns: 1fr 1fr 1fr 1fr; | |
grid-template-rows: 2fr 1fr 85% 1fr; | |
background-color: black; | |
color: white; | |
max-width: 1240px; | |
min-width: 320px; |
This file contains hidden or 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 person = { | |
name: "Brad", | |
age: 35, | |
kids: ["dave", "nick"], | |
address: { | |
street: "Mansfield", | |
city: "ottawa" | |
} | |
} |
This file contains hidden or 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
npm install --global gulp-cli | |
npm install --save-dev gulp | |
npm install --save-dev gulp-clean-css |
This file contains hidden or 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
$('button').on('click', function() { | |
$.ajax({ | |
method: 'GET', | |
url: 'https://api.openweathermap.org/data/2.5/weather?q=Vancouver,ca&appid=4a48e1e1428fd83889074671fbf259d9' | |
}) | |
.done(function(data) { | |
console.log(data) | |
$('.weather').append("City: " + data.name + "</br>" + "Wind Speed: " + data.wind.speed + "</br>" + "Clouds: " + data.weather[0].description); | |
}); | |
}); |
This file contains hidden or 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
.super-div{ | |
transition-property: top, left, border-radius, background-color; | |
transition-duration: 2s, 1s, 0.5s, 0.5s; | |
} | |
/* shorthand syntax */ | |
.super-div { | |
transition: | |
top 2s, | |
left 1s, | |
border-radius 0.5s, |
This file contains hidden or 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
display: flex; | |
justify-content: flex-start; | |
align-items: center; | |
flex-direction: row; | |
height: auto; |
This file contains hidden or 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
Clean as you go - dont wait till the end | |
A11Y - accessability | |
WCAG 2.0 - Web Content Accessibility Guidelines | |
Perceivable, Operable, Understandable, Robust | |
################## | |
Snips | |
################## |
This file contains hidden or 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
<form class="form1"> | |
<input class="email-input" type="text" placeholder="Your Email" o> | |
<button class="email-button">Subscribe</button> | |
</form> | |
$(".email-button").click(function() { | |
var x = $(".email-input").val(); |
OlderNewer