Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/accelera.../includes
File: admin-script.js
amp_options_hide_show(thisid);
[2500] Fix | Delete
$(".ampforwp-option-panel-view-pop").remove();
[2501] Fix | Delete
if(thisid=='amp-opt-easy-view'){
[2502] Fix | Delete
$("#radio-c").prop("checked", true);
[2503] Fix | Delete
}else if(thisid=='amp-opt-full-view'){
[2504] Fix | Delete
$("#radio-d").prop("checked", true);
[2505] Fix | Delete
}
[2506] Fix | Delete
});
[2507] Fix | Delete
[2508] Fix | Delete
function amp_left_sub_menu_opt_hs(visibility){
[2509] Fix | Delete
$("#toplevel_page_amp_options .wp-submenu.wp-submenu-wrap li").each(function(){
[2510] Fix | Delete
var t_e_c_v = $(this).children('a').html();
[2511] Fix | Delete
if(t_e_c_v=="Settings" || t_e_c_v=="Design" || t_e_c_v=="Extensions" || t_e_c_v=="Upgrade to Pro" || t_e_c_v=="Import / Export"){
[2512] Fix | Delete
if(visibility==1){
[2513] Fix | Delete
$(this).slideUp();
[2514] Fix | Delete
}else{
[2515] Fix | Delete
$(this).slideDown();
[2516] Fix | Delete
}
[2517] Fix | Delete
}
[2518] Fix | Delete
});
[2519] Fix | Delete
}
[2520] Fix | Delete
[2521] Fix | Delete
amp_left_sub_menu_opt_hs(amp_option_panel_view);
[2522] Fix | Delete
[2523] Fix | Delete
function amp_options_hide_show(id){
[2524] Fix | Delete
var opt_type = 0;
[2525] Fix | Delete
if(id=='amp-opt-easy-view' || id=='radio-c'){
[2526] Fix | Delete
opt_type = 1;
[2527] Fix | Delete
$(".amp-full-view-options").slideUp(0);
[2528] Fix | Delete
}else if(id=='amp-opt-full-view' || id=='radio-d'){
[2529] Fix | Delete
opt_type = 2;
[2530] Fix | Delete
$(".amp-full-view-options").slideDown(0);
[2531] Fix | Delete
}
[2532] Fix | Delete
amp_left_sub_menu_opt_hs(opt_type)
[2533] Fix | Delete
$.ajax({
[2534] Fix | Delete
url: ajaxurl,
[2535] Fix | Delete
method: 'post',
[2536] Fix | Delete
data: {
[2537] Fix | Delete
action: 'ampforwp_set_option_panel_view',
[2538] Fix | Delete
option_type: opt_type,
[2539] Fix | Delete
verify_nonce: ampforwp_nonce.security
[2540] Fix | Delete
},
[2541] Fix | Delete
dataType: 'json',
[2542] Fix | Delete
success: function(response){
[2543] Fix | Delete
[2544] Fix | Delete
}
[2545] Fix | Delete
});
[2546] Fix | Delete
$("body").css({'overflow':'auto'});
[2547] Fix | Delete
$("#1_section_group_li_a").click();
[2548] Fix | Delete
}
[2549] Fix | Delete
$("[data-href='ampforwp-ux-design-section']").on("click", function(){
[2550] Fix | Delete
if($("[name='redux_builder_amp[amp-design-selector]']").val() == '4'){
[2551] Fix | Delete
$('#ampforwp-easy-setup-global-color').show();
[2552] Fix | Delete
}else{
[2553] Fix | Delete
$('#ampforwp-easy-setup-global-color').hide();
[2554] Fix | Delete
}
[2555] Fix | Delete
});
[2556] Fix | Delete
$(".amp-opt-change").on("click", function(){
[2557] Fix | Delete
var thisid = $(this).attr('id');
[2558] Fix | Delete
$(".amp-opt-change").each(function(){
[2559] Fix | Delete
$(this).parent().removeClass('active');
[2560] Fix | Delete
});
[2561] Fix | Delete
if(thisid=='radio-c'){
[2562] Fix | Delete
$(this).parent().addClass('active');
[2563] Fix | Delete
}else if(thisid=='radio-d'){
[2564] Fix | Delete
$(this).parent().addClass('active')
[2565] Fix | Delete
}else{
[2566] Fix | Delete
$(this).parent().removeClass('active');
[2567] Fix | Delete
}
[2568] Fix | Delete
amp_options_hide_show(thisid);
[2569] Fix | Delete
});
[2570] Fix | Delete
$('.ux-setup-icon').on('mouseover', function (event) {
[2571] Fix | Delete
var amp_setup_pending_string = '';
[2572] Fix | Delete
$(".amp-ux-valid-require").each(function(){
[2573] Fix | Delete
if($(this).children().hasClass('btn-red')){
[2574] Fix | Delete
amp_setup_pending_string += $(this).parent('.amp-ux-elem-field').children('.amp-ux-elem-title').html()+", ";
[2575] Fix | Delete
}
[2576] Fix | Delete
});
[2577] Fix | Delete
amp_setup_pending_string = amp_setup_pending_string.replace(/,\s*$/, "");
[2578] Fix | Delete
if($(this).hasClass('amp-ux-warning-okay')){
[2579] Fix | Delete
$(".setup-tt").html("Your setup is now completed.");
[2580] Fix | Delete
}else{
[2581] Fix | Delete
$(".setup-tt").html('Your setup is not completed.<br/>Please setup <i>"'+amp_setup_pending_string+'"</i> section for better AMP Experience.');
[2582] Fix | Delete
}
[2583] Fix | Delete
$('.ampforwp-setup-not-tt').css({'visibility':'visible'});
[2584] Fix | Delete
}).on('mouseout', function (event) {
[2585] Fix | Delete
$('.ampforwp-setup-not-tt').css({'visibility':'hidden'});
[2586] Fix | Delete
});
[2587] Fix | Delete
$('.ux-setup-icon').on('click', function(){
[2588] Fix | Delete
$(".amp-ux-valid-require").each(function(){
[2589] Fix | Delete
if($(this).children().hasClass('btn-red')){
[2590] Fix | Delete
$(this).parent('.amp-ux-elem-field').parent('.amp-ux-section-field').css({'box-shadow': '0px 0px 5px black','padding-left': '15px','padding-right': '15px'});
[2591] Fix | Delete
[2592] Fix | Delete
}
[2593] Fix | Delete
});
[2594] Fix | Delete
setTimeout(function(){ $(".amp-ux-valid-require").parent('.amp-ux-elem-field').parent('.amp-ux-section-field').removeAttr('style'); }, 500);
[2595] Fix | Delete
});
[2596] Fix | Delete
/* Hamburger Library */
[2597] Fix | Delete
function DrawerIcon(icon) {
[2598] Fix | Delete
"use strict";
[2599] Fix | Delete
var ic,
[2600] Fix | Delete
line1,
[2601] Fix | Delete
line2,
[2602] Fix | Delete
line3,
[2603] Fix | Delete
const1 = 1 / 300,
[2604] Fix | Delete
const2 = 1 / 500,
[2605] Fix | Delete
const3 = 2 / 3,
[2606] Fix | Delete
direction = true,
[2607] Fix | Delete
locked = false,
[2608] Fix | Delete
rotateLine,
[2609] Fix | Delete
scaleX,
[2610] Fix | Delete
transY,
[2611] Fix | Delete
transX,
[2612] Fix | Delete
scaleX2,
[2613] Fix | Delete
transX2,
[2614] Fix | Delete
rotateIc,
[2615] Fix | Delete
transformProp = "transform",
[2616] Fix | Delete
transitionProp = "transition",
[2617] Fix | Delete
trZ = "translateZ(0)",
[2618] Fix | Delete
propPrefixCss = "";
[2619] Fix | Delete
[2620] Fix | Delete
function setProperty(elem, property, value) {
[2621] Fix | Delete
elem.style[property] = value;
[2622] Fix | Delete
}
[2623] Fix | Delete
[2624] Fix | Delete
function enableAnimation(duration) {
[2625] Fix | Delete
var transition = propPrefixCss + "transform " + duration + "s ease";
[2626] Fix | Delete
setProperty(line1, transitionProp, transition);
[2627] Fix | Delete
setProperty(line2, transitionProp, transition);
[2628] Fix | Delete
setProperty(line3, transitionProp, transition);
[2629] Fix | Delete
setProperty(ic, transitionProp, transition);
[2630] Fix | Delete
}
[2631] Fix | Delete
[2632] Fix | Delete
function disableAnimation() {
[2633] Fix | Delete
setProperty(line1, transitionProp, "none");
[2634] Fix | Delete
setProperty(line2, transitionProp, "none");
[2635] Fix | Delete
setProperty(line3, transitionProp, "none");
[2636] Fix | Delete
setProperty(ic, transitionProp, "none");
[2637] Fix | Delete
}
[2638] Fix | Delete
[2639] Fix | Delete
this.state = function () {
[2640] Fix | Delete
return direction;
[2641] Fix | Delete
};
[2642] Fix | Delete
[2643] Fix | Delete
this.setOnClick = function (listener) {
[2644] Fix | Delete
icon.onclick = listener;
[2645] Fix | Delete
};
[2646] Fix | Delete
[2647] Fix | Delete
this.set = function (percent) {
[2648] Fix | Delete
if (locked) {
[2649] Fix | Delete
return;
[2650] Fix | Delete
}
[2651] Fix | Delete
if (percent > 100) {
[2652] Fix | Delete
percent = 100;
[2653] Fix | Delete
}
[2654] Fix | Delete
if (percent < 0) {
[2655] Fix | Delete
percent = 0;
[2656] Fix | Delete
}
[2657] Fix | Delete
if (percent >= 100) {
[2658] Fix | Delete
direction = false;
[2659] Fix | Delete
}
[2660] Fix | Delete
if (percent <= 0) {
[2661] Fix | Delete
direction = true;
[2662] Fix | Delete
}
[2663] Fix | Delete
[2664] Fix | Delete
rotateLine = 0.45 * percent;
[2665] Fix | Delete
scaleX = 1 - const1 * percent;
[2666] Fix | Delete
transY = 0.054 * percent;
[2667] Fix | Delete
transX = 0.033 * percent;
[2668] Fix | Delete
scaleX2 = 1 - const2 * percent;
[2669] Fix | Delete
transX2 = -0.01 * percent;
[2670] Fix | Delete
if (direction) {
[2671] Fix | Delete
rotateIc = 1.80 * percent;
[2672] Fix | Delete
} else {
[2673] Fix | Delete
rotateIc = 360 - (1.80 * percent);
[2674] Fix | Delete
}
[2675] Fix | Delete
setProperty(line1, transformProp, "rotate(" + rotateLine + "deg) scaleX(" + scaleX + ") translateY(" + transY + "px) translateX(" + transX + "px) " + trZ);
[2676] Fix | Delete
setProperty(line2, transformProp, "scaleX(" + scaleX2 + ") translateX(" + transX2 + "px) " + trZ);
[2677] Fix | Delete
setProperty(line3, transformProp, "rotate(" + (-rotateLine) + "deg) scaleX(" + scaleX + ") translateY(" + (-transY) + "px) translateX(" + transX + "px) " + trZ);
[2678] Fix | Delete
setProperty(ic, transformProp, "rotate(" + rotateIc + "deg) " + trZ);
[2679] Fix | Delete
};
[2680] Fix | Delete
[2681] Fix | Delete
this.setState = function (state, duration) {
[2682] Fix | Delete
duration = duration || 0.225;
[2683] Fix | Delete
enableAnimation(duration);
[2684] Fix | Delete
var temp = this;
[2685] Fix | Delete
switch (state) {
[2686] Fix | Delete
case 0:
[2687] Fix | Delete
this.set(1);
[2688] Fix | Delete
break;
[2689] Fix | Delete
case 1:
[2690] Fix | Delete
this.set(100);
[2691] Fix | Delete
break;
[2692] Fix | Delete
}
[2693] Fix | Delete
setTimeout(function () {
[2694] Fix | Delete
disableAnimation();
[2695] Fix | Delete
if (state === 0) {
[2696] Fix | Delete
temp.set(0);
[2697] Fix | Delete
}
[2698] Fix | Delete
}, Number(duration) * 1000);
[2699] Fix | Delete
};
[2700] Fix | Delete
[2701] Fix | Delete
this.lock = function () {
[2702] Fix | Delete
locked = true;
[2703] Fix | Delete
};
[2704] Fix | Delete
this.unLock = function () {
[2705] Fix | Delete
locked = false;
[2706] Fix | Delete
};
[2707] Fix | Delete
[2708] Fix | Delete
(function () {
[2709] Fix | Delete
icon.innerHTML += '<span class="ic"><i class="line one"></i><i class="line two"></i><i class="line thr"></i></span>';
[2710] Fix | Delete
ic = icon.querySelector(".ic");
[2711] Fix | Delete
line1 = ic.querySelector(".one");
[2712] Fix | Delete
line2 = ic.querySelector(".two");
[2713] Fix | Delete
line3 = ic.querySelector(".thr");
[2714] Fix | Delete
//Find prop name
[2715] Fix | Delete
var testEl = document.createElement('div'),
[2716] Fix | Delete
vendors;
[2717] Fix | Delete
if (testEl.style.transform === undefined) {
[2718] Fix | Delete
vendors = ['Webkit', 'Moz', 'ms', 'O'];
[2719] Fix | Delete
for (var vendor in vendors) {
[2720] Fix | Delete
if (testEl.style[vendors[vendor] + 'Transform'] !== undefined) {
[2721] Fix | Delete
transformProp = vendors[vendor] + 'Transform';
[2722] Fix | Delete
propPrefixCss = "-" + vendors[vendor].toLowerCase() + "-";
[2723] Fix | Delete
}
[2724] Fix | Delete
if (testEl.style[vendors[vendor] + 'Transition'] !== undefined) {
[2725] Fix | Delete
transitionProp = vendors[vendor] + 'Transition';
[2726] Fix | Delete
}
[2727] Fix | Delete
}
[2728] Fix | Delete
}
[2729] Fix | Delete
if (/.*opera.*presto/i.test(navigator.userAgent)) {
[2730] Fix | Delete
trZ = "";
[2731] Fix | Delete
}
[2732] Fix | Delete
})();
[2733] Fix | Delete
}
[2734] Fix | Delete
$("#subscribe-newsletter-form").on('submit',function(e){
[2735] Fix | Delete
e.preventDefault();
[2736] Fix | Delete
var $form = $("#subscribe-newsletter-form");
[2737] Fix | Delete
var name = $form.find('input[name="name"]').val();
[2738] Fix | Delete
var email = $form.find('input[name="email"]').val();
[2739] Fix | Delete
var website = $form.find('input[name="company"]').val();
[2740] Fix | Delete
$.post(ajaxurl, {action:'ampforwp_subscribe_newsletter',name:name, email:email,website:website},
[2741] Fix | Delete
function(data) {}
[2742] Fix | Delete
);
[2743] Fix | Delete
});
[2744] Fix | Delete
// HIDE/SHOW TAG AND CATEGORY #4326
[2745] Fix | Delete
$("#show_amp_taxonomy").on('change', function(){
[2746] Fix | Delete
var thisval = $(this).val();
[2747] Fix | Delete
if(thisval=='hide'){
[2748] Fix | Delete
$("#amp-show-hide-tax").css({'display':'block'});
[2749] Fix | Delete
}else if(thisval=='show'){
[2750] Fix | Delete
$("#amp-show-hide-tax").css({'display':'none'});
[2751] Fix | Delete
}
[2752] Fix | Delete
});
[2753] Fix | Delete
$(".hide-show-amp-tax").on('click', function(){
[2754] Fix | Delete
var checkBoxes = $(this).children('input:radio')
[2755] Fix | Delete
checkBoxes.prop("checked", "true");
[2756] Fix | Delete
});
[2757] Fix | Delete
$("#ampforwp-close-notice").on("click", function(){
[2758] Fix | Delete
var data = {
[2759] Fix | Delete
action: 'ampforwp_feedback_remove_notice',
[2760] Fix | Delete
};
[2761] Fix | Delete
$.post(ajaxurl, data, function(response) {
[2762] Fix | Delete
$(".ampforwp_remove_notice").remove();
[2763] Fix | Delete
});
[2764] Fix | Delete
});
[2765] Fix | Delete
$("#ampforwp-close-ad-notice").on("click", function(){
[2766] Fix | Delete
var data = {
[2767] Fix | Delete
action: 'ampforwp_tpd_remove_notice',
[2768] Fix | Delete
};
[2769] Fix | Delete
$.post(ajaxurl, data, function(response) {
[2770] Fix | Delete
$(".ampforwp_remove_notice").remove();
[2771] Fix | Delete
});
[2772] Fix | Delete
});
[2773] Fix | Delete
});
[2774] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function