Sunday 4 November 2012

Apple accused of hiding U.K. Samsung 'apology' with code

No matter how large their screen resolution is or their browser window is, visitors to Apple's U.K. Web site may struggle to see the "mea culpa" statement on the home page.
(Credit: Screenshot by Zack Whittaker/CNET)
No matter how tall their browser window is or how dense their screen resolution, visitors to Apple's U.K. Web site must scroll down the page to view the "apology" to Samsung that a U.K. Court of Appeal recently ordered Apple to display.
First noted by users on news-sharing site Reddit, Apple has within the past few weeks installed JavaScript code that dynamically resizes the central image on the Apple U.K. Web site to take up the maximum amount of space possible.
As a result, the central image -- currently an iPad Mini -- takes up just enough space to push the "apology" statement out of sight, meaning visitors must scroll down the page to view it.
This JavaScript "resize" code (which can be found here) was also uploaded to code-sharing site Pastebin as a "backup" by one Reddit user. The code appears to be installed only on Apple's U.K. Web site, and does not appear on the main Apple U.S. Web site.
The resize code, verified by an independent developer speaking to CNET, forces the central image to take up the proportion of the page, showing only the central image advertisement of theiPad Mini, along with the four separate product advertisements visible at the bottom of the screen, if possible. The code ensures that no matter how large vertically the browser size is, only the central image and subsequent four boxes should be visible without scrolling down.
Using the Wayback Machine -- a service that lets users see historical versions of Web sites as though they were live today -- to view the latest cached version of Apple's U.K. Web site (currently June 8, 2012), we found that the site doesn't appear to have included the resize code, suggesting it has been added during the past four months.

No comments:

Post a Comment