s2e26 colors and css
This commit is contained in:
parent
12053e4e2b
commit
41c5af3862
12
app.js
12
app.js
@ -1,12 +1,8 @@
|
||||
var app = new Vue({
|
||||
el: '#app',
|
||||
data: {
|
||||
link: 'https://tyrelsouza.com',
|
||||
attachRed: false,
|
||||
attachGreen: false,
|
||||
attachBlue: true
|
||||
},
|
||||
methods: {
|
||||
changeLink(){
|
||||
this.link = "https://tyrel.bike";
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
});
|
||||
|
15
index.html
15
index.html
@ -3,11 +3,22 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<script src="vue.js"></script>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id='app'>
|
||||
<button @click="changeLink">Change to Link</button>
|
||||
<a :href='link'>Link</a>
|
||||
<div class="demo"
|
||||
@click="attachRed = !attachRed"
|
||||
:class="{red: attachRed}"
|
||||
></div>
|
||||
<div class="demo"
|
||||
@click="attachGreen = !attachGreen"
|
||||
:class="{green: attachGreen}"
|
||||
></div>
|
||||
<div class="demo"
|
||||
@click="attachBlue = !attachBlue"
|
||||
:class="{blue: attachBlue}"
|
||||
></div>
|
||||
</div>
|
||||
<script src="app.js" charset="utf-8"></script>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user