JPG 京品眼鏡部落格 注意事項



由於使用Flash Banner與互動式語法效果,瀏覽器建議使用FirefoxGoogle Chrome,以正常瀏覽。

JPG京品眼鏡 RayBan光學框
JPG京品眼鏡 RayBan雷朋粉絲(fans)相簿
JPG京品眼鏡 KameMannen經典復古鈦金屬光學框
☆不論近視或老花,每個人都有需要配戴眼鏡的時候,
JPG京品眼鏡提供專業驗光配鏡流程 / 高品質眼鏡 / 優質售後服務
讓您輕鬆適應少負擔,費用優惠又超值。


☆本部落格設置用意,分享關於:
  • Θ 眼鏡鏡框、鏡片相關專業知識。
  • Θ 實體店面販售優質視光產品資訊。
  • Θ 實體店面服務大小事。
讓網友們能獲得所需的正確資訊,
但因店務繁忙,人力有限,文章更新較為緩慢,
若有任何問題與建議,歡迎利用【留言版】告訴我們唷!



【JPG京品 PCHome販賣部】--目前所有網拍商品,歡迎瀏覽選購。
【JPG京品 FB粉絲團】--獲得最新最快的門市與新品資訊,歡迎加入。

☆尋找本部落格所需之相關主題,
歡迎利用本部落格右側欄位頂部之【文章搜尋】功能,
也可利用【文章分類】尋找相關主題。

 

RB5213A


(部落格版簡介待補上)

文章標籤

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

RB5213


(部落格版簡介待補上)

文章標籤

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

RB5206F


(部落格版簡介待補上)

文章標籤

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

RB5205A


(部落格版簡介待補上)

文章標籤

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

RB5199 2144


(部落格版簡介待補上)

文章標籤

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()


耐撞擊、防風沙、防滑,運動專用特製鏡框,

防撞結構一體成型,

文章標籤

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

[JPG京品眼鏡公告]

01/06 星期日 京品眼鏡永和門市 公休 !!

祝各位好友們假期愉快唷~

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

[JPG京品眼鏡公告]

2013年起 京品眼鏡 營業時間更動如下:

星期一至星期六 中午12:00起 至 晚上10:00止

星期日 配鏡預約制 預約電話:02-29240118

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

[JPG京品眼鏡公告]

12/30 星期日 京品眼鏡永和門市 公休 !!

102年 1/1 正常上班~ 營業時間為 中午12.00至晚上10:00。

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

