Fixed SyntaxHighlighter sometimes not initiating

Removed Penguin/Github
This commit is contained in:
斟酌 鵬兄 2016-04-27 23:44:06 +08:00
parent 4ce1473d1c
commit b816d0cd57
3 changed files with 7 additions and 65 deletions

View File

@ -12,7 +12,6 @@
var inited = false;
var consoleExists = false;
var SyntaxHighlighterExists = false;
var CConsole = "Components.Console";
var SyntaxHighlighter = "Libraries.SyntaxHighlighter";
@ -35,17 +34,6 @@
{
infs[i]();
}
if( SyntaxHighlighterExists )
{
debug.Info( "[SyntaxHighlighter] Initializing" );
/** @type {Libraries.SyntaxHighlighter} */
var synt = __import( SyntaxHighlighter );
synt.defaults["toolbar"] = false;
synt.defaults["quick-code"] = false;
synt.highlight();
}
};
/*{{{ Class Catching */
@ -57,7 +45,13 @@
consoleExists = true;
break;
case SyntaxHighlighter:
SyntaxHighlighterExists = true;
debug.Info( "[SyntaxHighlighter] Initializing" );
/** @type {Libraries.SyntaxHighlighter} */
var synt = __import( SyntaxHighlighter );
synt.defaults["toolbar"] = false;
synt.defaults["quick-code"] = false;
synt.highlight();
break;
}
});

View File

@ -1,44 +0,0 @@
html {
background-color: #E5E4EE;
}
body {
font-family: custom-sans;
width: 1000px;
margin: 0 auto;
}
.center {
text-align: center;
}
.center > * {
display: inline-block;
}
h1 {
font-size: 2.5em;
}
h2 {
font-size: 2em;
}
p {
margin: 0.5em 1em;
}
pre {
background-color: rgba( 0,0,0,0.1);
padding: 0.5em;
}
.left {
text-align: left;
}
ul {
padding: 0.25em 2.5em;
}
div {
padding: 1em;
}

View File

@ -1,8 +0,0 @@
(function(){
var ns = __namespace( "Astro.Penguin.Github" );
/** @type {Astro.Bootstrap} */
var Bootstrap = __import( "Astro.Bootstrap" );
})();