forked from mariaeis/openshift-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search-commercial.html
283 lines (264 loc) · 13.3 KB
/
search-commercial.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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<!DOCTYPE html>
<!--[if IE 8]><html class="ie8"><![endif]-->
<!--[if IE 9]><html class="ie9"><![endif]-->
<!--[if gt IE 9]><!-->
<html>
<!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="google-site-verification" content="MCaLEYfZB8HfZSTyMQYZyBeRMXGoKt46uvrwEp-KN3M">
<title>Search Results | Red Hat OpenShift Documentation</title>
<link href="https://docs.openshift.com/search.html" rel="canonical">
<link href="https://assets.openshift.net/content/subdomain.css" rel="stylesheet" media="screen, print">
<link href="https://assets.openshift.net/content/subdomain/touch-icon-precomposed.png" rel="apple-touch-icon-precomposed" type="image/png">
<link href="https://assets.openshift.net/content/subdomain/favicon32x32.png" rel="shortcut icon" type="image/png">
<!--[if IE]><link rel="shortcut icon" href="https://assets.openshift.net/content/subdomain/favicon.ico"><![endif]-->
<link href="https://assets.openshift.net/content/osh-nav-footer.css" rel="stylesheet" type="text/css" media="screen, print" />
<link href="_stylesheets/commercial-home.css" rel="stylesheet">
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PMDVKG');</script>
<!-- End Google Tag Manager -->
<!-- Adobe DTM -->
<script src="//www.redhat.com/dtm.js" type="text/javascript"></script>
<!-- End Adobe DTM -->
<!-- jQuery is required by Help Center search -->
<script src="https://assets.openshift.net/content/subdomain.js" type="text/javascript"></script>
<!-- -->
</head>
<body class="docs docs-search">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-PMDVKG"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<nav id="main">
<div class="container">
<div class="row">
<div class="navbar navbar-default navbar-openshift" role="navigation">
<div class="navbar-header">
<a href="#nav-main" class="dropdown-toggle navbar-menu-toggle hidden visible-xs" data-toggle="collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="navbar-brand" href="/"></a>
</div>
<div id="nav-main" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li id="products" class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true">
Products <span class="fa fa-angle-down"></span>
</a>
<div class="dropdown-menu">
<div class="row flex-column flex-md-row">
<div class="col-xs-12 col-sm-3">
<h3>Overview</h3>
<ul class="nav flex-column">
<li><a target="_blank" href="https://www.openshift.com/products/features/">Features</a></li>
<li><a target="_blank" href="https://www.openshift.com/products/pricing/">Pricing</a></li>
</ul>
</div>
<div class="col-xs-12 col-sm-9">
<h3>Featured Products</h3>
<ul class="nav">
<li>
<a target="_blank" href="https://www.openshift.com/products/container-platform/">Red Hat OpenShift Container Platform</a>
<p class="d-none d-md-block">Build, deploy and manage your applications across cloud- and on-premise infrastructure</p>
</li>
<li>
<a target="_blank" href="https://www.openshift.com/products/dedicated/">Red Hat OpenShift Dedicated</a>
<p class="d-none d-md-block">Single-tenant, high-availability Kubernetes clusters in the public cloud</p>
</li>
<li>
<a target="_blank" href="https://www.openshift.com/products/online/">Red Hat OpenShift Online</a>
<p class="d-none d-md-block">The fastest way for developers to build, host and scale applications in the public cloud</p>
</li>
<li class="nav-item">
<a target="_blank" href="https://www.openshift.com/products/">All products <span class="fa fa-angle-right"></span></a>
</li>
</ul>
</div>
</div>
</div>
</li>
<li id="learn" class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Learn <span class="fa fa-angle-down"></span>
</a>
<div class="dropdown-menu">
<div class="row flex-md-nowrap">
<div class="col-xs-12 col-sm-6">
<h3>Learn</h3>
<ul class="nav">
<li><a target="_blank" href="https://www.openshift.com/learn/what-is-openshift/">What is OpenShift</a></li>
<li><a target="_blank" href="https://www.openshift.com/learn/get-started/">Get started</a></li>
<li><a target="_blank" href="https://www.openshift.com/learn/partners/">Partners</a></li>
<li><a target="_blank" href="https://www.openshift.com/learn/success-stories/">Customer success stories</a></li>
<li><a target="_blank" href="https://blog.openshift.com">Blog</a></li>
<li><a target="_blank" href="https://www.openshift.com/learn/resources/">Resources</a></li>
</ul>
</div>
<div class="col-xs-12 col-sm-6">
<h3>Technology Topics</h3>
<ul class="nav">
<li><a target="_blank" href="https://www.openshift.com/learn/topics/knative/">Knative</a></li>
<li><a target="_blank" href="https://www.openshift.com/learn/topics/security/">Security</a></li>
<li><a target="_blank" href="https://www.openshift.com/learn/topics/kubernetes/">Kubernetes</a></li>
<li><a target="_blank" href="https://www.openshift.com/learn/topics/service-brokers/">Service Brokers</a></li>
</ul>
</div>
</div>
</div>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Community <span class="fa fa-angle-down"></span>
</a>
<ul class="dropdown-menu">
<li><a target="_blank" href="https://commons.openshift.org">OpenShift Commons</a></li>
<li><a target="_blank" href="https://www.okd.io">Open Source (OKD)</a></li>
<li><a target="_blank" href="https://www.openshift.com/community/programs/startups/">Startups</a></li>
<li><a target="_blank" href="https://www.openshift.com/community/programs/grants/">Grants</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Support <span class="fa fa-angle-down"></span>
</a>
<ul class="dropdown-menu">
<li><a target="_blank" href="https://help.openshift.com">Help Center</a></li>
<li><a href="https://docs.openshift.com">OpenShift Docs</a></li>
</ul>
</li>
<li><a target="_blank" class="nav-sign-up" href="https://www.openshift.com/trial/">Free Trial</a></li>
<li><a target="_blank" href="https://manage.openshift.com" class="nav-sign-in">Log In <span class="fa fa-angle-right"></span></a></li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<section>
<div class="container">
<h1>Search Results</h1>
<div id="hc-search-results" class="search-results clearfix"></div>
<div id="hc-search-progress-indicator" class="text-center search-progress-indicator"><i class="fa fa-circle-o-notch fa-spin" style="font-size:42px"></i></div>
<div class="text-center">
<button id="hc-search-more-btn" style="display:none;">Show more results</button>
</div>
</div>
</section>
<footer id="rh">
<div class="container">
<div class="row">
<div class="col-sm-2">
<img src="https://assets.openshift.com/hubfs/images/logos/Logo-RedHat-A-Reverse-RGB.svg" class="img-fluid" alt="Red Hat" style="height: 30px;">
</div>
<div class="col-sm-3">
<p class="text-nowrap">Copyright © 2019 Red Hat, Inc.</span></p>
</div>
<div class="col">
<nav class="nav">
<a target="_blank" href="https://www.redhat.com/en/about/privacy-policy" class="nav-link">Privacy statement</a>
<a target="_blank" href="https://www.openshift.com/legal/terms/" class="nav-link">Terms of use</a>
<a target="_blank" href="https://www.redhat.com/en/about/all-policies-guidelines" class="nav-link">All policies and guidelines</a>
</nav>
</div>
</div>
</div>
</footer>
<script type="text/javascript">
// custom help.openshift.com search
function parseParamsFromUrl() {
var params = {};
var parts = window.location.search.substr(1).split('&');
for (var i = 0; i < parts.length; i++) {
var keyValuePair = parts[i].split('=');
var key = keyValuePair[0];
params[key] = keyValuePair[1];
}
return params;
} // function parseParamsFromUrl()
function hcsearch(searchParams) {
// elements used repeatedly
var hcMoreBtn = $("#hc-search-more-btn");
var hcSearchIndicator = $("#hc-search-progress-indicator");
var hcSearchResult = $("#hc-search-results");
// the "searchprovider" is to return a JSON response in the expected format
var searchprovider = "https://search.help.openshift.com/json";
var searchReq = { "q" : searchParams.q + searchParams.urlFilter,
"fields.label" : searchParams.label,
"si" : searchParams.si } // q = query, l = label
hcMoreBtn.hide();
hcSearchIndicator.show();
$.get(searchprovider, searchReq).done(function (hcsearchresults) {
// GET success
if (hcsearchresults == "") {
// success, but no response (response code mismatch)
$("#hc-search-result").append("<p><strong>An error occured while retrieving search results. Please try again later.</strong></p>");
hcSearchIndicator.hide();
}
if (hcsearchresults.response.result) {
// if there are any results
$(hcsearchresults.response.result).each(function () {
var row = '<div class="search-result-item"><a href="' + this.url +
'" target="_blank">' + this.title + '</a>';
row += '<p class="excerpt">' + this.content_description.replace(/\<br\>/g, ' ') + '</p></div>';
hcSearchResult.append(row);
});
if (hcsearchresults.response.page_number < hcsearchresults.response.page_count) {
// if there are more results beyond the retrieved ones
// index of the first item on the next page (first item = 0, first page = 1)
searchParams.si = hcsearchresults.response.page_number * hcsearchresults.response.page_size;
// replace any existing click handler with one to fetch the next set of results
hcMoreBtn.off('click');
hcMoreBtn.click(function() {
hcsearch(searchParams);
});
hcMoreBtn.show();
} else {
// no more results beyond the retrieved ones
hcSearchResult.append("<p><strong>No more results.</strong></p>");
}
} else {
if (searchParams.si > 0) {
// no results reurned, but some already displayed
hcSearchResult.append("<p><strong>No more results.</strong></p>");
} else {
// no results on initial search
hcSearchResult.append("<p><strong>No results found. Try rewording your search.</strong></p>");
}
}
hcSearchIndicator.hide();
}).fail(function(response) {
// GET error
hcSearchResult.append("<p><strong>An error occured while retrieving search results. Please try again later.</strong></p>");
hcSearchIndicator.hide();
});
} // function hcsearch()
var urlParams = parseParamsFromUrl();
var queryParamName = 'query';
if (urlParams[queryParamName]) {
var searchParams = {
si: 0,
q: urlParams[queryParamName],
label: "docs",
urlFilter: ""
};
hcsearch(searchParams);
}
</script>
<!-- Adobe DTM -->
<script type="text/javascript">
if (("undefined" !== typeof _satellite) && ("function" === typeof _satellite.pageBottom)) {
_satellite.pageBottom();
}
</script>
<!-- End Adobe DTM -->
</body>
</html>