Debian Codegraph @

dojox/image/tests/test_MagnifierLite.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 @import "../resources/Magnifier.css";
10
11 p { padding:20px; border:1px solid #ededed; }
12 #testImage { border:2px solid #000; }
13
14 </style>
15
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/MagnifierLite", "dijit/form/Button", "dojo/parser"]);
19 </script>
20
21 </head>
22 <body class="tundra">
23
24 <h1 class="testTitle">dojox.image.MagnifierLite 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
28 <p>This is the base class for <a href="test_Magnifier.html">dojox.image.Magnifier</a>, a dojox.gfx-based extension
29 this portion does not require the dojox.gfx package, but is limited to CSS-based styling.
30 </p>
31
32 <p>
33 Scale= 2.34, 5.67, and 8.90: <br>
34 <img id="testImage" dojoType="dojox.image.MagnifierLite" src="images/spanke.jpg"
35 style="width:200px; height:130px;" scale="2.34" />
36 <img id="testImage4" dojoType="dojox.image.MagnifierLite" src="images/spanke.jpg"
37 style="width:200px; height:130px;" scale="5.67" />
38
39 <img id="testImage5" dojoType="dojox.image.MagnifierLite" src="images/spanke.jpg"
40 style="width:200px; height:130px;" scale="8.90" />
41 </p>
42
43 <p>
44 <img id="testImage2" dojoType="dojox.image.MagnifierLite" src="images/spanke.jpg"
45 style="width:200px; height:130px; padding-right:20px; float:left" />
46 I Am Some inline text.<br>lorem ipsum.<br style="clear:both">
47 </p>
48
49 <p>A Transparent .png: (url unavailable in release versions, need build-utils package, or svn)<br>
50
51 <img style="width:400px; height:260px" id="test3"
52 dojoType="dojox.image.MagnifierLite" glassSize="215" scale="3"
53 src="../../../util/resources/logo/positive/dojo.logo.big.png" />
54 </p>
55
56 <p>Programatic: (destroy() removes this.domNode)<br>
57
58 <button dojoType="dijit.form.Button" id="foob">
59 Make It
60 <script type="dojo/method" data-dojo-event="onClick">
61 this.setAttribute("disabled",true);
62 dijit.byId("foobd").setAttribute("disabled",false);
63 new dojox.image.MagnifierLite({ scale:4.2, glassSize:200 },"foobar");
64 </script>
65 </button>
66
67 <button dojoType="dijit.form.Button" id="foobd" disabled="disabled">
68 Destroy It
69 <script type="dojo/method" data-dojo-event="onClick">
70 dijit.byId("foob").setAttribute("disabled",false);
71 this.setAttribute("disabled",true);
72 dijit.byId("foobar").destroy(true);
73 </script>
74 </button>
75
76 <br /><!-- srcNodeRef : -->
77 <img id="foobar" style="width:300px; height:195px;" src="images/spanke.jpg" />
78 </p>
79
80 <p>Remote file (GTA:LCS/psp map):<br>
81 <img style="width:167px; height:240px; border:4px solid #333;"
82 src="http://img.qj.net/uploads/articles_module/66700/stauntonhpackages_qjpreviewth.png"
83 scale="6" glassSize="150" dojoType="dojox.image.MagnifierLite"
84 />
85
86 <br>Everybody loves Zelda:<br>
87 <img style="width:585px; height:201px" scale="7" glassSize="185" dojoType="dojox.image.MagnifierLite" src="http://www.zelda-infinite.com/games/zelda1/overworld.png" />
88 </p>
89
90 </body>
91 </html>