提交 b3a8ec78 编写于 作者: J Jost Schmithals

navigation: new tab with right click

上级 f0cace5c
...@@ -50,18 +50,11 @@ h3 { ...@@ -50,18 +50,11 @@ h3 {
margin-left: 20px; margin-left: 20px;
} }
a, li span {
color: #2194CE;
}
a { a {
color: #2194CE;
text-decoration: none; text-decoration: none;
} }
li span {
cursor: pointer;
}
#panel { #panel {
position: fixed; position: fixed;
left: 0px; left: 0px;
......
...@@ -125,7 +125,11 @@ ...@@ -125,7 +125,11 @@
var pageURL = pages[ pageName ]; var pageURL = pages[ pageName ];
var listElement = createAndAppendDOMElement( { type: 'li', parent: categoryContent } ); var listElement = createAndAppendDOMElement( { type: 'li', parent: categoryContent } );
var linkElement = createAndAppendDOMElement( { type: 'span', parent: listElement, content: pageName } ); var linkElement = createAndAppendDOMElement( { type: 'a', parent: listElement, content: pageName } );
// The href attribute is only used for the option to create a new tab by right click
linkElement.setAttribute( 'href', '#' + pageURL );
addClickHandlers( linkElement, pageURL ); addClickHandlers( linkElement, pageURL );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册