UNPKG

1.08 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var register_script_1 = require("./register-script");
4var 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 // Initialize the widget.
20 BBHELP.HelpWidget.load(config);
21 });
22 };
23 return BBHelp;
24}());
25exports.BBHelp = BBHelp;
26//# sourceMappingURL=help.js.map
\No newline at end of file