simplify tree generation, restore broken autoscrolling (could use some tweaking)
This commit is contained in:
parent
e875a677bd
commit
303ad7ff7b
|
@ -41,8 +41,8 @@ title: Panning
|
||||||
of these situations, but in the future will offer more.
|
of these situations, but in the future will offer more.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
In addition to the panners, Ardour has a stereo balance control for subtle
|
In addition to the panners, Ardour has a balance control for subtle
|
||||||
corrections to an existing stereo image.
|
corrections to existing stereo images.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{% children %}
|
{% children %}
|
||||||
|
|
|
@ -8,12 +8,15 @@ title: Balance Control
|
||||||
traditional <strong>balance control</strong> by right-clicking on the
|
traditional <strong>balance control</strong> by right-clicking on the
|
||||||
panner widget.
|
panner widget.
|
||||||
</p>
|
</p>
|
||||||
|
<img class="left" src="/images/stereo-balance.png" alt="Stereo Balance
|
||||||
|
control"/>
|
||||||
<p>
|
<p>
|
||||||
When the balance is centered, the incoming signals will be unaffected.
|
When the balance is centered, the incoming signals will be unaffected.
|
||||||
Moving it to one side will linearly attenuate the signal of the opposite
|
Moving it to one side will linearly attenuate the signal of the opposite
|
||||||
side.
|
side.
|
||||||
</p>
|
</p>
|
||||||
<div class="well">
|
<div class="well">
|
||||||
While it is considerably less flexible than the stereo panner, it work
|
While the balance control is considerably less flexible than the stereo
|
||||||
with arbitrary content without the danger of comb filter artefacts.
|
panner, it works with arbitrary content without danger of introducing
|
||||||
|
comb filter artefacts.
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -165,9 +165,9 @@ module Manual
|
||||||
position ? [current, position, level + 1] : [current]
|
position ? [current, position, level + 1] : [current]
|
||||||
end
|
end
|
||||||
|
|
||||||
def sanitize_NMTOKEN(s)
|
# def sanitize_NMTOKEN(s)
|
||||||
'ID'+s.gsub(/[^0-9A-z:_.-]/, '_')
|
# 'ID'+s.gsub(/[^0-9A-z:_.-]/, '_')
|
||||||
end
|
# end
|
||||||
|
|
||||||
def render(context)
|
def render(context)
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ module Manual
|
||||||
|
|
||||||
erb = ::ERB.new <<-HTML
|
erb = ::ERB.new <<-HTML
|
||||||
<dt class="<%= css_classes %>">
|
<dt class="<%= css_classes %>">
|
||||||
<a id="<%= sanitize_NMTOKEN(entry[:url]) %>" href="<%= entry[:url] %>"><%= entry[:menu_title] %></a>
|
<a href="<%= entry[:url] %>"><%= entry[:menu_title] %></a>
|
||||||
</dt>
|
</dt>
|
||||||
<dd class="<%= css_classes %>">
|
<dd class="<%= css_classes %>">
|
||||||
<% if entry[:children].any? %>
|
<% if entry[:children].any? %>
|
||||||
|
@ -225,7 +225,7 @@ module Manual
|
||||||
|
|
||||||
erb = ::ERB.new <<-HTML
|
erb = ::ERB.new <<-HTML
|
||||||
<dt class="<%= css_classes %>">
|
<dt class="<%= css_classes %>">
|
||||||
<a id="<%= sanitize_NMTOKEN(entry[:url]) %>" href="<%= entry[:url] %>"><%= entry[:menu_title] %></a>
|
<a href="<%= entry[:url] %>"><%= entry[:menu_title] %></a>
|
||||||
</dt>
|
</dt>
|
||||||
<dd class="<%= css_classes %>">
|
<dd class="<%= css_classes %>">
|
||||||
</dd>
|
</dd>
|
||||||
|
@ -234,9 +234,18 @@ module Manual
|
||||||
erb.result(binding)
|
erb.result(binding)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
"<dl>#{tree.join}</dl>"
|
"<dl>#{tree.join}</dl>
|
||||||
|
<script type='text/javascript'><!--
|
||||||
|
offset = document.getElementsByClassName('active')[0].offsetTop;
|
||||||
|
height = document.getElementById('tree').clientHeight;
|
||||||
|
if (offset > (height * .7)) {
|
||||||
|
tree.scrollTop = offset - height * .3;
|
||||||
|
}
|
||||||
|
--></script>"
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -271,10 +271,6 @@
|
||||||
white-space:nowrap;
|
white-space:nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content img {
|
|
||||||
margin: 1em 0 1em 0;
|
|
||||||
|
|
||||||
}
|
|
||||||
#content td {
|
#content td {
|
||||||
padding: 0 1em 0 1em;
|
padding: 0 1em 0 1em;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user