Skip to content
GitLab
Projects
Groups
Snippets
/
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
ad6d8dd6
Commit
ad6d8dd6
authored
Jul 21, 2021
by
Jonathan Wilkes
Browse files
Merge branch 'prakhar/purr-data-close_canvas' into emscripten
parents
f1e4c9a4
c40ecf67
Pipeline
#3687
canceled with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
emscripten/project/purr-data/components/canvas/pd_canvas.html
View file @
ad6d8dd6
<div
id=
"patch"
class=
"patch"
>
<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>
<button
id=
"close-canvas"
type=
"button"
class=
"close"
aria-label=
"Close"
>
<span
class=
"p-2"
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
"rounded"
>
<div
class=
"rounded"
>
<!-- Patch menu -->
<!-- Patch menu -->
<ul
class=
"patch-menu"
id=
"patch-menu"
>
<ul
class=
"patch-menu"
id=
"patch-menu"
>
...
...
emscripten/project/purr-data/index.html
View file @
ad6d8dd6
...
@@ -522,11 +522,11 @@
...
@@ -522,11 +522,11 @@
// Add pd module to pd
// Add pd module to pd
//Clear Console
//
Clear Console
document
.
getElementById
(
"
clear
"
).
addEventListener
(
"
click
"
,
()
=>
{
document
.
getElementById
(
"
clear
"
).
addEventListener
(
"
click
"
,
function
()
{
document
.
getElementById
(
'
p1
'
).
innerHTML
=
''
;
document
.
getElementById
(
"
p1
"
).
innerHTML
=
""
;
});
})
</script>
</script>
<!-- Pd Bundle -->
<!-- Pd Bundle -->
...
...
pd/nw/pd_canvas.js
View file @
ad6d8dd6
...
@@ -2149,6 +2149,9 @@ function load_canvas_menu_actions(name, filename){
...
@@ -2149,6 +2149,9 @@ function load_canvas_menu_actions(name, filename){
minit
(
"
file-close
"
+
name
,
{
minit
(
"
file-close
"
+
name
,
{
onclick
:
function
()
{
pdgui
.
menu_close
(
name
);
}
onclick
:
function
()
{
pdgui
.
menu_close
(
name
);
}
});
});
minit
(
"
close-canvas
"
+
name
,
{
onclick
:
function
()
{
pdgui
.
menu_close
(
name
);
}
});
// Edit entries
// Edit entries
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment