File tree Expand file tree Collapse file tree 3 files changed +18
-19
lines changed Expand file tree Collapse file tree 3 files changed +18
-19
lines changed Original file line number Diff line number Diff line change 6
6
< link type ="text/css " href ="css/custom-theme/jquery-ui-1.8.21.custom.css " rel ="stylesheet " />
7
7
< script type ="text/javascript " src ="js/jquery-1.7.2.min.js "> </ script >
8
8
< script type ="text/javascript " src ="js/jquery-ui-1.8.21.custom.min.js "> </ script >
9
- < script type ="text/javascript ">
10
- function display ( ) {
11
- var iframe_doc = $ ( "#buffer" ) . get ( ) [ 0 ] . contentDocument ;
12
- $ ( "#display" ) . html ( iframe_doc . body . innerHTML ) ;
13
- }
14
- $ ( function ( ) {
15
- $ ( "#query" ) . autocomplete ( {
16
- source : [
17
- ITEMS
18
- ] ,
19
- select : function ( event , ui ) {
20
- $ ( "#buffer" ) . attr ( "src" , ui . item . url ) ;
21
- }
22
- } ) . focus ( ) ;
23
- } ) ;
24
- </ script >
9
+ < script type ="text/javascript " src ="js/search.js "> </ script >
25
10
< style type ="text/css ">
26
11
# buffer { height : 0 ; width : 0 ; border : none; }
27
12
noscript p { padding : .5em ; }
Original file line number Diff line number Diff line change @@ -422,8 +422,8 @@ (Bool :$debug, Bool :$typegraph = False)
422
422
}
423
423
424
424
sub write-search-file ($ dr ) {
425
- say ' Writing html/search.html ...' ;
426
- my $ template = slurp (" search_template.html " );
425
+ say ' Writing html/js/ search.js ...' ;
426
+ my $ template = slurp (" search_template.js " );
427
427
my @ items ;
428
428
my sub fix-url ($ raw ) { $ raw . substr (1 ) ~ ' .html' };
429
429
@ items . push : $ dr . lookup(' language' , : by<kind >). sort (*. name ). map ({
@@ -444,7 +444,7 @@ (Bool :$debug, Bool :$typegraph = False)
444
444
});
445
445
446
446
my $ items = @ items . join (" ,\n " );
447
- spurt (" html/search.html " , $ template . subst (" ITEMS" , $ items ));
447
+ spurt (" html/js/ search.js " , $ template . subst (" ITEMS" , $ items ));
448
448
}
449
449
450
450
my % operator_disambiguation_file_written ;
Original file line number Diff line number Diff line change
1
+ function display ( ) {
2
+ var iframe_doc = $ ( "#buffer" ) . get ( ) [ 0 ] . contentDocument ;
3
+ $ ( "#display" ) . html ( iframe_doc . body . innerHTML ) ;
4
+ }
5
+ $ ( function ( ) {
6
+ $ ( "#query" ) . autocomplete ( {
7
+ source : [
8
+ ITEMS
9
+ ] ,
10
+ select : function ( event , ui ) {
11
+ $ ( "#buffer" ) . attr ( "src" , ui . item . url ) ;
12
+ }
13
+ } ) . focus ( ) ;
14
+ } ) ;
You can’t perform that action at this time.
0 commit comments