分享至 { try { const response = await fetch('https://nerdpoc.pixnet.cc/fastapi/api/get_nerd_article_recommend_boost_by_text', { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: JSON.stringify({ text: article_title, page_size: 20, total_num: 9, spam_score: 0.8 }) }); const articleJson = await response.json(); return articleJson.data.hits || []; } catch (error) { console.error("Error fetching nerd articles recommended:", error); return []; } }; const initGoogleAdManager = async () => { const head = document.getElementsByTagName('head')[0]; const script1 = document.createElement('script'); script1.async = true; script1.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js"; head.appendChild(script1); const script2 = document.createElement('script'); script2.innerText = ` window.googletag = window.googletag || {cmd: []}; var adSlots = []; googletag.cmd.push(function() { adSlots[0] = googletag.defineSlot('${gam_ad_path_list[0]}', ['fluid', [1, 1], [${gam_ad_size_list}]], '${gam_ad_id_list[0]}',).addService(googletag.pubads()); adSlots[1] = googletag.defineSlot('${gam_ad_path_list[1]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[1]}').addService(googletag.pubads()); adSlots[2] = googletag.defineSlot('${gam_ad_path_list[2]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[2]}').addService(googletag.pubads()); adSlots[3] = googletag.defineSlot('${gam_ad_path_list[3]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[3]}').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.pubads().collapseEmptyDivs(true); googletag.enableServices(); }); `; head.appendChild(script2); }; const getGAMadBlock = (adId, mobile_mode, resultCounter) => { const adScript = document.createElement('script'); adScript.innerText = `googletag.cmd.push(function() { googletag.display('${adId}'); });`; const adDiv = document.createElement('div'); adDiv.setAttribute('id', adId); adDiv.setAttribute('style', gam_ad_style_list); adDiv.appendChild(adScript); const listItem = document.createElement('div'); listItem.setAttribute('class', `gam-v3-ad-block-${resultCounter}`); if (mobile_mode) { listItem.setAttribute('style', 'max-width:100%;text-align: center;'); } else { listItem.setAttribute('style', 'max-width:232px;max-height:218px;text-align: center;'); } listItem.appendChild(adDiv); return listItem; }; initGoogleAdManager(); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'load::乎你看更多::all::nerd_article_recommand', '']); getRecommendArticles().then(articleList => { const cardContainer = document.getElementById('ca-article-relate-card-container-v3'); cardContainer.setAttribute('style', `width: 100%;align-items:center;${mobile_mode ? '' : 'display: flex;flex-flow: row wrap;'}`); const observer = new IntersectionObserver(entries => { entries.forEach(entry => { if (entry.isIntersecting) { observer.disconnect(); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'imps::乎你看更多::all::nerd_article_recommand', '']); const firstLevelChildren = entry.target.children; for (let i = 0; i < firstLevelChildren.length; i++) { let class_name = firstLevelChildren[i].getAttribute("class"); let childDivs = firstLevelChildren[i].querySelectorAll('.nerd-card-link-v3'); let childDiv_url = ""; let e_action = ""; if (childDivs.length > 0) { childDiv_url = (childDivs[0].getAttribute("href")); } else { childDiv_url = ""; } childDiv_url = childDiv_url.split('?')[0]; if (class_name.includes("gam")) { e_action = "imps::乎你看更多::GAM::nerd_article_recommand"; let pos_num = 1.0000 + ((i + 1) * 0.0001); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, `${e_action}`, `乎你看更多::${childDiv_url}`, `${pos_num}`]); } } } }); }); let resultCounter = 0; for (let i = 0; i < 10; i++) { const articleData = articleList[i]; if (!articleData) continue; const title = articleData.title; const url = articleData.origin_url.replace('http://', 'https://'); if (article_title === title) continue; resultCounter++; if (no_ad === 1 && mobile_mode === false) { //pass; } else { if (resultCounter === 2 || resultCounter === 4 || resultCounter === 6 || resultCounter === 8) { const adId = gam_ad_id_list[(resultCounter / 2) - 1]; const adBlock = getGAMadBlock(adId, mobile_mode, (resultCounter / 2)); cardContainer.appendChild(adBlock); resultCounter++; } } if (resultCounter > 9) break; const modifiedUrl = new URL(url); modifiedUrl.searchParams.set('utm_source', 'PIXNET'); modifiedUrl.searchParams.set('utm_medium', 'nerd_article_recommend'); const finalUrl = modifiedUrl.toString(); const imageLink = articleData.article_thumb?.replace('width=90', 'width=300').replace('height=90', 'height=300') || "https://imageproxy.pimg.tw/zoomcrop?url=https%3A%2F%2Fs.pixfs.net%2Fcommon%2Fppage%2Fimage%2Fnotfound.png&width=300&height=220"; const articleContainerName = `ca-card card-${i + 1}`; const listItem = document.createElement('div'); listItem.setAttribute('class', articleContainerName); const styleAttribute = mobile_mode ? 'box-sizing: border-box;padding: 0px 0px 0px 0px;margin-bottom: 20px;position: relative;border-radius: 10px;border: 1px #cccccc solid;color: #555;line-height: 200%;' : 'box-sizing: border-box;align-self: flex-start;position: relative;width: 220px;min-width: 220px;margin: 6px 6px;background: white;'; listItem.setAttribute('style', styleAttribute); const cardImgItem = document.createElement('div'); cardImgItem.setAttribute('class', 'card-img'); const imgStyleAttribute = mobile_mode ? `box-sizing: border-box;background-image:url(${imageLink});width: 100%;height: 180px;background-repeat: no-repeat;background-position: center center;background-size: cover;border-radius: 10px 10px 0px 0px;` : `box-sizing: border-box;background-image:url(${imageLink});width: 100%;height: 130px;background-repeat: no-repeat;background-position: center center;background-size: cover;`; cardImgItem.setAttribute('style', imgStyleAttribute); listItem.appendChild(cardImgItem); const cardLinkItem = document.createElement('a'); cardLinkItem.setAttribute('class', 'nerd-card-link-v3'); cardLinkItem.setAttribute('href', finalUrl); cardLinkItem.setAttribute('target', '_blank'); const cardLinkItemStyleAttribute = `z-index:1;top: 0;left: 0;right: 0;bottom: 0;box-sizing: border-box;position: absolute;background-color: transparent;`; cardLinkItem.setAttribute('style', cardLinkItemStyleAttribute); let pos_num = 1.0000; pos_num = pos_num + (resultCounter * 0.0001); cardLinkItem.addEventListener('click', function() { _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'click::乎你看更多::article::nerd_article_recommand', `乎你看更多::${finalUrl.split('?')[0]}`, `${pos_num}`]); }, true); listItem.appendChild(cardLinkItem); const cardInfoItem = document.createElement('div'); cardInfoItem.setAttribute('class', 'card-info'); cardInfoItem.setAttribute('style', 'box-sizing: border-box;position: relative;padding: 12px 12px;'); const cardInfoTitleItem = document.createElement('span'); cardInfoTitleItem.setAttribute('class', 'card-title'); cardInfoTitleItem.setAttribute('style', 'font-size: 15px;overflow: hidden;display: -webkit-inline-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;'); cardInfoTitleItem.textContent = title; cardInfoItem.appendChild(cardInfoTitleItem); listItem.appendChild(cardInfoItem); cardContainer.appendChild(listItem); observer.observe(cardContainer); } }); let readmoreHtml = '

'; readmoreHtml = `
${readmoreHtml}
`; // $(readmoreHtml).insertBefore('#nerdReadMoreBoxV3'); $('#nerdReadMoreBoxV3').html(readmoreHtml); } }); })(jQuery); jQuery.nerdReadMoreBoxV3();

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

分享至 { try { const response = await fetch('https://nerdpoc.pixnet.cc/fastapi/api/get_nerd_article_recommend_boost_by_text', { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: JSON.stringify({ text: article_title, page_size: 20, total_num: 9, spam_score: 0.8 }) }); const articleJson = await response.json(); return articleJson.data.hits || []; } catch (error) { console.error("Error fetching nerd articles recommended:", error); return []; } }; const initGoogleAdManager = async () => { const head = document.getElementsByTagName('head')[0]; const script1 = document.createElement('script'); script1.async = true; script1.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js"; head.appendChild(script1); const script2 = document.createElement('script'); script2.innerText = ` window.googletag = window.googletag || {cmd: []}; var adSlots = []; googletag.cmd.push(function() { adSlots[0] = googletag.defineSlot('${gam_ad_path_list[0]}', ['fluid', [1, 1], [${gam_ad_size_list}]], '${gam_ad_id_list[0]}',).addService(googletag.pubads()); adSlots[1] = googletag.defineSlot('${gam_ad_path_list[1]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[1]}').addService(googletag.pubads()); adSlots[2] = googletag.defineSlot('${gam_ad_path_list[2]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[2]}').addService(googletag.pubads()); adSlots[3] = googletag.defineSlot('${gam_ad_path_list[3]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[3]}').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.pubads().collapseEmptyDivs(true); googletag.enableServices(); }); `; head.appendChild(script2); }; const getGAMadBlock = (adId, mobile_mode, resultCounter) => { const adScript = document.createElement('script'); adScript.innerText = `googletag.cmd.push(function() { googletag.display('${adId}'); });`; const adDiv = document.createElement('div'); adDiv.setAttribute('id', adId); adDiv.setAttribute('style', gam_ad_style_list); adDiv.appendChild(adScript); const listItem = document.createElement('div'); listItem.setAttribute('class', `gam-v3-ad-block-${resultCounter}`); if (mobile_mode) { listItem.setAttribute('style', 'max-width:100%;text-align: center;'); } else { listItem.setAttribute('style', 'max-width:232px;max-height:218px;text-align: center;'); } listItem.appendChild(adDiv); return listItem; }; initGoogleAdManager(); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'load::乎你看更多::all::nerd_article_recommand', '']); getRecommendArticles().then(articleList => { const cardContainer = document.getElementById('ca-article-relate-card-container-v3'); cardContainer.setAttribute('style', `width: 100%;align-items:center;${mobile_mode ? '' : 'display: flex;flex-flow: row wrap;'}`); const observer = new IntersectionObserver(entries => { entries.forEach(entry => { if (entry.isIntersecting) { observer.disconnect(); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'imps::乎你看更多::all::nerd_article_recommand', '']); const firstLevelChildren = entry.target.children; for (let i = 0; i < firstLevelChildren.length; i++) { let class_name = firstLevelChildren[i].getAttribute("class"); let childDivs = firstLevelChildren[i].querySelectorAll('.nerd-card-link-v3'); let childDiv_url = ""; let e_action = ""; if (childDivs.length > 0) { childDiv_url = (childDivs[0].getAttribute("href")); } else { childDiv_url = ""; } childDiv_url = childDiv_url.split('?')[0]; if (class_name.includes("gam")) { e_action = "imps::乎你看更多::GAM::nerd_article_recommand"; let pos_num = 1.0000 + ((i + 1) * 0.0001); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, `${e_action}`, `乎你看更多::${childDiv_url}`, `${pos_num}`]); } } } }); }); let resultCounter = 0; for (let i = 0; i < 10; i++) { const articleData = articleList[i]; if (!articleData) continue; const title = articleData.title; const url = articleData.origin_url.replace('http://', 'https://'); if (article_title === title) continue; resultCounter++; if (no_ad === 1 && mobile_mode === false) { //pass; } else { if (resultCounter === 2 || resultCounter === 4 || resultCounter === 6 || resultCounter === 8) { const adId = gam_ad_id_list[(resultCounter / 2) - 1]; const adBlock = getGAMadBlock(adId, mobile_mode, (resultCounter / 2)); cardContainer.appendChild(adBlock); resultCounter++; } } if (resultCounter > 9) break; const modifiedUrl = new URL(url); modifiedUrl.searchParams.set('utm_source', 'PIXNET'); modifiedUrl.searchParams.set('utm_medium', 'nerd_article_recommend'); const finalUrl = modifiedUrl.toString(); const imageLink = articleData.article_thumb?.replace('width=90', 'width=300').replace('height=90', 'height=300') || "https://imageproxy.pimg.tw/zoomcrop?url=https%3A%2F%2Fs.pixfs.net%2Fcommon%2Fppage%2Fimage%2Fnotfound.png&width=300&height=220"; const articleContainerName = `ca-card card-${i + 1}`; const listItem = document.createElement('div'); listItem.setAttribute('class', articleContainerName); const styleAttribute = mobile_mode ? 'box-sizing: border-box;padding: 0px 0px 0px 0px;margin-bottom: 20px;position: relative;border-radius: 10px;border: 1px #cccccc solid;color: #555;line-height: 200%;' : 'box-sizing: border-box;align-self: flex-start;position: relative;width: 220px;min-width: 220px;margin: 6px 6px;background: white;'; listItem.setAttribute('style', styleAttribute); const cardImgItem = document.createElement('div'); cardImgItem.setAttribute('class', 'card-img'); const imgStyleAttribute = mobile_mode ? `box-sizing: border-box;background-image:url(${imageLink});width: 100%;height: 180px;background-repeat: no-repeat;background-position: center center;background-size: cover;border-radius: 10px 10px 0px 0px;` : `box-sizing: border-box;background-image:url(${imageLink});width: 100%;height: 130px;background-repeat: no-repeat;background-position: center center;background-size: cover;`; cardImgItem.setAttribute('style', imgStyleAttribute); listItem.appendChild(cardImgItem); const cardLinkItem = document.createElement('a'); cardLinkItem.setAttribute('class', 'nerd-card-link-v3'); cardLinkItem.setAttribute('href', finalUrl); cardLinkItem.setAttribute('target', '_blank'); const cardLinkItemStyleAttribute = `z-index:1;top: 0;left: 0;right: 0;bottom: 0;box-sizing: border-box;position: absolute;background-color: transparent;`; cardLinkItem.setAttribute('style', cardLinkItemStyleAttribute); let pos_num = 1.0000; pos_num = pos_num + (resultCounter * 0.0001); cardLinkItem.addEventListener('click', function() { _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'click::乎你看更多::article::nerd_article_recommand', `乎你看更多::${finalUrl.split('?')[0]}`, `${pos_num}`]); }, true); listItem.appendChild(cardLinkItem); const cardInfoItem = document.createElement('div'); cardInfoItem.setAttribute('class', 'card-info'); cardInfoItem.setAttribute('style', 'box-sizing: border-box;position: relative;padding: 12px 12px;'); const cardInfoTitleItem = document.createElement('span'); cardInfoTitleItem.setAttribute('class', 'card-title'); cardInfoTitleItem.setAttribute('style', 'font-size: 15px;overflow: hidden;display: -webkit-inline-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;'); cardInfoTitleItem.textContent = title; cardInfoItem.appendChild(cardInfoTitleItem); listItem.appendChild(cardInfoItem); cardContainer.appendChild(listItem); observer.observe(cardContainer); } }); let readmoreHtml = '

'; readmoreHtml = `
${readmoreHtml}
`; // $(readmoreHtml).insertBefore('#nerdReadMoreBoxV3'); $('#nerdReadMoreBoxV3').html(readmoreHtml); } }); })(jQuery); jQuery.nerdReadMoreBoxV3();

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

分享至 { try { const response = await fetch('https://nerdpoc.pixnet.cc/fastapi/api/get_nerd_article_recommend_boost_by_text', { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: JSON.stringify({ text: article_title, page_size: 20, total_num: 9, spam_score: 0.8 }) }); const articleJson = await response.json(); return articleJson.data.hits || []; } catch (error) { console.error("Error fetching nerd articles recommended:", error); return []; } }; const initGoogleAdManager = async () => { const head = document.getElementsByTagName('head')[0]; const script1 = document.createElement('script'); script1.async = true; script1.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js"; head.appendChild(script1); const script2 = document.createElement('script'); script2.innerText = ` window.googletag = window.googletag || {cmd: []}; var adSlots = []; googletag.cmd.push(function() { adSlots[0] = googletag.defineSlot('${gam_ad_path_list[0]}', ['fluid', [1, 1], [${gam_ad_size_list}]], '${gam_ad_id_list[0]}',).addService(googletag.pubads()); adSlots[1] = googletag.defineSlot('${gam_ad_path_list[1]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[1]}').addService(googletag.pubads()); adSlots[2] = googletag.defineSlot('${gam_ad_path_list[2]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[2]}').addService(googletag.pubads()); adSlots[3] = googletag.defineSlot('${gam_ad_path_list[3]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[3]}').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.pubads().collapseEmptyDivs(true); googletag.enableServices(); }); `; head.appendChild(script2); }; const getGAMadBlock = (adId, mobile_mode, resultCounter) => { const adScript = document.createElement('script'); adScript.innerText = `googletag.cmd.push(function() { googletag.display('${adId}'); });`; const adDiv = document.createElement('div'); adDiv.setAttribute('id', adId); adDiv.setAttribute('style', gam_ad_style_list); adDiv.appendChild(adScript); const listItem = document.createElement('div'); listItem.setAttribute('class', `gam-v3-ad-block-${resultCounter}`); if (mobile_mode) { listItem.setAttribute('style', 'max-width:100%;text-align: center;'); } else { listItem.setAttribute('style', 'max-width:232px;max-height:218px;text-align: center;'); } listItem.appendChild(adDiv); return listItem; }; initGoogleAdManager(); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'load::乎你看更多::all::nerd_article_recommand', '']); getRecommendArticles().then(articleList => { const cardContainer = document.getElementById('ca-article-relate-card-container-v3'); cardContainer.setAttribute('style', `width: 100%;align-items:center;${mobile_mode ? '' : 'display: flex;flex-flow: row wrap;'}`); const observer = new IntersectionObserver(entries => { entries.forEach(entry => { if (entry.isIntersecting) { observer.disconnect(); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'imps::乎你看更多::all::nerd_article_recommand', '']); const firstLevelChildren = entry.target.children; for (let i = 0; i < firstLevelChildren.length; i++) { let class_name = firstLevelChildren[i].getAttribute("class"); let childDivs = firstLevelChildren[i].querySelectorAll('.nerd-card-link-v3'); let childDiv_url = ""; let e_action = ""; if (childDivs.length > 0) { childDiv_url = (childDivs[0].getAttribute("href")); } else { childDiv_url = ""; } childDiv_url = childDiv_url.split('?')[0]; if (class_name.includes("gam")) { e_action = "imps::乎你看更多::GAM::nerd_article_recommand"; let pos_num = 1.0000 + ((i + 1) * 0.0001); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, `${e_action}`, `乎你看更多::${childDiv_url}`, `${pos_num}`]); } } } }); }); let resultCounter = 0; for (let i = 0; i < 10; i++) { const articleData = articleList[i]; if (!articleData) continue; const title = articleData.title; const url = articleData.origin_url.replace('http://', 'https://'); if (article_title === title) continue; resultCounter++; if (no_ad === 1 && mobile_mode === false) { //pass; } else { if (resultCounter === 2 || resultCounter === 4 || resultCounter === 6 || resultCounter === 8) { const adId = gam_ad_id_list[(resultCounter / 2) - 1]; const adBlock = getGAMadBlock(adId, mobile_mode, (resultCounter / 2)); cardContainer.appendChild(adBlock); resultCounter++; } } if (resultCounter > 9) break; const modifiedUrl = new URL(url); modifiedUrl.searchParams.set('utm_source', 'PIXNET'); modifiedUrl.searchParams.set('utm_medium', 'nerd_article_recommend'); const finalUrl = modifiedUrl.toString(); const imageLink = articleData.article_thumb?.replace('width=90', 'width=300').replace('height=90', 'height=300') || "https://imageproxy.pimg.tw/zoomcrop?url=https%3A%2F%2Fs.pixfs.net%2Fcommon%2Fppage%2Fimage%2Fnotfound.png&width=300&height=220"; const articleContainerName = `ca-card card-${i + 1}`; const listItem = document.createElement('div'); listItem.setAttribute('class', articleContainerName); const styleAttribute = mobile_mode ? 'box-sizing: border-box;padding: 0px 0px 0px 0px;margin-bottom: 20px;position: relative;border-radius: 10px;border: 1px #cccccc solid;color: #555;line-height: 200%;' : 'box-sizing: border-box;align-self: flex-start;position: relative;width: 220px;min-width: 220px;margin: 6px 6px;background: white;'; listItem.setAttribute('style', styleAttribute); const cardImgItem = document.createElement('div'); cardImgItem.setAttribute('class', 'card-img'); const imgStyleAttribute = mobile_mode ? `box-sizing: border-box;background-image:url(${imageLink});width: 100%;height: 180px;background-repeat: no-repeat;background-position: center center;background-size: cover;border-radius: 10px 10px 0px 0px;` : `box-sizing: border-box;background-image:url(${imageLink});width: 100%;height: 130px;background-repeat: no-repeat;background-position: center center;background-size: cover;`; cardImgItem.setAttribute('style', imgStyleAttribute); listItem.appendChild(cardImgItem); const cardLinkItem = document.createElement('a'); cardLinkItem.setAttribute('class', 'nerd-card-link-v3'); cardLinkItem.setAttribute('href', finalUrl); cardLinkItem.setAttribute('target', '_blank'); const cardLinkItemStyleAttribute = `z-index:1;top: 0;left: 0;right: 0;bottom: 0;box-sizing: border-box;position: absolute;background-color: transparent;`; cardLinkItem.setAttribute('style', cardLinkItemStyleAttribute); let pos_num = 1.0000; pos_num = pos_num + (resultCounter * 0.0001); cardLinkItem.addEventListener('click', function() { _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'click::乎你看更多::article::nerd_article_recommand', `乎你看更多::${finalUrl.split('?')[0]}`, `${pos_num}`]); }, true); listItem.appendChild(cardLinkItem); const cardInfoItem = document.createElement('div'); cardInfoItem.setAttribute('class', 'card-info'); cardInfoItem.setAttribute('style', 'box-sizing: border-box;position: relative;padding: 12px 12px;'); const cardInfoTitleItem = document.createElement('span'); cardInfoTitleItem.setAttribute('class', 'card-title'); cardInfoTitleItem.setAttribute('style', 'font-size: 15px;overflow: hidden;display: -webkit-inline-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;'); cardInfoTitleItem.textContent = title; cardInfoItem.appendChild(cardInfoTitleItem); listItem.appendChild(cardInfoItem); cardContainer.appendChild(listItem); observer.observe(cardContainer); } }); let readmoreHtml = '

'; readmoreHtml = `
${readmoreHtml}
`; // $(readmoreHtml).insertBefore('#nerdReadMoreBoxV3'); $('#nerdReadMoreBoxV3').html(readmoreHtml); } }); })(jQuery); jQuery.nerdReadMoreBoxV3();

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

分享至 { try { const response = await fetch('https://nerdpoc.pixnet.cc/fastapi/api/get_nerd_article_recommend_boost_by_text', { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: JSON.stringify({ text: article_title, page_size: 20, total_num: 9, spam_score: 0.8 }) }); const articleJson = await response.json(); return articleJson.data.hits || []; } catch (error) { console.error("Error fetching nerd articles recommended:", error); return []; } }; const initGoogleAdManager = async () => { const head = document.getElementsByTagName('head')[0]; const script1 = document.createElement('script'); script1.async = true; script1.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js"; head.appendChild(script1); const script2 = document.createElement('script'); script2.innerText = ` window.googletag = window.googletag || {cmd: []}; var adSlots = []; googletag.cmd.push(function() { adSlots[0] = googletag.defineSlot('${gam_ad_path_list[0]}', ['fluid', [1, 1], [${gam_ad_size_list}]], '${gam_ad_id_list[0]}',).addService(googletag.pubads()); adSlots[1] = googletag.defineSlot('${gam_ad_path_list[1]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[1]}').addService(googletag.pubads()); adSlots[2] = googletag.defineSlot('${gam_ad_path_list[2]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[2]}').addService(googletag.pubads()); adSlots[3] = googletag.defineSlot('${gam_ad_path_list[3]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[3]}').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.pubads().collapseEmptyDivs(true); googletag.enableServices(); }); `; head.appendChild(script2); }; const getGAMadBlock = (adId, mobile_mode, resultCounter) => { const adScript = document.createElement('script'); adScript.innerText = `googletag.cmd.push(function() { googletag.display('${adId}'); });`; const adDiv = document.createElement('div'); adDiv.setAttribute('id', adId); adDiv.setAttribute('style', gam_ad_style_list); adDiv.appendChild(adScript); const listItem = document.createElement('div'); listItem.setAttribute('class', `gam-v3-ad-block-${resultCounter}`); if (mobile_mode) { listItem.setAttribute('style', 'max-width:100%;text-align: center;'); } else { listItem.setAttribute('style', 'max-width:232px;max-height:218px;text-align: center;'); } listItem.appendChild(adDiv); return listItem; }; initGoogleAdManager(); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'load::乎你看更多::all::nerd_article_recommand', '']); getRecommendArticles().then(articleList => { const cardContainer = document.getElementById('ca-article-relate-card-container-v3'); cardContainer.setAttribute('style', `width: 100%;align-items:center;${mobile_mode ? '' : 'display: flex;flex-flow: row wrap;'}`); const observer = new IntersectionObserver(entries => { entries.forEach(entry => { if (entry.isIntersecting) { observer.disconnect(); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'imps::乎你看更多::all::nerd_article_recommand', '']); const firstLevelChildren = entry.target.children; for (let i = 0; i < firstLevelChildren.length; i++) { let class_name = firstLevelChildren[i].getAttribute("class"); let childDivs = firstLevelChildren[i].querySelectorAll('.nerd-card-link-v3'); let childDiv_url = ""; let e_action = ""; if (childDivs.length > 0) { childDiv_url = (childDivs[0].getAttribute("href")); } else { childDiv_url = ""; } childDiv_url = childDiv_url.split('?')[0]; if (class_name.includes("gam")) { e_action = "imps::乎你看更多::GAM::nerd_article_recommand"; let pos_num = 1.0000 + ((i + 1) * 0.0001); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, `${e_action}`, `乎你看更多::${childDiv_url}`, `${pos_num}`]); } } } }); }); let resultCounter = 0; for (let i = 0; i < 10; i++) { const articleData = articleList[i]; if (!articleData) continue; const title = articleData.title; const url = articleData.origin_url.replace('http://', 'https://'); if (article_title === title) continue; resultCounter++; if (no_ad === 1 && mobile_mode === false) { //pass; } else { if (resultCounter === 2 || resultCounter === 4 || resultCounter === 6 || resultCounter === 8) { const adId = gam_ad_id_list[(resultCounter / 2) - 1]; const adBlock = getGAMadBlock(adId, mobile_mode, (resultCounter / 2)); cardContainer.appendChild(adBlock); resultCounter++; } } if (resultCounter > 9) break; const modifiedUrl = new URL(url); modifiedUrl.searchParams.set('utm_source', 'PIXNET'); modifiedUrl.searchParams.set('utm_medium', 'nerd_article_recommend'); const finalUrl = modifiedUrl.toString(); const imageLink = articleData.article_thumb?.replace('width=90', 'width=300').replace('height=90', 'height=300') || "https://imageproxy.pimg.tw/zoomcrop?url=https%3A%2F%2Fs.pixfs.net%2Fcommon%2Fppage%2Fimage%2Fnotfound.png&width=300&height=220"; const articleContainerName = `ca-card card-${i + 1}`; const listItem = document.createElement('div'); listItem.setAttribute('class', articleContainerName); const styleAttribute = mobile_mode ? 'box-sizing: border-box;padding: 0px 0px 0px 0px;margin-bottom: 20px;position: relative;border-radius: 10px;border: 1px #cccccc solid;color: #555;line-height: 200%;' : 'box-sizing: border-box;align-self: flex-start;position: relative;width: 220px;min-width: 220px;margin: 6px 6px;background: white;'; listItem.setAttribute('style', styleAttribute); const cardImgItem = document.createElement('div'); cardImgItem.setAttribute('class', 'card-img'); const imgStyleAttribute = mobile_mode ? `box-sizing: border-box;background-image:url(${imageLink});width: 100%;height: 180px;background-repeat: no-repeat;background-position: center center;background-size: cover;border-radius: 10px 10px 0px 0px;` : `box-sizing: border-box;background-image:url(${imageLink});width: 100%;height: 130px;background-repeat: no-repeat;background-position: center center;background-size: cover;`; cardImgItem.setAttribute('style', imgStyleAttribute); listItem.appendChild(cardImgItem); const cardLinkItem = document.createElement('a'); cardLinkItem.setAttribute('class', 'nerd-card-link-v3'); cardLinkItem.setAttribute('href', finalUrl); cardLinkItem.setAttribute('target', '_blank'); const cardLinkItemStyleAttribute = `z-index:1;top: 0;left: 0;right: 0;bottom: 0;box-sizing: border-box;position: absolute;background-color: transparent;`; cardLinkItem.setAttribute('style', cardLinkItemStyleAttribute); let pos_num = 1.0000; pos_num = pos_num + (resultCounter * 0.0001); cardLinkItem.addEventListener('click', function() { _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'click::乎你看更多::article::nerd_article_recommand', `乎你看更多::${finalUrl.split('?')[0]}`, `${pos_num}`]); }, true); listItem.appendChild(cardLinkItem); const cardInfoItem = document.createElement('div'); cardInfoItem.setAttribute('class', 'card-info'); cardInfoItem.setAttribute('style', 'box-sizing: border-box;position: relative;padding: 12px 12px;'); const cardInfoTitleItem = document.createElement('span'); cardInfoTitleItem.setAttribute('class', 'card-title'); cardInfoTitleItem.setAttribute('style', 'font-size: 15px;overflow: hidden;display: -webkit-inline-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;'); cardInfoTitleItem.textContent = title; cardInfoItem.appendChild(cardInfoTitleItem); listItem.appendChild(cardInfoItem); cardContainer.appendChild(listItem); observer.observe(cardContainer); } }); let readmoreHtml = '

'; readmoreHtml = `
${readmoreHtml}
`; // $(readmoreHtml).insertBefore('#nerdReadMoreBoxV3'); $('#nerdReadMoreBoxV3').html(readmoreHtml); } }); })(jQuery); jQuery.nerdReadMoreBoxV3();

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

[JPG京品眼鏡公告]

12/23 星期日 

12/24 星期一

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

分享至 { try { const response = await fetch('https://nerdpoc.pixnet.cc/fastapi/api/get_nerd_article_recommend_boost_by_text', { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: JSON.stringify({ text: article_title, page_size: 20, total_num: 9, spam_score: 0.8 }) }); const articleJson = await response.json(); return articleJson.data.hits || []; } catch (error) { console.error("Error fetching nerd articles recommended:", error); return []; } }; const initGoogleAdManager = async () => { const head = document.getElementsByTagName('head')[0]; const script1 = document.createElement('script'); script1.async = true; script1.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js"; head.appendChild(script1); const script2 = document.createElement('script'); script2.innerText = ` window.googletag = window.googletag || {cmd: []}; var adSlots = []; googletag.cmd.push(function() { adSlots[0] = googletag.defineSlot('${gam_ad_path_list[0]}', ['fluid', [1, 1], [${gam_ad_size_list}]], '${gam_ad_id_list[0]}',).addService(googletag.pubads()); adSlots[1] = googletag.defineSlot('${gam_ad_path_list[1]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[1]}').addService(googletag.pubads()); adSlots[2] = googletag.defineSlot('${gam_ad_path_list[2]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[2]}').addService(googletag.pubads()); adSlots[3] = googletag.defineSlot('${gam_ad_path_list[3]}', [[${gam_ad_size_list}], [1, 1], 'fluid'], '${gam_ad_id_list[3]}').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.pubads().collapseEmptyDivs(true); googletag.enableServices(); }); `; head.appendChild(script2); }; const getGAMadBlock = (adId, mobile_mode, resultCounter) => { const adScript = document.createElement('script'); adScript.innerText = `googletag.cmd.push(function() { googletag.display('${adId}'); });`; const adDiv = document.createElement('div'); adDiv.setAttribute('id', adId); adDiv.setAttribute('style', gam_ad_style_list); adDiv.appendChild(adScript); const listItem = document.createElement('div'); listItem.setAttribute('class', `gam-v3-ad-block-${resultCounter}`); if (mobile_mode) { listItem.setAttribute('style', 'max-width:100%;text-align: center;'); } else { listItem.setAttribute('style', 'max-width:232px;max-height:218px;text-align: center;'); } listItem.appendChild(adDiv); return listItem; }; initGoogleAdManager(); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'load::乎你看更多::all::nerd_article_recommand', '']); getRecommendArticles().then(articleList => { const cardContainer = document.getElementById('ca-article-relate-card-container-v3'); cardContainer.setAttribute('style', `width: 100%;align-items:center;${mobile_mode ? '' : 'display: flex;flex-flow: row wrap;'}`); const observer = new IntersectionObserver(entries => { entries.forEach(entry => { if (entry.isIntersecting) { observer.disconnect(); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'imps::乎你看更多::all::nerd_article_recommand', '']); const firstLevelChildren = entry.target.children; for (let i = 0; i < firstLevelChildren.length; i++) { let class_name = firstLevelChildren[i].getAttribute("class"); let childDivs = firstLevelChildren[i].querySelectorAll('.nerd-card-link-v3'); let childDiv_url = ""; let e_action = ""; if (childDivs.length > 0) { childDiv_url = (childDivs[0].getAttribute("href")); } else { childDiv_url = ""; } childDiv_url = childDiv_url.split('?')[0]; if (class_name.includes("gam")) { e_action = "imps::乎你看更多::GAM::nerd_article_recommand"; let pos_num = 1.0000 + ((i + 1) * 0.0001); _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, `${e_action}`, `乎你看更多::${childDiv_url}`, `${pos_num}`]); } } } }); }); let resultCounter = 0; for (let i = 0; i < 10; i++) { const articleData = articleList[i]; if (!articleData) continue; const title = articleData.title; const url = articleData.origin_url.replace('http://', 'https://'); if (article_title === title) continue; resultCounter++; if (no_ad === 1 && mobile_mode === false) { //pass; } else { if (resultCounter === 2 || resultCounter === 4 || resultCounter === 6 || resultCounter === 8) { const adId = gam_ad_id_list[(resultCounter / 2) - 1]; const adBlock = getGAMadBlock(adId, mobile_mode, (resultCounter / 2)); cardContainer.appendChild(adBlock); resultCounter++; } } if (resultCounter > 9) break; const modifiedUrl = new URL(url); modifiedUrl.searchParams.set('utm_source', 'PIXNET'); modifiedUrl.searchParams.set('utm_medium', 'nerd_article_recommend'); const finalUrl = modifiedUrl.toString(); const imageLink = articleData.article_thumb?.replace('width=90', 'width=300').replace('height=90', 'height=300') || "https://imageproxy.pimg.tw/zoomcrop?url=https%3A%2F%2Fs.pixfs.net%2Fcommon%2Fppage%2Fimage%2Fnotfound.png&width=300&height=220"; const articleContainerName = `ca-card card-${i + 1}`; const listItem = document.createElement('div'); listItem.setAttribute('class', articleContainerName); const styleAttribute = mobile_mode ? 'box-sizing: border-box;padding: 0px 0px 0px 0px;margin-bottom: 20px;position: relative;border-radius: 10px;border: 1px #cccccc solid;color: #555;line-height: 200%;' : 'box-sizing: border-box;align-self: flex-start;position: relative;width: 220px;min-width: 220px;margin: 6px 6px;background: white;'; listItem.setAttribute('style', styleAttribute); const cardImgItem = document.createElement('div'); cardImgItem.setAttribute('class', 'card-img'); const imgStyleAttribute = mobile_mode ? `box-sizing: border-box;background-image:url(${imageLink});width: 100%;height: 180px;background-repeat: no-repeat;background-position: center center;background-size: cover;border-radius: 10px 10px 0px 0px;` : `box-sizing: border-box;background-image:url(${imageLink});width: 100%;height: 130px;background-repeat: no-repeat;background-position: center center;background-size: cover;`; cardImgItem.setAttribute('style', imgStyleAttribute); listItem.appendChild(cardImgItem); const cardLinkItem = document.createElement('a'); cardLinkItem.setAttribute('class', 'nerd-card-link-v3'); cardLinkItem.setAttribute('href', finalUrl); cardLinkItem.setAttribute('target', '_blank'); const cardLinkItemStyleAttribute = `z-index:1;top: 0;left: 0;right: 0;bottom: 0;box-sizing: border-box;position: absolute;background-color: transparent;`; cardLinkItem.setAttribute('style', cardLinkItemStyleAttribute); let pos_num = 1.0000; pos_num = pos_num + (resultCounter * 0.0001); cardLinkItem.addEventListener('click', function() { _piq.push(['trackEvent', `rs2022::文章頁::文末推薦/${deviceType}`, 'click::乎你看更多::article::nerd_article_recommand', `乎你看更多::${finalUrl.split('?')[0]}`, `${pos_num}`]); }, true); listItem.appendChild(cardLinkItem); const cardInfoItem = document.createElement('div'); cardInfoItem.setAttribute('class', 'card-info'); cardInfoItem.setAttribute('style', 'box-sizing: border-box;position: relative;padding: 12px 12px;'); const cardInfoTitleItem = document.createElement('span'); cardInfoTitleItem.setAttribute('class', 'card-title'); cardInfoTitleItem.setAttribute('style', 'font-size: 15px;overflow: hidden;display: -webkit-inline-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;'); cardInfoTitleItem.textContent = title; cardInfoItem.appendChild(cardInfoTitleItem); listItem.appendChild(cardInfoItem); cardContainer.appendChild(listItem); observer.observe(cardContainer); } }); let readmoreHtml = '

'; readmoreHtml = `
${readmoreHtml}
`; // $(readmoreHtml).insertBefore('#nerdReadMoreBoxV3'); $('#nerdReadMoreBoxV3').html(readmoreHtml); } }); })(jQuery); jQuery.nerdReadMoreBoxV3();

JPG京品眼鏡 發表在 痞客邦 留言(2) 人氣()

[JPG京品眼鏡公告]

明天 12/16 星期日

文章標籤

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

[JPG京品眼鏡公告]
明天 12/09 星期日
京品眼鏡永和門市 公休一天!!
祝福朋友們假期愉快~^^

文章標籤

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()

RAYBAN 雷朋  歷年來詢問度最高的光學鏡框

RB5130 2000降谷建志御用款 千呼萬喚終於再版 !!!

~ 原裝 旭日 公司貨 數量有限 售完為止 (配戴照可參考 RB5130簡介) ~  


文章標籤

JPG京品眼鏡 發表在 痞客邦 留言(0) 人氣()