source: ether_statistics/web/resources/js/Wijmo.2.2.2/Wijmo-Complete/development-bundle/samples/gallery/ajax.html @ 598

Last change on this file since 598 was 598, checked in by vmipsl, 12 years ago

images

File size: 3.2 KB
Line 
1<!doctype html>
2<html lang="en">
3<head>
4    <title>Gallery - Ajax</title>
5    <meta charset="utf-8" />
6    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7    <meta name="description" content="Overview" />
8    <meta name="keywords" content="" />
9    <meta name="author" content="ComponentOne" />
10    <link href="../../themes/rocket/jquery-wijmo.css" rel="stylesheet" type="text/css" />
11    <link href="../../themes/wijmo/jquery.wijmo-open.2.2.2.css" rel="stylesheet" type="text/css" />
12    <link href="../../themes/wijmo/jquery.wijmo.wijtree.css" rel="stylesheet" type="text/css" />
13    <script src="../../external/jquery-1.8.0.min.js" type="text/javascript"></script>
14    <script src="../../external/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script>
15    <script src="../../external/jquery.wijmo-open.all.2.2.2.min.js" type="text/javascript"></script>
16    <link href="../../themes/wijmo/jquery.wijmo.wijcarousel.css" rel="stylesheet" type="text/css" />
17    <script src="../../wijmo/jquery.wijmo.wijcarousel.js" type="text/javascript"></script>
18    <link href="../../themes/wijmo/jquery.wijmo.wijgallery.css" rel="stylesheet" type="text/css" />
19    <script src="../../wijmo/jquery.wijmo.wijgallery.js" type="text/javascript"></script>
20    <link href="../../themes/wijmo/jquery.wijmo.wijpager.css" rel="stylesheet" type="text/css" />
21    <script src="../../wijmo/jquery.wijmo.wijpager.js" type="text/javascript"></script>
22    <script id="scriptInit" type="text/javascript">
23        $(document).ready(function () {
24            $.get("Wijmo-Complete/development-bundle/samples/gallery/ajax.txt", function (data) {
25                ajaxCallback(data);
26            });
27
28            function ajaxCallback(images) {
29                var imgs = images.split('|'), data = [];
30                for (i = 0; i < imgs.length; i++) {
31                    data[i] = {
32                        url: imgs[i],
33                        thumbUrl: imgs[i],
34                        content: "",
35                        caption: "<span>Image " + (i + 1) + "</span>"
36                    }
37                }
38                $("#wijgallery1").wijgallery({
39                    data: data,
40                    showTimer: false,
41                    thumbsLength: 100,
42                    thumbsDisplay: 3,
43                    showCaption: false
44                });
45            }
46        });
47    </script>
48    <style type="text/css">
49        .wijmo-wijcarousel-text span
50        {
51            padding: 5px;
52        }
53       
54       
55        #wijgallery1
56        {
57            width: 400px;
58        }
59    </style>
60</head>
61<body class="demo-single">
62    <div class="container">
63        <div class="header">
64            <h2>
65                Ajax</h2>
66        </div>
67        <div class="main demo">
68            <!-- Begin demo markup -->
69            <div>
70                <div id="wijgallery1" class="">
71                </div>
72            </div>
73            <!-- End demo markup -->
74            <div class="demo-options">
75                <!-- Begin options markup -->
76                <!-- End options markup -->
77            </div>
78        </div>
79        <div class="footer demo-description">
80        </div>
81    </div>
82</body>
83</html>
Note: See TracBrowser for help on using the repository browser.