@@ -39,9 +39,7 @@ <h1 class="fw-bold">Linear Execution Test Suite</h1>
3939 < div class ="live-preview flex-column ">
4040 < button type ="button " class ="btn btn-primary px-4 "
4141 plugin ="Toastify "
42- Toastify.text ="Step-by-step logic works! "
43- Toastify.duration ="4000 "
44- Toastify.style.background ="linear-gradient(to right, #00b09b, #96c93d) "
42+ Toastify() ='$parse({"message": "Hello from a single object!", "duration": 3000, "style": {"background": "#0d6efd"}}) '
4543 Toastify.showToast() ="">
4644 Trigger Sequential Toast
4745 </ button >
@@ -54,67 +52,6 @@ <h1 class="fw-bold">Linear Execution Test Suite</h1>
5452 </ div >
5553 </ div >
5654
57- <!-- TEST 2: JSON Object + Method Call -->
58- < div class ="card ">
59- < div class ="card-header "> 2. Object-Based Initialization</ div >
60- < div class ="card-body ">
61- < p class ="text-secondary small "> Initializing using a full JSON object, followed immediately by a method call.</ p >
62- < div class ="live-preview flex-column ">
63- < button type ="button " class ="btn btn-dark px-4 "
64- plugin ="Toastify "
65- Toastify() ='{"text": "JSON Object Booted!", "gravity": "bottom", "position": "left"} '
66- Toastify.showToast() ="">
67- Trigger JSON Boot
68- </ button >
69- < div class ="code-block w-100 ">
70- plugin="Toastify" < br >
71- Toastify='{"text": "..."}' < br >
72- $Toastify.showToast()=""
73- </ div >
74- </ div >
75- </ div >
76- </ div >
77-
78- <!-- TEST 3: Interleaved $this and Plugin Logic -->
79- < div class ="card ">
80- < div class ="card-header "> 3. Interleaved Element & Plugin Logic</ div >
81- < div class ="card-body ">
82- < p class ="text-secondary small "> This test changes the button's own style using < code > $this</ code > before triggering the plugin logic.</ p >
83- < div class ="live-preview flex-column ">
84- < button type ="button " class ="btn btn-outline-danger px-4 "
85- $this.style.borderRadius ="0px "
86- $this.innerText ="Order Processed "
87- plugin ="Toastify "
88- Toastify.text ="Element changed first! "
89- Toastify.showToast() >
90- Change Me & Toast
91- </ button >
92- < div class ="code-block w-100 ">
93- $this.style.borderRadius="0px" < br >
94- plugin="Toastify" < br >
95- Toastify.showToast()=""
96- </ div >
97- </ div >
98- </ div >
99- </ div >
100-
101- <!-- TEST 4: Input State Manipulation -->
102- < div class ="card ">
103- < div class ="card-header "> 4. Input Property Manipulation</ div >
104- < div class ="card-body ">
105- < p class ="text-secondary small "> Directly setting properties on an input element on load.</ p >
106- < div class ="live-preview ">
107- < input type ="text " class ="form-control "
108- $this.value ="CoCreate Linear Engine "
109- $this.style.border ="2px solid #0d6efd "
110- $this.placeholder ="Wait for it... "
111- plugin ="Toastify "
112- Toastify.text ="Input properties applied "
113- Toastify.duration ="2000 "
114- Toastify.showToast() ="">
115- </ div >
116- </ div >
117- </ div >
11855
11956 </ div >
12057
0 commit comments