提交 cc3946f0 编写于 作者: A alexan0308

patch_to_a_way_to_a_scripts_with_an_Syntax_highlighting

上级 3e30a647
......@@ -62,18 +62,18 @@ var onDocumentLoad = function ( event ) {
// Syntax highlighting
var styleBase = document.createElement( 'link' );
styleBase.href = '../../prettify/prettify.css';
styleBase.href = pathname.substring( 0, pathname.indexOf( 'docs' ) + 4 ) + '/prettify/prettify.css';
styleBase.rel = 'stylesheet';
var styleCustom = document.createElement( 'link' );
styleCustom.href = '../../prettify/threejs.css';
styleCustom.href = pathname.substring( 0, pathname.indexOf( 'docs' ) + 4 ) + '/prettify/threejs.css';
styleCustom.rel = 'stylesheet';
document.head.appendChild( styleBase );
document.head.appendChild( styleCustom );
var prettify = document.createElement( 'script' );
prettify.src = '../../prettify/prettify.js';
prettify.src = pathname.substring( 0, pathname.indexOf( 'docs' ) + 4 ) + '/prettify/prettify.js';
prettify.onload = function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册