| 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 |
|
| 8 |
<link rel="stylesheet" id="themeStyles" href="../../../dijit/themes/tundra/tundra.css"> |
| 9 |
<link rel="stylesheet" href="../resources/image.css"> |
| 10 |
|
| 11 |
<style type="text/css"> |
| 12 |
@import "../../../dijit/tests/css/dijitTests.css"; |
| 13 |
</style> |
| 14 |
|
| 15 |
|
| 16 |
<script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug:true, parseOnLoad: true"></script> |
| 17 |
|
| 18 |
|
| 19 |
<script type="text/javascript" src="../../../dijit/tests/_testCommon.js"></script> |
| 20 |
|
| 21 |
|
| 22 |
<script type="text/javascript" src="../ThumbnailPicker.js"></script> |
| 23 |
<script type="text/javascript" src="../SlideShow.js"></script> |
| 24 |
<script type="text/javascript" src="../Gallery.js"></script> |
| 25 |
<script type="text/javascript" src="../../../dojo/data/util/simpleFetch.js"></script> |
| 26 |
<script type="text/javascript" src="../../data/FlickrStore.js"></script> |
| 27 |
<script type="text/javascript" src="../../data/FlickrRestStore.js"></script> |
| 28 |
<script type="text/javascript" src="../../../dojo/data/ItemFileReadStore.js"></script> |
| 29 |
|
| 30 |
<script type="text/javascript"> |
| 31 |
dojo.require("dojox.image.Gallery"); |
| 32 |
dojo.require("dojox.data.FlickrRestStore"); |
| 33 |
dojo.require("dijit.layout.TabContainer");; |
| 34 |
dojo.require("dijit.layout.ContentPane"); |
| 35 |
|
| 36 |
</script> |
| 37 |
</head> |
| 38 |
<body class="tundra"> |
| 39 |
<h1 class="testTitle">dojox.image.Gallery in a TabContainer</h1> |
| 40 |
|
| 41 |
<div dojoType="dojox.data.FlickrRestStore" data-dojo-id="flickrStore"></div> |
| 42 |
|
| 43 |
<div dojoType="dijit.layout.TabContainer" style="width:800px;height:1000px;"> |
| 44 |
<script type="dojo/connect" data-dojo-event="startup"> |
| 45 |
// When the TabContainer has finished constructing, set the data store on each Gallery |
| 46 |
dojo.forEach(["gallery1", "gallery2", "gallery3"], function(galleryId){ |
| 47 |
var req = { |
| 48 |
query: { |
| 49 |
userid: "44153025@N00", |
| 50 |
apikey: "8c6803164dbc395fb7131c9d54843627", |
| 51 |
sort: [ |
| 52 |
{ |
| 53 |
attribute: "interestingness", |
| 54 |
descending: true |
| 55 |
} |
| 56 |
], |
| 57 |
// tags: ["superhorse", "redbones", "beachvolleyball"], |
| 58 |
tag_mode: "any" |
| 59 |
}, |
| 60 |
count: 20 |
| 61 |
}; |
| 62 |
|
| 63 |
dijit.byId(galleryId).setDataStore(flickrStore, req); |
| 64 |
}); |
| 65 |
|
| 66 |
</script> |
| 67 |
|
| 68 |
<div id="gallery1" dojoType="dojox.image.Gallery" imageWidth="700" imageHeight="500" |
| 69 |
title="Gallery As Base Widget" |
| 70 |
></div> |
| 71 |
|
| 72 |
<div dojoType="dijit.layout.ContentPane" title="Gallery In ContentPane"> |
| 73 |
|
| 74 |
<div id="gallery2" dojoType="dojox.image.Gallery" imageWidth="700" imageHeight="500"></div> |
| 75 |
|
| 76 |
</div> |
| 77 |
|
| 78 |
|
| 79 |
<div id="gallery3" dojoType="dojox.image.Gallery" imageWidth="700" imageHeight="500" |
| 80 |
title="Gallery As Base Widget" |
| 81 |
></div> |
| 82 |
</div> |
| 83 |
|
| 84 |
</body> |
| 85 |
</html> |