2150 |
mathias |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
|
2 |
<html>
|
|
|
3 |
<head>
|
|
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
|
5 |
<title>Testing the Image Gallery</title>
|
|
|
6 |
|
|
|
7 |
<style type="text/css">
|
|
|
8 |
@import "../../../dijit/tests/css/dijitTests.css";
|
|
|
9 |
@import "../resources/image.css";
|
|
|
10 |
</style>
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
<script type="text/javascript" src="../../../dojo/dojo.js" djconfig="parseOnLoad:true, isDebug: true, defaultTestTheme:'soria'"></script>
|
|
|
14 |
<script type="text/javascript" src="../../../dijit/tests/_testCommon.js"></script>
|
|
|
15 |
<script type="text/javascript" src="../ThumbnailPicker.js"></script>
|
|
|
16 |
<script type="text/javascript" src="../SlideShow.js"></script>
|
|
|
17 |
<script type="text/javascript" src="../Gallery.js"></script>
|
|
|
18 |
<script type="text/javascript" src="../../../dojo/data/util/simpleFetch.js"></script>
|
|
|
19 |
<script type="text/javascript" src="../../data/FlickrStore.js"></script>
|
|
|
20 |
<script type="text/javascript" src="../../data/FlickrRestStore.js"></script>
|
|
|
21 |
<script type="text/javascript" src="../../../dojo/data/ItemFileReadStore.js"></script>
|
|
|
22 |
|
|
|
23 |
<script type="text/javascript">
|
|
|
24 |
// dojo.require("dojox.image.Gallery");
|
|
|
25 |
dojo.require("dojox.data.FlickrRestStore");
|
|
|
26 |
dojo.require("dojo.parser"); // find widgets
|
|
|
27 |
|
|
|
28 |
dojo.addOnLoad(function(){
|
|
|
29 |
var flickrRestStore = new dojox.data.FlickrRestStore();
|
|
|
30 |
var req = {
|
|
|
31 |
query: {
|
|
|
32 |
userid: "44153025@N00",
|
|
|
33 |
apikey: "8c6803164dbc395fb7131c9d54843627",
|
|
|
34 |
sort: [
|
|
|
35 |
{
|
|
|
36 |
attribute: "interestingness",
|
|
|
37 |
descending: true
|
|
|
38 |
}
|
|
|
39 |
],
|
|
|
40 |
// tags: ["superhorse", "redbones", "beachvolleyball"],
|
|
|
41 |
tag_mode: "any"
|
|
|
42 |
},
|
|
|
43 |
count: 20
|
|
|
44 |
};
|
|
|
45 |
dijit.byId('gallery1').setDataStore(flickrRestStore, req);
|
|
|
46 |
/*
|
|
|
47 |
dijit.byId('gallery2').setDataStore(imageItemStore,{ count:20 },{
|
|
|
48 |
imageThumbAttr: "thumb",
|
|
|
49 |
imageLargeAttr: "large"
|
|
|
50 |
});
|
|
|
51 |
*/
|
|
|
52 |
});
|
|
|
53 |
</script>
|
|
|
54 |
</head>
|
|
|
55 |
<body>
|
|
|
56 |
<h1 class="testTitle">dojox.image.Gallery</h1>
|
|
|
57 |
|
|
|
58 |
<h2>From FlickrRestStore:</h2>
|
|
|
59 |
<div id="gallery1" dojoType="dojox.image.Gallery" numberThumbs="4"></div>
|
|
|
60 |
|
|
|
61 |
<!--
|
|
|
62 |
<h2>From ItemFileReadStore:</h2>
|
|
|
63 |
<div id="gallery2" dojoType="dojox.image.Gallery"></div>
|
|
|
64 |
-->
|
|
|
65 |
|
|
|
66 |
</body>
|
|
|
67 |
</html>
|