File tree 2 files changed +26
-0
lines changed
2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ .DS_Store
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 " />
5
+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
+ < title > Jamstack Explorers - Up and Running with Serverless Functions</ title >
8
+ </ head >
9
+ < body >
10
+ < h1 > Up and Running with Serverless Functions</ h1 >
11
+ < button id ="fetch-btn "> Fetch</ button >
12
+ < p id ="response-output "> Response Placeholder</ p >
13
+
14
+ < script >
15
+ document . addEventListener ( 'DOMContentLoaded' , ( ) => {
16
+ const fetchBtn = document . getElementById ( 'fetch-btn' )
17
+ const responseText = document . getElementById ( 'response-output' )
18
+
19
+ fetchBtn . addEventListener ( 'click' , ( ) => {
20
+ responseText . innerText = 'Static Text Replacement'
21
+ } )
22
+ } )
23
+ </ script >
24
+ </ body >
25
+ </ html >
You can’t perform that action at this time.
0 commit comments