квизы на проде
This commit is contained in:
parent
4c7d399c6c
commit
908a67d67c
@ -15,7 +15,7 @@ export default function BannerWidgetShowcase() {
|
||||
script.setAttribute("type", "module");
|
||||
|
||||
script.innerHTML = `
|
||||
import { BannerWidget } from "https://s.hbpn.link/export/pub.js";
|
||||
import { BannerWidget } from "https://hbpn.link/export/pub.js";
|
||||
|
||||
new BannerWidget({
|
||||
quizId: "${quizId}",
|
||||
|
@ -15,7 +15,7 @@ export default function ButtonWidgetShowcase() {
|
||||
script.setAttribute("type", "module");
|
||||
|
||||
script.innerHTML = `
|
||||
import { ButtonWidget, ButtonWidgetFixed } from "https://s.hbpn.link/export/pub.js";
|
||||
import { ButtonWidget, ButtonWidgetFixed } from "https://hbpn.link/export/pub.js";
|
||||
|
||||
new ButtonWidget({
|
||||
quizId: "${quizId}",
|
||||
|
@ -15,7 +15,7 @@ export default function ContainerWidgetShowcase() {
|
||||
script.setAttribute("type", "module");
|
||||
|
||||
script.innerHTML = `
|
||||
import { ContainerWidget } from "https://s.hbpn.link/export/pub.js";
|
||||
import { ContainerWidget } from "https://hbpn.link/export/pub.js";
|
||||
|
||||
new ContainerWidget({
|
||||
selector: "#widget-container",
|
||||
|
@ -15,7 +15,7 @@ export default function PopupWidgetShowcase() {
|
||||
script.setAttribute("type", "module");
|
||||
|
||||
script.innerHTML = `
|
||||
import { PopupWidget } from "https://s.hbpn.link/export/pub.js";
|
||||
import { PopupWidget } from "https://hbpn.link/export/pub.js";
|
||||
|
||||
new PopupWidget({
|
||||
quizId: "${quizId}",
|
||||
|
@ -15,7 +15,7 @@ export default function SideWidgetShowcase() {
|
||||
script.setAttribute("type", "module");
|
||||
|
||||
script.innerHTML = `
|
||||
import { SideWidget } from "https://s.hbpn.link/export/pub.js";
|
||||
import { SideWidget } from "https://hbpn.link/export/pub.js";
|
||||
|
||||
new SideWidget({
|
||||
quizId: "${quizId}",
|
||||
|
@ -32,7 +32,7 @@ export default function QuizContainer({ elementId, quizId }: Props) {
|
||||
}
|
||||
|
||||
const createWidgetScript = (elementId: string, quizId: string) => `
|
||||
import widget from "https://s.hbpn.link/export/pub.js";
|
||||
import widget from "https://hbpn.link/export/pub.js";
|
||||
|
||||
widget.create({
|
||||
selector: "${elementId}",
|
||||
|
Loading…
Reference in New Issue
Block a user