-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathExample.html
43 lines (36 loc) · 1.55 KB
/
Example.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body ng-app="testApp">
<div ng-controller="captureCtrl">
<!--capture-plus is the directive -->
<input id="address" capture-plus ng-model="address" type="text" />
<span>{{status}}</span>
<!-- Normal Capture Plus script -->
<!--http://www.postcodeanywhere.co.uk/address-capture-software/-->
<link rel="stylesheet" type="text/css" href="http://services.postcodeanywhere.co.uk/css/captureplus-1.35.min.css?key=aa11-aa11-aa11-aa11" />
<script type="text/javascript" src="http://services.postcodeanywhere.co.uk/js/captureplus-1.35.min.js?key=aa11-aa11-aa11-aa11&app=aa111"></script>
<div id="an95jf96cp65pd2114741">
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script>
<script src="angular-CapturePlus.min.js"></script>
<script type="text/javascript">
var app = angular.module("testApp", ['CapturePlus']);
app.controller('captureCtrl', function ($scope, CapturePlus) {
CapturePlus.CapturePlusCallback = function (uid, response) {
$scope.status = "Capture completed"
}
CapturePlus.CapturePlusStartTyping = function (uid, response) {
$scope.status = "Typing";
}
CapturePlus.CapturePlusError = function (uid, response) {
$scope.status = "Error";
}
});
</script>
</body>
</html>