晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
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/to-top/admin/js/ |
Upload File : |
(function ($) {
'use strict';
/**
* Custom jQuery functions and trigger events
*/
jQuery(document).ready(function ($) {
$('#setting-error-settings_updated').hide();
// Show Hide Toggle Box
$('.option-content').hide();
$('.open').show();
$('h3.option-toggle').click(function (e) {
e.preventDefault();
if (!$(this).hasClass('option-active')) {
$(this).siblings('.option-content').stop(true, true).hide(400);
$(this).siblings('.option-toggle').removeClass('option-active');
$(this)
.toggleClass('option-active')
.next()
.stop(true, true)
.slideToggle(400);
return false;
}
});
setTimeout(function () {
$('.fade').fadeOut('slow', function () {
$('.fade').remove();
});
}, 2000);
var custom_uploader;
$('.to_top_upload_image').click(function (e) {
e.preventDefault();
var title, this_selector, button_text, attachment;
title = $(this).val();
this_selector = $(this); //For later use
button_text = $(this).attr('ref');
//Extend the wp.media object
custom_uploader = wp.media.frames.file_frame = wp.media({
title: title,
button: {
text: button_text,
},
multiple: true,
});
//When a file is selected, grab the URL and set it as the text field's value
custom_uploader.on('select', function () {
attachment = custom_uploader
.state()
.get('selection')
.first()
.toJSON();
this_selector.prev().val(attachment.url);
});
//Open the uploader dialog
custom_uploader.open();
});
//For Color picker in icon color
var myOptions = {
change: function (event, ui) {
$('.dashicon_to_top_admin').css({
color: ui.color.toString(),
});
},
};
$('.to_top_icon_color').wpColorPicker(myOptions);
//For Color picker in icon background color
var myOptions2 = {
change: function (event, ui) {
$('.dashicon_to_top_admin').css({
'background-color': ui.color.toString(),
});
},
};
$('.to_top_icon_bg_color').wpColorPicker(myOptions2);
$('#to_top_border_radius').change(function () {
$('.dashicon_to_top_admin').css({
'-webkit-border-radius': $('#to_top_border_radius').val() + '%',
'-moz-border-radius': $('#to_top_border_radius').val() + '%',
'border-radius': $('#to_top_border_radius').val() + '%',
});
});
$('#to_top_icon_size').change(function () {
$('.dashicon_to_top_admin').css({
'font-size': $('#to_top_icon_size').val() + 'px',
height: $('#to_top_icon_size').val() + 'px',
width: $('#to_top_icon_size').val() + 'px',
});
});
$('.dashicon_to_top_admin').css({
'-webkit-border-radius': $('#to_top_border_radius').val() + '%',
'-moz-border-radius': $('#to_top_border_radius').val() + '%',
'border-radius': $('#to_top_border_radius').val() + '%',
color: $('.to_top_icon_color').val(),
'background-color': $('.to_top_icon_bg_color').val(),
'font-size': $('#to_top_icon_size').val() + 'px',
height: $('#to_top_icon_size').val() + 'px',
width: $('#to_top_icon_size').val() + 'px',
});
$('#to_top_options_style').change(function () {
var value;
value = $(this).val();
if ('image' == value) {
$('.to_top_image_settings').show();
$('.to_top_icon_settings').hide();
} else {
$('.to_top_icon_settings').show();
$('.to_top_image_settings').hide();
}
});
var value;
value = $('#to_top_options_style').val();
if ('image' == value) {
$('.to_top_image_settings').show();
$('.to_top_icon_settings').hide();
} else {
$('.to_top_icon_settings').show();
$('.to_top_image_settings').hide();
}
});
$(function () {
// Tabs
$('.catchp_widget_settings .nav-tab-wrapper a').on(
'click',
function (e) {
e.preventDefault();
if (!$(this).hasClass('ui-state-active')) {
$('.nav-tab').removeClass('nav-tab-active');
$('.wpcatchtab').removeClass('active').fadeOut(0);
$(this).addClass('nav-tab-active');
var anchorAttr = $(this).attr('href');
$(anchorAttr).addClass('active').fadeOut(0).fadeIn(500);
}
}
);
});
// jQuery Match Height init for sidebar spots
$(document).ready(function () {
$(
'.catchp-sidebar-spot .sidebar-spot-inner, .col-2 .catchp-lists li, .col-3 .catchp-lists li'
).matchHeight();
});
})(jQuery);
jQuery(function ($) {
$('#image-settings').hide();
$('#to_top_options_style').change(function () {
if ($(this).val() == 'image') {
$('#icon-settings').hide();
$('#image-settings').show();
} else {
$('#icon-settings').show();
$('#image-settings').hide();
}
});
});
jQuery(function ($) {
/* CPT switch */
$('.ctp-switch').on('click', function () {
var loader = $(this).parent().next();
loader.show();
var main_control = $(this);
var data = {
action: 'ctp_switch',
value: this.checked,
security: $('#ctp_tabs_nonce').val(),
option_name: main_control.attr('rel'),
};
$.post(ajaxurl, data, function (response) {
response = $.trim(response);
if ('1' == response) {
main_control.parent().parent().addClass('active');
main_control.parent().parent().removeClass('inactive');
} else if ('0' == response) {
main_control.parent().parent().addClass('inactive');
main_control.parent().parent().removeClass('active');
} else {
alert(response);
}
loader.hide();
});
});
/* CPT switch End */
})(
/**
* Facebook Script
*/
(function (d, s, id) {
var js,
fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src =
'//connect.facebook.net/en_US/all.js#xfbml=1&appId=276203972392824';
fjs.parentNode.insertBefore(js, fjs);
})(document, 'script', 'facebook-jssdk')
);
/**
* Twitter Script
*/
!(function (d, s, id) {
var js,
fjs = d.getElementsByTagName(s)[0];
if (!d.getElementById(id)) {
js = d.createElement(s);
js.id = id;
js.src = '//platform.twitter.com/widgets.js';
fjs.parentNode.insertBefore(js, fjs);
}
})(document, 'script', 'twitter-wjs');