export const templateQuizBranchToPages = {
drawflow: {
Home: {
data: {
"2": {
id: 2,
name: "Untitled Page",
data: {
title: "Untitled Page",
},
class: "page",
typenode: false,
inputs: {
input_1: { connections: [{ node: "6", input: "output_1" }] },
},
outputs: {
output_1: { connections: [{ node: "3", output: "input_1" }] },
},
pos_x: 28,
pos_y: 155,
},
"3": {
id: 3,
name: "Untitled Branch",
data: {
title: "Untitled Branch",
},
class: "branch",
typenode: false,
inputs: {
input_1: { connections: [{ node: "2", input: "output_1" }] },
},
outputs: {
output_1: { connections: [{ node: "5", output: "input_1" }] },
output_2: { connections: [{ node: "6", output: "input_1" }] },
},
pos_x: 436.6666666666667,
pos_y: 152,
},
"5": {
id: 5,
name: "Untitled Popup",
data: {
title: "Right Answer Popup",
},
class: "popup",
typenode: false,
inputs: {
input_1: { connections: [{ node: "3", input: "output_1" }] },
},
outputs: {
output_1: { connections: [{ node: "7", output: "input_1" }] },
},
pos_x: 1016,
pos_y: 41,
},
"6": {
id: 6,
name: "Untitled Popup",
data: {
title: "Wrong Answer Popup",
},
class: "popup",
typenode: false,
inputs: {
input_1: { connections: [{ node: "3", input: "output_2" }] },
},
outputs: {
output_1: { connections: [{ node: "2", output: "input_1" }] },
},
pos_x: 1018.6666666666666,
pos_y: 271.6666666666667,
},
"7": {
id: 7,
name: "Untitled Page",
data: {
title: "Untitled Page",
},
class: "page",
typenode: false,
inputs: {
input_1: { connections: [{ node: "5", input: "output_1" }] },
},
outputs: { output_1: { connections: [] } },
pos_x: 1491,
pos_y: 12,
},
},
},
},
containers: [
{
tagName: "webwriter-gamebook-page",
attributes: [
{ name: "id", value: "ww-4a2e906e-7974-4ba0-aae6-1afc2337aef6" },
{ name: "class", value: "ww-widget ww-v0.0.4" },
{ name: "style", value: "display: none;" },
{ name: "tabindex", value: "-1" },
{ name: "drawflownodeid", value: "2" },
{ name: "pagetitle", value: "Untitled Page" },
{ name: "originpage", value: "0" },
{ name: "branchesoff", value: "3" },
{ name: "contenteditable", value: "" },
],
innerHTML:
' What is Pythagoras\' theorem? The sum of the angles in a triangle is 180 degrees. The area of a circle is πr². In a right-angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides. The circumference of a circle is 2πr.
Amazing! Good job.
Sorry, your answer is wrong. Better luck next time.
Ask more questions here!
", }, ], };