晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
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/stando/public_html/wp-content/themes/betheme/muffin-options/fields/switch/ |
Upload File : |
/**
* bootstrapSwitch v1.3 by Larentis Mattia @spiritualGuru
* http://www.larentis.eu/switch/
*
* Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
!function(e){"use strict";e.fn["bootstrapSwitch"]=function(t){var n={init:function(){return this.each(function(){var t=e(this),n,r,i,s,o="",u=t.attr("class"),a,f,l="ON",c="OFF",h=false;e.each(["switch-mini","switch-small","switch-large"],function(e,t){if(u.indexOf(t)>=0)o=t});t.addClass("has-switch");if(t.data("on")!==undefined)a="switch-"+t.data("on");if(t.data("on-label")!==undefined)l=t.data("on-label");if(t.data("off-label")!==undefined)c=t.data("off-label");if(t.data("icon")!==undefined)h=t.data("icon");r=e("<span>").addClass("switch-left").addClass(o).addClass(a).html(l);a="";if(t.data("off")!==undefined)a="switch-"+t.data("off");i=e("<span>").addClass("switch-right").addClass(o).addClass(a).html(c);s=e("<label>").html(" ").addClass(o).attr("for",t.find("input").attr("id"));if(h){s.html('<i class="'+h+'"></i>')}n=t.find(":checkbox").wrap(e("<div>")).parent().data("animated",false);if(t.data("animated")!==false)n.addClass("switch-animate").data("animated",true);n.append(r).append(s).append(i);t.find(">div").addClass(t.find("input").is(":checked")?"switch-on":"switch-off");if(t.find("input").is(":disabled"))e(this).addClass("deactivate");var p=function(e){e.siblings("label").trigger("mousedown").trigger("mouseup").trigger("click")};t.on("keydown",function(t){if(t.keyCode===32){t.stopImmediatePropagation();t.preventDefault();p(e(t.target).find("span:first"))}});r.on("click",function(t){p(e(this))});i.on("click",function(t){p(e(this))});t.find("input").on("change",function(t){var n=e(this),r=n.parent(),i=n.is(":checked"),s=r.is(".switch-off");t.preventDefault();r.css("left","");if(s===i){if(i)r.removeClass("switch-off").addClass("switch-on");else r.removeClass("switch-on").addClass("switch-off");if(r.data("animated")!==false)r.addClass("switch-animate");r.parent().trigger("switch-change",{el:n,value:i})}});t.find("label").on("mousedown touchstart",function(t){var n=e(this);f=false;t.preventDefault();t.stopImmediatePropagation();n.closest("div").removeClass("switch-animate");if(n.closest(".has-switch").is(".deactivate"))n.unbind("click");else{n.on("mousemove touchmove",function(t){var n=e(this).closest(".switch"),r=(t.pageX||t.originalEvent.targetTouches[0].pageX)-n.offset().left,i=r/n.width()*100,s=25,o=75;f=true;if(i<s)i=s;else if(i>o)i=o;n.find(">div").css("left",i-o+"%")});n.on("click touchend",function(t){var n=e(this),r=e(t.target),i=r.siblings("input");t.stopImmediatePropagation();t.preventDefault();n.unbind("mouseleave");if(f)i.prop("checked",!(parseInt(n.parent().css("left"))<-25));else i.prop("checked",!i.is(":checked"));f=false;i.trigger("change")});n.on("mouseleave",function(t){var n=e(this),r=n.siblings("input");t.preventDefault();t.stopImmediatePropagation();n.unbind("mouseleave");n.trigger("mouseup");r.prop("checked",!(parseInt(n.parent().css("left"))<-25)).trigger("change")});n.on("mouseup",function(t){t.stopImmediatePropagation();t.preventDefault();e(this).unbind("mousemove")})}})})},toggleActivation:function(){e(this).toggleClass("deactivate")},isActive:function(){return!e(this).hasClass("deactivate")},setActive:function(t){if(t)e(this).removeClass("deactivate");else e(this).addClass("deactivate")},toggleState:function(t){var n=e(this).find("input:checkbox");n.prop("checked",!n.is(":checked")).trigger("change",t)},setState:function(t,n){e(this).find("input:checkbox").prop("checked",t).trigger("change",n)},status:function(){return e(this).find("input:checkbox").is(":checked")},destroy:function(){var t=e(this).find("div"),n;t.find(":not(input:checkbox)").remove();n=t.children();n.unwrap().unwrap();n.unbind("change");return n}};if(n[t])return n[t].apply(this,Array.prototype.slice.call(arguments,1));else if(typeof t==="object"||!t)return n.init.apply(this,arguments);else e.error("Method "+t+" does not exist!")}}(jQuery);
/**
* mfnFieldColor
*/
(function($) {
/* globals jQuery */
"use strict";
/**
* $(document).ready
* Specify a function to execute when the DOM is fully loaded.
*/
$(function() {
$("[data-toggle='switch']").wrap('<div class="switch" />').parent().bootstrapSwitch();
});
})(jQuery);