forked from Botanical/BotanJS
		
	Minor adjustments
This commit is contained in:
		@@ -144,6 +144,12 @@
 | 
				
			|||||||
		{
 | 
							{
 | 
				
			||||||
			var t = ae_stitles[i];
 | 
								var t = ae_stitles[i];
 | 
				
			||||||
			var p = ae_panel_section[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 )
 | 
								t.addEventListener( "Click", function( e )
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				var p = this.p;
 | 
									var p = this.p;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -19,7 +19,7 @@
 | 
				
			|||||||
		
 | 
							
 | 
				
			||||||
		, getVimeoThumbnail = function (vtag)
 | 
							, 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 ()
 | 
							, noThumb = function ()
 | 
				
			||||||
@@ -92,7 +92,7 @@
 | 
				
			|||||||
					, new DataKey("type", i)
 | 
										, new DataKey("type", i)
 | 
				
			||||||
					, new IKey("style"
 | 
										, new IKey("style"
 | 
				
			||||||
						, "width: 640px; height: 390px;"
 | 
											, "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;
 | 
						text-align: right;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.b_entry .top-date {
 | 
				
			||||||
 | 
						float: right;
 | 
				
			||||||
 | 
						opacity: 0.35;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.b_entry .top-date:hover {
 | 
				
			||||||
 | 
						opacity: 0.6;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.b_date, .b_mdate {
 | 
					.b_date, .b_mdate {
 | 
				
			||||||
	text-align: right;
 | 
						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 {
 | 
					.vertical-text.source {
 | 
				
			||||||
    height: 400px;
 | 
					    height: 360px;
 | 
				
			||||||
	border: 0;
 | 
						border: 0;
 | 
				
			||||||
	padding: 0;
 | 
						padding: 0;
 | 
				
			||||||
	visibility: hidden;
 | 
						visibility: hidden;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,7 +30,7 @@
 | 
				
			|||||||
				type = type.split( "_" )[0];
 | 
									type = type.split( "_" )[0];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				// showVimeoPlayer / showYoutubePlayer
 | 
									// 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" )
 | 
									if( type[0] == "v" )
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
@@ -83,7 +83,7 @@
 | 
				
			|||||||
	var getVimeoThumbnail = function ( vtag )
 | 
						var getVimeoThumbnail = function ( vtag )
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		getData(
 | 
							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 )
 | 
								, parseObj.bind( vtag )
 | 
				
			||||||
			, noThumb.bind( vtag )
 | 
								, noThumb.bind( vtag )
 | 
				
			||||||
		);
 | 
							);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user