Skip to content

Instantly share code, notes, and snippets.

View DaveFlash's full-sized avatar

David Daniël Wouters DaveFlash

View GitHub Profile
@DaveFlash
DaveFlash / getapplewatchscr.php
Created April 26, 2015 14:43
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
<!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();