晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
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/www/wp-content/plugins/uwac/adminframework/fields/easing_editor/ |
Upload File : |
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
/**
*
* Field: Slider
*
* @since 1.0.0
* @version 1.0.0
*
*/
class CSSFramework_Option_easing_editor extends CSSFramework_Options {
public function __construct( $field, $value = '', $unique = '' ) {
parent::__construct( $field, $value, $unique );
}
public function output() {
echo $this->element_before();
$default = '0.400, 0.000, 0.200, 1.000';
if (isset($this->value['easingSelectorType'])){
$customValue = ($this->value['easingSelectorType'] == 'custom') ? $this->value['easingSelector'] : '0.4, 0.0, 0.5, 1.0' ;
}
echo '<div class="cssf-easing-editor">';
echo cssf_add_element( array(
'pseudo' => true,
'type' => 'select',
'options' => [
__('Defaults') => [
'0, 0, 1, 1' => 'linear',
'0.250, 0.100, 0.250, 1.000' => 'ease (default)',
'0.420, 0.000, 1.000, 1.000' => 'ease-in',
'0.000, 0.000, 0.580, 1.000' => 'ease-out',
'0.420, 0.000, 0.580, 1.000' => 'ease-in-out',
],
__('Material Design Easing Curves') => [
'0.400, 0.000, 0.200, 1.000' => 'Fast Out Slow In',
'0.000, 0.000, 0.200, 1.000' => 'Linear Out Slow In',
'0.400, 0.000, 1.000, 1.000' => 'Fast Out Linear In',
'0.400, 0.000, 0.600, 1.000' => 'Ease-in-out',
],
__('Penner Equations (approximated)') => [
'0.550, 0.085, 0.680, 0.530' => 'easeInQuad',
'0.550, 0.055, 0.675, 0.190' => 'easeInCubic',
'0.895, 0.030, 0.685, 0.220' => 'easeInQuart',
'0.755, 0.050, 0.855, 0.060' => 'easeInQuint',
'0.470, 0.000, 0.745, 0.715' => 'easeInSine',
'0.950, 0.050, 0.795, 0.035' => 'easeInExpo',
'0.600, 0.040, 0.980, 0.335' => 'easeInCirc',
'0.600, -0.280, 0.735, 0.045' => 'easeInBack',
'0.250, 0.460, 0.450, 0.940' => 'easeOutQuad',
'0.215, 0.610, 0.355, 1.000' => 'easeOutCubic',
'0.165, 0.840, 0.440, 1.000' => 'easeOutQuart',
'0.230, 1.000, 0.320, 1.000' => 'easeOutQuint',
'0.390, 0.575, 0.565, 1.000' => 'easeOutSine',
'0.190, 1.000, 0.220, 1.000' => 'easeOutExpo',
'0.075, 0.820, 0.165, 1.000' => 'easeOutCirc',
'0.175, 0.885, 0.320, 1.275' => 'easeOutBack',
'0.455, 0.030, 0.515, 0.955' => 'easeInOutQuad',
'0.645, 0.045, 0.355, 1.000' => 'easeInOutCubic',
'0.770, 0.000, 0.175, 1.000' => 'easeInOutQuart',
'0.860, 0.000, 0.070, 1.000' => 'easeInOutQuint',
'0.445, 0.050, 0.550, 0.950' => 'easeInOutSine',
'1.000, 0.000, 0.000, 1.000' => 'easeInOutExpo',
'0.785, 0.135, 0.150, 0.860' => 'easeInOutCirc',
'0.680, -0.550, 0.265, 1.550' => 'easeInOutBack',
],
__('Custom Easing') => [
$customValue => __('Custom Easing')
]
],
'class' => 'easingSelector',
'value' => isset($this->value['easingSelector']) ? $this->value['easingSelector'] : '',
'default' => $default
) );
echo cssf_add_element( array(
'pseudo' => true,
'type' => 'text',
'name' => $this->element_name('[easingSelector]'),
'value' => isset($this->value['easingSelector']) ? $this->value['easingSelector'] : '',
'attributes' => [
'type' => 'hidden',
]
) );
echo cssf_add_element( array(
'pseudo' => true,
'type' => 'text',
'name' => $this->element_name('[easingSelectorType]'),
'value' => isset($this->value['easingSelectorType']) ? $this->value['easingSelectorType'] : '',
'class' => 'easingSelectorType',
'attributes' => [
'type' => 'hidden',
]
) );
echo cssf_add_element( array(
'pseudo' => true,
'type' => 'button',
'name' => $this->element_name('[toggleEditor]'),
'class' => 'cssf-toggle-editor',
'value' => __('Toggle Editor'),
) );
echo '<div class="cssf-easing-editor__graph-outer-wrapper">';
echo '<div class="cssf-easing-editor__graph-wrapper">';
echo '<div class="cssf-easing-editor__graph">';
echo '<a class="knob p0"></a>';
echo '<a class="knob p1"></a>';
echo '<a class="knob p2"></a>';
echo '<a class="knob p3"></a>';
echo '<canvas height="200" width="200" class="cssf-easing-editor__bezierCurve" />';
echo '</div>';
echo '</div>';
echo '<div class="cssf-easing-editor__preview">';
echo '<div class="cssf-easing-editor__preview-box"></div>';
echo '</div>';
echo '<div class="cssf-easing-editor__result">';
echo '<code><span class="cubicBezier">cubic-bezier(<span class="p1X">0</span>, <span class="p1Y">0</span>, <span class="p2X">.25</span>, <span class="p2Y">1</span>)</span></code>';
echo '</div>';
echo '</div>';
echo '</div>';
echo $this->element_after();
}
}