Live data from Hacker News

Try right clicking GitHub's logo

github.com

11–20 of 148 posts

Re: Try right clicking GitHub's logo

#11
post #6

Why was it necessary to bundle the _MACOSX and .DS_Store files with the zip download? I rarely see zip files with thumbs.db or desktop.ini files in them.

I'm assuming they put the files in a folder, right-clicked, and hit "Compress" in Finder. Finder takes the HFS+ metadata that can't be natively stored in the zip file and turns them into the files you mentioned.

Re: Try right clicking GitHub's logo

#12

I find it kind of disarming to overload not-typically-overloaded events like this though. I wonder if it'd be possible to let the right-click menu appear as normal, but background a div that pops up and give you the option of downloading the nicer logo files?

In Firefox you can untick "Allow scripts to Disable or replace context menus" (hidden under Preferences/Content/Enable Javasript/Advanced), which gives exactly the behaviour that you described. I assume other browsers have similar options.

Re: Try right clicking GitHub's logo

#13

I find it kind of disarming to overload not-typically-overloaded events like this though. I wonder if it'd be possible to let the right-click menu appear as normal, but background a div that pops up and give you the option of downloading the nicer logo files?

That should be possible if you do not cancel the event bubble when the overlay is shown. I did not have time to inspect their code, but I assume they are canceling the event.

Re: Try right clicking GitHub's logo

#14
post #9

The actual logo that is being displayed looks like it is suffering from being shrunk down too much from a bigger image.

It is. In a presentation at Superconf, one of the Github designers (whose name escapes me) said that they serve some images at high resolution and resize in the HTML tags for the benefit of iPhones 4 and other high-dpi devices.

Can't this be handled with multiple stylesheets?

Re: Try right clicking GitHub's logo

#15
post #6

Why was it necessary to bundle the _MACOSX and .DS_Store files with the zip download? I rarely see zip files with thumbs.db or desktop.ini files in them.

Most likely they didn't notice they were included in the .zip before they uploaded it. By default those are hidden on OSX.

Re: Try right clicking GitHub's logo

#16

Earlier quoted context omitted.

It is. In a presentation at Superconf, one of the Github designers (whose name escapes me) said that they serve some images at high resolution and resize in the HTML tags for the benefit of iPhones 4 and other high-dpi devices.

Can't this be handled with multiple stylesheets?

You can even handle it with a single stylesheet, i.e. with `min-device-pixel-ratio`.

Re: Try right clicking GitHub's logo

#17

This is a bad idea. It was a bad idea when paranoid sites did it to try and stop people from stealing their images and it is still a bad idea when trying to be helpful. There is a wide variety of behavior accessed through right click beyond save as.

...which moving your mouse away from the logo still allows you to access.

Personally, I think it's a great little addition to a website.

Re: Try right clicking GitHub's logo

#18

Earlier quoted context omitted.

It is. In a presentation at Superconf, one of the Github designers (whose name escapes me) said that they serve some images at high resolution and resize in the HTML tags for the benefit of iPhones 4 and other high-dpi devices.

Can't this be handled with multiple stylesheets?

We do it so that when people zoom in on the site (using `⌘ + +` on a Mac) the image doesn't become pixelated and ugly.

We do it with most other images, too.

Post reply on HN