forked from cfpb/click-to-comment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (58 loc) · 2.83 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
<!DOCTYPE html>
<html lang="en" class="no-js" ng-app="CTC" xmlns:ng="http://angularjs.org" id="ng-app">
<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">
<title>Click To Comment</title>
<meta name="description" content="">
<script src="assets/lib/jquery/jquery.min.js"></script>
<script src="assets/lib/angular/angular.min.js"></script>
<link rel="stylesheet" href="assets/css/main.css">
<script>
// Confirm availability of JS and remove no-js class from html
var docElement = document.documentElement;
docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2');
</script>
</head>
<body>
<div class="wrapper" scroll ng-controller="MainCtrl">
<h1>Click To Comment</h1>
<p class="sans">Click to indicate which four items are most important in understanding final loan terms and closing costs.</p>
<div class="img-wrap">
<div class="img" >
<div ng-repeat="comment in comments track by $index">
<div class="comment-num" ng-style="{top: comment.y + '%', left: comment.x + '%'}" ng-hide="submitted">
{{$index + 1}}
</div>
</div>
<div class="img-container" ng-click="addComment($event)">
<img class="click-img" src="assets/img/le_page1.png" usemap="#map">
<map name="map" id="map">
<area shape="rect" coords="0,0,612,222" href="#" title="Settlement and transaction information" alt="Settlement and transaction information" >
<area shape="rect" coords="0,222,612,792" href="#" title="Loan terms" alt="Loan terms" >
</map>
</div>
</div> <!-- /.img -->
</div> <!-- /.img-wrap -->
<div id="form-wrap" ng-class="{min:boolChangeClass}">
<div class="comment-limit sans" ng-show="comments.length >= maxComments">
There is a limit of <strong>{{maxComments}}</strong> comments.
</div>
<div ng-show="submitted">Success!</div>
<form ng-hide="submitted">
<div class="comment-form" ng-repeat="comment in comments track by $index">
<p class="sans">
Note {{$index + 1}}
<a class="clear" ng-click="removeComment($index)">(clear this note)</a>
</p>
<textarea ng-model="comment.text"></textarea>
</div>
<p class="sans">You may click up to <strong>{{maxComments - comments.length}}</strong> more {{comments.length === (maxComments - 1) ? 'time' : 'times'}} before sending.</p>
<button class="btn" ng-show="comments.length > 0" ng-click="submit()">Send Notes</button>
</form>
</div> <!-- /.form-wrap -->
</div><!-- END .wrapper -->
<script src="assets/js/app.js"></script>
</body>
</html>