forked from Botanical/BotanJS
minor bugfixes
This commit is contained in:
parent
88ad9b8a53
commit
54464ce395
@ -23,6 +23,8 @@
|
|||||||
var IDOMObject = __import( "Dandelion.IDOMObject" );
|
var IDOMObject = __import( "Dandelion.IDOMObject" );
|
||||||
/** @type {Dandelion.IDOMElement} */
|
/** @type {Dandelion.IDOMElement} */
|
||||||
var IDOMElement = __import( "Dandelion.IDOMElement" );
|
var IDOMElement = __import( "Dandelion.IDOMElement" );
|
||||||
|
/** @type {Astro.Blog.Config} */
|
||||||
|
var Conf = __import( "Astro.Blog.Config" );
|
||||||
|
|
||||||
var postData = __import( "System.Net.postData" );
|
var postData = __import( "System.Net.postData" );
|
||||||
var prettyDate = __import( "Astro.utils.Date.pretty" );
|
var prettyDate = __import( "Astro.utils.Date.pretty" );
|
||||||
@ -38,6 +40,9 @@
|
|||||||
, holdingCtrl = false
|
, holdingCtrl = false
|
||||||
, holdingShift = false
|
, holdingShift = false
|
||||||
|
|
||||||
|
/** @type {_AstConf_.SiteFile} */
|
||||||
|
, config = Conf.get( "SiteFile" )
|
||||||
|
|
||||||
, contentPanel = Dand.id("asl_viewer")
|
, contentPanel = Dand.id("asl_viewer")
|
||||||
, canvasView
|
, canvasView
|
||||||
, contextMenu
|
, contextMenu
|
||||||
@ -301,13 +306,13 @@
|
|||||||
)).show();
|
)).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
, copyItemLink = function () { return "http://file.astropenguin.net/blog/site-library/" + canvasView.idata.href; }
|
, copyItemLink = function () { return config.f_host + canvasView.idata.href; }
|
||||||
, copyHash = function () { return canvasView.idata.hash; }
|
, copyHash = function () { return canvasView.idata.hash; }
|
||||||
|
|
||||||
, openAction = function ()
|
, openAction = function ()
|
||||||
{
|
{
|
||||||
if(canvasView.idata.isCollection) openCollection(IDOMElement(canvasView.idata.stage).getDAttribute("id"));
|
if(canvasView.idata.isCollection) openCollection(IDOMElement(canvasView.idata.stage).getDAttribute("id"));
|
||||||
else window.open("http://file.astropenguin.net/blog/site-library/" + canvasView.idata.href);
|
else window.open( config.f_host + canvasView.idata.href);
|
||||||
}
|
}
|
||||||
|
|
||||||
//// ContextMenu Handlers: Selections
|
//// ContextMenu Handlers: Selections
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
"Plain text" , "plain"
|
"Plain text" , "plain"
|
||||||
, "AS3" , "as3"
|
, "AS3" , "as3"
|
||||||
, "bash" , "bash"
|
, "bash" , "bash"
|
||||||
, "C#" , "c#"
|
, "C#" , "csharp"
|
||||||
, "C/C++" , "c"
|
, "C/C++" , "c"
|
||||||
, "CSS" , "css"
|
, "CSS" , "css"
|
||||||
, "php" , "php"
|
, "php" , "php"
|
||||||
@ -111,8 +111,17 @@
|
|||||||
lang = this.lang[this.pSnippeCodeChoice = this.lang.selectedIndex].value;
|
lang = this.lang[this.pSnippeCodeChoice = this.lang.selectedIndex].value;
|
||||||
code = this.code.value;
|
code = this.code.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var langName;
|
||||||
|
for( var i in codeLangs )
|
||||||
|
{
|
||||||
|
if( codeLangs[i].keyValue == lang )
|
||||||
|
{
|
||||||
|
langName = codeLangs[i].keyName;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( submitted && code )
|
if ( submitted && code )
|
||||||
{
|
{
|
||||||
if (!stage)
|
if (!stage)
|
||||||
@ -122,7 +131,7 @@
|
|||||||
"v_box"
|
"v_box"
|
||||||
, [
|
, [
|
||||||
Dand.wrapne( "pre", code )
|
Dand.wrapne( "pre", code )
|
||||||
, Dand.wrapc( "v_description", "Script language: " + lang )
|
, Dand.wrapc( "v_description", "Script language: " + langName )
|
||||||
]
|
]
|
||||||
, [
|
, [
|
||||||
new DataKey( "value", code )
|
new DataKey( "value", code )
|
||||||
@ -146,7 +155,7 @@
|
|||||||
|
|
||||||
temp = stage.lastChild;
|
temp = stage.lastChild;
|
||||||
temp.removeChild( temp.firstChild );
|
temp.removeChild( temp.firstChild );
|
||||||
temp.appendChild( Dand.textNode( "Script language: " + lang ) );
|
temp.appendChild( Dand.textNode( "Script language: " + langName ) );
|
||||||
|
|
||||||
temp = stage;
|
temp = stage;
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ header {
|
|||||||
box-shadow: inset 0 0 10px 0 black;
|
box-shadow: inset 0 0 10px 0 black;
|
||||||
|
|
||||||
background-image: url(http://file.astropenguin.net/blog/layout-images/home.png);
|
background-image: url(http://file.astropenguin.net/blog/layout-images/home.png);
|
||||||
background-position: 50% 0;
|
background-position: 50% 90%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ header {
|
|||||||
left: 0;
|
left: 0;
|
||||||
background-color: rgba( 255, 255, 255, 0.6 );
|
background-color: rgba( 255, 255, 255, 0.6 );
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
.begin-wrapper:before {
|
.begin-wrapper:before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -86,7 +86,7 @@ header {
|
|||||||
|
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
.contact-wrapper {
|
.contact-wrapper {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -25,6 +25,8 @@ a {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sup { vertical-align: super; }
|
||||||
|
|
||||||
a:hover { text-decoration: underline; }
|
a:hover { text-decoration: underline; }
|
||||||
|
|
||||||
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-family: custom-serif; }
|
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-family: custom-serif; }
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
background-color: #0C121B;
|
background-color: #0C121B;
|
||||||
|
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -27,6 +28,11 @@
|
|||||||
padding: 0.2em 0;
|
padding: 0.2em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#commit-message {
|
||||||
|
padding: 1em;
|
||||||
|
background-color: #EEE;
|
||||||
|
}
|
||||||
|
|
||||||
#commit-sha { color: #666; }
|
#commit-sha { color: #666; }
|
||||||
#commit-sha.ok { color: royalblue; }
|
#commit-sha.ok { color: royalblue; }
|
||||||
#commit-sha.failed { color: orangered; }
|
#commit-sha.failed { color: orangered; }
|
||||||
|
Loading…
Reference in New Issue
Block a user