feat: board opacity/background link with the room + start of screenshots feat
This commit is contained in:
parent
cf7fb776bd
commit
69a4b393f5
6 changed files with 106 additions and 28 deletions
|
@ -48,9 +48,10 @@ block header
|
|||
path(d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z")
|
||||
|
||||
block body
|
||||
div(style="margin: 1em;")
|
||||
div(style="margin: 1em;", data-html2canvas-ignore)
|
||||
label(for="opacity-range") Transparence du tableau :
|
||||
input#opacity-range(type="range", min="0", max="1", step="0.01", value="1")
|
||||
input(type="button", name="screenshot", value="Prendre une capture d'écran", onclick="takescreenshot('body')")
|
||||
div.container
|
||||
div.board-container
|
||||
div.board-outline
|
||||
|
@ -62,11 +63,3 @@ block body
|
|||
span(style="font-weight:bold; font-size:16px;") +
|
||||
div#delete-col.col-icon(title="Supprimer une colonne", style="width:20px; height:20px; display:flex; justify-content:center; align-items:center; border:1px solid #000; cursor:pointer; margin-top:4px;")
|
||||
span(style="font-weight:bold; font-size:16px;") −
|
||||
|
||||
script.
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
const slider = document.getElementById('opacity-range');
|
||||
slider.addEventListener('input', function () {
|
||||
document.documentElement.style.setProperty('--board-opacity', slider.value);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -11,7 +11,7 @@ html(lang="fr")
|
|||
body
|
||||
div#site-wrapper
|
||||
div#site-canvas
|
||||
div#site-menu
|
||||
div#site-menu(data-html2canvas-ignore)
|
||||
a.toggle-nav.pull-right.close-link(href="#") Fermer
|
||||
svg(xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16")
|
||||
path(d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z")
|
||||
|
@ -80,8 +80,8 @@ html(lang="fr")
|
|||
input(type="file")#import-input.form-control
|
||||
button#import-file.btn.btn-primary Importer
|
||||
div.credits Logiciel libre basé sur <a href="https://framagit.org/framasoft/framemo">Framemo</a> et <a href="https://github.com/aliasaria/scrumblr">Scrumblr</a> - <a href="https://framagit.org/colibris/framemo">Code source</a>
|
||||
div#header-bar(data-url=locals.headerBarUrl)
|
||||
header.container.main-header
|
||||
div
|
||||
header.container.main-header(data-html2canvas-ignore)
|
||||
div.title
|
||||
a(href="/", title="Retour à la page d'accueil")
|
||||
if locals.logoUrl
|
||||
|
@ -107,4 +107,5 @@ html(lang="fr")
|
|||
script(src="lib/marked.min.js")
|
||||
script(src="lib/moment-with-locales.min.js")
|
||||
script(src="socket.io/socket.io.js")
|
||||
script(src="html2canvas/dist/html2canvas.min.js")
|
||||
script(src="script.js")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue