NOWnews.com 今日新聞網
2013年5月31日 18:48
");
$(".story_photo .videoPlay").hover (
function(){$(this).css({"opacity":"0"})},
function(){$(this).css({"opacity":"1"})}
)
}
//照片區塊出現
$(".story_photo").fadeIn(1000);
//寫入第一張照片
var firstimg = $(".story_photo img:first").attr("rel");
$(".story_photo img:first").attr("src",firstimg);
$(".story_photo li:not(:first)").hide();
//判斷是否有多張照片,寫入開關
var li_nums = $(".story_photo li").length;
var openclose = '
更多照片 '
if (li_nums > 1) {
$(".story_photo .p_switcher").append(openclose);
}
//控制錨點
if (li_nums > 1) {
$('.open_btn, .story_photo img').click(function(){
$('.news_story').ScrollTo(500);
});
$('.close_btn, .story_photo img').click(function(){
$('.news_story').ScrollTo(500);
});
} else {
$(".story_photo img").css("cursor","none").attr("title","");//一張圖時
$(".p_switcher").hide();
}
//點擊圖片或開關,展開其他圖片
$("a.open_close").click(function(){
//寫入其他圖片路徑
$(".story_photo img:not(:first)").each(function(){
var imgsrc = $(this).attr("rel");
$(this).attr("src",imgsrc);
});
$(".story_photo li:not(:first)").slideToggle(500);
$(".open_close span").toggle();
});
if (video_link>0){ // 如果有影音,點圖連到影音頁
$(".story_photo img, .story_photo .videoPlay").css("cursor","pointer").attr("title","點擊觀看影音新聞");//設定游標
$(".story_photo img, .story_photo .videoPlay").click(function(){
var videoURL = $(".story_photo .video_link a").attr("href");
location.href=videoURL;
});
} else { //沒影音時,點圖展開其它圖
if (li_nums > 1) {//一張圖以上
$(".story_photo img").css("cursor","pointer").attr("title","點擊展開");//設定游標
}
$(".story_photo img").click(function(){
//寫入其他圖片路徑
$(".story_photo img:not(:first)").each(function(){
var imgsrc = $(this).attr("rel");
$(this).attr("src",imgsrc);
});
$(".story_photo li:not(:first)").slideToggle(500);
$(".open_close span").toggle();
});
}
//-------------------
});
-

正如麥當勞理論一文所說的那樣,「今天該吃點什麼?」似乎是一個永恆的難題。除了解決好舌尖問題以外,吃的東西有沒有營養究竟有多營養也是一道科學難題。不過 Google準備逐步解決這個問題。
大陸新聞中心/綜合報導
正如麥當勞理論一文所說的那樣,『今天該吃點什麼?』似乎是一個永恆的難題。除了解決好舌尖問題以外,吃的東西有沒有營養究竟有多營養也是一道科學難題。不過 Google 準備逐步解決這個問題。
根據36氪報導,從今日開始,Google 將會把營養資料整合進搜索裡。當用戶搜索食物的時候,搜索結果將會提供有關食物的卡路里、碳水化合物、蛋白質、糖分以及相關的食物資訊。首批入庫的食物有 1000 多種,包括水果、蔬菜、肉類以及穀類。
用戶可以用自然語言搜索的方式查詢食物相關資料。比方說『爆米花的卡路里有多高?』Google 稱知識圖譜會幫助把搜索結果做得更精確。舉個例子,如果用戶詢問『西葫蘆的碳水化合物』時,Google 會在下拉功能表把『節瓜』作為相關食物添加進去,因為這屬於西葫蘆的一種。不過,用戶的方便往往是以開發的艱難為代價的。Google 稱這項計劃為非常困難的挑戰。
關於改進支援,我已經幫 Google 想好了一個點子。那就是,當我戴上Google Glass掃視我眼前的鐘愛的食物時,它能夠通過圖像識別出食物,然後顯示相關營養資訊。呃,如果這種東西的卡路里超高,Google Glass 必須彈出紅色告警框警示,包括禁止取下眼鏡的警示。

Google 會在 10 日內首先面向美國用戶推出英文版的搜索結果,並計劃在今後增加其他語言支援,豐富入庫的食物種類,並完善與健康相關的功能。
關鍵字:
Google
整合
食物
營養
資料
This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html