lf_check.py : show the copy when hovering

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-12-04 10:26:37 -07:00
parent ab608f1dc2
commit 5f753e6b51

View File

@@ -1126,20 +1126,23 @@ NOTE: Diagrams are links in dashboard""".format(ip_qa=ip, qa_url=qa_url)
self.html_results += """<td></td>""" self.html_results += """<td></td>"""
self.html_results += """</tr>""" self.html_results += """</tr>"""
# TODO - plase copy button at end and selectable , so # TODO - place copy button at end and selectable , so
# individual sections may be copied # individual sections may be copied
if command != short_cmd: if command != short_cmd:
'''self.html_results += f"""<tr><td colspan='8' class='scriptdetails'> # Hover and copy button snows up
self.html_results += f"""<tr><td colspan='8' class='scriptdetails'>
<span class='copybtn'>Copy</span> <span class='copybtn'>Copy</span>
<tt onclick='copyTextToClipboard(this)'>{command}</tt> <tt onclick='copyTextToClipboard(this)'>{command}</tt>
</td></tr> </td></tr>
""".format(command=command)''' """.format(command=command)
self.html_results += f"""<tr><td colspan='8' class='scriptdetails'> # TODO - place a point button for not have the copy
# hover, no copy button
'''self.html_results += f"""<tr><td colspan='8' class='scriptdetails'>
<tt onclick='copyTextToClipboard(this)'>{command}</tt> <tt onclick='copyTextToClipboard(this)'>{command}</tt>
</td></tr> </td></tr>
""".format(command=command) """.format(command=command)
'''
# nocopy # nocopy - example
''' '''
self.html_results += f"""<tr><td colspan='8' class='scriptdetails'> self.html_results += f"""<tr><td colspan='8' class='scriptdetails'>
<tt>{command}</tt> <tt>{command}</tt>