-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
140 lines (132 loc) · 6.66 KB
/
index.html
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta name="author" content="NTU CSIE Information System Training Course">
<meta name="keywords" content="Keyword 1,Keyword 2">
<meta name="description" content="description">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/favicon.png">
<!--CSS reset-->
<link rel="stylesheet" href="css/cssreset-min.css">
<!--Bootstrap CSS-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<!-- Style CSS -->
<link rel="stylesheet" href="css/style.css">
<!--Jquery-->
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<!--Bootstrap JS-->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<title>Credit Card UI with VUE.js</title>
</head>
<body>
<article id="app">
<div class="container">
<h1 class="title">VueCard</h1>
<h3 class="sub-title">Credit Card UI module with VUE.js</h3>
<div class="text-center drawing-styles">
<button class="btn primary" id="switchStyleButton">
Change Drawing Style
</button>
</div>
<div class="choose-cards text-center">
<button class="btn primary" value="primary">Primary</button>
<button class="btn oliver" Value="oliver">Oliver</button>
<button class="btn champagene" value="champagne">Champagne</button>
<button class="btn silver" value="silver">Silver</button>
<button class="btn black" value="black">Black</button>
</div>
</div>
<section class="credit-card-container">
<section id="card" class="credit-card primary">
<figure class="front card-content">
<h2 class="bank-name">Vue Card</h2>
<div class="emv-chip"></div>
<div v-cloak class="credit-card-numbers">
<span class="numbers-group">{{numberGroup1}}</span>
<span class="numbers-group">{{numberGroup2}}</span>
<span class="numbers-group">{{numberGroup3}}</span>
<span class="numbers-group">{{numberGroup4}}</span>
</div>
<div v-cloak class="expired">
<p>Valid Dates</p>
<p>{{showMonth}}/{{showYear}}</p>
</div>
<h4 v-cloak class="client-fullname">{{fullName}}</h3>
<div class="credit-card-logo" :class="creditCardType"></div>
</figure>
<!-- Back side -->
<figure class="back card-content">
<div class="magnetic-stripe"></div>
<div class="sign-up-box"></div>
<div v-cloak class="cvc-box">
<p>CVV</p>
<h3>{{cvvNumber}}</h3>
</div>
</figure>
</section>
</section>
<div class="data-table">
<div class="text-box">
<p>data = <br> {
<br>creditCardNumber: "{{inputNumbers}}",
<br>cvv: "{{cvvNumber}}",
<br>validMonth: "{{month}}",
<br>validYear: "{{year}}",
<br>firstName: "{{firstName}}",
<br>lastName: "{{lastName}}",
<br>sentTime: "{{sentTime}}"
<br>}</p>
</div>
</div>
<section class="user-input">
<div class="container">
<div class="col-md-6 col-md-offset-3">
<div class="credit-card-user-input">
<label for="">Credit Card Number</label>
<input class="flipFront credit-number-input only-numbers form-control" type="text" maxlength="16" v-model="inputNumbers" placeholder="Credit Card Numbers" />
<div class="row">
<div class="col-md-6">
<label for="">Expired Month</label>
<input class="flipFront form-control only-numbers" type="text" maxlength="2" v-model="month" placeholder="Expired Month" />
</div>
<div class="col-md-6">
<label for="">Expired Year</label>
<input class="flipFront form-control only-numbers" type="text" maxlength="2" v-model="year" placeholder="Expired Year" />
</div>
</div>
<div class="row">
<div class="col-md-6">
<label for="">First Name</label>
<input class="flipFront form-control" type="text" v-model="firstName" placeholder="First name" maxlength="10" />
</div>
<div class="col-md-6">
<label for="">Last Name</label>
<input class="flipFront form-control" type="text" v-model="lastName" placeholder="Last name" maxlength="10" />
</div>
</div>
<label for="">CVV</label>
<input class="credit-number-input only-numbers form-control flipBack" type="text" maxlength="3" v-model="cvvNumber" placeholder="Credit Card Numbers" />
<div class="row">
<div class="col-md-12">
<button @click="calculateSentTime" id="sendCreditCardData" class="btn btn-primary btn-block">Submit</button>
</div>
</div>
</div>
</div>
</div>
</section>
</article>
<footer>
<p class="copyright">Made by <a href="https://github.com/andy19910102" target="_blank">Andy Huang</a> in Kyosei.ai © 2016</p>
</footer>
</body>
<!-- Vue.JS -->
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<!-- main.js -->
<script src="js/main.js"></script>
</html>