-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·50 lines (47 loc) · 2.41 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
<!DOCTYPE html>
<html lang="en" class="no-js" ng-app="solutionsApp">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Solution Filter Form</title>
<meta name="description" content="Natural Language Form with custom text input and drop-down lists" />
<meta name="keywords" content="Natural Language UI, sentence form, text input, contenteditable, html5, css3, jquery" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" type="text/css" href="css/default.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<script src="js/modernizr.custom.js"></script>
<script src="js/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-filter/0.5.8/angular-filter.min.js"></script>
<script src="js/app.js"></script>
</head>
<body class="nl-blurred" ng-controller="SolutionsController">
<header>
<p>Welcome, <span>Cory!</span> What would you like to accomplish today?</p>
</header>
<div class="container demo-1">
<div class="main clearfix">
<form id="nl-form" class="nl-form">
I need a
<select ng-init="catFilterSelected = categoryOptions[0]" ng-model="catFilterSelected" ng-change="catChange(catFilterSelected)" ng-options="category as category.title for category in categoryOptions">
</select>
for
<select ng-model="industrySelected" ng-change="setIndustry(industrySelected)" ng-options="item as item.industry for item in currentCat | unique:'industry'">
<option value="">any industry</option>
</select>
and
<select ng-model="productSelected" ng-change="setProduct(productSelected)" ng-options="item as item.product for item in currentCat | unique:'product'">
<option value="">any product</option>
</select>
</div>
<div class="nl-overlay"></div>
</form>
<ul id="filter-results">
<li>Results: {{(currentCat | filter:solutionFilter).length}}</li>
<li ng-repeat="cat in currentCat| filter: solutionFilter" ><a href="#/{{selectedID}}/{{cat.name}}">{{cat.name}}</a> - Industry: <a href="#/{{selectedID}}/industries/{{cat.industry}}">{{cat.industry}}</a> | Product: <a href="#/{{selectedID}}/products/{{cat.product}}">{{cat.product}}</a></li>
</ul>
</div>
</div><!-- /container -->
</body>
</html>