File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < title > Shayne</ title >
7+ < style >
8+ body {
9+ font-family : 'Comic Sans MS' , cursive, sans-serif;
10+ }
11+ # text {
12+ font-size : 24px ;
13+ }
14+ </ style >
15+ </ head >
16+ < body >
17+ < h1 > Welcome to Shayne</ h1 >
18+ < p > An app generated by GPT-4</ p >
19+ < p > Type your text below, and it will be displayed in Comic Sans:</ p >
20+ < input type ="text " id ="inputText " placeholder ="Enter your text here ">
21+ < button onclick ="displayText() "> Submit</ button >
22+ < p id ="text "> </ p >
23+
24+ < script >
25+ function displayText ( ) {
26+ const inputText = document . getElementById ( 'inputText' ) ;
27+ const text = document . getElementById ( 'text' ) ;
28+ text . innerHTML = inputText . value ;
29+ inputText . value = '' ;
30+ }
31+ </ script >
32+ </ body >
33+ </ html >
You can’t perform that action at this time.
0 commit comments