File tree Expand file tree Collapse file tree 2 files changed +30
-3
lines changed Expand file tree Collapse file tree 2 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
3
< head >
4
- < meta name ="environment " content ="local " />
4
+ < meta name ="environment " content ="production " />
5
5
< meta charset ="UTF-8 " />
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
7
< title > Pastebin</ title >
11
11
--text-color : black;
12
12
--button-bg : # 007bff ;
13
13
--button-hover : # 0056b3 ;
14
+ --submit-bg : # 007bff ; /* Blue color for Submit (default) */
15
+ --submit-hover : # 0056b3 ; /* Darker blue for hover */
16
+ --font-size : 16px ;
14
17
}
15
18
16
19
body .dark-mode {
17
20
--bg-color : # 121212 ;
18
21
--text-color : # ffffff ;
19
22
--button-bg : # ff9800 ;
20
23
--button-hover : # e68900 ;
24
+ --submit-bg : # ff9800 ; /* Dark mode submit color */
25
+ --submit-hover : # e68900 ;
21
26
}
22
27
23
28
body {
82
87
# toggleModeButton : hover {
83
88
background-color : var (--button-hover );
84
89
}
90
+
91
+ /* Submit Button Styling */
92
+ button {
93
+ font-size : 18px ;
94
+ padding : 12px 20px ;
95
+ margin-top : 10px ;
96
+ background-color : var (--submit-bg );
97
+ color : white;
98
+ border : none;
99
+ border-radius : 8px ;
100
+ cursor : pointer;
101
+ transition : background-color 0.3s ease, transform 0.2s ease;
102
+ }
103
+
104
+ button : hover {
105
+ background-color : var (--submit-hover );
106
+ transform : scale (1.05 );
107
+ }
108
+
109
+ button : active {
110
+ transform : scale (1 );
111
+ }
85
112
</ style >
86
113
</ head >
87
114
< body >
@@ -98,6 +125,6 @@ <h1>Pastebin</h1>
98
125
< div id ="responseContainer "> </ div >
99
126
< h2 > latest pastes</ h2 >
100
127
< div id ="latestPasteUrls "> </ div >
101
- < script src ="script .js "> </ script >
128
+ < script src ="pastebinscript .js "> </ script >
102
129
</ body >
103
130
</ html >
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ async function submitText() {
24
24
let content ;
25
25
if ( textData ) {
26
26
content = textData ;
27
- console . log ( `content: {content}` ) ;
28
27
} else {
29
28
alert ( "Please enter text to be saved" ) ;
30
29
return ;
@@ -139,4 +138,5 @@ window.onload = function () {
139
138
} else {
140
139
document . getElementById ( "toggleModeButton" ) . innerHTML = "🌙" ;
141
140
}
141
+ document . getElementById ( "pasteContent" ) . focus ( ) ;
142
142
} ;
You can’t perform that action at this time.
0 commit comments