style.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. var YUEWEN = function(e, t, a) {
  2. var n = "active",
  3. r = "reverse",
  4. exports = {
  5. el: {},
  6. load: function(t, a) {
  7. var n = this;
  8. a = a ||
  9. function() {};
  10. var r = document.createElement("script");
  11. r.onload = function() {
  12. r.isInited || (r.isInited = !0, a.call(n))
  13. },
  14. r.onreadystatechange = function() { ! r.isInited && /^loaded|complete$/.test(r.readyState) && (r.isInited = !0, a.call(n))
  15. },
  16. r.src = t,
  17. e.getElementsByTagName("head")[0].appendChild(r)
  18. },
  19. scrollLoading: function(a) {
  20. var n = [];
  21. if (a && a.length) {
  22. a.each(function() {
  23. e.querySelector && (this.src = "data:image/gif;base64,R0lGODlhCgAKAIAAAP///wAAACH5BAEAAAAALAAAAAAKAAoAAAIIhI+py+0PYysAOw=="),
  24. n.push({
  25. obj: this,
  26. src: $(this).attr("data-src")
  27. })
  28. });
  29. var r = function() {
  30. var e = $(t).height(),
  31. a = $(t).width();
  32. $.each(n,
  33. function(t, n) {
  34. var r = n.obj;
  35. if (r) {
  36. var i = r.getBoundingClientRect();
  37. if (0 != i.left || 0 != i.top) {
  38. var s = r.clientWidth,
  39. o = r.clientHeight,
  40. l = !1;
  41. i.top + o >= 0 && i.top < e && (l = !0);
  42. var c = !1;
  43. i.left + s >= 0 && i.left < a && (c = !0),
  44. l && c && (r.src = n.src, r.removeAttribute("data-src"), n.obj = null)
  45. }
  46. }
  47. })
  48. };
  49. this.el.container.on("scroll", r),
  50. this.el.container.on("resize", r),
  51. r()
  52. }
  53. },
  54. swipe: function(e, t, a) {
  55. var n = this;
  56. if (0 == $.isFunction(a)) return n;
  57. var r = {
  58. x: 0,
  59. y: 0
  60. },
  61. i = {},
  62. s = {
  63. start: function(e) {
  64. var t = e.touches[0];
  65. r = {
  66. x: t.pageX,
  67. y: t.pageY,
  68. time: +new Date
  69. }
  70. },
  71. move: function(e) {
  72. if (! (e.touches.length > 1 || e.scale && 1 !== e.scale)) {
  73. var t = e.touches[0];
  74. i = {
  75. x: t.pageX - r.x,
  76. y: t.pageY - r.y
  77. }
  78. }
  79. },
  80. end: function(n) {
  81. var o = +new Date - r.time,
  82. l = Number(o) < 500;
  83. if (l) {
  84. var c = Math.abs(i.x),
  85. d = Math.abs(i.y);
  86. c > 20 && d < c && (i.x < 0 && "left" == t || i.x > 0 && "right" == t) && a.call(e[0], s),
  87. d > 20 && c < d && (i.y < 0 && "top" == t || i.y > 0 && "bottom" == t) && a.call(e[0], s)
  88. }
  89. r = {},
  90. i = {}
  91. }
  92. };
  93. return e.on("touchstart", s.start),
  94. e.on("touchmove", s.move),
  95. e.on("touchend", s.end),
  96. n
  97. },
  98. slide: function(e, t) {
  99. var a = this;
  100. if ("string" == typeof e && (e = $(e)), e && e.length) {
  101. var r = 0,
  102. i = $.map(e,
  103. function(e, t) {
  104. var a = "";
  105. return e = $(e),
  106. e.hasClass(n) ? r = t: (a = e.attr("data-hash")) && location.hash.replace("#", "") == a && (r = t),
  107. $("#" + e.data("index", t).attr("data-rel"))
  108. });
  109. e.eq(r).addClass(n),
  110. e.on("click",
  111. function() {
  112. var e = $(this),
  113. t = +e.data("index");
  114. 0 == e.hasClass(n) && s(t)
  115. });
  116. var s = function(s) {
  117. e.eq(r).removeClass(n),
  118. e.eq(s).addClass(n),
  119. $(i[r]).removeClass(n),
  120. $(i[s]).addClass(n),
  121. $.isFunction(t) && t.call(a, e.eq(s), i[s], e.eq(r), i[r]),
  122. r = s
  123. }
  124. }
  125. return this
  126. },
  127. slidePreload: function() {
  128. var e = this;
  129. return e.isPreload = !0,
  130. e
  131. },
  132. slideHomeApp: function() {
  133. var e = this,
  134. a = e.el.tabApp = $("#tabApp"),
  135. r = e.el.tabLine = $("#tabLine"),
  136. i = a.find("a"),
  137. s = function(i) {
  138. var s = a.find("." + n),
  139. o = 0;
  140. if (s.length && (o = s.position().left, r.css({
  141. width: s.width()
  142. }), history.pushState ? r.css({
  143. webkitTransform: "translateX(" + o + "px)",
  144. transform: "translateX(" + o + "px)"
  145. }) : r.css({
  146. left: s.position().left
  147. })), t.FN_hash && i !== !0) {
  148. var l = s.attr("data-hash");
  149. location.replace(location.href.split("#")[0] + "#" + l),
  150. FN_hash(),
  151. e.el.container.trigger("scroll")
  152. }
  153. };
  154. if (e.slide(i, s), s(!0), "S" == t.SIZE) {
  155. var o = $("#mobile ul");
  156. e.swipe(o, "left",
  157. function() {
  158. var e = 1 * a.find("." + n).data("index");
  159. e++,
  160. e > i.length - 1 && (e = 0),
  161. i.eq(e).trigger("click")
  162. }),
  163. e.swipe(o, "right",
  164. function() {
  165. var e = 1 * a.find("." + n).data("index");
  166. e--,
  167. e < 0 && (e = i.length - 1),
  168. i.eq(e).trigger("click")
  169. }),
  170. $("#mobile a").removeAttr("target"),
  171. $(".mNoBlank").removeAttr("target")
  172. }
  173. return e
  174. },
  175. slideBrand: function() {
  176. var e, t, a = this,
  177. i = a.el.brandDescX = $("#brandDescX"),
  178. s = a.el.brandNavX = $("#brandNavX");
  179. return i.length && s.length && (e = i.find("li"), t = s.find("a"), t.each(function(t) {
  180. $(this).data("index", t).on("mouseenter",
  181. function() {
  182. var t = $(this),
  183. i = null,
  184. o = -1,
  185. l = t.data("index");
  186. clearTimeout(a.timerNavHover),
  187. a.timerNavHover = setTimeout(function() {
  188. if (t.hasClass(n) === !1) {
  189. i = s.find("." + n),
  190. 1 == i.length && (o = i.data("index"), i.removeClass(n)),
  191. t.addClass(n);
  192. var a = !1;
  193. l < o && (a = !0);
  194. var c = e.eq(o);
  195. c.length && (c.removeClass("in").removeClass(r).addClass("out"), a && c.addClass(r)),
  196. e.eq(l).addClass("in").removeClass(r).removeClass("out"),
  197. a && e.eq(l).addClass(r)
  198. }
  199. },
  200. 225)
  201. })
  202. }), s.on("mouseleave",
  203. function() {
  204. clearTimeout(a.timerNavHover)
  205. })),
  206. a
  207. },
  208. slideHomeHeader: function() {
  209. var a = this,
  210. r = a.el.header,
  211. i = a.el.dots;
  212. if (r.length) {
  213. var s = function() {
  214. a.timerSlide || (a.timerSlide = setInterval(function() {
  215. var e = 1 * $("#hdDotX ." + n).data("index") + 1;
  216. i[e] || (e = 0),
  217. i.eq(e).trigger("click")
  218. },
  219. 5e3))
  220. };
  221. "S" !== t.SIZE ? (r.on("mouseenter",
  222. function() {
  223. clearInterval(a.timerSlide),
  224. a.timerSlide = null
  225. }).on("mouseleave",
  226. function() {
  227. s()
  228. }), $(e).on("mouseover",
  229. function() {
  230. a.isPreload || (setTimeout(function() {
  231. a.isPreload || a.slidePreload()
  232. },
  233. 4e3), setTimeout(function() {
  234. s()
  235. },
  236. 5e3))
  237. })) : (a.swipe(r, "left",
  238. function() {
  239. var e = 1 * $("#hdDotX ." + n).data("index");
  240. e++,
  241. e > i.length - 1 && (e = 0),
  242. i.eq(e).trigger("click")
  243. }), a.swipe(r, "right",
  244. function() {
  245. var e = 1 * $("#hdDotX ." + n).data("index");
  246. e--,
  247. e < 0 && (e = i.length - 1),
  248. i.eq(e).trigger("click")
  249. }))
  250. }
  251. return this
  252. },
  253. scrollBarFixed: function() {
  254. var a = this,
  255. r = a.el.header,
  256. i = a.el.container;
  257. a.el.hdBar = $("#ywHdBar");
  258. var s, o = $("#ywMnavBtn"),
  259. l = $("#ywMnavName");
  260. a.el.barNav = o;
  261. var c = 0,
  262. d = [],
  263. h = $("#ywMnav > a").each(function(e) {
  264. var t = this.getAttribute("href");
  265. /^#/.test(t) && d.push($(t));
  266. var a = location.hash.replace("&", "");
  267. a == t && (c = e)
  268. });
  269. if (r.length) if ("S" == t.SIZE) s = a.el.hdBar,
  270. i.on("scroll",
  271. function(e) {
  272. var t = $(this).scrollTop();
  273. t <= 0 ? (s.removeClass("fixed"), s.css("opacity", 1)) : (s.addClass("fixed"), s.css("opacity", Math.min(t, 30) / 30));
  274. var a = $.map(d,
  275. function(module) {
  276. return module[0].getBoundingClientRect().top
  277. }),
  278. r = $.map(a,
  279. function(e) {
  280. return Math.abs(e)
  281. }),
  282. i = Math.min.apply(null, r);
  283. $.each(a,
  284. function(e, t) { (0 == e && t > 0 || e == a.length - 1 && t < 0 || Math.abs(t) == i) && (h.removeClass(n), l.html(h.eq(e).addClass(n).html()), c = e)
  285. })
  286. }),
  287. o.on("touchstart",
  288. function() {
  289. $(this).toggleClass(n)
  290. });
  291. else if (!t.APP) {
  292. if (s = $("#ywBarX"), 0 == s.length) return a;
  293. a.el.barX = s;
  294. var u = s[0].className.split(" ")[0] + "-fixed",
  295. f = function(e, t) {
  296. h.removeClass(n),
  297. h.eq(e).addClass(n);
  298. var a = h.eq(e).attr("href");
  299. /#/.test(a) && location.replace("#&" + a.split("#")[1]),
  300. c = e
  301. };
  302. a.el.container.on("scroll",
  303. function() {
  304. var t = $(this).scrollTop();
  305. return t <= 0 ? (s.removeClass(u), s.css("opacity", 1)) : (s.addClass(u), s.css("opacity", Math.min(t, 50) / 50)),
  306. a.triggerScroll ? void $.each(d,
  307. function(e, t) {
  308. t[0] == a.triggerScroll && (c = e)
  309. }) : t == e.documentElement.scrollHeight - e.documentElement.clientHeight ? (c = d.length - 1, void f(c, !0)) : void $.each(d,
  310. function(e, module) {
  311. var t = module[0];
  312. c !== e && Math.abs(t.getBoundingClientRect().top) <= 75 && f(e, !0)
  313. })
  314. }),
  315. 0 != c && f(c),
  316. a.el.container.trigger("scroll")
  317. }
  318. return a
  319. },
  320. tapHomeCopy: function() {
  321. var a = this;
  322. a.el.copy = $("#ywCopyX");
  323. var r = null,
  324. i = null,
  325. s = a.el.copy;
  326. if (s.length && "S" == t.SIZE) {
  327. var o = Math.round((s[0].scrollWidth - s.width()) / 2);
  328. s.scrollLeft(o),
  329. s.on("scroll",
  330. function() {
  331. a.el.container.trigger("scroll"),
  332. this.scrollEd || s.scrollLeft() === o || ($("#copyright svg").hide(), this.scrollEd = !0)
  333. });
  334. var l = {
  335. x: 0,
  336. y: 0
  337. };
  338. s.find("li > div").on({
  339. touchstart: function(e) {
  340. var t = e.touches[0] || e;
  341. l = {
  342. x: t.pageX,
  343. y: t.pageY
  344. };
  345. var a = this;
  346. i = a,
  347. r = setTimeout(function() {
  348. i == a && $(a).addClass(n)
  349. },
  350. 500)
  351. }
  352. }),
  353. $(e).on("touchend",
  354. function() {
  355. clearTimeout(r),
  356. i = null,
  357. s.find("." + n).removeClass(n)
  358. }).on("touchmove",
  359. function(e) {
  360. var t = e.touches[0] || e; (Math.abs(t.pageX - l.x) > 5 || Math.abs(t.pageY - l.y) > 5) && clearTimeout(r)
  361. })
  362. } else if (s.length) {
  363. var c = s.find("ul"),
  364. d = parseInt(c.css("marginLeft"));
  365. c.find("li").on("mouseenter",
  366. function() {
  367. var e = this.getBoundingClientRect(),
  368. a = 0,
  369. n = $(t).width(); (e.left < 0 || e.right > n) && (a = e.left < 0 ? Math.floor( - 1 * e.left) : Math.ceil(n - e.right), [].map ? c.css({
  370. msTransform: "translateX(" + a + "px)",
  371. transform: "translateX(" + a + "px)"
  372. }) : c.css("marginLeft", d + a))
  373. }).on("mouseleave",
  374. function() { [].map ? c.css({
  375. msTransform: "none",
  376. transform: "none"
  377. }) : c.css("marginLeft", d)
  378. })
  379. }
  380. return a
  381. },
  382. getNews: function() {
  383. var a = this,
  384. n = a.urlNewsList,
  385. r = $("#tempNews"),
  386. i = r.parent(),
  387. s = $("#newsLoading"),
  388. o = r.html();
  389. $.template = function(e, t) {
  390. return e.replace(/\$\w+\$/gi,
  391. function(e) {
  392. var a = t[e.replace(/\$/g, "")];
  393. return a + "" == "undefined" ? "": a
  394. })
  395. };
  396. var l = function(e) {
  397. return $.map(e,
  398. function(e) {
  399. return $.each(e,
  400. function(t, a) {
  401. e[t] = a.replace(/<|&|>/g,
  402. function(e) {
  403. return {
  404. "<": "&lt;",
  405. ">": "&gt;",
  406. "&": "&amp;"
  407. } [e]
  408. }),
  409. "created_at" == t ? e[t] = e[t].split(" ")[0] : "desc" == t && (e[t] = e[t].replace(/\r|\n/g, "<br>"))
  410. }),
  411. $.template(o, e)
  412. }).join("")
  413. },
  414. c = $("#ywNewslay"),
  415. d = c.children("div");
  416. c.delegate(".jsShut", "click",
  417. function() {
  418. c.hide(),
  419. "S" != t.SIZE && (e.documentElement.style.overflow = "", $(e.body).css("border-right", "0"))
  420. });
  421. var h = function(e) {
  422. return '<p class="yw-news-fn">' + e + "</p>"
  423. },
  424. u = h("已全部加载完毕");
  425. if (c.delegate(".jsLayMore", "click",
  426. function() {
  427. var e = $(this),
  428. t = e.attr("data-page");
  429. e.html("加载中..."),
  430. $.ajax({
  431. url: n,
  432. dataType: "json",
  433. data: {
  434. more: 1,
  435. page: t
  436. },
  437. success: function(t) {
  438. var a = t.data && t.data.listInfo,
  439. n = t.data && t.data.pageInfo;
  440. if (0 == t.code && a && a.length > 0 && n) {
  441. var r = l(a);
  442. return e.before(r),
  443. void(n.pageIndex >= n.pageMax ? e.before(u).remove() : e.attr("data-page", n.pageIndex + 1))
  444. }
  445. e.before(u).remove()
  446. },
  447. complete: function() {
  448. e.html("查看更多")
  449. },
  450. error: function() {
  451. e.before(h("网络异常,没有加载成功")).remove()
  452. }
  453. })
  454. }), i.delegate("a[data-page]", "click",
  455. function() {
  456. var r = {
  457. more: 1,
  458. page: $(this).attr("data-page")
  459. };
  460. if (c.show(), "S" != t.SIZE) {
  461. var i = 17;
  462. "number" == typeof t.innerWidth && (i = t.innerWidth - e.documentElement.clientWidth),
  463. e.documentElement.style.overflow = "hidden",
  464. $(e.body).css("border-right", i + "px solid transparent")
  465. }
  466. var s = "yw-news-lay";
  467. d.hasClass(s) || $.ajax({
  468. url: n,
  469. dataType: "json",
  470. data: r,
  471. success: function(e) {
  472. if (0 == e.code) {
  473. var n = "",
  474. r = [];
  475. if (e.data && e.data.listInfo) {
  476. r = e.data.listInfo;
  477. var i = e.data.pageInfo || {
  478. totalCount: 0,
  479. pageIndex: 1,
  480. pageNum: 2,
  481. pageMax: 1
  482. };
  483. n = l(r),
  484. i.pageIndex < i.pageMax ? n = n + '<a href="javascript:" class="yw-btn-blue jsLayMore" data-page="' + (i.pageIndex + 1) + '">查看更多</a>': n += u
  485. } else n = l(a.jsonNews);
  486. d.addClass(s),
  487. "S" == t.SIZE ? d.css({
  488. width: window.innerWidth - 20,
  489. height: window.innerHeight - 20
  490. }) : d.css({
  491. width: 960,
  492. height: "90%"
  493. }),
  494. n = '<a href="javascript:" class="' + s + '-shut jsShut">×</a><div class="' + s + '-x">' + n + "</div>",
  495. history.pushState ? setTimeout(function() {
  496. d.html(n)
  497. },
  498. 250) : d.html(n)
  499. } else d.html('<div class="error">' + (e.msg || "网络异常,稍后重试") + "</div>")
  500. },
  501. error: function() {
  502. d.html('<div class="error">网络异常,稍后重试</div>')
  503. }
  504. })
  505. }), n) {
  506. var f = "新闻内容没能获取成功," + ([].map ? '<a href="javascript:" onclick="$(this).parent().empty();YUEWEN.getNews();" style="color:#019EE4;">点击这里</a>重试。': '<a href="">刷新</a>重试。');
  507. $.ajax({
  508. url: n,
  509. dataType: "json",
  510. success: function(e) {
  511. 0 == e.code ? e.data && e.data.length ? (i.html(l(e.data) + '<a href="javascript:" class="yw-btn-blue" data-page="1">查看更多 &gt;</a>'), a.jsonNews = e.data) : s.html("新闻已下架,编辑正在更新内容,请稍等...") : s.html(e.msg || f)
  512. },
  513. error: function() {
  514. s.html(f)
  515. }
  516. })
  517. }
  518. return a
  519. },
  520. showImage: function(e) {
  521. var t = this,
  522. a = t.el.overlay;
  523. if (a) {
  524. if (a.data("lasturl") === e) return void a.addClass(n).show();
  525. a.html(a.data("origin"))
  526. } else a = $("#ywOverlay"),
  527. a.data("origin", a.html()).on("click",
  528. function() {
  529. $(this).removeClass(n).hide()
  530. }),
  531. t.el.overlay = a;
  532. var r = a.children("div").removeAttr("style");
  533. a.show();
  534. var i = new Image;
  535. return i.onload = function() {
  536. var t = this.width,
  537. n = this.height;
  538. setTimeout(function() {
  539. r.css({
  540. width: t,
  541. height: n
  542. }).html('<img src="' + e + '">'),
  543. a.data("lasturl", e)
  544. },
  545. 200)
  546. },
  547. i.onerror = function() {
  548. r.html('<div class="error">图片显示异常,请重试</div>')
  549. },
  550. i.src = e,
  551. this
  552. },
  553. scrollIntoView: function(e, a, n) {
  554. var r = this,
  555. i = r.el.container;
  556. n = n || "top";
  557. var s = "scroll" + n.slice(0, 1).toUpperCase() + n.slice(1, n.length);
  558. if (e && e.length) {
  559. clearTimeout(r.timerScroll);
  560. var o = i[s](),
  561. l = e.offset()[n] + o;
  562. "S" == t.SIZE ? l -= 50 : t.APP || (l = e.offset()[n] - 74);
  563. var c = 10,
  564. d = o,
  565. h = function() {
  566. var t = (l - d) / c;
  567. Math.abs(t) < 1 / c ? (i[s](l), $.isFunction(a) && a.call(e[0])) : (d += t, i[s](d), r.timerScroll = setTimeout(h, 20))
  568. };
  569. h()
  570. }
  571. return r
  572. },
  573. eventsGlobal: function() {
  574. var a = this;
  575. return $(e).delegate("a", "click",
  576. function(e) {
  577. var r = this.getAttribute("href");
  578. this.href;
  579. /^#/.test(r) ? (a.scrollIntoView($(r),
  580. function() {
  581. "S" != t.SIZE && (location.replace("#&" + r.split("#")[1]), a.triggerScroll = null)
  582. }), "S" == t.SIZE || /nav/.test(this.className) && (a.triggerScroll = this, $(this).addClass(n).siblings("a").removeClass(n)), e.preventDefault()) : /\.(?:png|jpg)$/.test(r) ? (a.showImage(r), e.preventDefault()) : /#/.test(r) && ($(this).parent().find("." + n).removeClass(n), $(this).addClass(n))
  583. }),
  584. this.scrollLoading($("img[data-src]")),
  585. a
  586. },
  587. eventsHome: function() {
  588. var e = this;
  589. e.slideHomeHeader(),
  590. e.scrollBarFixed(),
  591. e.slideHomeApp(),
  592. e.slideBrand(),
  593. e.tapHomeCopy();
  594. var a;
  595. return "S" == t.SIZE && (a = e.el.barNav || $("#ywMnavBtn"), $("#ywMnav").click(function() {
  596. a.removeClass(n)
  597. })),
  598. e.getNews(),
  599. e
  600. },
  601. eventsApp: function() {
  602. var e = this,
  603. a = /Android/i,
  604. n = a.test(navigator.userAgent);
  605. "S" == t.SIZE && $("a[data-href]").each(function() {
  606. $(this).attr("href", $(this).attr("data-href")).removeAttr("data-href")
  607. }),
  608. $(".dlBtn").each(function() {
  609. var e = this,
  610. t = e.getAttribute("href");
  611. "" == t && $(e).siblings("a").each(function() {
  612. var t = this.innerHTML;
  613. n && a.test(t) ? e.href = this.href: 0 == n && /ios/i.test(t) && (e.href = this.href)
  614. })
  615. }),
  616. e.scrollBarFixed(),
  617. e.slideHomeApp();
  618. var r = 1; ! [].map && (r = $(t).width() / 1440) > 1 && e.el.header.css("overflow", "hidden").find("s").each(function() {
  619. var e = $(this);
  620. e.css("zoom", r).css("left", -.5 * $(t).width() * (r - 1))
  621. });
  622. var i = e.el.tabApp;
  623. return i && i.find("a").on({
  624. mouseenter: function() {
  625. var e = this,
  626. t = $(e),
  627. a = -1,
  628. n = "";
  629. e.isPreload || (a = +t.data("index") + 1, n = $("#hdAPP" + a).find("s").css("background-image"), n && (n = n.split('"')[1], n && ((new Image).src = n))),
  630. e.isPreload = !0
  631. }
  632. }),
  633. e
  634. },
  635. init: function() {
  636. var e = this;
  637. return e.el.container = "S" == t.SIZE ? $("#ywPage") : $(t),
  638. e.el.header = $("#ywHeader"),
  639. e.el.dots = $("#hdDotX a"),
  640. t.APP ? e.eventsApp() : e.eventsHome(),
  641. e.eventsGlobal(),
  642. e
  643. }
  644. };
  645. return exports
  646. } (document, window);