Current File : /home/raydofqv/raydget.vip/wp-content/plugins/3d-viewer/build//admin.js
jQuery(document).ready(function(e){e("[name='_bp3dimages_[angle_property][top]']").attr("placeholder","X"),e("[name='_bp3dimages_[angle_property][right]']").attr("placeholder","Y"),e("[name='_bp3dimages_[angle_property][bottom]']").attr("placeholder","Z"),e(document).on("click",".bp3d_shortcode_copy_icon",function(t){t.preventDefault();const o=e(this).data("clipboard-text");if(navigator.clipboard)navigator.clipboard.writeText(o);else{const e=document.createElement("input");e.value=o,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}e(this).css("width","18px"),setTimeout(()=>{e(this).css("width","22px")},200)}),e(document).on("click",".bp3d_shortcode_copy_btn",function(t){t.preventDefault();const o=e(this).data("clipboard-text");if(navigator.clipboard)navigator.clipboard.writeText(o);else{const e=document.createElement("input");e.value=o,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}e(this).text("Copied!"),setTimeout(()=>{e(this).text("Copy Shortcode")},2e3)})}),document.addEventListener("DOMContentLoaded",function(){const e=document.querySelector(".custom-css .csf-subtitle-text");e&&(e.innerText=`#bp_model_id_${parseInt(window.post_ID?.value)}`),setTimeout(()=>{const e=document.querySelector(".bp3dv_woocommerce_admin_notice .notice-dismiss");e?.addEventListener("click",()=>{fetch(window.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"dismiss_product_edit_notice",security:document.querySelector(".bp3dv_woocommerce_admin_notice")?.dataset?.nonce})}).then(e=>e.json()).then(e=>{e.success&&console.log("Notice dismissed for 30 days")}).catch(e=>console.error("Error:",e))})},500)});