Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 24 additions & 26 deletions powerindex/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1>The Power Viewer</h1>
</ul>
{% if script_content %}
<div class="script-content">
<h3>
<h3 data-script-name="{{ selected_script }}">
<button class="execute-button" onclick="executeScript('{{ selected_script }}')">Execute</button>
{{ selected_script }}
</h3>
Expand Down Expand Up @@ -97,34 +97,32 @@ <h4>Headers</h4>
<pre id="headers"></pre>
</div>
</div>

<h2>Configuration</h2>
<input type="text"
id="configSearch"
class="config-search"
placeholder="Search configuration..."
onkeyup="searchConfig()">
<table id="configTable">
<thead>
<tr>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody>
{% for key, value in config.items() %}
<tr>
<td>{{ key }}</td>
<td>{{ value }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
</div>

<div class="config-table">
<h2>Configuration</h2>
<input type="text"
id="configSearch"
class="config-search"
placeholder="Search configuration..."
onkeyup="searchConfig()">
<table id="configTable">
<thead>
<tr>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody>
{% for key, value in config.items() %}
<tr>
<td>{{ key }}</td>
<td>{{ value }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>

<script src="{{ url_for('static', filename='script.js') }}"></script>
Expand Down