1 | <!DOCTYPE html>
|
---|
2 | <html id="story">
|
---|
3 | <head>
|
---|
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
---|
5 | <meta name="viewport" content="width=device-width, initial-scale=1"/>
|
---|
6 | <title>Canvas Size</title>
|
---|
7 |
|
---|
8 | </head>
|
---|
9 | <body>
|
---|
10 | <div data-role="page" id="choose-canvas-page"
|
---|
11 | class="demo-page"
|
---|
12 | data-dom-cache="true"
|
---|
13 | data-prev="index"
|
---|
14 | data-next="choose-palette">
|
---|
15 |
|
---|
16 | <div data-role="content">
|
---|
17 |
|
---|
18 | <div data-role="controlgroup" class="control" data-mini="true">
|
---|
19 | <a href="#" class="next right-button res-fwd" style="right:1%;"></a>
|
---|
20 | <a href="#" class="prev left-button gen-back" style="left:1%;"></a>
|
---|
21 | </div>
|
---|
22 |
|
---|
23 | <div class="story-page">
|
---|
24 |
|
---|
25 | <!-- put custom content here -->
|
---|
26 | <span class="left story-icon idea" ></span>
|
---|
27 | <h2>Canvas Size</h2>
|
---|
28 |
|
---|
29 | <div class="dialog" id="dialog" title="Ratio Select Dialog" width="800px">
|
---|
30 | <br><br>
|
---|
31 | <h2>Please choose from the following aspect ratios.</h2>
|
---|
32 | <p>If you hover the mouse over a flag size, you will be able to see some countries that currently use that ratio!</p>
|
---|
33 | <div class="centredDiv">
|
---|
34 | <div class="ratioDiv flagHover" id="ratio23" onclick="setRatio(2, 3)" title="2:3"></div>
|
---|
35 | <div class="ratioDiv flagHover" id="ratio12" onclick="setRatio(1, 2)" title="1:2"></div>
|
---|
36 | <div class="ratioDiv flagHover" id="ratio35" onclick="setRatio(3, 5)" title="3:5"></div>
|
---|
37 | <div style="clear: both"></div>
|
---|
38 | </div>
|
---|
39 | <p class="optionline">2:3 1:2 3:5</p><br>
|
---|
40 |
|
---|
41 | <div class="centredDiv">
|
---|
42 | <div class="ratioDiv flagHover" id="ratio1019" onclick="setRatio(10, 19)" title="10:19"></div>
|
---|
43 | <div class="ratioDiv flagHover" id="ratio58" onclick="setRatio(5, 8)" title="5:8"></div>
|
---|
44 | <div class="ratioDiv flagHover" id="ratio811" onclick="setRatio(8, 11)" title="8:11"></div>
|
---|
45 | <div style="clear: both"></div>
|
---|
46 | </div>
|
---|
47 | <p class="optionline">10:19 5:8 8:11</p>
|
---|
48 | </div>
|
---|
49 |
|
---|
50 | <script>
|
---|
51 | function setRatio(height, width) {
|
---|
52 | var constant = 100;
|
---|
53 | var h = constant;
|
---|
54 | var w = (constant / height) * width;
|
---|
55 | document.getElementById("svginfo_width").value = w;
|
---|
56 | document.getElementById("svginfo_height").value = h;
|
---|
57 | alert("Height: " + h + ", Width: " + w);
|
---|
58 | }
|
---|
59 | </script>
|
---|
60 |
|
---|
61 | <!-- end of putting custom content -->
|
---|
62 |
|
---|
63 | </div> <!-- end story-page-->
|
---|
64 |
|
---|
65 | </div><!-- /content -->
|
---|
66 |
|
---|
67 | </div><!-- /page -->
|
---|
68 |
|
---|
69 | </body>
|
---|
70 | </html>
|
---|