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
2c676f5b
Commit
2c676f5b
authored
3 years ago
by
RANWEZ Pierre
Browse files
Options
Downloads
Patches
Plain Diff
bug: fixs
parent
8f9dfe6c
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
✨ feat: CSSLSD V2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
background.js
+21
-2
21 additions, 2 deletions
background.js
content.js
+2
-0
2 additions, 0 deletions
content.js
with
23 additions
and
2 deletions
background.js
+
21
−
2
View file @
2c676f5b
let
css
=
"
body {
\n\t
background-color: [couleur];
\n
}
\n
h1, h2 {
\n
opacity: [opacité];
\n\t
font-family: [typo];
\n\t
color: rgb([chiffre 0:255],255,255);
\n
}
"
;
let
parameters
=
'
[[
\
"
\
",
\
"typo
\
",
\
"sans-serif;serif;cursive;fantasy
\
",
\
"r
\
",
\
"note:10
\
",
\
"onset:E
\
"],[
\
"
\
",
\
"chiffre
\
",
\
"0:1000
\
",
\
"i:100
\
",
\
"cc:60
\
",
\
"onset:D
\
"],[
\
"
\
",
\
"couleur
\
",
\
"#000:#fff
\
",
\
"d
\
",
\
"cc:60
\
",
\
"loud
\
"],[
\
"
\
",
\
"opacité
\
",
\
"0:1
\
",
\
"d
\
",
\
"cc:60
\
",
\
"hi
\
"]]
'
;
let
css
=
`body {
background-color: [couleur];
}
h1, h2 {
opacity: [opacité];
font-family: [typo];
font-size: [chiffre2 20:100]px;
color: rgb([chiffre 0:255],255,255);
}`
;
let
parameters
=
`[[\" \",\"typo\",\"sans-serif;serif;cursive;fantasy\",\"r\",\"note:10\",\"onset:E\"],[\" \",\"chiffre\",\"0:1000\",\"i:100\",\"cc:60\",\"onset:D\"],[\" \",\"chiffre2\",\"0:200\",\"i:10\",\"cc:60\",\"onset:E\"],[\" \",\"couleur\",\"#000:#fff\",\"d\",\"cc:60\",\"loud\"],[\" \",\"opacité\",\"0:1\",\"d\",\"cc:60\",\"hi\"]]`
;
let
activate
=
false
;
let
activateFav
=
"
ressources/icon256.png
"
;
let
audioB
=
false
;
...
...
@@ -35,3 +43,14 @@ chrome.runtime.onConnect.addListener(function (port) {
});
}
});
function
loopPlay2
()
{
console
.
log
(
'
looooop
'
);
}
chrome
.
runtime
.
onMessage
.
addListener
((
message
,
callback
)
=>
{
// const tabId = getForegroundTabId();
// if (message.data === "loop") {
// chrome.scripting.executeScript({ func: loopPlay2, tabId });
// }
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
content.js
+
2
−
0
View file @
2c676f5b
...
...
@@ -185,6 +185,8 @@ function midiEvent(type, data) {
// Function that play recorded midi loop
function
playMidiLoop
(
loopId
)
{
chrome
.
runtime
.
sendMessage
({
data
:
'
loop
'
});
// if (records[loopId]) {
// playLoopInfo = true;
// while (playLoopInfo && playLoop && records[loopId]['events'].length > 0) {
...
...
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