晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
Server : Apache System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64 User : rainic ( 1014) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/tabatabaei/.trash/wp-content.1/plugins/catch-gallery/js/ |
Upload File : |
( function($) {
var TiledGallery = function() {
this.resizeTimeout = null;
this.populate();
var self = this;
$( window ).on( 'resize', function () {
clearTimeout( self.resizeTimeout );
self.resizeTimeout = setTimeout( function () { self.resize(); }, 150 );
} );
// Make any new galleries loaded by Infinite Scroll flexible
$( 'body' ).on( 'post-load', $.proxy( self.initialize, self ) );
// Populate and set up captions on newdash galleries.
$( document ).on( 'page-rendered.wpcom-newdash', $.proxy( self.populate, self ) );
this.resize();
};
TiledGallery.prototype.populate = function() {
this.gallery = $( '.tiled-gallery' );
this.item = this.gallery.find( '.tiled-gallery-item' );
this.caption = this.gallery.find( '.tiled-gallery-caption' );
this.Captions();
};
TiledGallery.prototype.initialize = function() {
var self = this;
self.populate();
// After each image load, run resize in case all images in the gallery are loaded.
self.gallery.find( 'img' ).off( 'load.tiled-gallery' ).on( 'load.tiled-gallery', function () {
self.resize();
} );
// Run resize now in case all images loaded from cache.
self.resize();
};
/**
* Story
*/
TiledGallery.prototype.Captions = function() {
/* Hide captions */
this.caption.hide();
this.item.on( 'mouseleave', function() {
$( this ).find( '.tiled-gallery-caption' ).slideUp( 'fast' );
});
this.item.on( 'mouseenter', function() {
$( this ).find( '.tiled-gallery-caption' ).slideDown( 'fast' );
});
};
TiledGallery.prototype.resize = function() {
var resizeableElements = '.gallery-row, .gallery-group, .tiled-gallery-item img';
this.gallery.each( function ( galleryIndex, galleryElement ) {
var thisGallery = $( galleryElement );
// All images must be loaded before proceeding.
var imagesLoaded = true;
thisGallery.find( 'img' ).each( function () {
if ( ! this.complete ) {
imagesLoaded = false;
return false;
}
} );
if ( ! imagesLoaded ) {
var loadCallback = arguments.callee;
// Once all of the images have loaded,
// re-call this containing function.
$( window ).load( function () {
loadCallback( null, thisGallery );
} );
return;
}
if ( ! thisGallery.data( 'sizes-set' ) ) {
// Maintain a record of the original widths and heights of these elements
// for proper scaling.
thisGallery.data( 'sizes-set', true );
thisGallery.find( resizeableElements ).each( function () {
var thisGalleryElement = $( this );
// Don't change margins, but remember what they were so they can be
// accounted for in size calculations. When the screen width gets
// small enough, ignoring the margins can cause images to overflow
// into new rows.
var extraWidth = ( parseInt( thisGalleryElement.css( 'marginLeft' ), 10 ) || 0 ) + ( parseInt( thisGalleryElement.css( 'marginRight' ), 10 ) || 0 );
var extraHeight = ( parseInt( thisGalleryElement.css( 'marginTop' ), 10 ) || 0 ) + ( parseInt( thisGalleryElement.css( 'marginBottom' ), 10 ) || 0 )
// In some situations, tiled galleries in Firefox have shown scrollbars on the images because
// the .outerWidth() call on the image returns a value larger than the container. Restrict
// widths used in the resizing functions to the maximum width of the container.
var parentElement = $( thisGalleryElement.parents( resizeableElements ).get( 0 ) );
if ( parentElement && parentElement.data( 'original-width' ) ) {
thisGalleryElement
.data( 'original-width', Math.min( parentElement.data( 'original-width' ), thisGalleryElement.outerWidth( true ) ) )
.data( 'original-height', Math.min( parentElement.data( 'original-height' ), thisGalleryElement.outerHeight( true ) ) );
}
else {
thisGalleryElement
.data( 'original-width', thisGalleryElement.outerWidth( true ) )
.data( 'original-height', thisGalleryElement.outerHeight( true ) );
}
thisGalleryElement
.data( 'extra-width', extraWidth )
.data( 'extra-height', extraHeight );
} );
}
// Resize everything in the gallery based on the ratio of the current content width
// to the original content width;
var originalWidth = thisGallery.data( 'original-width' );
var currentWidth = thisGallery.parent().width();
var resizeRatio = Math.min( 1, currentWidth / originalWidth );
thisGallery.find( resizeableElements ).each( function () {
var thisGalleryElement = $( this );
thisGalleryElement
.width( Math.floor( resizeRatio * thisGalleryElement.data( 'original-width' ) ) - thisGalleryElement.data( 'extra-width' ) )
.height( Math.floor( resizeRatio * thisGalleryElement.data( 'original-height' ) ) - thisGalleryElement.data( 'extra-height' ) );
} );
} );
};
/**
* Ready, set...
*/
$( document ).ready( function() {
// Instance!
var TiledGalleryInstance = new TiledGallery;
});
})(jQuery);