favicon

FireFox 3.6 - 9 drops favicon when changing window.location

Deadly 提交于 2019-12-03 08:20:00
问题 Problem exists only on FireFox (from 3.6 up to current 9), other browsers are fine. My code looks like this: jQuery.extend({ AnchorFromUrl : function(url) { var anchor = url.substr(1).replace('.html',''); $.fizzer_anchor = anchor; window.location.hash = anchor; return anchor; } }); The most weird thing is that if I place an alert before the window.location.hash = anchor; line, after clicking Ok favicon doesn't disappear, remove that alert() and you get your favicon disappearing. Note: it also

My animated favicon does not show animation

吃可爱长大的小学妹 提交于 2019-12-03 07:56:22
问题 I am using these <link rel="icon" href="/images/favicon.png" type="image/x-icon" /> <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" /> I can see favicon in my address bar but no animation? What else am I supposed to do? 回答1: Get rid of the first line pointing to the favicon.png so that you have only <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" /> And ensure that the favicon.ico is a real animated favicon and not something renamed. You can

New/update favicon per page

你离开我真会死。 提交于 2019-12-03 07:12:53
Thought someone might know of a script out there, or know how to update the favicon per section of a site. There's strong colours running through each section of a build I'm working on and I thought it might be a nice UI touch to update the colour of the favicon depending on what section you're on. These could be an array of icons, but something that would force a change, rather than just adding the favicon link rel in each section. I know Gmail can update the favicon with un-read/new emails. Any help/ideas would be appreciated. Cheers, R Smeltdown You're on the right track with using the link

Angular-2 : Change favicon icon as per configuration

人走茶凉 提交于 2019-12-03 07:09:41
问题 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

Serving root-level static files on Heroku with Django?

三世轮回 提交于 2019-12-03 05:15:54
I need to serve several root-level static files on Heroku (eg, domain.com/favicon.ico ). Here's the list of files as it currently stands: favicon.ico crossdomain.xml sitemap.xml robots.txt humans.txt apple-touch-icon-57x57-precomposed.png apple-touch-icon-57x57.png apple-touch-icon-72x72-precomposed.png apple-touch-icon-72x72.png apple-touch-icon-114x114-precomposed.png apple-touch-icon-114x114.png apple-touch-icon-precomposed.png apple-touch-icon.png I've searched high and low and can't find a standard way to serve a large set of static files. Wherever I host them (on Heroku with

Display the Android WebView's favicon

末鹿安然 提交于 2019-12-03 04:08:30
I'd like to display the favicon of the website I am accessing via the android.webkit.WebView. I've tried two ways to get it: 1) WebViewClient.onPageStarted() method has a favicon parameter that is always null. 2) WebChromeClient.onReceivedIcon() method is never called. 3) Called WebView.getFavicon() in onPageStarted() and onPageFinished() but it always returns null. I haven't been able to find an example online that shows how to access the favicon. Any hints would be greatly appreciated. For the WebView icon methods and listeners to work, you need to first open the WebIconDatabase manually.

HttpURLConnection - “https://” vs. “http://”

有些话、适合烂在心里 提交于 2019-12-03 02:53:35
I'm trying to get the favicon of the url the user enters, for example _url = "google.com"; I use HttpUrlConnection to get the Bitmap of the favicon from the /favicon.ico extension from the host url. String faviconString = Uri.parse(_url).getHost() + "/favicon.ico"; URL faviconUrl = null; Bitmap favicon = null; try { faviconString = "http://" + faviconString; faviconUrl = new URL(faviconString); HttpURLConnection connection = (HttpURLConnection) faviconUrl.openConnection(); connection.setDoInput(true); connection.connect(); favicon = BitmapFactory.decodeStream(connection.getInputStream()); }

HTML set image on browser tab [duplicate]

浪子不回头ぞ 提交于 2019-12-03 02:36:44
问题 This question already has answers here : How to add a browser tab icon (favicon) for a website? (10 answers) Closed 3 years ago . How do I set a little icon next to the website title on tabs in the web browser? 回答1: It's called a Favicon, have a read. <link rel="shortcut icon" href="http://www.example.com/myicon.ico"/> You can use this neat tool to generate cross-browser compatible Favicons. 回答2: <link rel="SHORTCUT ICON" href="favicon.ico" type="image/x-icon" /> <link rel="ICON" href=

Reliably getting favicons in Chrome extensions, chrome://favicon?

萝らか妹 提交于 2019-12-03 01:56:52
问题 I'm using the chrome://favicon/ in my Google Chrome extension to get the favicon for RSS feeds. What I do is get the base path of linked page, and append it to chrome://favicon/http://<domainpath> . It's working really unreliably. A lot of the time it's reporting the standard "no-favicon"-icon, even when the page really has a favicon. There is almost 0 documentation regarding the chrome://favicon mechanism, so it's difficult to understand how it actually works. Is it just a cache of links

Minimum Viable Favicon Code

让人想犯罪 __ 提交于 2019-12-03 01:56:42
I'm confused about what's the simplest way to get favicons working on the majority of handsets and browsers. 1) Some sites suggest that it is enough to use: <link rel="apple-touch-icon-precomposed" href="apple-touch-icon-180x180.png"> That will work for iOS 8, and should be picked up by Android, BlackBerry, Windows, etc. 2) Other sites insist that every single possible favicon must be explicitly specified: <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon"