-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
84 lines (67 loc) · 2.39 KB
/
index.php
File metadata and controls
84 lines (67 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php include('includes/header.php'); ?>
<div class="container-fluid" id="app">
<div class="row d-flex justify-content-center">
<!-- col -->
<div class="col-md-8" >
<h1>Students App</h1>
<div class="alert alert-primary" v-bind:title="name">Hi {{ name }}? <span class="badge badge-warning prompt" v-on:click="alert">Prompt Me</span> </div>
<ul class="list-group">
<li class="list-group-item active"> Students </li>
<li class="list-group-item" v-for="student, index in students"><span class="badge badge-danger">{{index+1}}</span> {{ student.toUpperCase() }}</li>
</ul>
</div>
<!-- col -->
<!-- modal -->
<div class="modal" tabindex="-1" role="dialog" id="modal1">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Hello</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h1>Hello {{ name }}?</h1>
<p>Yours is the world, and everything that's in it.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
<!-- modal -->
</div>
</div>
<script>
var app = new Vue(
{
el: '#app',
data: function()
{
return {
name: 'Christian',
students: [
"bob",
"tom",
"tim",
"jim"
]
}
},
methods: {
alert: function()
{
$('#modal1').modal('show');
}
}
}
);
</script>
<style scope>
.prompt{float: right;}
.prompt:hover{cursor: pointer;}
</style>
<?php include('includes/footer.php'); ?>