Skip to content

Instantly share code, notes, and snippets.

Avatar

David Daniël Wouters DaveFlash

View GitHub Profile
@DaveFlash
DaveFlash / getapplewatchscr.php
Created Apr 26, 2015
Grab Apple Watch screenshots, and directly display them on the same page for apps using iTunes URL. Inspired by @stroughtonsmith, based on @raphaelz php-version and some of my own work on it. For the live web version go to http://ddw.nu/applewatch
View getapplewatchscr.php
<!DOCTYPE HTML>
<html>
<head>
<title>Preview Apple Watch screenshots</title>
<style>
.error {color: #FF0000;}
</style>
<script type="text/javascript">
function setfocus() {
document.awatchpreview.url.focus();