@@ -75,7 +75,10 @@ <h6 class="center">
75
75
</ div >
76
76
< div >
77
77
< h6 > Scrum Report</ h3 >
78
- < textarea name ="" id ="scrumReport " class ="materialize-textarea " style ="min-height: 200px; " placeholder ="Your scrum report will appear here... "> </ textarea >
78
+ < div id ="scrumReport " contenteditable ="true "
79
+ class ="materialize-textarea border-2 border-gray-200 bg-gray-200 rounded-xl text-gray-800 p-2 my-2 "
80
+ style ="min-height: 200px; overflow-y: auto; white-space: pre-wrap; ">
81
+ </ div >
79
82
</ div >
80
83
< div style ="display: flex; justify-content: space-between; gap: 10px; ">
81
84
< button id ="generateReport " class ="btn waves-effect waves-light ">
@@ -109,27 +112,8 @@ <h6>
109
112
</ div >
110
113
< script src ="scripts/jquery-3.2.1.min.js "> </ script >
111
114
< script type ="text/javascript " type ="text/javascript " src ="materialize/js/materialize.min.js "> </ script >
115
+ < script src ="scripts/scrumHelper.js "> </ script >
112
116
< script src ="scripts/main.js "> </ script >
113
- < script >
114
- document . addEventListener ( 'DOMContentLoaded' , function ( ) {
115
- const generateBtn = document . getElementById ( 'generateReport' ) ;
116
- const copyBtn = document . getElementById ( 'copyReport' ) ;
117
-
118
- generateBtn . addEventListener ( 'click' , function ( ) {
119
- this . innerHTML = '<i class="fa fa-spinner fa-spin"></i> Generating...' ;
120
- this . disabled = true ;
121
-
122
- // Call the scrum generation function
123
- window . generateScrumReport ( ) ;
124
- } ) ;
125
-
126
- copyBtn . addEventListener ( 'click' , function ( ) {
127
- const scrumReport = document . getElementById ( 'scrumReport' ) ;
128
- scrumReport . select ( ) ;
129
- document . execCommand ( 'copy' ) ;
130
- Materialize . toast ( 'Report copied to clipboard!' , 3000 ) ;
131
- } ) ;
132
- } ) ;
133
- </ script >
117
+ < script src ="scripts/popup.js "> </ script >
134
118
</ body >
135
119
</ html >
0 commit comments