Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
92905e88
Commit
92905e88
authored
Oct 24, 2016
by
Jonathan Wilkes
Browse files
Merge branch 'aggraef/purr-data-improved-toc'
parents
fde50f6d
09cf5e35
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/dialog_search.html
View file @
92905e88
...
...
@@ -88,7 +88,7 @@ var toc = [
// Pd-L2Ork extras
{
id
:
"
doc/4.data.structures/pd-l2ork/ds-tutorials
"
,
title
:
"
Pd-
l2o
rk Data Structures
"
,
title
:
"
Pd-
L2O
rk Data Structures
"
,
description
:
"
new and improved data structure visualizations
"
},
// PDDP tutorials
...
...
@@ -108,7 +108,7 @@ var toc = [
{
id
:
"
doc/manuals/2.Image
"
,
title
:
"
Image
"
,
description
:
"
3D graphics with GEM
"
description
:
"
3D graphics with GEM
(Windows and Linux only)
"
},
{
id
:
"
doc/manuals/3.Networking
"
,
...
...
@@ -127,12 +127,16 @@ var toc = [
title
:
"
Cyclone
"
,
description
:
"
library of clones of Max/MSP 4.x objects
"
},
// Gem isn't currently running on OSX, so we don't list it here
// {
// id: "extra/Gem",
// title: "GEM",
// description: "Graphics Environment for Multimedia (OpenGL graphics in Pd)"
// },
{
id
:
"
extra/disis
"
,
title
:
"
DISIS
"
,
description
:
"
DISIS externals (Linux only)
"
},
{
id
:
"
extra/Gem
"
,
title
:
"
GEM
"
,
description
:
"
Graphics Environment for Multimedia (Windows and Linux only)
"
},
{
id
:
"
extra/lyon
"
,
title
:
"
LyonPotpourri
"
,
...
...
@@ -217,17 +221,22 @@ function display_toc() {
toc
.
forEach
(
function
(
doc
,
i
,
a
)
{
div
=
document
.
createElement
(
"
div
"
);
if
(
doc
.
id
)
{
a
=
document
.
createElement
(
"
a
"
);
a
.
href
=
"
javascript: click_toc('
"
+
doc
.
id
+
"
');
"
;
a
.
textContent
=
doc
.
title
;
// set title to path for tooltip
a
.
title
=
doc
.
id
;
header
=
document
.
createElement
(
"
h3
"
);
header
.
appendChild
(
a
);
div
.
appendChild
(
header
);
if
(
doc
.
description
)
{
text_node
=
document
.
createTextNode
(
doc
.
description
);
div
.
appendChild
(
text_node
);
try
{
fs
.
accessSync
(
path
.
join
(
pdgui
.
get_lib_dir
(),
doc
.
id
),
fs
.
F_OK
);
a
=
document
.
createElement
(
"
a
"
);
a
.
href
=
"
javascript: click_toc('
"
+
doc
.
id
+
"
');
"
;
a
.
textContent
=
doc
.
title
;
// set title to path for tooltip
a
.
title
=
doc
.
id
;
header
=
document
.
createElement
(
"
h3
"
);
header
.
appendChild
(
a
);
div
.
appendChild
(
header
);
if
(
doc
.
description
)
{
text_node
=
document
.
createTextNode
(
doc
.
description
);
div
.
appendChild
(
text_node
);
}
}
catch
(
e
)
{
// entry doesn't exist, ignore it
}
}
else
{
// make a session title
...
...
@@ -236,7 +245,9 @@ function display_toc() {
header
.
appendChild
(
text_node
);
div
.
appendChild
(
header
);
}
results_elem
.
appendChild
(
div
);
if
(
div
.
hasChildNodes
())
{
results_elem
.
appendChild
(
div
);
}
});
}
...
...
Write
Preview
Supports
Markdown
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