-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-drupalcontactus.html
103 lines (100 loc) · 4.83 KB
/
index-drupalcontactus.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
<!DOCTYPE html>
<html style="padding: 0; margin: 0" lang="en">
<head>
<title>UQ Library - Reusable Web Components</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="stylesheet" type="text/css" href="https://static.uq.net.au/v15/fonts/Roboto/roboto.css" />
<link
rel="stylesheet"
type="text/css"
href="https://static.uq.net.au/v15/fonts/Merriweather/merriweather.css"
/>
<link rel="stylesheet" type="text/css" href="https://static.uq.net.au/v15/fonts/Montserrat/montserrat.css" />
<style>
body {
padding: 0;
margin: 0;
font-family: 'Roboto', sans-serif;
}
article {
min-height: 300px;
}
article > div {
margin-inline: auto;
max-width: 710px;
padding: 1rem;
}
article h1 {
padding-inline: 1rem;
}
article p {
padding-inline: 1rem;
font-weight: 400;
}
</style>
</head>
<body>
<uq-header hidelibrarymenuitem skipnavid="skiptohere"></uq-header>
<uq-site-header sitetitle="Library Test" siteurl="http://www.library.uq.edu.au">
<span slot="site-utilities">
<auth-button />
</span>
</uq-site-header>
<article style="min-height: 100px; border: 1px solid black">
<h1>Proactive Inline</h1>
<p>Usage: <proactive-chat display="inline" /></p>
<div>
<div class="columns medium-3" style="width: 277.5px">
<div class="pane pane--outline" style="border: 2px solid #eee; padding: 28.8px">
<p style="text-align: center">
<a href="http://support.my.uq.edu.au/app/chat/chat_launch_lib">
<img
alt="Library chat"
height="40"
src="https://web.library.uq.edu.au/files/99050/icon-chat.png"
width="40"
/>
</a>
</p>
<h3 style="text-align: center">Live chat</h3>
<p><span>Our service is available during staffed hours.</span></p>
<div style="text-align: center; margin-inline: auto">
<proactive-chat display="inline" />
</div>
</div>
</div>
</div>
</article>
<uq-footer loginurl="http://library.uq.edu.au"></uq-footer>
<script type="text/javascript" src="applications/drupal/load.js"></script>
<script>
console.log('============================');
console.log('CHECK BRANCH-SPECIFIC LOADER WORKS');
const prodUrl = getScriptPath('applications/drupal/subload.js', 'web.library.uq.edu.au');
if ('https://assets.library.uq.edu.au/reusable-webcomponents/applications/drupal/subload.js' === prodUrl) {
console.log('prod good', prodUrl)
} else {
console.log('PROD BAD', prodUrl)
}
const stagingUrl = getScriptPath('applications/drupal/subload.js', 'assets.library.uq.edu.au', 'reusable-webcomponents-staging');
if ('https://assets.library.uq.edu.au/reusable-webcomponents-staging/applications/drupal/subload.js' === stagingUrl) {
console.log('staging good', stagingUrl)
} else {
console.log('STAGING BAD', stagingUrl)
}
const masterUrl = getScriptPath('applications/drupal/subload.js', 'assets.library.uq.edu.au', 'reusable-webcomponents-development/master');
if ('https://assets.library.uq.edu.au/reusable-webcomponents-development/master/applications/drupal/subload.js' === masterUrl) {
console.log('master good', masterUrl)
} else {
console.log('MASTER BAD', masterUrl)
}
const featureUrl = getScriptPath('applications/drupal/subload.js', 'assets.library.uq.edu.au', 'https://assets.library.uq.edu.au/reusable-webcomponents-development/webpresence-working/index-drupalcontactus.html');
if ('https://assets.library.uq.edu.au/reusable-webcomponents-development/webpresence-working/applications/drupal/subload.js' === featureUrl) {
console.log('feature good', featureUrl)
} else {
console.log('FEATURE BAD', featureUrl)
}
console.log('============================');
</script>
</body>
</html>