■ ■ ■ ■ ■ ■
GraphSpy/templates/custom_requests.html
| skipped 100 lines |
101 | 101 | | <div class="modal-content"> |
102 | 102 | | <div class="modal-header"> |
103 | 103 | | <h1 class="modal-title fs-5" id="request_template_modal_label">Request Templates</h1> |
104 | | - | <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
| 104 | + | <div style="float: right"> |
| 105 | + | <i class="fi fi-br-expand px-3" id="expand-icon" style="cursor: pointer; float: left; opacity: 0.5"></i> |
| 106 | + | <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
| 107 | + | </div> |
105 | 108 | | </div> |
106 | 109 | | <div class="modal-body"> |
107 | 110 | | <div id="dTable" class="box-body table-responsive" style="padding:20px;"> |
| skipped 262 lines |
370 | 373 | | |
371 | 374 | | $("#response-card").on('click', 'i#copy-icon', function (e) { |
372 | 375 | | copyToClipboard($("#response_body").text()); |
| 376 | + | }) |
| 377 | + | |
| 378 | + | $("#request_template_modal").on('click', 'i#expand-icon', function (e) { |
| 379 | + | $("#request_template_modal").find('.modal-dialog').toggleClass('modal-xl').toggleClass('modal-fullscreen') |
| 380 | + | $("i#expand-icon").toggleClass('fi-br-expand').toggleClass('fi-br-compress') |
373 | 381 | | }) |
374 | 382 | | |
375 | 383 | | </script> |
| skipped 2 lines |