Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Administrator
/
chatgpt.ai-pro.org
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
3
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b8784cd5
authored
2023-09-18 16:59:29 +0800
by
Jerald Lim
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
export
1 parent
99861780
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
6 deletions
client/src/ExportButton.jsx
client/src/ExportButton.jsx
View file @
b8784cd
...
...
@@ -7,23 +7,18 @@ export default function ExportButton({
const
responseToExport
=
()
=>
{
const
response_to_export
=
document
.
querySelector
(
".response-to-export"
);
if
(
!
response_to_export
)
return
;
console
.
log
(
"response_to_export"
,
response_to_export
);
console
.
log
(
"innerText"
,
response_to_export
.
innerText
);
console
.
log
(
"innerText"
,
response_to_export
.
innerHTML
);
return
response_to_export
?.
innerHTML
??
""
;
};
const
generatePDF
=
window
.
generatePDF
;
const
onClickExportToPDF
=
()
=>
{
const
response
=
responseToExport
();
console
.
log
(
"response2"
,
response
);
generatePDF
(
response
,
filename
);
};
const
onClickExportButton
=
()
=>
{
let
modal
=
document
.
querySelector
(
".export-modal-container"
);
const
response
=
responseToExport
();
console
.
log
(
"response"
,
response
);
// if (!response) return;
if
(
!
response
)
return
;
if
(
!
modal
)
{
const
btutil_buildExportModal
=
window
.
btutil_buildExportModal
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment