Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 91e8e2af rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Add a menu that does nothing for the moment

parent 5e514829
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!13Dev kubat: More work done on the instance
......@@ -146,6 +146,24 @@ window.onload = () => {
/* Autofill settings */
autoFillSettings();
/* Right click menus */
$('#panelRight')
.on('contextmenu', e => {
var top = e.pageY - 10;
var left = e.pageX - 90;
$('#context-menu-right')
.css({
display: 'block',
top: top,
left: left,
})
.addClass('show');
return false; /* blocks default Webbrowser right click menu */
})
.on('click', () => $('#context-menu-right').removeClass('show').hide());
$('#context-menu a').on('click', () => $(this).parent().removeClass('show').hide());
};
/* Create the left panel */
......
<%# vim: ts=4 syntax=html
The template for the right click menu on the queue %>
<div class="dropdown-menu dropdown-menu-sm" id="context-menu-right">
<a class="dropdown-item" href="#">Pause playback</a>
<a class="dropdown-item" href="#">Unpause playback</a>
<div><hr class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Find kara</a>
<div><hr class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Shuffle queue</a>
<a class="dropdown-item" href="#">Clear queue</a>
</div>
<%# vim: ts=4 syntax=html
The template for the main panels %>
<div id="panelWrapper" class="row" style="margin-bottom: 13px">
<ul
id="panelLeft"
<ul id="panelLeft"
style="padding: 0px; margin-right: 10px"
class="col panel d-flex flex-column bd-highlight mb-3"
></ul>
<ul
id="panelRight"
class="col panel d-flex flex-column bd-highlight mb-3">
</ul>
<ul id="panelRight"
style="padding: 0px; margin-left: 10px"
class="col panel d-flex flex-column bd-highlight mb-3"
></ul>
class="col panel d-flex flex-column bd-highlight mb-3">
</ul>
<%- include('menu/queue.ejs'); %>
</div>
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter