File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,33 @@ Looks like you've taken a wrong turn.
11
11
12
12
Some things that might be helpful to you though:
13
13
14
+ ## Search
15
+ * <form action =" https://duckduckgo.com/ " >
16
+ <input type =" text " id =" code.search " name =" q " size =" 80 " ></input >
17
+ <input type =" submit " value =" Search DuckDuckGo " >
18
+ </form >
19
+
14
20
## Reference
15
21
* [ The Rust official site] ( http://rust-lang.org )
16
22
* [ The Rust reference] ( http://doc.rust-lang.org/reference.html ) (* [ PDF] ( http://doc.rust-lang.org/reference.pdf ) )
17
23
18
24
## Docs
19
25
* [ The standard library] ( http://doc.rust-lang.org/std/ )
26
+
27
+ <script >
28
+ function populate_search_box () {
29
+
30
+ var last = document .URL .split (" /" ).pop ();
31
+ var tokens = last .split (" ." );
32
+ var op = [];
33
+ for (var i= 0 ; i < tokens .length ; i++ ) {
34
+ if (tokens[i].indexOf (" #" ) == - 1 )
35
+ op .push (tokens[i]);
36
+ }
37
+
38
+ var search = document .getElementById (' code.search' );
39
+ search .value = op .join (' ' ) + " site:doc.rust-lang.org" ;
40
+ }
41
+ populate_search_box ();
42
+ </script >
43
+
You can’t perform that action at this time.
0 commit comments