-
Notifications
You must be signed in to change notification settings - Fork 27
Hide buttons generated by the TryExamples
directive by default
#173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 4 commits
1b798e5
37fa0ca
09d48ab
2d46d7f
0e88cbf
d2811f9
0745252
a9c73ba
94ecef4
d015b5f
635a3af
33b9f4e
f3ca349
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ docs/build | |
build | ||
dist | ||
.jupyterlite.doit.db | ||
/.vscode/ | ||
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -468,14 +468,14 @@ def run(self): | |||||
|
||||||
# Button with the onclick event to swap embedded notebook back to examples. | ||||||
go_back_button_html = ( | ||||||
'<button class="try_examples_button" ' | ||||||
'<button class="try_examples_button hidden" ' | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From what I can tell, these buttons are already within a
Suggested change
|
||||||
f"onclick=\"window.tryExamplesHideIframe('{examples_div_id}'," | ||||||
f"'{iframe_parent_div_id}')\">" | ||||||
"Go Back</button>" | ||||||
) | ||||||
|
||||||
full_screen_button_html = ( | ||||||
'<button class="try_examples_button" ' | ||||||
'<button class="try_examples_button hidden" ' | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
f"onclick=\"window.openInNewTab('{examples_div_id}'," | ||||||
f"'{iframe_parent_div_id}')\">" | ||||||
"Open In Tab</button>" | ||||||
|
@@ -484,7 +484,7 @@ def run(self): | |||||
# Button with the onclick event to swap examples with embedded notebook. | ||||||
try_it_button_html = ( | ||||||
'<div class="try_examples_button_container">' | ||||||
'<button class="try_examples_button" ' | ||||||
'<button class="try_examples_button hidden" ' | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
(see other suggestions above) |
||||||
f"onclick=\"window.tryExamplesShowIframe('{examples_div_id}'," | ||||||
f"'{iframe_div_id}','{iframe_parent_div_id}','{iframe_src}'," | ||||||
f"'{height}')\">" | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.