move noscript hack to scribble-common.js
svn: r9961 original commit: 11973e16dfcee9bb4aac2620d19f5082bc580e84
This commit is contained in:
parent
7b524abcaa
commit
e8189aa62b
|
@ -106,11 +106,6 @@
|
||||||
|
|
||||||
#reader scribble/reader (begin ; easier to format
|
#reader scribble/reader (begin ; easier to format
|
||||||
|
|
||||||
(define mynoscript-setup
|
|
||||||
@inlined-script{
|
|
||||||
document.write('<style>mynoscript { display:none }</style>');
|
|
||||||
})
|
|
||||||
|
|
||||||
(define search-script
|
(define search-script
|
||||||
@inlined-script{
|
@inlined-script{
|
||||||
var search_nodes = null;
|
var search_nodes = null;
|
||||||
|
@ -528,7 +523,6 @@
|
||||||
(meta ([http-equiv "content-type"]
|
(meta ([http-equiv "content-type"]
|
||||||
[content "text-html; charset=utf-8"]))
|
[content "text-html; charset=utf-8"]))
|
||||||
,title
|
,title
|
||||||
,mynoscript-setup
|
|
||||||
,(scribble-css-contents style-file css-path)
|
,(scribble-css-contents style-file css-path)
|
||||||
,(scribble-js-contents script-file script-path))
|
,(scribble-js-contents script-file script-path))
|
||||||
(body () ,@(render-toc-view d ri)
|
(body () ,@(render-toc-view d ri)
|
||||||
|
|
|
@ -39,3 +39,7 @@ function DoSearchKey(event, field) {
|
||||||
location = u + "?q=" + escape(val);
|
location = u + "?q=" + escape(val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// `noscript' is problematic in some browsers (always renders as a
|
||||||
|
// block), use this hack instead
|
||||||
|
document.write("<style>mynoscript { display:none; }</style>");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user