Skip to content

Instantly share code, notes, and snippets.

View ajbraus's full-sized avatar
👏
Encouraging

Adam Braus ajbraus

👏
Encouraging
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Demo JS</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css" />
$(document).ready(e => {
$('#make-green').click((e) => {
console.log("make green!")
$("h1").css('color', 'green');
})
$('#make-red').click((e) => {
console.log("make red!")
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="styles.css" />
<html>
<head>
<title>HTML DEMO</title>
</head>
<body>
<header>
<h3>I'm the header</h3>
</header>