Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Embedded Genesys UI
Commits
598336aa
Commit
598336aa
authored
Jul 28, 2021
by
Matija Obreza
Browse files
v1.1.0-alpha4
parent
03d5a2d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
598336aa
...
...
@@ -10,13 +10,13 @@ Explore the demo at https://genesys-pgr.p.gitlab.croptrust.org/ui-embedded/
Add Javascript dependencies to your page:
```
html
<script
src=
"https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded@1.1.0-alpha
3
/dist/genesys-deps.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded@1.1.0-alpha
3
/dist/genesys-ui.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded@1.1.0-alpha
4
/dist/genesys-deps.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded@1.1.0-alpha
4
/dist/genesys-ui.js"
></script>
<!-- Recommended: Bootstrap CSS -->
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
/>
<!-- Genesys UI CSS -->
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded@1.1.0-alpha
3
/dist/genesys-deps.css"
/>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded@1.1.0-alpha
4
/dist/genesys-deps.css"
/>
```
Add a container
`<div>`
to your HTML page and initialize the Genesys UI with the
`<script>`
:
...
...
index.html
View file @
598336aa
...
...
@@ -9,7 +9,7 @@
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
integrity=
"sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2"
crossorigin=
"anonymous"
/>
<!-- Genesys UI CSS-->
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded@1.1.0-alpha
3
/dist/genesys-deps.css"
/>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded@1.1.0-alpha
4
/dist/genesys-deps.css"
/>
</head>
<body>
...
...
@@ -60,8 +60,8 @@
felis nec auctor ultrices.
</p>
</div>
<script
src=
"https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded@1.1.0-alpha
3
/dist/genesys-deps.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded@1.1.0-alpha
3
/dist/genesys-ui.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded@1.1.0-alpha
4
/dist/genesys-deps.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded@1.1.0-alpha
4
/dist/genesys-ui.js"
></script>
<script
type=
"text/javascript"
>
// Detect language from query string
const
queryLang
=
document
.
location
.
search
&&
document
.
location
.
search
.
substr
(
1
)
||
undefined
;
...
...
package.json
View file @
598336aa
{
"name"
:
"@genesys-pgr/ui-embedded"
,
"version"
:
"1.1.0-alpha
3
"
,
"version"
:
"1.1.0-alpha
4
"
,
"publishConfig"
:
{
"access"
:
"public"
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment