[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
share
/
doc
/
python3-docs
/
html
/
_static
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 ajax-loader.gif
673 B
SET
[ EDIT ]
|
[ DEL ]
📄 basic.css
10,716 B
SET
[ EDIT ]
|
[ DEL ]
📄 classic.css
4,292 B
SET
[ EDIT ]
|
[ DEL ]
📄 comment-bright.png
756 B
SET
[ EDIT ]
|
[ DEL ]
📄 comment-close.png
829 B
SET
[ EDIT ]
|
[ DEL ]
📄 comment.png
641 B
SET
[ EDIT ]
|
[ DEL ]
📄 copybutton.js
2,718 B
SET
[ EDIT ]
|
[ DEL ]
📄 default.css
28 B
SET
[ EDIT ]
|
[ DEL ]
📄 doctools.js
9,224 B
SET
[ EDIT ]
|
[ DEL ]
📄 documentation_options.js
275 B
SET
[ EDIT ]
|
[ DEL ]
📄 down-pressed.png
222 B
SET
[ EDIT ]
|
[ DEL ]
📄 down.png
202 B
SET
[ EDIT ]
|
[ DEL ]
📄 file.png
286 B
SET
[ EDIT ]
|
[ DEL ]
📄 jquery-3.2.1.js
268,039 B
SET
[ EDIT ]
|
[ DEL ]
📄 jquery.js
86,659 B
SET
[ EDIT ]
|
[ DEL ]
📄 minus.png
90 B
SET
[ EDIT ]
|
[ DEL ]
📄 opensearch.xml
574 B
SET
[ EDIT ]
|
[ DEL ]
📄 plus.png
90 B
SET
[ EDIT ]
|
[ DEL ]
📄 py.png
695 B
SET
[ EDIT ]
|
[ DEL ]
📄 pydoctheme.css
2,971 B
SET
[ EDIT ]
|
[ DEL ]
📄 pygments.css
4,395 B
SET
[ EDIT ]
|
[ DEL ]
📄 searchtools.js
25,449 B
SET
[ EDIT ]
|
[ DEL ]
📄 sidebar.js
6,284 B
SET
[ EDIT ]
|
[ DEL ]
📄 switchers.js
4,735 B
SET
[ EDIT ]
|
[ DEL ]
📄 underscore-1.3.1.js
35,168 B
SET
[ EDIT ]
|
[ DEL ]
📄 underscore.js
12,140 B
SET
[ EDIT ]
|
[ DEL ]
📄 up-pressed.png
214 B
SET
[ EDIT ]
|
[ DEL ]
📄 up.png
203 B
SET
[ EDIT ]
|
[ DEL ]
📄 websupport.js
25,355 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: copybutton.js
$(document).ready(function() { /* Add a [>>>] button on the top-right corner of code samples to hide * the >>> and ... prompts and the output and thus make the code * copyable. */ var div = $('.highlight-python .highlight,' + '.highlight-python3 .highlight') var pre = div.find('pre'); // get the styles from the current theme pre.parent().parent().css('position', 'relative'); var hide_text = 'Hide the prompts and output'; var show_text = 'Show the prompts and output'; var border_width = pre.css('border-top-width'); var border_style = pre.css('border-top-style'); var border_color = pre.css('border-top-color'); var button_styles = { 'cursor':'pointer', 'position': 'absolute', 'top': '0', 'right': '0', 'border-color': border_color, 'border-style': border_style, 'border-width': border_width, 'color': border_color, 'text-size': '75%', 'font-family': 'monospace', 'padding-left': '0.2em', 'padding-right': '0.2em', 'border-radius': '0 3px 0 0' } // create and add the button to all the code blocks that contain >>> div.each(function(index) { var jthis = $(this); if (jthis.find('.gp').length > 0) { var button = $('<span class="copybutton">>>></span>'); button.css(button_styles) button.attr('title', hide_text); button.data('hidden', 'false'); jthis.prepend(button); } // tracebacks (.gt) contain bare text elements that need to be // wrapped in a span to work with .nextUntil() (see later) jthis.find('pre:has(.gt)').contents().filter(function() { return ((this.nodeType == 3) && (this.data.trim().length > 0)); }).wrap('<span>'); }); // define the behavior of the button when it's clicked $('.copybutton').click(function(e){ e.preventDefault(); var button = $(this); if (button.data('hidden') === 'false') { // hide the code output button.parent().find('.go, .gp, .gt').hide(); button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'hidden'); button.css('text-decoration', 'line-through'); button.attr('title', show_text); button.data('hidden', 'true'); } else { // show the code output button.parent().find('.go, .gp, .gt').show(); button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'visible'); button.css('text-decoration', 'none'); button.attr('title', hide_text); button.data('hidden', 'false'); } }); });