1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var register_script_1 = require("./register-script");
|
4 | var BBHelp = (function () {
|
5 | function BBHelp() {
|
6 | }
|
7 | BBHelp.addStyles = function () {
|
8 | var css = "\n .bb-omnibar-bar.bar { padding-right: 50px !important; }\n .bb-omnibar > .bb-omnibar-desktop > .bb-omnibar-accountflyout { right: 50px !important; }\n #bb-help-container { z-index: 9999; }\n ";
|
9 | var style = document.createElement('style');
|
10 | style.type = 'text/css';
|
11 | style.appendChild(document.createTextNode(css));
|
12 | document.head.appendChild(style);
|
13 | };
|
14 | BBHelp.load = function (config) {
|
15 | if (config === void 0) { config = {}; }
|
16 | return register_script_1.registerScript('https://cdn.blackbaudcloud.com/bb-help/bb-help.js')
|
17 | .then(function () {
|
18 | BBHelp.addStyles();
|
19 |
|
20 | BBHELP.HelpWidget.load(config);
|
21 | });
|
22 | };
|
23 | return BBHelp;
|
24 | }());
|
25 | exports.BBHelp = BBHelp;
|
26 |
|
\ | No newline at end of file |