Browse Source

En la tabla se puede ordenar por canción y álbum

politica
Celestino Rey 1 year ago
parent
commit
d89cb27b7d
3 changed files with 14 additions and 2 deletions
  1. +12
    -0
      LyricsPy/templates/base.html
  2. +1
    -1
      LyricsPy/templates/index.html
  3. +1
    -1
      LyricsPy/templates/search.html

+ 12
- 0
LyricsPy/templates/base.html View File

@ -4,6 +4,8 @@
<meta charset="UTF-8">
<title>My Song Lyrics</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<!-- DataTables CSS -->
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.css">
</head>
<body>
<div class="container">
@ -20,7 +22,17 @@
<hr>
{% block content %}{% endblock %}
</div>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<!-- DataTables JS -->
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.js"></script>
<script>
$(document).ready(function() {
$('#songTable').DataTable();
});
function openTab(evt, tabName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");


+ 1
- 1
LyricsPy/templates/index.html View File

@ -9,7 +9,7 @@
<div id="Songs" class="tabcontent">
<h2>Song List</h2>
{% if songs %}
<table>
<table id="songTable" class="display">
<thead>
<tr>
<th>Title</th>


+ 1
- 1
LyricsPy/templates/search.html View File

@ -4,7 +4,7 @@
<h2>Search Results for "{{ query }}"</h2>
{% if songs %}
<table>
<table id="songTable" class="display">
<thead>
<tr>
<th>Title</th>


Loading…
Cancel
Save