Skip to content

Instantly share code, notes, and snippets.

View chrisdemars's full-sized avatar
💭
💻Remote

Chris DeMars chrisdemars

💭
💻Remote
View GitHub Profile
@chrisdemars
chrisdemars / index.html
Created September 1, 2014 01:07
A Pen by Chris DeMars.
<h1>Neat CSS3 Fun Things! HOVER TO SEE!!</h1>
<div class="box red"></div>
<div class="box blue"></div>
<div class="box yellow"></div>
<div class="box green"></div>
@chrisdemars
chrisdemars / app.js
Last active August 29, 2015 14:22
jQuery hide/show snippet for code challenge
// Hide pizzas
$('.pizzas').hide();
// Handle click
$('#newyork').click(function() {
$(this).next('.pizzas').slideToggle();
});
$('#chicago').click(function() {
$(this).next('.pizzas').slideToggle();
});
function addNumbers() {
var firstNumber = document.getElementById("firstNumber").value;
var secondNumber = document.getElementById("secondNumber").value;
var sum = firstNumber + secondNumber;
document.getElementById("sum").innerHTML = sum;
}
@chrisdemars
chrisdemars / string-reverse.js
Created July 20, 2017 01:50
string-reverse created by chrisdemars - https://repl.it/J9rU/1
function reverseString(str) {
str = str.split('');
str = str.reverse();
str = str.join('');
return str
}
reverseString("hello");
@chrisdemars
chrisdemars / style.css
Last active August 2, 2017 01:33
Focus style bad practice.
:focus {
outlineL 0;
}