Note 20u DeX連唔到電視


50) { $$(“.start_btn_light_blue”).show(); } else { $$(“.start_btn_light_blue”).hide(); } }); ]]> = 200 && obj.offsetWidth >= 200) { _d = document.createElement(‘div’); if (aid) { _d.id = ‘fb_’ + aid; } else { _d.id = ‘fb_’ + pid; _d.id += ‘_’ + Math.random(); } _d.className = ‘fblike_wrapper’; //_d.style.display = ‘none’; _d.innerHTML = ‘]]>’; _postmessage = $(‘postmessage_’ + pid); _width = _postmessage.parentNode.offsetWidth; //_d.style.top = obj.offsetHeight _width? _width:obj.width) – 100) + ‘px’; } } function insertzoomfblike(obj, tid, pid, aid, e) { /*if($(‘fb_zoomlike’)){ $(‘zoomimglayer’).parentNode.removeChild($(‘fb_zoomlike’)); } _d = document.createElement(‘div’); //_d.className = ‘fblike_wrapper’; _d.id = ‘fb_zoomlike’; _d.innerHTML = ”; $(‘zoomimglayer’).parentNode.insertBefore(_d,$(‘zoomimglayer’).nextSibling); */ } function adjustscpos() { if ($$(“#ad_sc2”).length || $$(‘#ad_sc3’).length) { var targetDiv = $$(“#right_column”); var getTop = targetDiv.offset().top; var getLeft = targetDiv.offset().left; var getHeight = targetDiv.height(); var posTop = getTop + getHeight – 600 – 10; // top margin + column height – banner height – padding bottom var posLeft = getLeft + 8; // left margin + padding left if ($$(‘#ad_sc3’).length) { $$(‘#ad_sc2’).css({‘top’: (posTop – 2100) + ‘px’, ‘left’: posLeft + ‘px’}); $$(‘#ad_sc3’).css({‘top’: posTop + ‘px’, ‘left’: posLeft + ‘px’}); } else { $$(‘#ad_sc2’).css({‘top’: posTop + ‘px’, ‘left’: posLeft + ‘px’}); } } } function open_post(pid) { $$(“#table-” + pid).find(“tr”).show(); $$(“#table-” + pid).find(“.tr_minimized”).hide(); } function close_post(pid) { $$(“#table-” + pid).find(“tr”).hide(); $$(“#table-” + pid).find(“.tr_minimized”).show(); } function top_bar_subscription_callback() { ga_trackEvent(this, ‘Add subscription’, ‘Viewthread sticky subscription’, ‘遊客’); $$(“#ajax_subscription_topbar_menu”).css(“position”, “fixed”); } function first_post_subscription_callback() { ga_trackEvent(this, ‘Add subscription’, ‘Viewthread first post subscription’, ‘遊客’); } let isReady = false let pendingEvent = null $$(document).ready(function () { isReady = true if (pendingEvent) { pendingEvent() pendingEvent = null } }); function openQuoteView(url) { if (isReady) { ga_trackEvent(this, ‘View quote thread’, ‘Viewthread in post view quote thread’, ‘遊客’) $$.fancybox.close() $$.fancybox.open({ ‘type’: ‘iframe’, ‘src’: url, ‘scrolling’: ‘no’, ‘autoScale’: false, ‘autoDimensions’: true, ‘autoResize’: false, ‘width’: 894, ‘closeBtn’: false, ‘helpers’: {‘title’: false}, ‘beforeShow’: function () { $$(“.fancybox-skin”).css(“backgroundColor”, “transparent”); $$(“.fancybox-skin”).css(“box-shadow”, “none”); }, buttons: [], iframe : { css : { ‘width’: 910, ‘height’: ‘100%’, ‘border-radius’: 12, ‘overflow’: ‘hidden’ }, attr: { ‘scrolling’: ‘no’ } } }) return true } else { pendingEvent = function () { openQuoteView(url) } } } function iframeRedirectTo(url) { location.href = url; } function shareTooltip(target, tid, pid) { const container = $$(‘#append_parent’) const id = tid + pid + ‘_share’ const position = $$(target).offset() let div = $$(‘#’ + id) if (!div.length) { div = document.createElement(‘div’) div.id = id div.className = ‘share-tooltip popupmenu_popup’ div.setAttribute(“style”, ‘left: ‘ + (position.left – 100) + ‘px;’ + ‘top: ‘ + (position.top – 40) + ‘px;’); let innerHTML = ‘‘ + ‘‘ + ‘‘ innerHTML = innerHTML.replace(/tpid/gi, tid + ‘,’ + pid) div.innerHTML = innerHTML container.append(div) } else { div.attr(“style”, ‘left: ‘ + (position.left – 100) + ‘px;’ + ‘top: ‘ + (position.top – 40) + ‘px;’); div.show() } $$(target).parent().parent().on({ mouseleave: function () { $$(‘#’ + id).hide() } }) $$(‘#’ + id).on({ mouseenter: function () { $$(this).show() }, mouseleave: function () { $$(this).hide() } }) } function clickShareThreadOption(type, shareTid, sharePid) { var share_url = ” var share_type = ‘thread’; var result = $$.ajax({ url: “ajax.php”, data: { action: “share_count”, share_type: share_type, tid: shareTid}, type: “GET”, async: false }); if (sharePid) { share_url = ‘https://mobile.discuss.com.hk/viewthread.php?tid=’+shareTid+’&page=1&pid=’+sharePid+’&utm_source=facebook&utm_medium=share&utm_campaign=web#pid’+sharePid; } else { share_url = ‘https://mobile.discuss.com.hk/viewthread.php?tid=29515442&utm_source=facebook&utm_medium=share&utm_campaign=web’; } switch (type) { case ‘facebook’: ga_trackEvent(null,’Share’,’Facebook Share’,’tid=’+shareTid); FB.ui({ method: ‘share’, href: share_url, }, function(response){}); break case ‘whatsapp’: window.open(“https://api.whatsapp.com/send?text=” + encodeURIComponent(‘https://mobile.discuss.com.hk/viewthread.php?tid=’+shareTid+’&page=1&pid=’+sharePid+’#pid’+sharePid),”_blank”) break case ‘clipboard’: copyToClipBoard(‘https://mobile.discuss.com.hk/viewthread.php?tid=’+shareTid+’&page=1&pid=’+sharePid+’#pid’+sharePid) break } }

Source

Leave a Reply

Your email address will not be published. Required fields are marked *