Session 2
This commit is contained in:
1 parent
da0c4e925d
commit
c335f5a31f
24 files changed
+1678
-51
No files matched your search
@@ -0,0 +1,46 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Task 1</title>
|
||||
<link rel="stylesheet" href="https://unpkg.com/chota@latest" />
|
||||
<script src="https://unpkg.com/vue@latest" defer></script>
|
||||
<script src="app.js" defer></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<section class="container" id="asdfereiaicicmkdjkasekjfasdf3e">
|
||||
<h1>Task 1</h1>
|
||||
<div class="card">
|
||||
<header>
|
||||
<!--
|
||||
1. Use a data property to show the header text in <h4> (Vue.js)
|
||||
-->
|
||||
<h4>{{title}}</h4>
|
||||
</header>
|
||||
<!--
|
||||
2. Use data binding for the href attribute (https://de.wikipedia.org/wiki/JavaScript)
|
||||
-->
|
||||
<p>
|
||||
is an open-source front end
|
||||
<a v-bind:href="link">JavaScript</a>
|
||||
framework.
|
||||
</p>
|
||||
<!--
|
||||
3. Output any text you type into the input field, in the <p> below the input field.
|
||||
-->
|
||||
<p><input type="text" v-model="input" /></p>
|
||||
<p>{{input}}</p>
|
||||
|
||||
<footer class="is-right">
|
||||
<!--
|
||||
4. Use click event binding to call a method which shows an alert
|
||||
Hint: to show an alert use alert('This is an alert');
|
||||
-->
|
||||
<button class="button primary" @click="showAlert">Alert</button>
|
||||
</footer>
|
||||
</div>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user