Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd copy code button #141
Add copy code button #141
Conversation
This comment has been minimized.
This comment has been minimized.
|
Return as a List, or even better, consume it in ziparchive.py. |
This comment has been minimized.
This comment has been minimized.
|
Maybe |
This comment has been minimized.
This comment has been minimized.
|
This was intentionally there. Please add it as a rule under the .flake8 file |
This comment has been minimized.
This comment has been minimized.
|
hmph, this is rather breakable. Let's use try/except instead |
This comment has been minimized.
This comment has been minimized.
|
It can be great to assert that there is file named |
- Fix some extractors tests - Fix some issues in .flake8
- Fix all the loggers to be one unified - Fix the loggers to write to a log file
- Fix the loggers to be one unified - Fix the loggers to write to a log file
add rotation every month
- Fix the logger to be a global unified one
- Fix the logger to be one unified
- Added the role of a banned user in the backend - Updated the frontend of a banned user
- Add a template for banned user - Add redirects from pages the banned user can't reach - Added in the backend the request of the banned template
- Added a copy button in order to copy the code in the next code block
| <span id="python-code-copy" style="display:none;">{{- current_file.code}}</span> | ||
| <div id="copy-code"> | ||
| <button class="fa fa-copy" id="copy-button" title="Copy code" style="background-color:white;font-size:20px;"></button> | ||
| <script> |
This comment has been minimized.
This comment has been minimized.
| <div id="copy-code"> | ||
| <button class="fa fa-copy" id="copy-button" title="Copy code" style="background-color:white;font-size:20px;"></button> | ||
| <script> | ||
| document.getElementById("copy-button").addEventListener("click", copy_code); |
This comment has been minimized.
This comment has been minimized.
yammesicka
Sep 7, 2020
Member
Another option: document.getElementsByClassName('.language-python')[0].innerText instead of creating a new element with the whole code in it
| <button class="fa fa-copy" id="copy-button" title="Copy code" style="background-color:white;font-size:20px;"></button> | ||
| <script> | ||
| document.getElementById("copy-button").addEventListener("click", copy_code); | ||
| function copy_code() { |
This comment has been minimized.
This comment has been minimized.
yammesicka
Sep 7, 2020
Member
Looks like the Clipboard API for write has some support in modern browsers, maybe we should try it.
orronai commentedSep 7, 2020
No description provided.