Skip to content
Open

Day9 #44

Changes from all commits
Commits
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
20 changes: 12 additions & 8 deletions src/components/days/individual_days/Day9.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
<template>
<div>
<p onClick="makeGreen()">×BREAK×DOWN×</p>
<p @click="makeGreen()" ref="paragraph">×BREAK×DOWN×</p>
</div>
</template>

<script>
export default {
methods: {
makeGreen() {
const p = this.$refs.paragraph;
p.style.color = "#BADA55";
p.style.fontSize = "50px";
},
},
};

// Need to find a way to make the console Appear on a click on another PR before making this work here
const dogs = [
{ name: "Snickers", age: 2 },
{ name: "Hugo", age: 8 },
];

// eslint-disable-next-line no-unused-vars
function makeGreen() {
const p = document.querySelector("p");
p.style.color = "#BADA55";
p.style.fontSize = "50px";
}

// Regular
console.log("I hope that this corona thing will be over by 2022");

Expand Down