Skip to content

Instantly share code, notes, and snippets.

@takimo
Created October 18, 2011 11:09
Show Gist options
  • Select an option

  • Save takimo/1295178 to your computer and use it in GitHub Desktop.

Select an option

Save takimo/1295178 to your computer and use it in GitHub Desktop.
IE9 - Build My Pinned Site
http://buildmypinnedsite.com/en
h5. favicon
{code}
<!-- Make sure the href of the link tag points to the icon you created -->
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
<meta name="application-name" content="Build My Pinned Site" />
<meta name="msapplication-starturl" content="http://buildmypinnedsite.com" />
<meta name="msapplication-navbutton-color" content="#3480C0" />
<meta name="msapplication-window" content="width=1024;height=768" />
<meta name="msapplication-tooltip" content="Start Build My Pinned Site" />
{code}
h5. ジャンプリスト
{code}
<script type=’text/javascript’>
window.external.msSiteModeCreateJumplist(‘Twitter&RSS’);
window.external.msSiteModeAddJumpListItem (‘IE9まとめサイトのTwitter’ , ‘http://twitter.com/IE9matome’, ‘http://twitter.com/favicon.ico’);
window.external.msSiteModeAddJumpListItem (‘IE9まとめサイトのRSS’ , ‘http://internet-explorer9.info/feed/’, ‘<?php echo get_option(‘home’); ?>/rss.ico’);
</script>
{code}
h5. ファビコン
h6. HTML
{code}
<meta name="msapplication-task"
content="name=Develop for Internet Explorer 9;
action-uri=http://www.beautyoftheweb.com/#/startdeveloping;
icon-uri=/favicon.ico" />
<meta name="msapplication-task"
content="name=Attend a Web Camp;
action-uri=http://www.beautyoftheweb.com/#/camps;
icon-uri=/favicon.ico" />
<meta name="msapplication-task"
content="name=Download Internet Explorer 9;
action-uri=http://www.beautyoftheweb.com/#/download;
icon-uri=/favicon.ico" />
{code}
h5. 通知
{code}
<script type="text/javascript" charset="utf-8">
// This code creates a two second timeout that adds a custom overlay icon
// and triggers a notification.
// The timeout is just for demostration and is not required
window.setTimeout(function () {
window.external.msSiteModeSetIconOverlay("/icons/overlay.ico", "Example Notification");
window.external.msSiteModeActivate();
}, 2000);
</script>
{code}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment