Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions bus-arrival/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,55 @@
window.gtag = gtag;
</script>
<script src="../assets/arrival.js" type="module"></script>
<script type="text/javascript">
(function (window, document, dataLayerName, id) {
(window[dataLayerName] = window[dataLayerName] || []),
window[dataLayerName].push({
start: new Date().getTime(),
event: 'stg.start',
});
var scripts = document.getElementsByTagName('script')[0],
tags = document.createElement('script');
function stgCreateCookie(a, b, c) {
var d = '';
if (c) {
var e = new Date();
e.setTime(e.getTime() + 24 * c * 60 * 60 * 1e3),
(d = '; expires=' + e.toUTCString());
f = '; SameSite=Strict';
}
document.cookie = a + '=' + b + d + f + '; path=/';
}
var isStgDebug =
(window.location.href.match('stg_debug') ||
document.cookie.match('stg_debug')) &&
!window.location.href.match('stg_disable_debug');
stgCreateCookie('stg_debug', isStgDebug ? 1 : '', isStgDebug ? 14 : -1);
var qP = [];
dataLayerName !== 'dataLayer' &&
qP.push('data_layer_name=' + dataLayerName),
isStgDebug && qP.push('stg_debug');
var qPString = qP.length > 0 ? '?' + qP.join('&') : '';
(tags.async = !0),
(tags.src = 'https://ca.containers.piwik.pro/' + id + '.js' + qPString),
scripts.parentNode.insertBefore(tags, scripts);
!(function (a, n, i) {
a[n] = a[n] || {};
for (var c = 0; c < i.length; c++)
!(function (i) {
(a[n][i] = a[n][i] || {}),
(a[n][i].api =
a[n][i].api ||
function () {
var a = [].slice.call(arguments, 0);
'string' == typeof a[0] &&
window[dataLayerName].push({
event: n + '.' + i + ':' + a[0],
parameters: [].slice.call(arguments, 1),
});
});
})(i[c]);
})(window, 'ppms', ['tm', 'cm']);
})(window, document, 'dataLayer', 'f84f7808-9fe5-444d-884d-3f61a5d8b01e');
</script>
</html>
51 changes: 51 additions & 0 deletions bus-first-last/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,55 @@
window.gtag = gtag;
</script>
<script src="../assets/firstlast.js" type="module"></script>
<script type="text/javascript">
(function (window, document, dataLayerName, id) {
(window[dataLayerName] = window[dataLayerName] || []),
window[dataLayerName].push({
start: new Date().getTime(),
event: 'stg.start',
});
var scripts = document.getElementsByTagName('script')[0],
tags = document.createElement('script');
function stgCreateCookie(a, b, c) {
var d = '';
if (c) {
var e = new Date();
e.setTime(e.getTime() + 24 * c * 60 * 60 * 1e3),
(d = '; expires=' + e.toUTCString());
f = '; SameSite=Strict';
}
document.cookie = a + '=' + b + d + f + '; path=/';
}
var isStgDebug =
(window.location.href.match('stg_debug') ||
document.cookie.match('stg_debug')) &&
!window.location.href.match('stg_disable_debug');
stgCreateCookie('stg_debug', isStgDebug ? 1 : '', isStgDebug ? 14 : -1);
var qP = [];
dataLayerName !== 'dataLayer' &&
qP.push('data_layer_name=' + dataLayerName),
isStgDebug && qP.push('stg_debug');
var qPString = qP.length > 0 ? '?' + qP.join('&') : '';
(tags.async = !0),
(tags.src = 'https://ca.containers.piwik.pro/' + id + '.js' + qPString),
scripts.parentNode.insertBefore(tags, scripts);
!(function (a, n, i) {
a[n] = a[n] || {};
for (var c = 0; c < i.length; c++)
!(function (i) {
(a[n][i] = a[n][i] || {}),
(a[n][i].api =
a[n][i].api ||
function () {
var a = [].slice.call(arguments, 0);
'string' == typeof a[0] &&
window[dataLayerName].push({
event: n + '.' + i + ':' + a[0],
parameters: [].slice.call(arguments, 1),
});
});
})(i[c]);
})(window, 'ppms', ['tm', 'cm']);
})(window, document, 'dataLayer', 'f84f7808-9fe5-444d-884d-3f61a5d8b01e');
</script>
</html>
52 changes: 52 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,58 @@ <h1>
<div id="app"></div>
<div id="tooltip"></div>
<script src="assets/app.js" type="module"></script>
<script type="text/javascript">
(function (window, document, dataLayerName, id) {
(window[dataLayerName] = window[dataLayerName] || []),
window[dataLayerName].push({
start: new Date().getTime(),
event: 'stg.start',
});
var scripts = document.getElementsByTagName('script')[0],
tags = document.createElement('script');
function stgCreateCookie(a, b, c) {
var d = '';
if (c) {
var e = new Date();
e.setTime(e.getTime() + 24 * c * 60 * 60 * 1e3),
(d = '; expires=' + e.toUTCString());
f = '; SameSite=Strict';
}
document.cookie = a + '=' + b + d + f + '; path=/';
}
var isStgDebug =
(window.location.href.match('stg_debug') ||
document.cookie.match('stg_debug')) &&
!window.location.href.match('stg_disable_debug');
stgCreateCookie('stg_debug', isStgDebug ? 1 : '', isStgDebug ? 14 : -1);
var qP = [];
dataLayerName !== 'dataLayer' &&
qP.push('data_layer_name=' + dataLayerName),
isStgDebug && qP.push('stg_debug');
var qPString = qP.length > 0 ? '?' + qP.join('&') : '';
(tags.async = !0),
(tags.src =
'https://ca.containers.piwik.pro/' + id + '.js' + qPString),
scripts.parentNode.insertBefore(tags, scripts);
!(function (a, n, i) {
a[n] = a[n] || {};
for (var c = 0; c < i.length; c++)
!(function (i) {
(a[n][i] = a[n][i] || {}),
(a[n][i].api =
a[n][i].api ||
function () {
var a = [].slice.call(arguments, 0);
'string' == typeof a[0] &&
window[dataLayerName].push({
event: n + '.' + i + ':' + a[0],
parameters: [].slice.call(arguments, 1),
});
});
})(i[c]);
})(window, 'ppms', ['tm', 'cm']);
})(window, document, 'dataLayer', 'f84f7808-9fe5-444d-884d-3f61a5d8b01e');
</script>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-D34FLYKNNR"
Expand Down
51 changes: 51 additions & 0 deletions visualization/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,57 @@
<div id="status" hidden></div>
<div id="tooltip" hidden></div>
<script src="visualization.js" type="module"></script>
<script type="text/javascript">
(function (window, document, dataLayerName, id) {
(window[dataLayerName] = window[dataLayerName] || []),
window[dataLayerName].push({
start: new Date().getTime(),
event: 'stg.start',
});
var scripts = document.getElementsByTagName('script')[0],
tags = document.createElement('script');
function stgCreateCookie(a, b, c) {
var d = '';
if (c) {
var e = new Date();
e.setTime(e.getTime() + 24 * c * 60 * 60 * 1e3),
(d = '; expires=' + e.toUTCString());
f = '; SameSite=Strict';
}
document.cookie = a + '=' + b + d + f + '; path=/';
}
var isStgDebug =
(window.location.href.match('stg_debug') ||
document.cookie.match('stg_debug')) &&
!window.location.href.match('stg_disable_debug');
stgCreateCookie('stg_debug', isStgDebug ? 1 : '', isStgDebug ? 14 : -1);
var qP = [];
dataLayerName !== 'dataLayer' &&
qP.push('data_layer_name=' + dataLayerName),
isStgDebug && qP.push('stg_debug');
var qPString = qP.length > 0 ? '?' + qP.join('&') : '';
(tags.async = !0),
(tags.src = 'https://ca.containers.piwik.pro/' + id + '.js' + qPString),
scripts.parentNode.insertBefore(tags, scripts);
!(function (a, n, i) {
a[n] = a[n] || {};
for (var c = 0; c < i.length; c++)
!(function (i) {
(a[n][i] = a[n][i] || {}),
(a[n][i].api =
a[n][i].api ||
function () {
var a = [].slice.call(arguments, 0);
'string' == typeof a[0] &&
window[dataLayerName].push({
event: n + '.' + i + ':' + a[0],
parameters: [].slice.call(arguments, 1),
});
});
})(i[c]);
})(window, 'ppms', ['tm', 'cm']);
})(window, document, 'dataLayer', 'f84f7808-9fe5-444d-884d-3f61a5d8b01e');
</script>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-D34FLYKNNR"
Expand Down