File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,14 @@ <h1 class="display-5 fw-bold">Custom jumbotron</h1>
93
93
>
94
94
Example button
95
95
</ button >
96
+ < button
97
+ class ="btn btn-primary btn-lg "
98
+ type ="button "
99
+ id ="create-div-button "
100
+ onclick ="window.createDiv() "
101
+ >
102
+ Create div button
103
+ </ button >
96
104
</ div >
97
105
</ div >
98
106
@@ -166,6 +174,12 @@ <h2>Add borders</h2>
166
174
window . clickAbsolute = function ( ) {
167
175
console . log ( 3 ) ;
168
176
} ;
177
+ window . createDiv = function ( ) {
178
+ var div = document . createElement ( "div" ) ;
179
+ div . innerHTML = "Later added div" ;
180
+ div . setAttribute ( "id" , "later_added" ) ;
181
+ document . body . appendChild ( div ) ;
182
+ } ;
169
183
</ script >
170
184
< script type ="text/javascript " src ="./dist/intro.js "> </ script >
171
185
</ body >
You can’t perform that action at this time.
0 commit comments