Minor adjustments

This commit is contained in:
斟酌 鵬兄 2016-02-07 05:20:41 +08:00
parent 2b5ab65b20
commit c0ab22eaee
6 changed files with 48 additions and 6 deletions

View File

@ -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;

View File

@ -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;") )
)
]
);

View File

@ -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;
}

View File

@ -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 );
})();

View File

@ -75,7 +75,7 @@
}
.vertical-text.source {
height: 400px;
height: 360px;
border: 0;
padding: 0;
visibility: hidden;

View File

@ -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 )
);