Debian Codegraph @

dojox/image/tests/test_Magnifier.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Testing image</title>
5 <style type="text/css">
6 @import "../../../dojo/resources/dojo.css";
7 @import "../../../dijit/tests/css/dijitTests.css";
8 @import "../../../dijit/themes/tundra/tundra.css";
9 /* needed for glass overlay: */
10 @import "../resources/Magnifier.css";
11
12 p { padding:20px; border:1px solid #ededed; }
13 #testImage { border:2px solid #000; }
14
15 </style>
16 <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, isDebug: true, parseOnLoad:true"></script>
17 <script type="text/javascript">
18 require(["dojox/image/Magnifier", "dijit/form/Button", "dojo/parser"]);
19 </script>
20
21 </head>
22 <body class="tundra">
23
24 <h1 class="testTitle">dojox.image.Magnifier test page</h1>
25
26 <p>They are just images. It's entirely unobtrusive to add magnification to an image, and style it accordingly.</p>
27 <p>This widget is based on <a href="test_MagnifierLite.html">dojox.image.MagnifierLite</a>, an image-only variant on this dojox.gfx
28 based Widget. The idea was/is to include addational surfaces in some kind of _Templated GFX widget, based on _Widget.</p>
29 <p>
30 Scale= 2.34, 5.67, and 8.90: <br>
31 <img id="testImage" dojoType="dojox.image.Magnifier" src="images/spanke.jpg"
32 style="width:200px; height:130px;" scale="2.34" />
33 <img id="testImage4" dojoType="dojox.image.Magnifier" src="images/spanke.jpg"
34 style="width:200px; height:130px;" scale="5.67" />
35
36 <img id="testImage5" dojoType="dojox.image.Magnifier" src="images/spanke.jpg"
37 style="width:200px; height:130px;" scale="8.90" />
38 </p>
39
40 <p>
41 <img id="testImage2" dojoType="dojox.image.Magnifier" src="images/spanke.jpg"
42 style="width:200px; height:130px; padding-right:20px; float:left" />
43 I Am Some inline text.<br>lorem ipsum.<br style="clear:both">
44 </p>
45
46 <p>A Transparent .png:<br>
47
48 <img style="width:400px; height:260px" id="test3"
49 dojoType="dojox.image.Magnifier" glassSize="215" scale="3"
50 src="../../../util/resources/logo/positive/dojo.logo.big.png" />
51 </p>
52
53 <p>Programatic:<br>
54
55 <button dojoType="dijit.form.Button" id="foob">
56 Make It
57 <script type="dojo/method" data-dojo-event="onClick">
58 this.setAttribute("disabled",true);
59 dijit.byId("foobd").setAttribute("disabled",false);
60 new dojox.image.Magnifier({ scale:4.2, glassSize:200 },"foobar");
61 </script>
62 </button>
63
64 <button dojoType="dijit.form.Button" id="foobd" disabled="disabled">
65 Destroy It
66 <script type="dojo/method" data-dojo-event="onClick">
67 this.setAttribute("disabled",true);
68 dijit.byId("foobar").destroy();
69 console.log('layout changed:');
70 dijit.byId("after1")._adjustScale();
71 dijit.byId("after2")._adjustScale();
72 </script>
73 </button>
74
75 <br /><!-- srcNodeRef : -->
76 <img id="foobar" style="width:300px; height:195px;" src="images/spanke.jpg" />
77 </p>
78
79 <p>Remote file (GTA:LCS/psp map):<br>
80 <img id='after1' style="width:167px; height:240px; border:4px solid #333;"
81 src="http://img.qj.net/uploads/articles_module/66700/stauntonhpackages_qjpreviewth.png"
82 scale="6" glassSize="150" dojoType="dojox.image.Magnifier"
83 />
84
85 <br>Everybody loves Zelda, right?<br>
86 <img id='after2' style="width:585px; height:201px" scale="7" glassSize="185" dojoType="dojox.image.Magnifier" src="http://www.zelda-infinite.com/games/zelda1/overworld.png" />
87 </p>
88
89 <p id="programaticContainer">
90 <!-- not yet? -->
91 </p>
92
93 </body>
94 </html>