Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Nikolai/Minimize elevio call prod #3279

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
feat: elevio label translation added
  • Loading branch information
nikolai-deriv committed May 24, 2021
commit c21ea3db3525e7296a9fde22efe9bda1dbca2fe6
4 changes: 3 additions & 1 deletion src/common/elevio.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import { getLanguage } from './lang';
const Elevio = (() => {
const elShellId = 'elevio-shell';
let elShell;
let elBtnLabel;
const accountId = '5bbc2de0b7365';
const elevioScript = `https://cdn.elev.io/sdk/bootloader/v4/elevio-bootloader.js?cid=${accountId}`;

const init = () => {
elShell = document.getElementById(elShellId);

elBtnLabel = elShell.querySelector('span');
elBtnLabel.innerText = translate('Load');
elShell.addEventListener('click', () => injectElevio(true));
};

Expand Down
2 changes: 1 addition & 1 deletion templates/partials/elevio.mustache
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div id='elevio-shell'>
<span class='text'>NEED HELP?</span>
<span class='text'></span>
<span class='icon'>
<svg viewBox="0 0 74.2 74.2">
<g>
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy