Last active
August 29, 2015 14:22
-
-
Save kurorido/b8a4f827d52c6b47c890 to your computer and use it in GitHub Desktop.
一些網頁基礎使用
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( /Android|webOS|iPhone|iPod|iPad|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { | |
// some code.. | |
window.location.href = "to mobile site url"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta tag 的使用 | |
## for facebook | |
title | |
type | |
url | |
image | |
site_name | |
description | |
##for google | |
description | |
author | |
copyright | |
application-name | |
<!-- for Facebook --> | |
<meta property="og:title" content="台灣國賠實錄 我們的錢賠我們的痛"/> | |
<meta property="og:type" content="website"/> | |
<meta property="og:url" content="http://p.udn.com.tw/upf/newmedia/2015_data/20150527_udncompensate/udncompensate/index.html"/> | |
<meta property="og:image" content="http://p.udn.com.tw/upf/newmedia/2015_data/20150527_udncompensate/udncompensate/img/FB2.jpg?v1"/> | |
<meta property="og:site_name" content="聯合報系新媒體部"/> | |
<meta property="og:description" content="台灣的國家賠償案件紀錄是一份不公開資料,民眾很難取得,但花得卻是我們納稅人的每一分錢。聯合報調查近10年中央機關國賠資料,交通部和國防部占總金額8成以上。透過視覺化呈現,帶你探索數據背後的故事。"/> | |
<!-- for Google --> | |
<meta name="description" content="台灣的國家賠償案件紀錄是一份不公開資料,民眾很難取得,但花得卻是我們納稅人的每一分錢。聯合報調查近10年中央機關國賠資料,交通部和國防部占總金額8成以上。透過視覺化呈現,帶你探索數據背後的故事。" /> | |
<meta name="author" content="聯合報系新媒體部" /> | |
<meta name="copyright" content="聯合報系新媒體部" /> | |
<meta name="application-name" content="台灣國賠實錄 我們的錢賠我們的痛" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment