favicon

Adding favicon to javascript Bookmarklet (uses window.open)

假如想象 提交于 2019-12-03 01:39:42
问题 I have a bookmarklet that launches a window.open javascript function to open a small window with my bookmarklet -- an external feature used to communicate between any visted site and my server. I'd like for a favicon to show up when the bookmarklet is added to the bookmark toolbar. I realize that the bookmarklet is javascript, there is no domain tied to it so it's going to be either difficult or impossible to achieve this goal. My understanding of the problem: Favicons are easy to understand,

Correct MIME Type for favicon.ico?

余生长醉 提交于 2019-12-03 01:23:37
问题 According to the Internet Assigned Numbers Authority (IANA), all .ico file falls under the MIME type image/vnd.microsoft.icon . (Source) E.g. <link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico" /> However, savvy internet guru, Paul Irish , claims this is wrong, and that it would actually be image/x-icon . (Source) E.g. <link rel="icon" type="image/x-icon" href="favicon.ico" /> I know you can get away with not including a "type" for .ico files, but if you were going to include

favicon / start sreens for all browsers and devices [closed]

為{幸葍}努か 提交于 2019-12-03 00:45:43
I was wondering if i have everything covered to include all favicons / start splash screens for all browsers and devices? Is this enough? Or what are the main ones I should be covering? Am i missing any below: <link rel="icon" href="/images/favicons/favicon.png"> <link rel="apple-touch-icon" href="/images/favicons/touch-icon-iphone.png"> <link rel="apple-touch-icon" sizes="76x76" href="/images/favicons/touch-icon-ipad.png"> <link rel="apple-touch-icon" sizes="120x120" href="/images/favicons/touch-icon-iphone-retina.png"> <link rel="apple-touch-icon" sizes="152x152" href="/images/favicons/touch

Where does IE9 look for the large favicons?

假如想象 提交于 2019-12-02 22:16:25
IE9 has the concept of pinning a particular website to the Windows7 task bar. For certain sites (such as Facebook), it will then display an extra large favicon in the task bar, and also next to the back button. How do I tell IE to do this for my site? Please read the following article How to enable IE9 pinning and Jumplists Create a High Definition Favicon Standard favicon files are usually 32x32 or 16x16 pixels in size. These look great in the browser but when you pin it to the taskbar it can be a little small and pixilated. To give the best pinning experience you should use a 64x64 favicon.

Favicon with GitHub Pages

我怕爱的太早我们不能终老 提交于 2019-12-02 22:11:02
I'm hosting a few sites with GitHub Pages (User and Project Pages), but they are not displaying their favicons (in the browser). <link rel="shortcut icon" type="image/png" href="/favicon.png"> Is the problem that GitHub displays the site with <frameset> ? I know it's possible to display favicons (at least with Jekyll), but can I display a favicon on it's own? Yes, you can. Put this into the head part of your webpage: <link rel="shortcut icon" type="image/x-icon" href="favicon.ico"> It is important to not put the slash before the favicon.ico part. Put the favicon.ico file in your repository's

nginx重定向连接, 报Permission denied) while connecting to upstream

匿名 (未验证) 提交于 2019-12-02 22:10:10
#sever需要放在http内部 server{ listen 80; location / { proxy_pass http://192.168.1.104:8080; } } 连接nginx地址: nginx -V #找到nginx的错误日志路径 cat /var/log/nginx/error.log 日志报错: 2019/09/13 10:35:31 [crit] 81104#81104: *5 connect() to 192.168.1.104:8080 failed (13: Permission denied) while connecting to upstream, client: 192.168.1.103, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.1.104:8080/favicon.ico", host: "192.168.1.105", referrer: "http://192.168.1.105/" 2019/09/13 10:35:31 [crit] 81104#81104: *5 connect() to 192.168.1.104:8080 failed (13: Permission denied) while connecting

Angular-2 : Change favicon icon as per configuration

可紊 提交于 2019-12-02 21:59:05
I am rendering a dynamic page, menu and other items in my application. I also want to change favicon as per configured by admin. Say, for example, if when my page load configured favicon is xyz.png then it will show xyz.png as the favicon. As in the below image, new favicon should replace existing one near by "Test Application". Right now, it shows the default favicon as seen below. index.html : <!DOCTYPE html> <html> <head> <base href="/MyFirstAngular2/" > <title>Angular 2</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" id="appIcon" href=

Vue项目打包常见问题整理

匿名 (未验证) 提交于 2019-12-02 21:53:52
Vue 项目在开发时运行正常,打包发布后却出现各种报错,这里整理一下遇到的问题,以备忘。 1、js 路径问题 脚手架默认打包的路径为绝对路径,改为相对路径。修改 config/index.js 中 build 节点下 assetsPublicPath,把原来 ‘/’ 改为 ‘./’ 1 build: { 2 assetsPublicPath: './' 3 } 2、img 路径问题 在 build/utils.js 文件中 ExtractTextPlugin extract 节点下,添加一行:publicPath: ‘…/…/’ 1 if (options.extract) { 2 return ExtractTextPlugin.extract({ 3 use: loaders, 4 fallback: 'vue-style-loader', 5 publicPath: '../../' 6 }) 7 } else { 8 return ['vue-style-loader'].concat(loaders) 9 } 3、favicon.ico 问题 ① 在 build/webpack.prod.conf.js 文件中 new HtmlWebpackPlugin 节点下, 添加一行:favicon: config.build.favicon 1 new

How to add favicon.ico in ASP.NET site

你说的曾经没有我的故事 提交于 2019-12-02 18:50:06
The solution structure of my application is: Now I am in Login.aspx and I am willing to add favicon.ico, placed in the root, in that page. What I am doing is: <link id="Link1" runat="server" rel="shortcut icon" href="../favicon.ico" type="image/x-icon" /> <link id="Link2" runat="server" rel="icon" href="../favicon.ico" type="image/ico" /> Also I have tried: <link id="Link1" runat="server" rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> <link id="Link2" runat="server" rel="icon" href="favicon.ico" type="image/ico" /> But these aren't working. I have cleared the browser cache but

How can I retrieve the favicon of a website?

纵然是瞬间 提交于 2019-12-02 15:16:45
I want to list featured websites on my website and I thought it would be cool to honor and use their favicon. How do I get it from the domain for an arbitrary URL in either JSP or XSLT? I can fire off PHP or javascript, but XSLT is the preferred methodology. To get the favicon of a website, you need to load the index HTML of each featured website and check for either of the following: HTML: <link rel="icon" type="image/vnd.microsoft.icon" href="http://example.com/image.ico"> <link rel="icon" type="image/png" href="http://example.com/image.png"> <link rel="icon" type="image/gif" href="http:/