-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
268 lines (242 loc) · 11.3 KB
/
index.html
File metadata and controls
268 lines (242 loc) · 11.3 KB
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
<!--
@license
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<!doctype html>
<html lang="en">
<head>
<!-- Osano -->
<script src="https://cmp.osano.com/AzZrhlTmT5f216Foa/84ba7dc4-a4e5-4b02-b120-977eb6f052d4/osano.js"></script>
<!-- Osano -->
<!-- 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=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KLSDFH');</script>
<!-- End Google Tag Manager -->
<meta charset="utf-8">
<meta name="description" content="{{view.description}}">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="{{view.title}}">
<meta name="application-name" content="{{view.title}}">
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', '{{ga}}', 'auto');
ga('send', 'pageview');
{% if view.ga %}
ga('create', '{{view.ga}}', 'auto', { name: 'view' });
ga('view.send', 'pageview');
{% endif %}
</script>
<title>{{view.title}}</title>
<link rel="stylesheet" href="styles/main.css">
{% if view.customStyle %}
<link rel="stylesheet" href="{{view.customStyle}}">
{%- endif %}
<link rel="import" href="elements/elements.html">
<style is="custom-style">
:root {
--paper-tabs-selection-bar-color: currentcolor;
--paper-input-container-underline: {
display: none;
};
--paper-input-container-underline-focus: {
display: none;
};
}
.dropdown-filter {
--paper-input-container: {
padding: 8px;
}
}
</style>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#455a64">
<meta name="apple-mobile-web-app-title" content="{{view.title}}">
<link rel="apple-touch-icon" sizes="180x180" href="images/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="194x194" href="images/favicons/favicon-194x194.png">
<link rel="icon" type="image/png" sizes="192x192" href="images/favicons/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicons/favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
<link rel="mask-icon" href="images/favicons/safari-pinned-tab.svg" color="#455a64">
<meta name="msapplication-TileColor" content="#455a64">
<meta name="msapplication-TileImage" content="images/favicons/mstile-144x144.png">
<meta name="theme-color" content="#455a64">
<meta name="og:type" property="og:type" content="website" />
<meta name="og:title" property="og:title" content="{{view.title}}" />
<meta name="og:description" property="og:description" content="{{view.description}}" />
<meta name="og:url" property="og:url" content="{{canonicalViewUrl(view)}}" />
<meta name="og:site_name" property="og:site_name" content="Solace Codelabs" />
<meta name="og:determiner" property="og:determiner" content="the" />
<meta name="og:locale" property="og:locale" content="en_US" />
<meta name="og:image" property="og:image" content="images/og-image.png" />
<meta name="og:image:url" property="og:image:url" content="images/og-image.png" />
<meta name="og:image:type" property="og:image:type" content="image/png" />
<meta name="og:image:width" property="og:image:width" content="1200" />
<meta name="og:image:height" property="og:image:height" content="1200" />
<meta name="og:image:alt" property="og:image:alt" content="Codelabs" />
<meta name="twitter:card" property="twitter:card" content="summary_large_image" />
<meta name="twitter:title" property="twitter:title" content="{{view.title}}" />
<meta name="twitter:description" property="twitter:description" content="{{view.description}}" />
<meta name="twitter:image" property="twitter:image" content="images/og-image.png" />
<meta name="twitter:url" property="twitter:url" content="{{canonicalViewUrl(view)}}" />
<!-- Header -->
<script src="https://devrelassets.z9.web.core.windows.net/header.js" defer></script>
</head>
<body id="app" is="body-bind" class="loading fullbleed {% if view.id != 'default' -%}view{%- endif -%}">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KLSDFH"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<paper-header-panel id="main" mode="standard" main>
{% raw %}
<div id="mainToolbar" class="paper-header">
<div class="site-width layout horizontal">
<div id="searchbar">
<paper-input-container no-label-float>
<paper-icon-button prefix icon="search"></paper-icon-button>
<label>Search</label>
<input is="iron-input" bind-value="{{searchVal}}" on-keydown="onSearchKeyDown">
</paper-input-container>
</div>
</div>
</div>
{% endraw %}
{# Event pages force down attribute. On homepage, it's applied dynamically. #}
<header id="banner" {% if view.id != 'default' -%}down{%- else %}down$="[[_toBoolean(selectedFilter)]]"{%- endif %}>
<div class="site-width">
{% if view.id == 'default' %}
<h2 class="banner-title">Welcome to Solace Developer Codelabs!</h2>
<div class="banner-description"
data-filter-selected$="{% raw %}[[_toBoolean(selectedFilter)]]{% endraw %}">
<p class="banner-info">
This site provides tutorials that give a guided, hands-on experience with the <a href="https://solace.com/products/platform/">Solace Platform</a>. Each codelab will either step you through the process of building application(s) with the broker, teach you how to use a specific feature, or even integrate the platform with other technologies.
<br>
<br>
Discuss your Codelab experience in the <a href="https://solace.community">Developer Community</a>
<br>
Not Finding the Tutorials you want?
<a href="https://docs.solace.com/Developer-Tutorials/Developer-Tutorials.htm">More Solace Tutorials Here!</a>
<br>
Want to learn more? <a href="https://solace.dev">Transport me to the Developer Portal</a>
<br>
<br>
Check out the <a href="https://solace.com/connectors/">Connector Hub</a> to learn more about connectors used throughout these Codelabs and to discover other ways to integrate Solace with other technologies!
</p>
{%- else -%}
<div class="banner-description">
<img id="logo" src="{{view.logoUrl}}" alt="Event logo">
<div class="banner-meta">
<h3>{{view.title}}</h3>
{% if view.description -%}
<p>{{view.description}}</p>
{%- endif %}
</div>
{%- endif %}
</div>
</div>
</header>
<main>
<div id="filters" class="site-width layout horizontal center justified">
<div id="sortby">
<paper-tabs selected="0" noink on-iron-activate="sortBy">
<paper-tab>A-Z</paper-tab>
<paper-tab>Recent</paper-tab>
<paper-tab>Duration</paper-tab>
</paper-tabs>
</div>
{% if view.id == 'default' %}
<!-- <paper-dropdown-menu
label="Filter by type"
class="dropdown-filter"
no-label-float
noink no-animations
> -->
<paper-listbox
id="eventList"
slot="dropdown-content"
class="dropdown-content"
>
{%- for view in views -%}
{%- if view.id != 'default' && !view.hidden -%}
<a href="/{{view.url}}/" tabindex="-1">
<paper-item>{{view.title}}</paper-item>
</a>
{%- endif -%}
{%- endfor %}
</paper-listbox>
</paper-dropdown-menu>
{% endif %}
{%- if showcats -%}
<paper-dropdown-menu
label="Filter by category"
class="dropdown-filter"
no-label-float
noink no-animations
>
<paper-listbox
id="categorylist"
slot="dropdown-content"
class="dropdown-content"
on-iron-activate="onCategoryActivate"
attr-for-selected="filter"
>
{% for category in categories -%}
{%- if categoryHasShowableCodelabs(category, codelabs) -%}
<paper-item filter="{{category}}">{{category}}</paper-item>
{%- endif -%}
{%- endfor %}
</paper-listbox>
</paper-dropdown-menu>
{%- endif -%}
</div>
<card-sorter id="cards" class="site-width">
{% for codelab in codelabs -%}
{# Only filter hidden codelabs from the default view.
All other views are explicitly opt-in via metadata. #}
{% if codelab.status.indexOf('hidden') === -1 || view.id !== 'default' %}
{% set cat = levelledCategory(codelab, view.catLevel) %}
<a href="{{codelabUrl(view, codelab)}}" on-tap="navigate"
class="codelab-card category-{{categoryClass(codelab, cat.level)}}"
data-category="{{codelab.category}}"
data-title="{{codelab.title}}"
data-duration="{{codelab.duration}}"
data-updated="{{codelab.updated}}"
data-tags="{{codelab.tags}}"
data-pin="{{codelabPin(view, codelab)}}">
{%- if codelabPin(view, codelab) -%}
<div class="card-pin"></div>
{%- endif -%}
<div class="description">{{codelab.title}}</div>
<div class="card-duration">
<span>{%- if codelab.duration -%}{{codelab.duration}} min {%- endif -%}</span>
<span>{%- if codelab.updated -%}Updated {{codePrettyDate(codelab.updated)}}{%- endif -%}</span>
</div>
<div class="card-footer">
<div class="category-icon {{categoryClass(codelab, cat.level)}}-icon"></div>
<paper-button class="{{categoryClass(codelab, cat.level)}}-bg">Start</paper-button>
</div>
</a>
{%- endif %}
{%- endfor %}
</card-sorter>
<div id="loading-placeholder" class="site-width">
Loading Codelabs, please wait...
</div>
</main>
<!-- Footer -->
<script src="https://devrelassets.z9.web.core.windows.net/footer.js"></script>
</paper-header-panel>
<!-- build:js scripts/main.js -->
<script src="bower_components/url-search-params-polyfill/build/url-search-params.js"></script>
<script src="scripts/app.js"></script>
<!-- endbuild-->
</body>
</html>