Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 <!DOCTYPE>
2 <head>
3 <style>
4 body {
5 border: 0px;
6 margin: 0px;
7 padding: 0px;
8 }
9 p:before {
10 content: url(image-exif-270-deg-flip.jpg);
11 }
12 </style>
13 </head>
14 <body>
15 <p></p>
17 <script>
18 var orientation = location.search.substring(1).split("&");
19 var angle = orientation[0];
20 var flip = orientation[1] == "flip" ? true : false;
22 // Construct a style. "from-image" is special-cased.
23 var style;
24 if (angle == "from-image") {
25 style = "p { image-orientation: from-image; }\n";
26 } else {
27 style = "p { image-orientation: "
28 + angle + "deg"
29 + (flip ? " flip" : "")
30 + "; }\n";
31 }
33 // Apply the style to the document.
34 var sheet = document.createElement('style');
35 sheet.innerHTML = style;
36 document.body.appendChild(sheet);
37 </script>
38 </body>