Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wilkes
purr-data
Commits
8ee0b5ab
Commit
8ee0b5ab
authored
May 24, 2021
by
Prakhar Agarwal
🎯
Browse files
added close icon in canvas
parent
7c4d2a36
Changes
3
Hide whitespace changes
Inline
Side-by-side
emscripten/project/purr-data/components/canvas/pd_canvas.html
View file @
8ee0b5ab
<div
id=
"patch"
class=
"patch"
>
<h6
class=
"text-center patch-filename"
id=
"patch-filename"
></h6>
<div
class=
"d-flex justify-content-between align-items-center"
>
<h6
class=
"patch-filename"
id=
"patch-filename"
style=
"margin-right: auto; margin-left: auto;"
></h6>
<i
id=
"close-canvas"
class=
"fa fa-times text-primary"
style=
"cursor: pointer;"
></i>
</div>
<div
class=
"rounded"
>
<!-- Patch menu -->
<ul
class=
"patch-menu"
id=
"patch-menu"
>
...
...
emscripten/project/purr-data/index.html
View file @
8ee0b5ab
...
...
@@ -518,10 +518,9 @@
// Add pd module to pd
//Clear Console
document
.
getElementById
(
"
clear
"
).
addEventListener
(
"
click
"
,()
=>
{
//
Clear Console
document
.
getElementById
(
"
clear
"
).
addEventListener
(
"
click
"
,
function
clear
(){
document
.
getElementById
(
'
p1
'
).
innerHTML
=
''
;
})
</script>
...
...
pd/nw/pd_canvas.js
View file @
8ee0b5ab
...
...
@@ -2149,6 +2149,9 @@ function load_canvas_menu_actions(name, filename){
minit
(
"
file-close
"
+
name
,
{
onclick
:
function
()
{
pdgui
.
menu_close
(
name
);
}
});
minit
(
"
close-canvas
"
+
name
,
{
onclick
:
function
()
{
pdgui
.
menu_close
(
name
);
}
});
// Edit entries
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment