";$("body").append(sTemp);$("#copyurl").select();document.execCommand("copy");$("#copyurl").remove();Swal.fire({title: '連結已成功複製,歡迎您分享!'+ sURL});copyobj=true;}/*複製分享網址的彈跳視窗*/var copyMarketingobj=true;copyobj=true;function copyMarketingUrl(sURL, id) {copyMarketingobj=false;copyobj=false;sTemp = "";$("body").append(sTemp);$("#copyurl").select();document.execCommand("copy");$("#copyurl").remove();Swal.fire({title: '推薦導師網址已成功複製,歡迎您分享!'+ sURL});copyMarketingobj=true;copyobj=true;updateClickNum(id, 'markting_admin_list', 'url_click_num');} if($('#ip').val() != '220.134.124.214'){$(document).live("cut copy paste",function(event) {if(copyobj==true){let now_profile_loc = new URL(location.href).pathname.toString() + '';if(now_profile_loc != '/marketing_admin/member_modify'){if(""){var title = "親愛的";}else{var device = "";if(navigator.userAgent.match(/(iPod|iPhone|iPad|Mac)/)){device = 'IOS';}else if(navigator.userAgent.match(/(Android)/)){device = 'Android';}else if(navigator.userAgent.match(/(Windows)/)){device = 'Windows';}var title = "親愛的訪客";}let timeNow = new Date().getHours();if(timeNow < 6){var regards = " 平安";}else if(timeNow >= 6 && timeNow < 12){var regards = " 早安";}else if(timeNow >= 12 && timeNow < 18){var regards = " 午安";}else if(timeNow >= 18){var regards = " 晚安";}const text = '
{現在時間}
{訪客名稱} {問候語}您好,感謝您支持{網站名稱}平台創建的內容。本網站所有內容均受著作權法保障,未經{網站名稱}授權同意請勿以任何複製文字或圖片的內容方式進行其它非{網站名稱}平台刊登,若有引用內容請註明本網站網址出處。若是想分享網站內容可使用↓下方「分享」功能,讓更多人得到知識分享的益處。
- 裝置系統 :{裝置}
- 登入IP:{{IP}';var replace_text = [/{網站名稱}/g,/{訪客名稱}/g,/{問候語}/g,/{裝置}/g,/{現在時間}/g,/{{IP}/g];var replace_value = ["MAGIC LOVE",title,regards,device,(new Date()).toLocaleString(),$('#ip').val()];var html= text;for(var i =replace_text.length -1;i>=0; i--){html = html.replace(replace_text[i],replace_value[i]);}Swal.fire({html: html, customClass: {container: 'copy-alert-container',footer: 'copy-alert',},confirmButtonText:'我知道了',});$(".copy-alert-container").find(".swal2-footer").html('

分享貼文

分享動態

複製網址
');event.preventDefault(); } }});}document.addEventListener("DOMContentLoaded",function() {var div, n,v = document.getElementsByClassName("youtube-player");for (n = 0; n < v.length; n++) {div = document.createElement("div");div.setAttribute("data-id", v[n].dataset.id);div.innerHTML = labnolThumb(v[n].dataset.id);div.onclick = labnolIframe;v[n].appendChild(div);}});function labnolThumb(id) {var thumb = '
',play = '';return thumb.replace("ID", id) + play;}function labnolIframe() {var iframe = document.createElement("iframe");var embed = "https://www.youtube.com/embed/ID?autoplay=1";iframe.setAttribute("src", embed.replace("ID", this.dataset.id));iframe.setAttribute("frameborder", "0");iframe.setAttribute("allowfullscreen", "1");this.parentNode.replaceChild(iframe, this);}/*lazyload iframe*//*var iframes = $('iframe');iframes.attr('data-src', function() {var src = $(this).attr('src');$(this).removeAttr('src');return src;});*//*lazyload img*/var img_lazy = $('img');img_lazy.attr('data-src', function() {var src = $(this).attr('src');/*$(this).removeAttr('src');*/return src;});img_lazy.addClass('lazyload');var iframe_lazy = $('iframe');iframe_lazy.attr('data-src', function() {var src = $(this).attr('src');$(this).removeAttr('src');return src;});iframe_lazy.addClass('lazyload');var recaptcha1;var recaptcha2;var recaptcha3;var recaptcha_login;var recaptcha_pc;var recaptcha_mob;var myCallBack = function() {$('body').find('#recaptcha1').each(function(KEY){if(KEY == 0){recaptcha1 = grecaptcha.render('recaptcha1', {'sitekey' : '6LeSf30bAAAAAHLbrl2R_1ABlZQHNb4ga7KXZ8n0','theme' : 'light'});}});$('body').find('#recaptcha2').each(function(KEY){if(KEY == 0){recaptcha2 = grecaptcha.render('recaptcha2', {'sitekey' : '6LeSf30bAAAAAHLbrl2R_1ABlZQHNb4ga7KXZ8n0','theme' : 'light'});}});$('body').find('#recaptcha3').each(function(KEY){if(KEY == 0){recaptcha3 = grecaptcha.render('recaptcha3', {'sitekey' : '6LeSf30bAAAAAHLbrl2R_1ABlZQHNb4ga7KXZ8n0','theme' : 'light'});}});$('body').find('#recaptcha_login').each(function(KEY){if(KEY == 0){recaptcha_login = grecaptcha.render('recaptcha_login', {'sitekey' : '6LeSf30bAAAAAHLbrl2R_1ABlZQHNb4ga7KXZ8n0','theme' : 'light'});}});$('body').find('#recaptcha_pc').each(function(KEY){if(KEY == 0){recaptcha_pc = grecaptcha.render('recaptcha_pc', {'sitekey' : '6LeSf30bAAAAAHLbrl2R_1ABlZQHNb4ga7KXZ8n0','theme' : 'light',});}});$('body').find('#recaptcha_mob').each(function(KEY){if(KEY == 0){recaptcha_mob = grecaptcha.render('recaptcha_mob', {'sitekey' : '6LeSf30bAAAAAHLbrl2R_1ABlZQHNb4ga7KXZ8n0','theme' : 'light',});}});};$.fn.countTo = function (options) {options = options || {};return $(this).each(function () {var settings = $.extend({}, $.fn.countTo.defaults, {from: $(this).data('from'),to: $(this).data('to'),speed: $(this).data('speed'),refreshInterval: $(this).data('refresh-interval'),decimals: $(this).data('decimals')}, options);var loops = Math.ceil(settings.speed / settings.refreshInterval),increment = (settings.to - settings.from) / loops;var self = this,$self = $(this),loopCount = 0,value = settings.from,data = $self.data('countTo') || {};$self.data('countTo', data);if (data.interval) {clearInterval(data.interval);};data.interval = setInterval(updateTimer, settings.refreshInterval);render(value);function updateTimer() {value += increment;loopCount++;render(value);if (typeof(settings.onUpdate) == 'function') {settings.onUpdate.call(self, value);}if (loopCount >= loops) {$self.removeData('countTo');clearInterval(data.interval);value = settings.to;if (typeof(settings.onComplete) == 'function') {settings.onComplete.call(self, value);}}}function render(value) {var formattedValue = settings.formatter.call(self, value, settings);$self.html(formattedValue);}});};$.fn.countTo.defaults={from:0, to:0, speed:1000, refreshInterval:100, decimals:0, formatter: formatter, onUpdate:null, onComplete:null };function formatter(value, settings){return value.toFixed(settings.decimals);} /*表單驗證*/ $('#validation-login-form').validate({ errorElement: 'label', errorClass: 'error', focusInvalid: false, ignore: '', rules: { account: { required: true }, password: { required: true }, captcha: { required: true } }, submitHandler: function(form) { loginbyGeneral(form, 'pc'); } }); /*聯盟行銷登入驗證*/ $('#markting-admin-validation-login-form').validate({ errorElement: 'label', errorClass: 'error', focusInvalid: false, ignore: '', rules: { account: { required: true }, password: { required: true }, captcha: { required: true } }, submitHandler: function(form) { markting_admin_login_by_general(form, 'pc', ''); } });$(".alerts-close").click(function(){$(".alerts-background").fadeOut();$(".alert-login").fadeOut();});$(".alerts-background").click(function(){$(".alerts-background").fadeOut();$(".alert-login").fadeOut();});$(".alerts-background").click(function(){$(".alerts-background").fadeOut();$(".alert-forgetpassword").fadeOut();});$(".alert-forgetpassword-delete").click(function(){$(".alerts-background").fadeOut();$(".alert-forgetpassword").fadeOut();});function newLogin(){$(".alerts-background").fadeIn();$(".alert-login").fadeIn();}function forgetpassword(){$(".alert-login").fadeOut();$(".alert-forgetpassword").fadeIn();}function marktingAdminLogin(){$(".alerts-background").fadeIn();$("#markting-admin-alert-login").fadeIn();}function marktingAdminForgetPassword(){$("#markting-admin-alert-login").fadeOut();$("#markting-admin-alert-forgetpassword").fadeIn();}