Skip to content
Snippets Groups Projects
Commit 635eeeb9 authored by RANWEZ Pierre's avatar RANWEZ Pierre :anchor:
Browse files

:sparkles: feat: popup accordion

parent 2cd21bfd
No related branches found
No related tags found
1 merge request!1✨ feat: CSSLSD V2
...@@ -54,7 +54,11 @@ function setAutocompleteParameters() { ...@@ -54,7 +54,11 @@ function setAutocompleteParameters() {
* Load the editor and add css * Load the editor and add css
*/ */
function loadEditor() { function loadEditor() {
editor = ace.edit("editor"); editor = ace.edit("editor", {
autoScrollEditorIntoView: true,
maxLines: 40,
minLines: 2
});
editor.setTheme("ace/theme/tomorrow_night_blue"); editor.setTheme("ace/theme/tomorrow_night_blue");
editor.session.setMode("ace/mode/css"); editor.session.setMode("ace/mode/css");
editor.getSession().setUseWorker(false); // Disable syntax checking, not working in chrome extension V3 editor.getSession().setUseWorker(false); // Disable syntax checking, not working in chrome extension V3
...@@ -501,3 +505,9 @@ $(document).tooltip({ ...@@ -501,3 +505,9 @@ $(document).tooltip({
placement: 'top left', placement: 'top left',
trigger: 'hover' trigger: 'hover'
}); });
$(function () {
$("#accordion").accordion({
collapsible: true,
heightStyle: "content"
});
});
\ No newline at end of file
...@@ -24,8 +24,9 @@ ...@@ -24,8 +24,9 @@
<div class="audioI"></div> <div class="audioI"></div>
</div> </div>
</div> </div>
<details open>
<summary> <div id="accordion">
<h3>
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-code" class="icon icon-tabler icon-tabler-code"
...@@ -44,11 +45,13 @@ ...@@ -44,11 +45,13 @@
<line x1="14" y1="4" x2="10" y2="20"></line> <line x1="14" y1="4" x2="10" y2="20"></line>
</svg> </svg>
CSSLSD CSSLSD
</summary> </h3>
<div>
<div id="editor"></div> <div id="editor"></div>
</details>
<details open> </div>
<summary>
<h3>
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-variable" class="icon icon-tabler icon-tabler-variable"
...@@ -68,7 +71,8 @@ ...@@ -68,7 +71,8 @@
<path d="M8 16c1.5 0 3 -2 4 -3.5s2.5 -3.5 4 -3.5"></path> <path d="M8 16c1.5 0 3 -2 4 -3.5s2.5 -3.5 4 -3.5"></path>
</svg> </svg>
PARAMETRES PARAMETRES
</summary> </h3>
<div>
<table> <table>
<thead> <thead>
<tr> <tr>
...@@ -90,7 +94,8 @@ ...@@ -90,7 +94,8 @@
> >
</th> </th>
<th> <th>
<a title="r (aleatoire)&#13;d (decimal)&#13;i:1 (increment de 1)" <a
title="r (aleatoire)&#13;d (decimal)&#13;i:1 (increment de 1)"
>Options</a >Options</a
> >
</th> </th>
...@@ -110,9 +115,8 @@ ...@@ -110,9 +115,8 @@
</thead> </thead>
<tbody id="parameters"></tbody> <tbody id="parameters"></tbody>
</table> </table>
</details> </div>
<details> <h3>
<summary>
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-repeat" class="icon icon-tabler icon-tabler-repeat"
...@@ -130,7 +134,8 @@ ...@@ -130,7 +134,8 @@
<path d="M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"></path> <path d="M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"></path>
</svg> </svg>
BOUCLES BOUCLES
</summary> </h3>
<div>
<table width="100%"> <table width="100%">
<thead> <thead>
<tr> <tr>
...@@ -143,9 +148,9 @@ ...@@ -143,9 +148,9 @@
</thead> </thead>
<tbody id="loopList"></tbody> <tbody id="loopList"></tbody>
</table> </table>
</details> </div>
<details>
<summary> <h3>
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-file-text" class="icon icon-tabler icon-tabler-file-text"
...@@ -168,7 +173,8 @@ ...@@ -168,7 +173,8 @@
<line x1="9" y1="17" x2="15" y2="17"></line> <line x1="9" y1="17" x2="15" y2="17"></line>
</svg> </svg>
CHARGER / TELECHARGER CHARGER / TELECHARGER
</summary> </h3>
<div>
<table> <table>
<tr> <tr>
<td> <td>
...@@ -225,7 +231,9 @@ ...@@ -225,7 +231,9 @@
</td> </td>
</tr> </tr>
</table> </table>
</details> </div>
</div>
<p style="text-align: center"> <p style="text-align: center">
&COPY; 2022 - Universite de Lille - <a id="doc">Voir la documentation</a> &COPY; 2022 - Universite de Lille - <a id="doc">Voir la documentation</a>
</p> </p>
......
...@@ -165,7 +165,9 @@ details[open] > *:not(summary) { ...@@ -165,7 +165,9 @@ details[open] > *:not(summary) {
transform: var(--details-translate, translateY(-0.5em)); transform: var(--details-translate, translateY(-0.5em));
} }
} }
summary { h3 {
border-top: rgba(255, 255, 255, 0.3) solid 1px;
padding: 6px;
font-size: 17px; font-size: 17px;
cursor: pointer; cursor: pointer;
} }
...@@ -199,16 +201,18 @@ tbody > tr { ...@@ -199,16 +201,18 @@ tbody > tr {
.icon-tabler-minus { .icon-tabler-minus {
cursor: pointer; cursor: pointer;
} }
.ace_scrollbar {
body::-webkit-scrollbar { right:4px;
width: 6px; }
body::-webkit-scrollbar, .ace_scrollbar::-webkit-scrollbar {
width: 10px;
} }
body::-webkit-scrollbar-track { body::-webkit-scrollbar-track, .ace_scrollbar::-webkit-scrollbar-track {
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
} }
body::-webkit-scrollbar-thumb { body::-webkit-scrollbar-thumb, .ace_scrollbar::-webkit-scrollbar-thumb {
background-color: rgba(255, 255, 255, 0.3); background-color: rgba(255, 255, 255, 0.3);
border-radius: 10px; border-radius: 10px;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment