Skip to content
Browse files

New: Adding search field to the online user manual.

  • Loading branch information...
1 parent 41248e5 commit 5c41584ed0a6eae9ff201b8e1ef00043d61f377e @scrapper scrapper committed
Showing with 14 additions and 0 deletions.
  1. +14 −0 lib/taskjuggler/SyntaxReference.rb
View
14 lib/taskjuggler/SyntaxReference.rb
@@ -176,7 +176,21 @@ def generateHTMLnavbar(directory, keywords)
head << XMLElement.new('base', 'target' => 'navigator')
html.html << (body = XMLElement.new('body'))
+ body << (divf = XMLElement.new('div'))
+ divf << (form = XMLElement.new(
+ 'form', 'action' => 'http://www.google.com/search',
+ 'method' => "get", 'target' => 'display', 'style' => 'margin:0'))
+ form << XMLElement.new('input', 'type' => 'text',
+ 'value' => '',
+ 'maxlength' => '255',
+ 'size' => '25',
+ 'name' => 'q')
+ form << XMLElement.new('input', 'type' => 'submit', 'value' => 'Search')
+ form << XMLElement.new('input', 'type' => 'hidden',
+ 'value' => 'taskjuggler.org/manual',
+ 'name' => 'sitesearch')
body << (h3 = XMLElement.new('h3'))
+
letters.each do |l|
h3 << XMLNamedText.new(l.upcase, 'a',
'href' => "navbar.html##{l}")

0 comments on commit 5c41584

Please sign in to comment.
Something went wrong with that request. Please try again.