1// jQuery Mobile framework customized for Camera slideshow, made by 2// 'jquery.mobile.define.js', 3// 'jquery.ui.widget.js', 4// 'jquery.mobile.widget.js', 5// 'jquery.mobile.media.js', 6// 'jquery.mobile.support.js', 7// 'jquery.mobile.vmouse.js', 8// 'jquery.mobile.event.js', 9// 'jquery.mobile.core.js' 10window.define = function() { 11 Array.prototype.slice.call(arguments).pop()(window.jQuery) 12}; 13define(["jquery"], function(a) { 14 (function(a, b) { 15 if (a.cleanData) { 16 var c = a.cleanData; 17 a.cleanData = function(b) { 18 for (var d = 0, e; (e = b[d]) != null; d++) { 19 a(e).triggerHandler("remove") 20 } 21 c(b) 22 } 23 } else { 24 var d = a.fn.remove; 25 a.fn.remove = function(b, c) { 26 return this.each(function() { 27 if (!c) { 28 if (!b || a.filter(b, [this]).length) { 29 a("*", this).add([this]).each(function() { 30 a(this).triggerHandler("remove") 31 }) 32 } 33 } 34 return d.call(a(this), b, c) 35 }) 36 } 37 } 38 a.widget = function(b, c, d) { 39 var e = b.split(".")[0], f; 40 b = b.split(".")[1]; 41 f = e + "-" + b; 42 if (!d) { 43 d = c; 44 c = a.Widget 45 } 46 a.expr[":"][f] = function(c) { 47 return !!a.data(c, b) 48 }; 49 a[e] = a[e] || {}; 50 a[e][b] = function(a, b) { 51 if (arguments.length) { 52 this._createWidget(a, b) 53 } 54 }; 55 var g = new c; 56 g.options = a.extend(true, {}, g.options); 57 a[e][b].prototype = a.extend(true, g, { 58 namespace: e, 59 widgetName: b, 60 widgetEventPrefix: a[e][b].prototype.widgetEventPrefix || b, 61 widgetBaseClass: f 62 }, d); 63 a.widget.bridge(b, a[e][b]) 64 }; 65 a.widget.bridge = function(c, d) { 66 a.fn[c] = function(e) { 67 var f = typeof e === "string", g = Array.prototype.slice.call(arguments, 1), h = this; 68 e=!f && g.length ? a.extend.apply(null, [true, e].concat(g)) : e; 69 if (f && e.charAt(0) === "_") { 70 return h 71 } 72 if (f) { 73 this.each(function() { 74 var d = a.data(this, c); 75 if (!d) { 76 throw "cannot call methods on " + c + " prior to initialization; " + "attempted to call method '" + e + "'" 77 } 78 if (!a.isFunction(d[e])) { 79 throw "no such method '" + e + "' for " + c + " widget instance" 80 } 81 var f = d[e].apply(d, g); 82 if (f !== d && f !== b) { 83 h = f; 84 return false 85 } 86 }) 87 } else { 88 this.each(function() { 89 var b = a.data(this, c); 90 if (b) { 91 b.option(e || {})._init() 92 } else { 93 a.data(this, c, new d(e, this)) 94 } 95 }) 96 } 97 return h 98 } 99 }; 100 a.Widget = function(a, b) { 101 if (arguments.length) { 102 this._createWidget(a, b) 103 } 104 }; 105 a.Widget.prototype = { 106 widgetName: "widget", 107 widgetEventPrefix: "", 108 options: { 109 disabled: false 110 }, 111 _createWidget: function(b, c) { 112 a.data(c, this.widgetName, this); 113 this.element = a(c); 114 this.options = a.extend(true, {}, this.options, this._getCreateOptions(), b); 115 var d = this; 116 this.element.bind("remove." + this.widgetName, function() { 117 d.destroy() 118 }); 119 this._create(); 120 this._trigger("create"); 121 this._init() 122 }, 123 _getCreateOptions: function() { 124 var b = {}; 125 if (a.metadata) { 126 b = a.metadata.get(element)[this.widgetName] 127 } 128 return b 129 }, 130 _create: function() {}, 131 _init: function() {}, 132 destroy: function() { 133 this.element.unbind("." + this.widgetName).removeData(this.widgetName); 134 this.widget().unbind("." + this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass + "-disabled " + "ui-state-disabled") 135 }, 136 widget: function() { 137 return this.element 138 }, 139 option: function(c, d) { 140 var e = c; 141 if (arguments.length === 0) { 142 return a.extend({}, this.options) 143 } 144 if (typeof c === "string") { 145 if (d === b) { 146 return this.options[c] 147 } 148 e = {}; 149 e[c] = d 150 } 151 this._setOptions(e); 152 return this 153 }, 154 _setOptions: function(b) { 155 var c = this; 156 a.each(b, function(a, b) { 157 c._setOption(a, b) 158 }); 159 return this 160 }, 161 _setOption: function(a, b) { 162 this.options[a] = b; 163 if (a === "disabled") { 164 this.widget()[b ? "addClass": "removeClass"](this.widgetBaseClass + "-disabled" + " " + "ui-state-disabled").attr("aria-disabled", b) 165 } 166 return this 167 }, 168 enable: function() { 169 return this._setOption("disabled", false) 170 }, 171 disable: function() { 172 return this._setOption("disabled", true) 173 }, 174 _trigger: function(b, c, d) { 175 var e = this.options[b]; 176 c = a.Event(c); 177 c.type = (b === this.widgetEventPrefix ? b : this.widgetEventPrefix + b).toLowerCase(); 178 d = d || {}; 179 if (c.originalEvent) { 180 for (var f = a.event.props.length, g; f;) { 181 g = a.event.props[--f]; 182 c[g] = c.originalEvent[g] 183 } 184 } 185 this.element.trigger(c, d); 186 return !(a.isFunction(e) && e.call(this.element[0], c, d) === false || c.isDefaultPrevented()) 187 } 188 } 189 })(jQuery) 190}); 191define(["jquery", "./jquery.ui.widget"], function(a) { 192 (function(a, b) { 193 a.widget("mobile.widget", { 194 _createWidget: function() { 195 a.Widget.prototype._createWidget.apply(this, arguments); 196 this._trigger("init") 197 }, 198 _getCreateOptions: function() { 199 var c = this.element, d = {}; 200 a.each(this.options, function(a) { 201 var e = c.jqmData(a.replace(/[A-Z]/g, function(a) { 202 return "-" + a.toLowerCase() 203 })); 204 if (e !== b) { 205 d[a] = e 206 } 207 }); 208 return d 209 }, 210 enhanceWithin: function(b) { 211 var c = a.mobile.closestPageData(a(b)), d = c && c.keepNativeSelector() || ""; 212 a(this.options.initSelector, b).not(d)[this.widgetName]() 213 } 214 }) 215 })(jQuery) 216}); 217define(["jquery", "./jquery.mobile.core"], function(a) { 218 (function(a, b) { 219 var c = a(window), d = a("html"); 220 a.mobile.media = function() { 221 var b = {}, c = a("<div id='jquery-mediatest'>"), e = a("<body>").append(c); 222 return function(a) { 223 if (!(a in b)) { 224 var f = document.createElement("style"), g = "@media " + a + " { #jquery-mediatest { position:absolute; } }"; 225 f.type = "text/css"; 226 if (f.styleSheet) { 227 f.styleSheet.cssText = g 228 } else { 229 f.appendChild(document.createTextNode(g)) 230 } 231 d.prepend(e).prepend(f); 232 b[a] = c.css("position") === "absolute"; 233 e.add(f).remove() 234 } 235 return b[a] 236 } 237 }() 238 })(jQuery) 239}); 240define(["jquery", "./jquery.mobile.media"], function(a) { 241 (function(a, b) { 242 function m() { 243 var b = location.protocol + "//" + location.host + location.pathname + "ui-dir/", d = a("head base"), e = null, f = "", g, h; 244 if (!d.length) { 245 d = e = a("<base>", { 246 href: b 247 }).appendTo("head") 248 } else { 249 f = d.attr("href") 250 } 251 g = a("<a href='testurl' />").prependTo(c); 252 h = g[0].href; 253 d[0].href = f || location.pathname; 254 if (e) { 255 e.remove() 256 } 257 return h.indexOf(b) === 0 258 } 259 function l() { 260 var b = "transform-3d"; 261 return k("perspective", "10px", "moz") || a.mobile.media("(-" + e.join("-" + b + "),(-") + "-" + b + "),(" + b + ")") 262 } 263 function k(a, b, c) { 264 var d = document.createElement("div"), f = function(a) { 265 return a.charAt(0).toUpperCase() + a.substr(1) 266 }, g = function(a) { 267 return "-" + a.charAt(0).toLowerCase() + a.substr(1) + "-" 268 }, h = function(c) { 269 var e = g(c) + a + ": " + b + ";", h = f(c), i = h + f(a); 270 d.setAttribute("style", e); 271 if (!!d.style[i]) { 272 k = true 273 } 274 }, j = c ? [c]: e, k; 275 for (i = 0; i < j.length; i++) { 276 h(j[i]) 277 } 278 return !!k 279 } 280 function j(a) { 281 var c = a.charAt(0).toUpperCase() + a.substr(1), f = (a + " " + e.join(c + " ") + c).split(" "); 282 for (var g in f) { 283 if (d[f[g]] !== b) { 284 return true 285 } 286 } 287 } 288 var c = a("<body>").prependTo("html"), d = c[0].style, e = ["Webkit", "Moz", "O"], f = "palmGetResource"in window, g = window.operamini && {}.toString.call(window.operamini) === "[object OperaMini]", h = window.blackberry; 289 a.extend(a.mobile, { 290 browser: {} 291 }); 292 a.mobile.browser.ie = function() { 293 var a = 3, b = document.createElement("div"), c = b.all || []; 294 while (b.innerHTML = "<!--[if gt IE " + ++a + "]><br><![endif]-->", c[0]) {} 295 return a > 4 ? a : !a 296 }(); 297 a.extend(a.support, { 298 orientation: "orientation"in window && "onorientationchange"in window, 299 touch: "ontouchend"in document, 300 cssTransitions: "WebKitTransitionEvent"in window || k("transition", "height 100ms linear"), 301 pushState: "pushState"in history && "replaceState"in history, 302 mediaquery: a.mobile.media("only all"), 303 cssPseudoElement: !!j("content"), 304 touchOverflow: !!j("overflowScrolling"), 305 cssTransform3d: l(),
306 boxShadow: !!j("boxShadow")&&!h, 307 scrollTop: ("pageXOffset"in window || "scrollTop"in document.documentElement || "scrollTop"in c[0])&&!f&&!g, 308 dynamicBaseTag: m() 309 }); 310 c.remove(); 311 var n = function() { 312 var a = window.navigator.userAgent; 313 return a.indexOf("Nokia")>-1 && (a.indexOf("Symbian/3")>-1 || a.indexOf("Series60/5")>-1) && a.indexOf("AppleWebKit")>-1 && a.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/) 314 }(); 315 a.mobile.ajaxBlacklist = window.blackberry&&!window.WebKitPoint || g || n; 316 if (n) { 317 a(function() { 318 a("head link[rel='stylesheet']").attr("rel", "alternate stylesheet").attr("rel", "stylesheet") 319 }) 320 } 321 if (!a.support.boxShadow) { 322 a("html").addClass("ui-mobile-nosupport-boxshadow") 323 } 324 })(jQuery) 325}); 326define(["jquery"], function(a) { 327 (function(a, b, c, d) { 328 function O(b) { 329 var c = b.substr(1); 330 return { 331 setup: function(d, f) { 332 if (!M(this)) { 333 a.data(this, e, {}) 334 } 335 var g = a.data(this, e); 336 g[b] = true; 337 k[b] = (k[b] || 0) + 1; 338 if (k[b] === 1) { 339 t.bind(c, H) 340 } 341 a(this).bind(c, N); 342 if (s) { 343 k["touchstart"] = (k["touchstart"] || 0) + 1; 344 if (k["touchstart"] === 1) { 345 t.bind("touchstart", I).bind("touchend", L).bind("touchmove", K).bind("scroll", J) 346 } 347 } 348 }, 349 teardown: function(d, f) { 350 --k[b]; 351 if (!k[b]) { 352 t.unbind(c, H) 353 } 354 if (s) { 355 --k["touchstart"]; 356 if (!k["touchstart"]) { 357 t.unbind("touchstart", I).unbind("touchmove", K).unbind("touchend", L).unbind("scroll", J) 358 } 359 } 360 var g = a(this), h = a.data(this, e); 361 if (h) { 362 h[b] = false 363 } 364 g.unbind(c, N); 365 if (!M(this)) { 366 g.removeData(e) 367 } 368 } 369 } 370 } 371 function N() {} 372 function M(b) { 373 var c = a.data(b, e), d; 374 if (c) { 375 for (d in c) { 376 if (c[d]) { 377 return true 378 } 379 } 380 } 381 return false 382 } 383 function L(a) { 384 if (r) { 385 return 386 } 387 B(); 388 var b = y(a.target), c; 389 G("vmouseup", a, b); 390 if (!o) { 391 var d = G("vclick", a, b); 392 if (d && d.isDefaultPrevented()) { 393 c = w(a).changedTouches[0]; 394 p.push({ 395 touchID: v, 396 x: c.clientX, 397 y: c.clientY 398 }); 399 q = true 400 } 401 } 402 G("vmouseout", a, b); 403 o = false; 404 E() 405 } 406 function K(b) { 407 if (r) { 408 return 409 } 410 var c = w(b).touches[0], d = o, e = a.vmouse.moveDistanceThreshold; 411 o = o || Math.abs(c.pageX - m) > e || Math.abs(c.pageY - n) > e, flags = y(b.target); 412 if (o&&!d) { 413 G("vmousecancel", b, flags) 414 } 415 G("vmousemove", b, flags); 416 E() 417 } 418 function J(a) { 419 if (r) { 420 return 421 } 422 if (!o) { 423 G("vmousecancel", a, y(a.target)) 424 } 425 o = true; 426 E() 427 } 428 function I(b) { 429 var c = w(b).touches, d, e; 430 if (c && c.length === 1) { 431 d = b.target; 432 e = y(d); 433 if (e.hasVirtualBinding) { 434 v = u++; 435 a.data(d, f, v); 436 F(); 437 D(); 438 o = false;
439 var g = w(b).touches[0]; 440 m = g.pageX; 441 n = g.pageY; 442 G("vmouseover", b, e); 443 G("vmousedown", b, e) 444 } 445 } 446 } 447 function H(b) { 448 var c = a.data(b.target, f); 449 if (!q && (!v || v !== c)) { 450 var d = G("v" + b.type, b); 451 if (d) { 452 if (d.isDefaultPrevented()) { 453 b.preventDefault() 454 } 455 if (d.isPropagationStopped()) { 456 b.stopPropagation() 457 } 458 if (d.isImmediatePropagationStopped()) { 459 b.stopImmediatePropagation() 460 } 461 } 462 } 463 } 464 function G(b, c, d) { 465 var e; 466 if (d && d[b] ||!d && z(c.target, b)) { 467 e = x(c, b); 468 a(c.target).trigger(e) 469 } 470 return e 471 } 472 function F() { 473 if (l) { 474 clearTimeout(l); 475 l = 0 476 } 477 } 478 function E() { 479 F(); 480 l = setTimeout(function() { 481 l = 0; 482 C() 483 }, a.vmouse.resetTimerDuration) 484 } 485 function D() { 486 A() 487 } 488 function C() { 489 v = 0; 490 p.length = 0; 491 q = false; 492 B() 493 } 494 function B() { 495 r = true 496 } 497 function A() { 498 r = false 499 } 500 function z(b, c) { 501 var d; 502 while (b) { 503 d = a.data(b, e); 504 if (d && (!c || d[c])) { 505 return b 506 } 507 b = b.parentNode 508 } 509 return null 510 } 511 function y(b) { 512 var c = {}, d, f; 513 while (b) { 514 d = a.data(b, e); 515 for (f in d) { 516 if (d[f]) { 517 c[f] = c.hasVirtualBinding = true 518 } 519 } 520 b = b.parentNode 521 } 522 return c 523 } 524 function x(b, c) { 525 var e = b.type, f, g, i, k, l, m, n, o; 526 b = a.Event(b); 527 b.type = c; 528 f = b.originalEvent; 529 g = a.event.props; 530 if (e.search(/mouse/)>-1) { 531 g = j 532 } 533 if (f) { 534 for (n = g.length, k; n;) { 535 k = g[--n]; 536 b[k] = f[k] 537 } 538 } 539 if (e.search(/mouse(down|up)|click/)>-1&&!b.which) { 540 b.which = 1 541 } 542 if (e.search(/^touch/)!==-1) { 543 i = w(f); 544 e = i.touches; 545 l = i.changedTouches; 546 m = e && e.length ? e[0] : l && l.length ? l[0] : d; 547 if (m) { 548 for (o = 0, len = h.length; o < len; o++) { 549 k = h[o]; 550 b[k] = m[k] 551 } 552 } 553 } 554 return b 555 } 556 function w(a) { 557 while (a && typeof a.originalEvent !== "undefined") { 558 a = a.originalEvent 559 } 560 return a 561 } 562 var e = "virtualMouseBindings", f = "virtualTouchID", g = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "), h = "clientX clientY pageX pageY screenX screenY".split(" "), i = a.event.mouseHooks ? a.event.mouseHooks.props: [], j = a.event.props.concat(i), k = {}, l = 0, m = 0, n = 0, o = false, p = [], q = false, r = false, s = "addEventListener"in c, t = a(c), u = 1, v = 0; 563 a.vmouse = { 564 moveDistanceThreshold: 10, 565 clickDistanceThreshold: 10, 566 resetTimerDuration: 1500 567 }; 568 for (var P = 0; P < g.length; P++) { 569 a.event.special[g[P]] = O(g[P]) 570 } 571 if (s) { 572 c.addEventListener("click", function(b) { 573 var c = p.length, d = b.target, e, g, h, i, j, k; 574 if (c) { 575 e = b.clientX; 576 g = b.clientY; 577 threshold = a.vmouse.clickDistanceThreshold; 578 h = d; 579 while (h) { 580 for (i = 0; i < c; i++) { 581 j = p[i]; 582 k = 0; 583 if (h === d && Math.abs(j.x - e) < threshold && Math.abs(j.y - g) < threshold || a.data(h, f) === j.touchID) { 584 b.preventDefault(); 585 b.stopPropagation(); 586 return 587 } 588 } 589 h = h.parentNode 590 } 591 } 592 }, true) 593 } 594 })(jQuery, window, document) 595}); 596define(["jquery", "./jquery.mobile.core", "./jquery.mobile.media", "./jquery.mobile.supp
596ort", "./jquery.mobile.vmouse"], function(a) { 597 (function(a, b, c) { 598 function i(b, c, d) { 599 var e = d.type; 600 d.type = c; 601 a.event.handle.call(b, d); 602 d.type = e 603 } 604 a.each(("touchstart touchmove touchend orientationchange throttledresize " + "tap taphold swipe swipeleft swiperight scrollstart scrollstop").split(" "), function(b, c) { 605 a.fn[c] = function(a) { 606 return a ? this.bind(c, a) : this.trigger(c) 607 }; 608 a.attrFn[c] = true 609 }); 610 var d = a.support.touch, e = "touchmove scroll", f = d ? "touchstart": "mousedown", g = d ? "touchend": "mouseup", h = d ? "touchmove": "mousemove"; 611 a.event.special.scrollstart = { 612 enabled: true, 613 setup: function() { 614 function g(a, c) { 615 d = c; 616 i(b, d ? "scrollstart" : "scrollstop", a) 617 } 618 var b = this, c = a(b), d, f; 619 c.bind(e, function(b) { 620 if (!a.event.special.scrollstart.enabled) { 621 return 622 } 623 if (!d) { 624 g(b, true) 625 } 626 clearTimeout(f); 627 f = setTimeout(function() { 628 g(b, false) 629 }, 50) 630 }) 631 } 632 }; 633 a.event.special.tap = { 634 setup: function() { 635 var b = this, c = a(b); 636 c.bind("vmousedown", function(d) { 637 function k(a) { 638 j(); 639 if (e == a.target) { 640 i(b, "tap", a) 641 } 642 } 643 function j() { 644 h(); 645 c.unbind("vclick", k).unbind("vmouseup", h); 646 a(document).unbind("vmousecancel", j) 647 } 648 function h() { 649 clearTimeout(g) 650 } 651 if (d.which && d.which !== 1) { 652 return false 653 } 654 var e = d.target, f = d.originalEvent, g; 655 c.bind("vmouseup", h).bind("vclick", k); 656 a(document).bind("vmousecancel", j); 657 g = setTimeout(function() { 658 i(b, "taphold", a.Event("taphold")) 659 }, 750) 660 }) 661 } 662 }; 663 a.event.special.swipe = { 664 scrollSupressionThreshold: 10, 665 durationThreshold: 1e3, 666 horizontalDistanceThreshold: 30, 667 verticalDistanceThreshold: 75, 668 setup: function() { 669 var b = this, d = a(b); 670 d.bind(f, function(b) { 671 function j(b) { 672 if (!f) { 673 return 674 } 675 var c = b.originalEvent.touches ? b.originalEvent.touches[0]: b; 676 i = { 677 time: (new Date).getTime(), 678 coords: [c.pageX, c.pageY] 679 }; 680 if (Math.abs(f.coords[0] - i.coords[0]) > a.event.special.swipe.scrollSupressionThreshold) { 681 b.preventDefault() 682 } 683 } 684 var e = b.originalEvent.touches ? b.originalEvent.touches[0]: b, f = { 685 time: (new Date).getTime(), 686 coords: [e.pageX, e.pageY], 687 origin: a(b.target) 688 }, i; 689 d.bind(h, j).one(g, function(b) { 690 d.unbind(h, j); 691 if (f && i) { 692 if (i.time - f.time < a.event.special.swipe.durationThreshold && Math.abs(f.coords[0] - i.coords[0]) > a.event.special.swipe.horizontalDistanceThreshold && Math.abs(f.coords[1] - i.coords[1]) < a.event.special.swipe.verticalDistanceThreshold) { 693 f.origin.trigger("swipe").trigger(f.coords[0] > i.coords[0] ? "swipeleft" : "swiperight") 694 } 695 } 696 f = i = c 697 }) 698 }) 699 } 700 }; 701 (function(a, b) { 702 function j() { 703 var a = e(); 704 if (a !== f) { 705 f = a; 706 c.trigger("orientationchange") 707 } 708 } 709 var c = a(b), d, e, f, g, h, i = { 710 0: true, 711 180: true 712 }; 713 if (a.support.orientation) { 714 g = a.mobile.media("all and (orientation: landscape)"); 715 h = i[b.orientation]; 716 if (g && h ||!g&&!h) { 717 i = { 718 "-90": true, 719 90: true 720 } 721 } 722 } 723 a.event.special.orientationchange = d = { 724 setup: function() { 725 if (a.support.orientation && a.mobile.orientationChangeEnabled) { 726 return false 727 } 728 f = e(); 729 c.bind("throttledresize", j) 730 }, 731 teardown: function() { 732 if (a.support.orientation && a.mobile.orientationChangeEnabled) { 733 return false 734 } 735 c.unbind("throttledresize", j) 736 }, 737 add: function(a) { 738 var b = a.handler; 739 a.handler = function(a) { 740 a.orientation = e(); 741 return b.apply(this, arguments) 742 } 743 } 744 }; 745 a.event.special.orientationchange.orientation = e = function() { 746 var c = true, d = document.documentElement; 747 if (a.support.orientation) { 748 c = i[b.orientation] 749 } else { 750 c = d && d.clientWidth / d.clientHeight < 1.1 751 } 752 return c ? "portrait" : "landscape" 753 } 754 })(jQuery, b); 755 (function() { 756 a.event.special.throttledresize = { 757 setup: function() { 758 a(this).bind("resize", c) 759 }, 760 teardown: function() { 761 a(this).unbind("resize", c) 762 } 763 }; 764 var b = 250, c = function() { 765 f = (new Date).getTime(); 766 g = f - d; 767 if (g >= b) { 768 d = f; 769 a(this).trigger("throttledresize") 770 } else { 771 if (e) { 772 clearTimeout(e) 773 } 774 e = setTimeout(c, b - g) 775 } 776 }, d = 0, e, f, g 777 })(); 778 a.each({ 779 scrollstop: "scrollstart", 780 taphold: "tap", 781 swipeleft: "swipe", 782 swiperight: "swipe" 783 }, function(b, c) { 784 a.event.special[b] = { 785 setup: function() { 786 a(this).bind(c, a.noop) 787 } 788 } 789 }) 790 })(jQuery, this) 791}); 792define(["jquery", "../external/requirejs/text!../version.txt", "./jquery.mobile.widget"], function(a, b) { 793 (function(a, c, d) { 794 var e = {}; 795 a.mobile = a.extend({}, { 796 version: b, 797 ns: "", 798 subPageUrlKey: "ui-page", 799 activePageClass: "ui-page-active", 800 activeBtnClass: "ui-btn-active", 801 focusClass: "ui-focus", 802 ajaxEnabled: true, 803 hashListeningEnabled: true, 804 linkBindingEnabled: true, 805 defaultPageTransition: "fade", 806 maxTransitionWidth: false, 807 minScrollBack: 10, 808 touchOverflowEnabled: false, 809 defaultDialogTransition: "pop", 810 loadingMessage: "loading", 811 pageLoadErrorMessage: "Error Loading Page", 812 loadingMessageTextVisible: false, 813 loadingMessageTheme: "a", 814 pageLoadErrorMessageTheme: "e", 815 autoInitializePage: true, 816 pushStateEnabled: true, 817 orientationChangeEnabled: true, 818 gradeA: function() { 819 return a.support.mediaquery || a.mobile.browser.ie && a.mobile.browser.ie >= 7 820 }, 821 keyCode: { 822 ALT: 18, 823 BACKSPACE: 8, 824 CAPS_LOCK: 20, 825 COMMA: 188, 826 COMMAND: 91, 827 COMMAND_LEFT: 91, 828 COMMAND_RIGHT: 93, 829 CONTROL: 17, 830 DELETE: 46, 831 DOWN: 40, 832 END: 35, 833 ENTER: 13, 834 ESCAPE: 27, 835 HOME: 36, 836 INSERT: 45, 837 LEFT: 37, 838 MENU: 93, 839 NUMPAD_ADD: 107, 840 NUMPAD_DECIMAL: 110, 841 NUMPAD_DIVIDE: 111, 842 NUMPAD_ENTER: 108, 843 NUMPAD_MULTIPLY: 106, 844 NUMPAD_SUBTRACT: 109, 845 PAGE_DOWN: 34, 846 PAGE_UP: 33, 847 PERIOD: 190, 848 RIGHT: 39, 849 SHIFT: 16, 850 SPACE: 32, 851 TAB: 9, 852 UP: 38, 853 WINDOWS: 91 854 }, 855 silentScroll: function(b) { 856 if (a.type(b) !== "number") { 857 b = a.mobile.defaultHomeScroll 858 } 859 a.event.special.scrollstart.enabled = false;
860 setTimeout(function() { 861 c.scrollTo(0, b); 862 a(document).trigger("silentscroll", { 863 x: 0, 864 y: b 865 }) 866 }, 20); 867 setTimeout(function() { 868 a.event.special.scrollstart.enabled = true 869 }, 150) 870 }, 871 nsNormalizeDict: e, 872 nsNormalize: function(b) { 873 if (!b) { 874 return 875 } 876 return e[b] || (e[b] = a.camelCase(a.mobile.ns + b)) 877 }, 878 getInheritedTheme: function(a, b) { 879 var c = a[0], d = "", e = /ui-(bar|body)-([a-z])\b/, f, g; 880 while (c) { 881 var f = c.className || ""; 882 if ((g = e.exec(f)) && (d = g[2])) { 883 break 884 } 885 c = c.parentNode 886 } 887 return d || b || "a" 888 }, 889 closestPageData: function(a) { 890 return a.closest(':jqmData(role="page"), :jqmData(role="dialog")').data("page") 891 } 892 }, a.mobile); 893 a.fn.jqmData = function(b, c) { 894 var d; 895 if (typeof b != "undefined") { 896 d = this.data(b ? a.mobile.nsNormalize(b) : b, c) 897 } 898 return d 899 }; 900 a.jqmData = function(b, c, d) { 901 var e; 902 if (typeof c != "undefined") { 903 e = a.data(b, c ? a.mobile.nsNormalize(c) : c, d) 904 } 905 return e 906 }; 907 a.fn.jqmRemoveData = function(b) { 908 return this.removeData(a.mobile.nsNormalize(b)) 909 }; 910 a.jqmRemoveData = function(b, c) { 911 return a.removeData(b, a.mobile.nsNormalize(c)) 912 }; 913 a.fn.removeWithDependents = function() { 914 a.removeWithDependents(this) 915 }; 916 a.removeWithDependents = function(b) { 917 var c = a(b); 918 (c.jqmData("dependents") || a()).remove(); 919 c.remove() 920 }; 921 a.fn.addDependents = function(b) { 922 a.addDependents(a(this), b) 923 }; 924 a.addDependents = function(b, c) { 925 var d = a(b).jqmData("dependents") || a(); 926 a(b).jqmData("dependents", a.merge(d, c)) 927 }; 928 a.fn.getEncodedText = function() { 929 return a("<div/>").text(a(this).text()).html() 930 }; 931 var f = a.find, g = /:jqmData\(([^)]*)\)/g; 932 a.find = function(b, c, d, e) { 933 b = b.replace(g, "[data-" + (a.mobile.ns || "") + "$1]"); 934 return f.call(this, b, c, d, e) 935 }; 936 a.extend(a.find, f); 937 a.find.matches = function(b, c) { 938 return a.find(b, null, null, c) 939 }; 940 a.find.matchesSelector = function(b, c) { 941 return a.find(c, null, null, [b]).length > 0 942 } 943 })(jQuery, this) 944}) 945
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.