Revert "Export"
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-geo-1.0a4 / docs / js / script.js
1 /* Author: Ryan Westphal
2
3 */
4
5 if ($("html").hasClass("ie9") || $("html").hasClass("ie8")) {
6   $(".ui-page").live("pageshow", function (e) {
7     window.focus();
8   });
9 }
10
11 $(function () {
12   $(document).bind("mobileinit", function () {
13     $.mobile.gradeA = function () { return $.support.mediaquery || $("html").hasClass("ie8") };
14   });
15
16   $("a[data-href]").live("click", function (e) {
17     $("#" + $(this).data("href"))[0].scrollIntoView();
18   });
19
20   $(".ui-page").live("pageshow", function () {
21     $(this).find(".geomap-indoc").geomap({ zoom: 1, scroll: "off" });
22   });
23
24   $(".ui-page").live("pagebeforehide", function () {
25     $(this).find(".geomap-indoc").geomap("destroy");
26   });
27 });
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48