forked from Botanical/BotanJS
Minor adjustments
This commit is contained in:
parent
2b5ab65b20
commit
c0ab22eaee
@ -144,6 +144,12 @@
|
||||
{
|
||||
var t = ae_stitles[i];
|
||||
var p = ae_panel_section[i];
|
||||
// If they are snippets or sections
|
||||
if( i == 2 || i == 3 )
|
||||
{
|
||||
p.style.height = "auto";
|
||||
continue;
|
||||
}
|
||||
t.addEventListener( "Click", function( e )
|
||||
{
|
||||
var p = this.p;
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
, getVimeoThumbnail = function (vtag)
|
||||
{
|
||||
getData("http://vimeo.com/api/oembed.json?url=http%3A//vimeo.com/" + vtag.getAttribute("data-value"), setThumbnail.bind(vtag), noThumb.bind(vtag));
|
||||
getData("https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/" + vtag.getAttribute("data-value"), setThumbnail.bind(vtag), noThumb.bind(vtag));
|
||||
}
|
||||
|
||||
, noThumb = function ()
|
||||
@ -92,7 +92,7 @@
|
||||
, new DataKey("type", i)
|
||||
, new IKey("style"
|
||||
, "width: 640px; height: 390px;"
|
||||
+ ( (i[0] == "v") ? "" : ("background: black url(http://img.youtube.com/vi/" + v + "/hqdefault.jpg) no-repeat center center;") )
|
||||
+ ( (i[0] == "v") ? "" : ("background: black url(https://img.youtube.com/vi/" + v + "/hqdefault.jpg) no-repeat center center;") )
|
||||
)
|
||||
]
|
||||
);
|
||||
|
@ -64,6 +64,15 @@
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.b_entry .top-date {
|
||||
float: right;
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
.b_entry .top-date:hover {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.b_date, .b_mdate {
|
||||
text-align: right;
|
||||
}
|
||||
|
@ -1 +1,28 @@
|
||||
// __namespace( "Astro.Blog.Components.Entry.Blog" );
|
||||
(function(){
|
||||
var ns = __namespace( "Astro.Blog.Components.Entry.Blog" );
|
||||
|
||||
/** @type {Dandelion} */
|
||||
var Dand = __import( "Dandelion" );
|
||||
/** @type {Astro.Bootstrap} */
|
||||
var Bootstrap = __import( "Astro.Bootstrap" );
|
||||
/** @type {Astro.utils.Date} */
|
||||
var XDate = __import( "Astro.utils.Date" );
|
||||
/** @type {System.Debug} */
|
||||
var debug = __import( "System.Debug" );
|
||||
|
||||
var init = function()
|
||||
{
|
||||
var entry = Dand.id( "b_entry", true );
|
||||
|
||||
var time = new Date( entry.getDAttribute( "time" ) );
|
||||
entry.element.insertBefore(
|
||||
Dand.wrapc(
|
||||
"top-date"
|
||||
, Dand.textNode( XDate.chinese( time ) )
|
||||
)
|
||||
, entry.first( 1 )
|
||||
);
|
||||
};
|
||||
|
||||
Bootstrap.regInit( init );
|
||||
})();
|
||||
|
@ -75,7 +75,7 @@
|
||||
}
|
||||
|
||||
.vertical-text.source {
|
||||
height: 400px;
|
||||
height: 360px;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
visibility: hidden;
|
||||
|
@ -30,7 +30,7 @@
|
||||
type = type.split( "_" )[0];
|
||||
|
||||
// showVimeoPlayer / showYoutubePlayer
|
||||
var cfunc = function( e ) { createPlayer( this.vid, "http://www.youtube.com/embed/" ); };
|
||||
var cfunc = function( e ) { createPlayer( this.vid, "https://www.youtube.com/embed/" ); };
|
||||
|
||||
if( type[0] == "v" )
|
||||
{
|
||||
@ -83,7 +83,7 @@
|
||||
var getVimeoThumbnail = function ( vtag )
|
||||
{
|
||||
getData(
|
||||
"http://vimeo.com/api/oembed.json?url=http%3A//vimeo.com/" + vtag.getAttribute( "value" )
|
||||
"https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/" + vtag.getAttribute( "value" )
|
||||
, parseObj.bind( vtag )
|
||||
, noThumb.bind( vtag )
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user