-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
170 lines (152 loc) · 4.99 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>TrustYou API – Hotel Detail Trip Types Demo</title>
<!-- These CSS files are for styling purposes only; they are not required to visualize the TrustYou API -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,500,700"/>
<link rel="stylesheet" href="https://cdn.trustyou.com/apps/trustyou-iconic/public/css/trustyou-iconic.min.latest.css"/>
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/trustscore.css"/>
<link rel="stylesheet" href="css/style.css"/>
<!-- This demo uses the popular MustacheJS templating engine to dynamically build an HTML page in the browser. Depending on your use case, you will likely use a server-side templating language. -->
<!-- HTML template for basic hotel info -->
<script id="tmpl-hotel-info" type="x-tmpl-mustache">
<div class="col-xs-8">
<h1>
{{name}}
<span class="stars">
<span class="active">★</span>
<span class="active">★</span>
<span class="active">★</span>
<span class="active">★</span>
<span class="active">★</span>
</span>
</h1>
<h2>
<i class="ty-icon ty-icon-marker"></i>
{{address}}
</h2>
<div class="trustscore">
<iframe src="https://api.trustyou.com/hotels/674fa44c-1fbd-4275-aa72-a20f262372cd/trust_score.html?key={{apikey}}&size=m&scale=100"
scrolling="no"
height="56"
width="205"
style="border:none"></iframe>
</div>
<h3>
{{summary}}
</h3>
<div class="hotel-type">
{{#badges}}
<p>
<i class="ty-icon ty-icon-{{categoryId}}"></i>
{{&text}} – <em>{{&subtext}}</em>
</p>
{{/badges}}
</div>
</div>
<div class="col-xs-4">
<div class="thumbnail">
<div class="ranking">
<div class="rank-wrapper">
<span>Ranked</span>
<span>Top {{popularity}}%</span>
</div>
</div>
<img src="{{imgUrl}}" class="img-responsive" alt="{{name}}"/>
</div>
</div>
</script>
<!-- HTML template for interactive filter bar -->
<script id="tmpl-filter-bar" type="x-tmpl-mustache">
<div class="summary-filters">
<div class="trustyou-ui tile">
<a href="all">
<i class="ty-icon ty-icon-airplane"></i>
All <span class="value">100%</span>
</a>
</div>
{{#filters}}
<div class="trustyou-ui tile">
<a href="{{filterId}}">
<i class="ty-icon ty-icon-{{filterId}}"></i>
{{filterName}} <span class="value">{{reviewsPercent}}%</span>
</a>
</div>
{{/filters}}
</div>
</script>
<!-- HTML template for review summary -->
<script id="tmpl-review-summaries" type="x-tmpl-mustache">
{{#filters}}
<div class="summary-section tops-flops" id="tops-flops-{{filterId}}">
<h2>Review highlights</h2>
<div class="category">
{{#categories}}
<div class="category-label">
{{categoryName}}
<br/><br/>
<div class="result-chart {{sentiment}}">
<div class="result-value" style="width: {{score}}%;"></div>
</div>
</div>
<div class="category-results">
{{#summarySentences}}
<div class="category-subcategory" >
<div class="result-description">
<p>
<i class="ty-icon ty-icon-{{sentiment}}"></i>
{{text}}
</p>
</div>
</div>
{{/summarySentences}}
</div>
{{/categories}}
</div>
</div>
{{/filters}}
</script>
<!-- HTML template for good to know -->
<script id="tmpl-good-to-know" type="x-tmpl-mustache">
{{#filters}}
<div class="summary-section good-to-know" id="good-to-know-{{filterId}}">
<h2>Good to know</h2>
<ul>
{{#goodToKnow}}
<li>
<i class="ty-icon ty-icon-ok"></i>{{text}}
</li>
{{/goodToKnow}}
</ul>
</div>
{{/filters}}
</script>
</head>
<body class="trustyou-ui">
<header>
<div class="container">
<div class="row" id="hotel-info"></div>
</div>
</header>
<div class="container">
<div id="filter-bar"></div>
<div class="summary-content traveler-type-highlights">
<div class="container" id="important-for"></div>
</div>
</div>
<div class="container">
<div id="good-to-know"></div>
<div class="summary-content" id="review-summaries"></div>
<a href="http://trustyou.com" class="verified-reviews">
<img src="https://api.trustyou.com/static/img/verified-reviews.png" alt="powered by TrustYou" class="powered-by-trustyou"/>
</a>
</div>
<!-- See js/main.js for what happens next :) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.3.0/mustache.min.js"></script>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>