public void addScriptProperties ( Content head ) { HtmlTree javascript = HtmlTree . SCRIPT ( pathToRoot . resolve ( DocPaths . JAVASCRIPT ) . getPath ( ) ) ; head . addContent ( javascript ) ; if ( configuration . createindex ) { if ( pathToRoot != null && script != null ) { String ptrPath = pathToRoot . isEmpty ( ) ? "." : pathToRoot . getPath ( ) ; script . addContent ( new RawHtml ( "var pathtoroot = \"" + ptrPath + "/\";loadScripts(document, \'script\');" ) ) ; } addJQueryFile ( head , DocPaths . JSZIP_MIN ) ; addJQueryFile ( head , DocPaths . JSZIPUTILS_MIN ) ; head . addContent ( new RawHtml ( "<!--[if IE]>" ) ) ; addJQueryFile ( head , DocPaths . JSZIPUTILS_IE_MIN ) ; head . addContent ( new RawHtml ( "<![endif]-->" ) ) ; addJQueryFile ( head , DocPaths . JQUERY_JS_1_10 ) ; addJQueryFile ( head , DocPaths . JQUERY_JS ) ; } }
Add a link to the JavaScript file .