-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
108 lines (97 loc) · 4.91 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
<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootcomplete example</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body ng-cloak>
<div class="container" ng-controller="autocomplete">
<div class="row">
<div class="col-md-12">
<div class="page-header">
<h1>Bootcomplete <small>dev</small></h1>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label for="" class="control-label">Basic usage Google maps api</label>
<bootcomplete btc-minlength="1" btc-maxresults="5" btc-size="md" btc-label="formatted_address" btc-placeholder="Search a city..." btc-query="citySearch" btc-noresults="No results!" btc-callback="cityCallback" ng-model="city"></bootcomplete>
</div>
<div class="col-md-12" ng-show="selected_city">
<span class="label label-info">{{selected_city}}</span>
</div>
</div>
<div class="row">
<div class="col-md-12">
<hr />
</div>
</div>
<!--/example1-->
<div class="row">
<div class="col-md-12">
<label for="" class="control-label">Basic usage, Google maps api with keepselection</label>
<bootcomplete btc-minlength="1" btc-maxresults="5" btc-size="md" btc-label="formatted_address" btc-placeholder="Search a city..." btc-query="citySearch" btc-noresults="No results!" btc-keepselection="true" ng-model="city2"></bootcomplete>
</div>
</div>
<div class="row">
<div class="col-md-12">
<hr />
</div>
</div>
<!--/example2-->
<div class="row">
<div class="col-md-12">
<label for="" class="control-label">Custom template openweathermap.org api</label>
<bootcomplete btc-minlength="1" btc-maxresults="3" btc-size="md" btc-placeholder="get 3 hour forecast for..." btc-query="forecastSearch" btc-callback="forecastCallback" btc-template="/src/forecast.html" ng-model="forecast"></bootcomplete>
</div>
<div class="col-md-12" ng-show="forecast_detail">
<hr />
<a href="" ng-click="forecast_detail=false">Clear</a>
<pre>{{forecast_detail | json}}</pre>
</div>
</div>
<div class="row">
<div class="col-md-12">
<hr />
</div>
</div>
<!--/example3-->
<div class="row">
<div class="col-md-12">
<label for="" class="control-label">Custom template with Google maps api</label>
<bootcomplete btc-minlength="1" btc-maxresults="5" btc-size="md" btc-placeholder="Search a city..." btc-query="citySearch" btc-template="/src/cities.html" btc-callback="cityCallback2" ng-model="city3"></bootcomplete>
</div>
<div class="col-md-12" ng-show="selected_city2">
<span class="label label-info">{{selected_city2}}</span>
</div>
</div>
<div class="row">
<div class="col-md-12">
<hr />
</div>
</div>
<!--/example3-->
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="https://code.angularjs.org/1.6.1/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-resource/1.6.1/angular-resource.min.js"></script>
<script src="/src/bootcomplete.js"></script>
<script src="/src/app.js"></script>
</body>
</html>