-
Notifications
You must be signed in to change notification settings - Fork 13
/
index-dev.html
51 lines (48 loc) · 1.78 KB
/
index-dev.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue IP</title>
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css"
integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
<style>
html {
height: 100%;
}
body {
background:linear-gradient(to top, #bbd2c5, #536976, #292e49); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
font-family: 'Roboto', sans-serif;
text-align: center;
margin-top: 50vh;
transform: translateY(-50%);
}
.info {
margin-top: 150px;
color: white;
}
</style>
</head>
<body>
<div id="app">
<div class="pure-g">
<div class="pure-u-5-5">
<vue-ip :on-change="ipChange" :placeholder="true" :ip="ip" :port="port" :theme="theme">IP Address</vue-ip>
</div>
<div class="pure-u-5-5">
<div class="info">
<h5>IP: {{ ip }}</h5>
<h5 v-show="port">PORT: {{ port }}</h5>
<h5>VALID: {{ valid }}</h5>
</div>
</div>
<div class="pure-u-5-5">
<button @click="changeIp(false)" class="pure-button pure-button-primary">Change IP</button>
<button @click="changeIp(true)" class="pure-button pure-button-primary">Change IP & Port</button>
<button @click="materialSwitch" class="pure-button pure-button-primary">Material Design {{ ((theme === 'material') ? 'Off' : 'On')}}</button>
<!--<button @click="reset" class="pure-button">Reset</button>-->
</div>
</div>
</div>
<script type="text/javascript" src="/build/build.js"></script>
</body>
</html>