mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-22 20:55:50 +00:00
Merge pull request #1127 from jakeatdocforce/feedbackwidget-update
Updated feedback widget
This commit is contained in:
43
assets/vendor/custom-widget.js
vendored
43
assets/vendor/custom-widget.js
vendored
File diff suppressed because one or more lines are too long
1
assets/vendor/custom-widget.js.map
vendored
1
assets/vendor/custom-widget.js.map
vendored
File diff suppressed because one or more lines are too long
9
assets/vendor/feedback-widget.js
vendored
Normal file
9
assets/vendor/feedback-widget.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,21 +1,19 @@
|
|||||||
<!-- Feedback Widget -->
|
<!-- Feedback Widget -->
|
||||||
<script src="{{currentpage.prefix}}assets/vendor/custom-widget.js"></script>
|
<script src="{{currentpage.prefix}}assets/vendor/feedback-widget.js"></script>
|
||||||
<div id="feedback-content"></div>
|
<div id="feedback-content"></div>
|
||||||
<script>
|
<script>
|
||||||
const widget = new EmbeddableWidget.default({
|
// Options
|
||||||
|
const options = {
|
||||||
|
analyticsConfig: [
|
||||||
|
{ name: 'ga', id: 'UA-45576805-2' },
|
||||||
|
{ name: 'gtm', id: 'GTM-THHW334' },
|
||||||
|
],
|
||||||
|
analyticsName: 'Feedback Widget Tracker',
|
||||||
theme: 'xrpl',
|
theme: 'xrpl',
|
||||||
opened: false,
|
|
||||||
parentElement: '#feedback-content',
|
|
||||||
currentPath: window.location.pathname,
|
currentPath: window.location.pathname,
|
||||||
adapter: 'ga',
|
parentElement: '#feedback-content',
|
||||||
app:'Feedback Widget',
|
};
|
||||||
adapterConfig:{
|
|
||||||
containerId:"GTM-THHW334",
|
// Init WidgetClass
|
||||||
trackingId:"UA-45576805-2"
|
const r = new WidgetClass(options);
|
||||||
}
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
|
||||||
widget.open();
|
|
||||||
// EmbeddableWidget.default.unmount();
|
|
||||||
}, 2000);
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user