[ad_1]
香港 會議 展覽 中心 本月 正式 踏入 30 周年, 會展 管理 有限公司 預告, 未來 5 年 將 斥資 10 億元 為 會展 「裝 身」, 包括 鋪設 5G 基建, 升級 WiFi 和 保安 系統, 以及 安裝 智能 樓宇自控 系統 (BMS) 透過 感應 器 將 場館 內 溫度, 濕度, 空氣 質素 等 資料, 即時 傳送 至 監測 系統 作 調節, 盼 以 優質服務 撼 贏 對手, 保持 亞洲 最佳 場館 美譽.
2017/18 年度, 會展 共 舉辦 1,061 項 活動, 出席 人數 破 紀錄 逾 820 萬 人次. 會展 管理 有限公司 董事 總經理 梅 李玉霞 (Monica) 表示, 今年 會展 踏入 30 周年, 將 斥資 10 億元 進行 升級 及翻新 工程, 包括 由 2017 年 起 分階段 安裝 的 智能 樓宇 自控 系統 (BMS) 利用 物 聯網 (IoT) 科技, 在場 館內 安裝 650 個 感應 器, 覆蓋 100 萬 平 方呎, 包括 場館, 宴會 廳 等,監測 溫度, 濕度, 空氣 質素, 火警 及 冷氣 系統 等, 收集 數據 後 即時 傳送 至 系統 作 調節.
樓宇 自控 系統 恒溫 節能
Monica 指, 以往 場館 溫度 提升, 工程 人員 需 花 數小時 多次 往來 控制室 及 場館, 現時 系統 會 自動 監測 後 做 調節, 提高 效率 之 餘, 亦 有助 加強 管理 及 長遠 達 至 節能. 新 系統 耗資3,700 萬元, 首 階段 已 完成 會展 一 期, 料 明年 第四季 完工.
另外, Monica 提及, 每年 的 展覽 或 會議 活動 中, 不乏 名人 高官, 國家 元首 等, 亦有 名貴 展品, 「一 幅畫 價值 5 億元」, 價值 不菲, 故 要 升級 保安 系統, 包括 使用 高清閉路電視 監察 系統, 攝像 頭 由 400 個 增至 600 個, 並 升級 智能 卡 門禁 系統 及 保安 控制室, 工程 為期 3 年, 已於 今年 10 月 完成. 她 續 說, 因 重視 個人 私隱, 攝像 頭 影像 只 保存1 個 月.
Wi-Fi 支援 逾 2 萬 流動 裝置
鑑於 2020 年 將 邁入 5G 時代, 她 表示 下月 起 會展 將 鋪設 5G 基建 工程, 包括 光纖, 5G 5G 天綫 及 無綫 基站, 「政府 一 開放 牌照, 會展 即刻 有 得用」, 料 需 時 180 日.此外, 去年 中 起 安裝 的 WiFi 設施 已 完工, 660 個 WiFi 網路 接入 點 可 支援 逾 2 萬 部 流動 裝置, 每秒 傳輸 達 10GB, 覆蓋 逾 134 萬 平 方呎.
Monica 展望, 會展 以 優質 的 服務 質素, 與 內地, 東南亞 等 對手 競爭, 加上 港 珠澳 大橋 開通 後, 料 會 帶動 人流, 物流 及 經濟, 繼續 維持 亞洲 最佳 場館 的 地位.
記者 ︰ 謝 雅寶
編輯: 梁顯庭
美術: 簡 力 斯
攝影: 黃建輝
var metaTitle = "會展 30 周年 智能 升級 誓 保 亞洲 最佳 場館 美譽 - 晴 報 - 港 聞 - 新聞 頭條 - D181123"; was metaDescription = "香港 會議 展覽 中心 本月 正式 踏入 30 周年, 會展 管理 有限公司 預告, 未来 5 年 將 斥資 10 億元 為 會展「 裝 身 」, 包括 鋪設 5G 基建, 升級 Wi-Fi 和 保安 系統,以及 安裝 智能 樓宇 自控 系統 (BMS) 透過 感應 器 將 場館 內 溫度 "; var ogTitle = "會展 30 周年 智能 升級 誓 保 亞洲 最佳 場館 美譽 - 晴 報 - 港 聞 - 新聞 頭條"; var ochDescription = "香港 會議 展覽 中心 本月 正式 踏入 30 周年, 會展 管理 有限公司 預告, 未來 5 年 將 斥資 10 億元 為 會展「 裝 身 」, 包括 鋪設 5G 基建, 升級 Wi-Fi 和 保安 系統,以及 安裝 智能 樓宇 自控 系統 (BMS) 透過 感應 器 將 場館 內 溫度 "; where andUrl = "https://skypost.ulifestyle.com.hk/article/2214701/ 會展 30 周年 智能 升級"; var ogImageUrl = "https://resource01.ulifestyle.com.hk/res/v3/image/content/2210000/2214701/20181120JAJ004__20181123_L.jpg"; var ogImageWidth = "600"; var ogImageHeight = "450"; was moreNewsShownCount = -1; was moreNewsArticleId =[]; was moreNewsLinkList =[]; where gptAdSlotsNum = gptAdSlots.length; moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214670/ 塵 爆 12 傷 浸大 宿 生 非 首次 玩 掟 粉'); moreNewsArticleId.push ( '2214670'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214671/ 明年 打工 仔 料 加薪 4% 25'); moreNewsArticleId.push ( '2214671'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214672/ 貿易戰 陰霾 零售業 看淡 聖誕 銷 情'); moreNewsArticleId.push ( '2214672'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214673/ 「政壇 教父」 鍾 士 元 出殯 政商 名流 致哀'); moreNewsArticleId.push ( '2214673'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214731/ 筆試 面試 分開 进行 求职者 呻 難 請假'); moreNewsArticleId.push ( '2214731'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214697/AR 互動 式 地圖 比 Google 準 千倍'); moreNewsArticleId.push ( '2214697'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214676/ 流感 高峰 將至 恐 現 疫苗 真空 期'); moreNewsArticleId.push ( '2214676'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214680/ 港 产 水耕 菜 收成 快 1/3'); moreNewsArticleId.push ( '2214680'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214682/ 第 3 批 銀 加 息 」不少於 3 厘'); moreNewsArticleId.push ( '2214682'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214683/ 一 田 優惠 日 開鑼 衞 衣 玩具 搶 Purchases'); moreNewsArticleId.push ( '2214683'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214687/ 控方 片段 見 黃浩銘 李永 達 叫人 留守'); moreNewsArticleId.push ( '2214687'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214690/ 服用 可卡因 比例 增 最 細 吸毒者 12 歲'); moreNewsArticleId.push ( '2214690'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214694/ 位元 堂 鄧蕙敏 力 吸 年輕 族'); moreNewsArticleId.push ( '2214694'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214695/ 殘체 鐵漢 人生 路上 再衝' ''); moreNewsArticleId.push ( '2214695'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214696/ 成交 平 盤 質素 參差 未必 反像 樓價 真 回落'); moreNewsArticleId.push ( '2214696'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214698/ 港 電 競发发 落後 盼 多 辦 比賽 吸 人才'); moreNewsArticleId.push ( '2214698'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214700/ 港 青 創 超市 格 價 App 低價 追蹤 助 大眾 慳 錢'); moreNewsArticleId.push ( '2214700'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214702/28 歲 毒癮 青年 搶劫 罪 成 囚 64 個 月'); moreNewsArticleId.push ( '2214702'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214709/ 企業 公開 薪酬 員工 更 努力'); moreNewsArticleId.push ( '2214709'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214711/ 明德 學院 下 9 月 停 收 生'); moreNewsArticleId.push ( '2214711'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214712/ 研究 政策 讓 同志 結婚 立 會 否決'); moreNewsArticleId.push ( '2214712'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214721/30年midd磨成一劍 印度 光輝 戰機 淪 雞肋'); moreNewsArticleId.push ( '2214721'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214677/ 昨 「小雪」 18.8 ℃ 天寒地凍 日子 逼近'); moreNewsArticleId.push ( '2214677'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214681/ 僱主 羅允彤 提早 獲釋 Erwiana 指仍 $ 81 万'); moreNewsArticleId.push ( '2214681'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214684/ 師 友 計劃 不足 15% 25 青年 參與 機構 推 網上 配對'); moreNewsArticleId.push ( '2214684'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214688/ 酒店 $ 1500 万 劫案 警拘 7 人 車 車主'); moreNewsArticleId.push ( '2214688'); moreNewsLinkList.push ('https://skypost.ulifestyle.com moreNewsArticleId.push ( '2214691'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214699/ 樂 齡 及 康復 創 科 基金 下月 3 日 起 可 申請'); moreNewsArticleId.push ( '2214699'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214703/ 富家子 屢 犯 非禮 囚 7 星期'); moreNewsArticleId.push ( '2214703'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214710/ 美 保險公司 加薪 員工 「公投」 決定'); moreNewsArticleId.push ( '2214710'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214675/90 後 情侶 辭 工 賣 首飾 IG 靚 帶 相 帶旺 生意'); moreNewsArticleId.push ( '2214675'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214685/ 區 員 罪 成 2 個 月 3 星期'); moreNewsArticleId.push ( '2214685'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214686/ 荃灣 民豐 生 餃子 皮 含 山梨酸 須 下 架'); moreNewsArticleId.push ( '2214686'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214732/ 「無 頭」 工人 午休 網民 ︰ 嚇死 人 咩?'); moreNewsArticleId.push ( '2214732'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214674/ 拓展 創 科 應對 安 老'); moreNewsArticleId.push ( '2214674'); moreNewsLinkList.push ( 'https://skypost.ulifestyle.com.hk/article/2214689/ 愛 不是 佔有'); moreNewsArticleId.push ( '2214689'); moreNewsLinkList.push ( 'https://skypost.ulifestyle.com.hk/article/2214707/ 難民營 中 的 電 單車 的士 司機'); moreNewsArticleId.push ( '2214707'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214704/ 米 芝 蓮 名廚 陳國強 主 理 海洋 公園 歎 日本 美食'); moreNewsArticleId.push ( '2214704'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214705/ 買 英 式 派對 好 物 馬莎 送 你 溫馨 聖誕'); moreNewsArticleId.push ( '2214705'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214706/ 官燕 棧 首推 感謝 祭 7 折 買 養生 補品'); moreNewsArticleId.push ( '2214706'); moreNewsLinkList.push ( 'https://skypost.ulifestyle.com.hk/article/2214726/ 去 與 留'); moreNewsArticleId.push ( '2214726'); moreNewsLinkList.push ( 'https://skypost.ulifestyle.com.hk/article/2214715/ 房地產 投資'); moreNewsArticleId.push ( '2214715'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214679/ 被 走漏 眼 的 for AR Studio'); moreNewsArticleId.push ( '2214679'); moreNewsLinkList.push ( 'https://skypost.ulifestyle.com.hk/article/2214692/ 吃 生 蒜 比 熟 的 更 有益'); moreNewsArticleId.push ( '2214692'); moreNewsLinkList.push ( 'https://skypost.ulifestyle.com.hk/article/2214693/ 澳門 「遊 屋 記」'); moreNewsArticleId.push ( '2214693'); moreNewsLinkList.push ( 'https://skypost.ulifestyle.com.hk/article/2214678/ 中山 道 之 浮世繪'); moreNewsArticleId.push ( '2214678'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214733/ 精神分裂 幻覺 幻聽 纏身'); moreNewsArticleId.push ( '2214733'); moreNewsLinkList.push ('https://skypost.ulifestyle.com.hk/article/2214737/ 壓力 致 「上 熱 下 寒」 脫髮 趨 普遍'); moreNewsArticleId.push ( '2214737'); for (i = 0; i <moreNewsLinkList.length; in ++) { //console.log(moreNewsLinkList[i]); } was articleMap = {}; was OGMap = {}; was prevUrl = "http://skypost.ulifestyle.com.hk/"; $ (document) .ready (function () { initAll (); }); $ (Window) .ON ( "load" function () { // cancelUnread ( "# article-2214701"); // $ (. "Load"). Remove (); $ ( "Body"). ScrollTop (0); }); function initAll () { more news show count ++; //console.log("detectBottom "); //console.log(moreNewsLinkList[moreNewsShownCount]); was classArticleId = "article -" + moreNewsArticleId[moreNewsShownCount]; //console.log(classArticleId); $ ("# nextarticle.article-null"). attr ("class", classArticleId); was aaa = "#nextarticle." + classArticleId; $ (Aaa) .attr ( "href" more news link list[moreNewsShownCount]); was fontSize = getCookie ("content-section-region__article-details_font-size"); if (fontSize! = null && fontSize! = "http://skypost.ulifestyle.com.hk/") { was fontSize = fontSize + "px"; $ ( '.-Content-section-region__article details "). FIND (" p "). Css ({" font-size' fontSize}); } Else { setcookie ( "content-section-region__article-details_font-size", "18"); } .Each $ ($ ( '.-Content-section-region__article details "). FIND (" p "), function () { was content = $ (this) .html (); //console.log("==="+content); if (content.indexOf ("inline image")! = -1) { $ (This) .removeAttr ( "color"); $ (This) .attr ( "class", "inline_image"); var imageName = content.split ("http://skypost.ulifestyle.com.hk/" ')[1]; was newImageName = "http://skypost.ulifestyle.com.hk/"; if (imageName.indexOf (".jpg")! = -1) { newImageName = imageName.substring (0, imageName.indexOf (".jpg")) + "_300" + imageName.substring (imageName.indexOf (".jpg"), imageName.length); } else if (imageName.indexOf (".jpg")! = -1) { newImageName = imageName.substring (0, imageName.indexOf (".JPG")) + "_300" + imageName.substring (imageName.indexOf (". JPG"), imageName.length); } else if (imageName.indexOf (".jpeg")! = -1) { newImageName = imageName.substring (0, imageName.indexOf (".jpeg")) + "_300" + imageName.substring (imageName.indexOf (".jpeg"), imageName.length); } else if (imageName.indexOf (". JPEG")! = -1) { newImageName = imageName.substring (0, imageName.indexOf (". JPEG")) + "_300" + imageName.substring (imageName.indexOf (". JPEG"), imageName.length); } else if (imageName.indexOf (".gif")! = -1) { newImageName = imageName.substring (0, imageName.indexOf (".gif")) + "_300" + imageName.substring (imageName.indexOf (".gif"), imageName.length); } else if (imageName.indexOf (".gif")! = -1) { newImageName = imageName.substring (0, imageName.indexOf (".gif")) + "_300" + imageName.substring (imageName.indexOf (".gif"), imageName.length); } if ( "007" == "001" http://skypost.ulifestyle.com.hk/ "" http://skypost.ulifestyle.com.hk/ "007" == "007") { // newImageName = newImageName.split ("_")[0] + "_1024" + "." + newImageName.split (".")[1]; } Else { was str = newImageName; where res = str.split ("_"); was part1 = "http://skypost.ulifestyle.com.hk/"; for (i = 0; i <res.length-1; i ++) { part1 = part1 + res[i] + "_"; } //console.log(part1); newImageName = part1 + "600." + res[res.length-1].Split(".")[1]; } var imageUrl = "https://resource01.ulifestyle.com.hk/res/v3/image/content/2210000/2214701/" + newImageName; was caption = "http://skypost.ulifestyle.com.hk/"; $ (This) .html ( '
") .length-1 == 1) { content = content.substr (content.indexOf ("
") 3 +, content.length); content = content.substr (0, content.indexOf ("
")); } $ (This) .empty (); $ (This) .append ( '
'+ content +'
'); $ (This) .wrap ( '
'); }); } function urlify (text) { was urlRegex = / (https?: / /[^s]+) / G; return text.replace (urlRegex, function (url) { return '' + url + ''; }) // or alternatively // return text.replace (urlRegex, '$ 1') } function setCookie (c_name, value, expiredays) { // was exdate = new date () //exdate.setDate(exdate.getDate()+expiredays) //document.cookie=c_name+ "=" + escape (value) + // (expiredays == null)? "http://skypost.ulifestyle.com.hk/": "; expires =" + exdate.toGMTString ()) document.cookie = c_name + "=" + escape (value) + "; path = /"; } function getCookie (c_name) { if (document.cookie.length> 0) { c_start = document.cookie.indexOf (c_name + "=") if (c_start! = - 1) { c_start = c_start + c_name.length + 1 c_end = document.cookie.indexOf ( ";", c_start) if (c_end == - 1) c_end = document.cookie.length return unescape (document.cookie.substring (c_start, c_end)) } } return "http://skypost.ulifestyle.com.hk/" } function fontSizeLg () { was fontSize = parseInt (getCookie ("content-section-region__article-details_font-size")); if (fontSize<22){ fontSize = fontSize + 1; setCookie("content-section-region__article-details_font-size",fontSize); $(".content-section-region__article-details").find("p").css({"font-size":fontSize}); } //console.log(fontSize); } function fontSizeSm() { var fontSize = parseInt(getCookie("content-section-region__article-details_font-size")); if(fontSize>14) { fontSize = fontSize - 1; setcookie ( "content-section-region__article-details_font-size", fontSize); $ ( '.-Content-section-region__article details "). FIND (" p "). Css ({" font-size' fontSize}); } //console.log(fontSize); } was first = true; was count = 0; $ ( '. Article feed'). Infinite scroll ({ path: function () { if (this.loadCount <48) { if (this.loadCount == 48-1) { return moreNewsLinkList[this.loadCount]+ "? Load more & load"; } Else { return moreNewsLinkList[this.loadCount]+? "Load more"; } } Else { $ ( ". Page-load status"). Remove (); } }, append: '.article', status: '.page-load status', historyTitle: false, history: false }); $ ('.artikel-feed') .on ('load.infiniteScroll', function () { pageIndex = $ ('.artikel-feed') .data ('infiniteScroll') .pageIndex; count = Page Index-1; $ ( ". Page-load status"). Remove (); initAll (); was i = $ ("article"). length; FB.XFBML.parse (($ ( "Article")[(i-1)])); googletag.cmd.push (function () { //console.log(gptAdSlots.length); gptAdSlotsNum ++; gptAdSlots[gptAdSlotsNum] = googletag.defineSlot ('/ 183518426 / skypost3_webrp_detail_fixed05', [[320, 50], [300, 100], [300, 250], [320, 100]], 'div-gpt-ad-1520909829098-5_article -' + moreNewsArticleId[count-1]); gptAdSlots[gptAdSlotsNum].addService (googletag.pubads ()); gptAdSlotsNum ++; gptAdSlots[gptAdSlotsNum] = googletag.defineSlot ('/ 183518426 / skypost3_webrp_detail_fixed06', [[320, 50], [300, 100], [300, 250], [728, 90], [320, 100]], 'div-gpt-ad-1520909829098-6_article -' + moreNewsArticleId[count-1]); gptAdSlots[gptAdSlotsNum].addService (googletag.pubads ()); googletag.display ( 'div-gpt-ad-1520909829098-5_article -' + moreNewsArticleId[count-1]); googletag.display ( 'div-gpt-ad-1520909829098-6_article -' + moreNewsArticleId[count-1]); //console.log("displayed::"+'div-gpt-ad-1520909829098-5_article-'+moreNewsArticleId[count-1]); //console.log("displayed::"+'div-gpt-ad-1520909829098-6_article-'+moreNewsArticleId[count-1]); googletag.pubads (). refresh (); }); }); function showPhotoSwipe (ele) { were items = []; were loaders = []; was currentClass = ele.attr ("class"); was len = $ ("a." + currentClass) .length; $ ("a." + currentClass) .each (function (index, element) { was pic = $ (this); var href = pic.data ("href"); var img = new image (); loaders.push (loadImage (href, items, element)); }); $ .when.apply (null, loaders) .done (function () { was photoIndex = parseInt (ele.data ("photoindex"), 10); var options = { index: photoIndex, bgOpacity: 0.7, showHideOpacity: true, closeEl: true, captionEl: true, fullscreenEl: true, zoomEl: true, hareEl: true, counterEl: true, arrowEl: true, preloaderEl: true } was $ pswp = $ ('pswp')[0]; was lightBox = new PhotoSwipe ($ pswp, PhotoSwipeUI_Default, items, options); lightBox.init (); }); } function loadImage (src, items, element) { was deferred = $ .Deferred (); was sprite = new image (); sprite.onload = function () { var item = { src: src, w: this.width, h: this.height } was eleIndex = parseInt ($ (element) .data ("photoindex"), 10); items.splice (eleIndex, 0, item); deferred.resolve (); }; sprite.src = src; return deferred.promise (); } function setUpPhotoSwipe () { was pageNum = $ ('.infinite-item'). length; var className = "photoSwipe" + pageNum; $ ('. photoSwipe'). each (function () { $ (this) .attr ('class', className); }); } function PrintElem (articleId) { //console.log("headline @@? "+ $ ( '. cr-article-details-Widget # article -" + articleId) .find ( ". article-details-title__main-title"). html ()) ; was mywindow = window.open ("http://skypost.ulifestyle.com.hk/", "PRINT", "http://skypost.ulifestyle.com.hk/"); mywindow.document.write ( '
'+ $ (".sp-article-details-widget # article -" + articleId) .find (".artikel-details-title__main-title"). html () +'
');
mywindow.document.write ($ ( ". sp-article-details widget # article -" + articleId) .html ());
mywindow.document.write ( '');
mywindow.document.close (); // necessary for IE> = 10
mywindow.focus (); // necessary for IE> = 10 * /
mywindow.print ();
mywindow.close ();
return true;
}
window.fbAsyncInit = function () {
FB.init ({
appId: 335749279848103,
autoLogAppEvents: true,
xfbml: true,
version: 'v2.10'
});
FB.AppEvents.logPageView ();
};
(function (d, s, id) {
where js,
fjs = d.getElementsByTagName (s)[0];
if (d.getElementById (id)) {
return;
}
js = d.createElement (s);
js.id = id;
js.src = "http://connect.facebook.net/zh_TW/sdk.js";
fjs.parentNode.insertBefore (js, fjs);
}
(document, script, facebook-jssdk)
);
window.shareOverrideOGMeta = function (andUrl_, andTitle_, andDescription_, andImageUrl _) {
//console.log("ogogogogog n andUrl: "+ andUrl);
//console.log("ogogogogog n andTitle: "+ andTitle);
//console.log("ogogogogog n andDescription: "+ andDescription);
//console.log("ogogogogog n ogImageUrl: "+ ogImageUrl);
FB.ui ({
method: 'share_open_graph',
action_type: 'og.shares',
action_properties: JSON.stringify ({
object: {
'and: url': andUrl,
'and: title': and Title,
'and: description': andDescription,
'and: image': andImageUrl
}
})
},
function {response} {
// Action after response
});
}
$ (window) .scroll (function () {
$ ("article"). each (function () {
was elem = $ (this) .find (".sp-article-details-widget"). attr ("id");
//console.log("elem html: "+ $ (this) .find (" .sp-article-details-widget "). attr (" id "));
if (elem.length) {
if (isScrolledIntoView ($ (this))) {
//console.log("show: "+ elem);
metaTitle = $ (this) .find (".metaTitleHidden") .text ();
metaDescription = $ (this) .find (".andDescriptionHidden") .text ();
andTitle = $ (this) .find (".andTitleHidden") .text ();
andDescription = $ (this) .find (".andDescriptionHidden") .text ();
andUrl = $ (this) .find (".andUrlHidden") .text ();
ogImageUrl = $ (this) .find (".andImageUrlHidden") .text ();
ogImageWidth = $ (this) .find (".andImageWidthHidden") .text ();
ogImageHeight = $ (this) .find (".andImageHeightHidden") .text ();
/ * Change meta data * /
was title = $ (this) .find (". article-details-title__main-title") .text ();
document.title = title;
window.history.replaceState (null, title, andUrl);
$ ( "Meta[name=title]") .attr (" content ", metaTitle);
$ ( "Meta[name=description]") .attr (" content ", metaDescription);
$ ( "Meta[property=og\:title]") .attr (" content ", and title);
$ ( "Meta[property=og\:description]") .attr (" content "and" Descriptions ");
$ ( "Meta[property=og\:url]") .attr (" content ", and url);
$ ( "Meta[property=og\:image]") .attr (" content ", andImageUrl);
$ ( "Meta[property=og\:image\:width]") .attr (" content ", andImageWidth);
$ ( "Meta[property=og\:image\:height]") .attr (" content ", andImageHeight);
/ * Change share button * /
$ ( ".Sp-article-details-sharing 03 widget") .find ( "BTN-.facebook") .attr ( "href" "http://www.facebook.com/sharer.php?u = "+ ogUrl +"% 3FR = cpsdfb ");
$ ( ".Sp-article-details-sharing 03 widget") .find ( ".whatsapp-btn") .attr ( "href", "WhatsApp: // send? Text =" + ogUrl);
$ ( ".Sp-article-details-sharing 03 widget") .find ( "BTN-.line") .attr ( "href" "http://line.naver.jp/R/msg/text /? "+ ogUrl);
$ ( ".Sp-article-details-sharing 03 widget") .find ( "BTN-.wechat") .attr ( "href" "http://www.qr-code-generator.com/phpqrcode /getCode.php?cht=qr&chl="+ogUrl+"&chs=180x180&choe=UTF-8&chld=L|0 ");
$ ( ".Sp-article-details-sharing 03 widget") .find ( "BTN-.weibo") .attr ( "href" "http://service.weibo.com/share/share.php ? title = "+ ogUrl);
$ ( ". Cr-article-details-sharing 03 widget"). Find ( ". Email btn"). Attr ( "href", "mailto:? Subject =" + meta title + "& body =" + ogUrl) ;
$ ( ".Sp-article-details-sharing 03 widget") .find ( "BTN-.link") .attr ( "onclick", "copyUrl (" http://skypost.ulifestyle.com.hk/ "+ ogUrl +" http://skypost.ulifestyle.com.hk/ ")");
}
}
});
});
function isScrolledIntoView (elem) {
was $ elem = $ (elem);
was $ window = $ (window);
was docViewTop = $ window.scrollTop ();
was docViewBottom = docViewTop + $ window.height ();
was elemTop = $ elem.offset (). top;
was elemBottom = elemTop + $ elem.height ();
//console.log ();
return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop)) "http://skypost.ulifestyle.com.hk/" ((elemBottom> = docViewBottom) && (elemTop <= docViewTop));
}
[ad_2]
Source link