Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CssLsd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florent Berthaut
CssLsd
Commits
616b102c
Commit
616b102c
authored
3 years ago
by
RANWEZ Pierre
Browse files
Options
Downloads
Patches
Plain Diff
ui: audio midi buttons
parent
1082e0d2
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
✨ feat: CSSLSD V2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
main.js
+2
-6
2 additions, 6 deletions
main.js
popup.html
+3
-4
3 additions, 4 deletions
popup.html
style.css
+4
-1
4 additions, 1 deletion
style.css
with
9 additions
and
11 deletions
main.js
+
2
−
6
View file @
616b102c
...
...
@@ -74,22 +74,18 @@ function initUi() {
audioButton
=
result
.
audioI
;
if
(
result
.
audioI
)
{
$
(
'
.audioI
'
).
addClass
(
'
active
'
);
$
(
'
#audio
'
).
text
(
'
Désactiver le micro
'
);
}
else
{
$
(
'
.audioI
'
).
removeClass
(
'
active
'
);
$
(
'
#audio
'
).
text
(
'
Activer le micro
'
);
}
});
chrome
.
storage
.
sync
.
get
([
'
midiI
'
],
function
(
result
)
{
midiButton
=
result
.
midiI
;
if
(
result
.
midiI
)
{
$
(
'
.midiI
'
).
addClass
(
'
active
'
);
$
(
'
#midi
'
).
text
(
'
Désactiver l
\'
entrée MIDI
'
)
}
else
{
$
(
'
.midiI
'
).
removeClass
(
'
active
'
);
$
(
'
#midi
'
).
text
(
'
Activer l
\'
entrée MIDI
'
)
}
});
}
...
...
@@ -163,7 +159,7 @@ $('#onOff').on('click', function () {
* Activate / Desactivate audio button
*/
$
(
'
#
audio
'
).
on
(
'
click
'
,
function
()
{
$
(
'
.
audio
I
'
).
on
(
'
click
'
,
function
()
{
audioButton
=
!
audioButton
;
chrome
.
storage
.
sync
.
set
({
audioI
:
audioButton
},
function
()
{
});
...
...
@@ -178,7 +174,7 @@ $('#audio').on('click', function () {
* Activate / Desactivate midi button
*/
$
(
'
#
midi
'
).
on
(
'
click
'
,
function
()
{
$
(
'
.
midi
I
'
).
on
(
'
click
'
,
function
()
{
midiButton
=
!
midiButton
;
chrome
.
storage
.
sync
.
set
({
midiB
:
midiButton
},
function
()
{
});
...
...
This diff is collapsed.
Click to expand it.
popup.html
+
3
−
4
View file @
616b102c
...
...
@@ -9,16 +9,15 @@
<div
class=
"infos"
>
<h1>
CssLsd
</h1>
<div
style=
"flex: 1 1 auto;"
></div>
Sur :
<img
style=
"height: 20px; border: solid white 8px;background: white; border-radius: 50%;"
class=
"activateFav"
src=
""
>
Sur :
<img
style=
"height: 20px; border: solid white 8px;background: white; border-radius: 50%;"
class=
"activateFav"
src=
""
>
Midi :
<div
class=
"midiI"
></div>
Audio :
<div
class=
"audioI"
></div>
</div>
<p
id=
"midiEvent"
></p>
<p
>
Control MIDI ID:
<span
id=
"midiEvent"
></
span></
p>
<div
class=
"actions"
>
<button
id=
"onOff"
>
Activer
</button>
<button
id=
"save"
>
Enregister
</button>
<button
id=
"audio"
>
Audio
</button>
<button
id=
"midi"
>
Midi
</button>
</div>
<div
id=
"editor"
></div>
...
...
This diff is collapsed.
Click to expand it.
style.css
+
4
−
1
View file @
616b102c
...
...
@@ -35,7 +35,10 @@ body {
background
:
none
;
border-radius
:
50%
;
}
.midiI
:hover
,
.audioI
:hover
{
background
:
red
;
}
.active
{
border-color
:
red
;
animation
:
heartbeat
1.5s
ease-in-out
infinite
both
;
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment