mirror of
				https://gitlab.com/parroquia-san-leandro/cancionero-web.git
				synced 2025-11-04 07:08:38 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			110 lines
		
	
	
		
			No EOL
		
	
	
		
			5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			110 lines
		
	
	
		
			No EOL
		
	
	
		
			5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
<html lang="es">
 | 
						|
    <head>
 | 
						|
        {% include "head.html" with path=".." only %}
 | 
						|
        <link rel="stylesheet" type="text/css" href="../song.css"/>
 | 
						|
        <script async src="../transpose.js"></script>
 | 
						|
        <script async src="../sizes.js"></script>
 | 
						|
    </head>
 | 
						|
    <body>
 | 
						|
        {% include "header.html" with path=".." %}
 | 
						|
        <div class="song">
 | 
						|
            <h2>{{ song.name}}</h2>
 | 
						|
            {% if song.author %}
 | 
						|
            <div>Autor: {{ song.author }}</div>
 | 
						|
            {% endif %}
 | 
						|
            {% if song.origin %}
 | 
						|
            <div>Basada en: {{ song.origin }}</div>
 | 
						|
            {% endif %}
 | 
						|
            <h3>Ajustes</h3>
 | 
						|
            <div>
 | 
						|
                <label>Cambiar tamaño de letra </label>
 | 
						|
                <button class="small" onclick="size(-1)">-</button>
 | 
						|
                <button class="small" onclick="size(0)">Reset</button>
 | 
						|
                <button class="small" onclick="size(+1)">+</button>
 | 
						|
            </div>
 | 
						|
            {% if song.chorded %}
 | 
						|
            <div>
 | 
						|
                <label>Transponer acordes </label>
 | 
						|
                <button class="small" onclick="transposeAdd(-2)">-2</button>
 | 
						|
                <button class="small" onclick="transposeAdd(-1)">-1</button>
 | 
						|
                <select id="transposeSelect" disabled>
 | 
						|
                    <option onclick="transpose(-6)">-6</option>
 | 
						|
                    <option onclick="transpose(-5)">-5</option>
 | 
						|
                    <option onclick="transpose(-4)">-4</option>
 | 
						|
                    <option onclick="transpose(-3)">-3</option>
 | 
						|
                    <option onclick="transpose(-2)">-2</option>
 | 
						|
                    <option onclick="transpose(-1)">-1</option>
 | 
						|
                    <option onclick="transpose(0)" selected="selected">0</option>
 | 
						|
                    <option onclick="transpose(1)">1</option>
 | 
						|
                    <option onclick="transpose(2)">2</option>
 | 
						|
                    <option onclick="transpose(3)">3</option>
 | 
						|
                    <option onclick="transpose(4)">4</option>
 | 
						|
                    <option onclick="transpose(5)">5</option>
 | 
						|
                    <option onclick="transpose(6)">6</option>
 | 
						|
                </select>
 | 
						|
                <button class="small" onclick="transposeAdd(1)">+1</button>
 | 
						|
                <button class="small" onclick="transposeAdd(2)">+2</button>
 | 
						|
                <button onclick="transpose(0)">Reset</button>
 | 
						|
            </div>
 | 
						|
            {% endif %}
 | 
						|
            {% if song.capo != 0 %}
 | 
						|
            <div>
 | 
						|
                <span class="capo">Tono original: Cejilla {{ song.capo }}</span>
 | 
						|
                <button style="margin-left: 0.5em;" onclick="transpose({{ song.capo}})">Transponer para quitarla</button>
 | 
						|
            </div>
 | 
						|
            {% endif %}
 | 
						|
            <h3>Canción</h3>
 | 
						|
            <div id="wholeSongDiv">
 | 
						|
            {% for verse in song.verses %}
 | 
						|
                <div class="{{ verse.kind }}">
 | 
						|
                {% for line in verse.lines %}
 | 
						|
                    {% spaceless %}
 | 
						|
                    {% for chord, lyric in line.zipped_arr %}
 | 
						|
                    <table class="chordedline">
 | 
						|
                        <tr class="chord">
 | 
						|
                            <td rowspan="{{ chord.rowspan|default:'1' }}">
 | 
						|
                                {% if chord.class %}
 | 
						|
                                <span class="{{ chord.class }}"></span>
 | 
						|
                                {% endif %}
 | 
						|
                                {% for c in chord.chord.items %}
 | 
						|
                                    {% if c.chord %}
 | 
						|
                                        <span class="c">{{ c.text|safe }}</span>
 | 
						|
                                    {% else %}
 | 
						|
                                        <span>{{ c.text|safe }}</span>
 | 
						|
                                    {% endif %}
 | 
						|
                                {% endfor %}
 | 
						|
                            </td>
 | 
						|
                        </tr>
 | 
						|
                        <tr class="lyric">
 | 
						|
                            <td>
 | 
						|
                            {% if 'rowspan' not in chord %}
 | 
						|
                                <span>{{ lyric|safe }}</span>
 | 
						|
                            {% endif %}
 | 
						|
                            </td>
 | 
						|
                        </tr>
 | 
						|
                    </table>
 | 
						|
                    {% endfor %}
 | 
						|
                    {% if not forloop.last %} <br/> {% endif %}
 | 
						|
                    {% endspaceless %}
 | 
						|
                {% endfor %}
 | 
						|
                </div>
 | 
						|
            {% endfor %}
 | 
						|
            </div>
 | 
						|
            {% for audio in audios %}
 | 
						|
                {% if forloop.first %}
 | 
						|
                <h3>Audios</h3>
 | 
						|
                {% endif %}
 | 
						|
                <div>
 | 
						|
                    Audio del {{ audio.date_text }} <a href="{{ audio.audio_file|urlencode }}"><span>Descargar</span></a>
 | 
						|
                    <audio controls style='width: 100%%;'>
 | 
						|
                        <source src='{{ audio.audio_file|urlencode }}' type='audio/mpeg'/>
 | 
						|
                    </audio>
 | 
						|
                </div>
 | 
						|
            {% endfor %}
 | 
						|
            <a href="https://gitlab.com/parroquia-san-leandro/cancionero-25/blob/master/{{ song.latex_file|urlencode }}"><span>Ver archivo original (LaTeX)</span></a>
 | 
						|
            <a href="../"><span>Índice</span></a>
 | 
						|
        </div>
 | 
						|
        {% include "footer.html" %}
 | 
						|
    </body>
 | 
						|
</html> |