-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
85 lines (80 loc) · 4.48 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Origin Trial Token -->
<meta http-equiv="origin-trial"
content="AtgOYVRO5xlsm/3qCzZ701Hx8qTUrCUbFVML9Z8E9vELP5w9K9E73YWGBQc4Ivy0hGd+++sh7JUtKx+3EuV3ngkAAABeeyJvcmlnaW4iOiAiaHR0cHM6Ly9ibHVlYXBwaW8uZ2l0aHViLmlvOjQ0MyIsICJmZWF0dXJlIjogIldlYkJsdWV0b290aCIsICJleHBpcnkiOiAxNDc2ODE1NjAyfQ=="/>
<title>Terminal</title>
<link rel="stylesheet"
href="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.0-rc4/angular-material.min.css">
<link rel="stylesheet" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular-aria.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular-messages.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.0-rc4/angular-material.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-material-icons/0.7.1/angular-material-icons.min.js"></script>
<script src="https://blueappio.github.io/blueapp.io/blueapp.io.min.js"></script>
<script src="cordova/cordova-init.js"></script>
<script src="terminal.js"></script>
<script src="app.js"></script>
</head>
<body ng-app='terminal' class="thing">
<div ng-controller="mainController" md-theme-watch="true" ng-cloak>
<div id='scanDialog'></div>
<div class="row heading" flex="100" layout="row">
<div class="dialog-demo-content" style="position: absolute; left: 0px; width: 62px;">
<md-button class="md-icon-button md-primary" aria-label="Settings" ng-disabled="!terminal.connected"
ng-click="showSettingsDialog($event)">
<md-icon md-svg-icon="images/settings.svg" style="color: #3e3737;"></md-icon>
</md-button>
</div>
<div class="logo" style="margin-top: 6px;"></div>
<!-- <div layout="column" flex="80" class="heading-text" style="padding-left: 7px;">{{terminal.deviceName}}</div> -->
<div layout="column" flex="20" layout-align="center end"
style="position: absolute; right: 0px; width: 62px; margin-top: -3px;" ng-hide="terminal.connected">
<md-button style="text-transform: capitalize !important; color: white;" ng-click="onConnect()">
Connect
</md-button>
</div>
<div layout="column" flex="20" layout-align="center end"
style="position: absolute; right: 0px; width: 62px; margin-top: -3px;"
ng-show="terminal.connected && isApp">
<md-button style="text-transform: capitalize !important; color: white;" ng-click="onDisconnect()">
Disconnect
</md-button>
</div>
</div>
<div style="margin-left: 15px;padding-top: 10px;color: #4aade2;"
ng-show="terminal.deviceName && terminal.connected">
{{terminal.deviceName}}
</div>
<div layout="row" style="padding-left:14px;padding-right:14px;">
<div class="terminal-textfield terminal-textfiled-border" flex="100" style="top: 25px;">
<textarea readonly>{{terminaldata}}</textarea>
</div>
</div>
<div style="text-align: right; margin-top: -20px; margin-right: 7px;">
<md-button class="md-icon-button" aria-label="Settings" ng-disabled="!terminal.connected"
ng-click="onClear()">
<md-icon md-svg-icon="images/clear-button.svg"
style="color: #3e3737; height: 16px; min-height: 0px;"></md-icon>
</md-button>
</div>
<div layout="row" layout-align="start start" ng-hide="!terminal.connected"
style="padding-left:14px;padding-right:14px;">
<div layout="column" flex="85" flex-gt-md="90" flex-gt-lg="90" flex-xs="65" flex-sm="80">
<div class="terminal-textfield" style="top: 20px;">
<input type="text" placeholder="Enter hex data to send" class="terminal-textfield" ng-model="inputData">
</div>
</div>
<div layout="column" flex="15" flex-gt-md="10" flex-gt-lg="10" flex-xs="35" flex-sm="20">
<md-button class="md-raised send-btn" ng-click="onSend()" style="top: 20px;">Send
</md-button>
</div>
</div>
</div>
</body>
</html>