BlogHome.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. Namespace.register("U.MD.D.Blog"); //Blog加载
  2. //#region 初始化首页
  3. //获取Blog数据
  4. U.MD.D.Blog.Blog = function (cb) {
  5. if (!U.MD.D.H.ET["UB"]) {
  6. U.A.Request(US.AUTH, ["GFA"], U.MD.D.Blog.AsynBlog, [[$("#UD_SYSXZBR")[0], true], cb]);
  7. }
  8. }
  9. //朋友圈大小同步函数
  10. U.MD.D.Blog.SYDJBH = function (UDOD, UP, UTF) {
  11. var _UDPD = $($($(UDOD).Parent()).Child()[0]).Child()[0];
  12. _UDPD.style.width = US.width - 50 + "px";
  13. $(_UDPD).Child()[1].style.width = US.width - 170 + "px";
  14. }
  15. //异步Blog数据
  16. U.MD.D.Blog.AsynBlog = function (r) {
  17. var i,
  18. _UDE = U.MD.D.H.ET["UB"] = [[]],
  19. _context = r.context,
  20. cb = _context[1];
  21. r = r.value;
  22. for (i = 1; i < r.length; i++) {
  23. _UDE[i] = r[i];
  24. } //保存数据
  25. U.MD.D.Blog.ZFSYPFY(_UDE[0][1] = r[0]); U.MD.D.Blog.Dt.ZMBMAIN(_UDE); if (cb) { cb() }; //打印数据
  26. }
  27. //转发信息整理
  28. U.MD.D.Blog.ZFSYPFY = function (UDE) {
  29. for (i = 0; i < UDE.length; i++) {
  30. UDE[i]["JZ"] = true;
  31. if (UDE[i].Forward) {
  32. j = UDE.length; while (j--) {
  33. if (UDE[i].Forward == UDE[j].ArticleID) {
  34. UDE[j].JZ = true; UDE[i].ZF = UDE.splice(j, 1)[0]; break;
  35. }
  36. }
  37. }
  38. }
  39. return UDE;
  40. }
  41. //#endregion
  42. //#region 朋友圈数据查看
  43. //窗体朋友圈
  44. U.MD.D.Blog.CTPYQ = function (userid) {
  45. var _UDOD = $("#UD_SYSXZBR"),
  46. _UDPD = _UDOD.Parent();
  47. var _UDRD = new U.UF.UI.form("<div class='UD_SYF_STI'>云端圈子</div>", _UDPD,
  48. {
  49. "id": "UD_BLOG",
  50. "style":
  51. {
  52. "width": "90%",
  53. "height": "85%",
  54. "padding": "0"
  55. }
  56. }).form;
  57. _UDPD.style.display = "block";
  58. U.MD.D.Blog.QHCTBK(false);
  59. return _UDRD; //初始化数据
  60. }
  61. //我的和首页的切换
  62. U.MD.D.Blog.QHCTBK = function (UTF, UDOD) {
  63. if (!UTF || !U.MD.U.L.isLogin()) {
  64. var i, _UTP, _UDCD, _UDAD = UDOD ? $(UDOD).parentElement().childs(0) : null;
  65. if (_UDAD) {
  66. for (i = 0; i < _UDAD.length; i++) {
  67. _UTP = _UDAD[i] == UDOD ? "addClass" : "removeClass";
  68. _UDCD = $(_UDAD).childs(i)[0];
  69. _UDAD[_UTP]("UD_SYSXSZCVLOS", i);
  70. _UDCD[_UTP]("UD_SYSXSZCVLOI" + (i ? "O" : "") + "T");
  71. }
  72. }
  73. U.MD.D.Blog.GDQHCTBK(UTF);
  74. U.UF.EV.scrollLoad(U.UF.UI.form.allForm["UD_BLOG"].middle, function () {
  75. U.MD.D.Blog.GDQHCTBK(UTF)
  76. },
  77. U.UF.UI.form.allForm["UD_BLOG"].body);
  78. // new U.UF.UI.form.allForm["UD_BLOG"].body.onscroll = U.UF.EV.scrollLoad({
  79. // "AF": function () { U.MD.D.Blog.GDQHCTBK(UTF); }
  80. // }).SCH(); //查看朋友圈
  81. }
  82. }
  83. //滚动处理
  84. U.MD.D.Blog.GDQHCTBK = function (UTF) {
  85. var _UP = this.P == null ? 1 : this.P + 2;
  86. UTF ? U.MD.D.Blog.GBL($("#UD_SYSXZBR")[0], _UP, US.userInfo.userid) : U.MD.D.Blog.PFY(_UP);
  87. }
  88. //#region 公共数据查看
  89. //非朋友数据查看
  90. U.MD.D.Blog.PFY = function (UP, UTF) {
  91. var _UGE = U.MD.D.H.ET["UB"][0],
  92. _UDPD = $("#UD_SYSXN")[0],
  93. _UDOD = $("#UD_SYSXZBR")[0],
  94. _UDE = U.MD.D.D.FYGBL(_UGE, UP, [30, 120]), _UE = _UDE[1] * 120;
  95. if (_UDE[0] && UTF !== true) {
  96. if (UP == 1) { _UDOD.innerText = "" }
  97. U.MD.D.Blog.U.ZXBlog(_UDOD, _UDE[0], false, $(_UDOD).Child().length);
  98. } //Blog数据使用 (_UDPD.scrollHeight <= _UDPD.offsetHeight) && (U.MD.D.Blog.PFY(UP + 1));
  99. else if (!_UGE) {
  100. if (UTF = UTF) { _UDE[0] && _UDE[0].length != 0; }
  101. U.MD.D.Blog.Blog(function () { U.MD.D.Blog.PFY(UP); });
  102. }
  103. else { //获取数据
  104. U.A.Request(US.CD, [US.DB, "UseStudio_Blog", "UB_B_S_NewPost", _UE - 120, _UE, UTF ? _UDE[0][0].ArticleID : US.EMPTYGUID], U.MD.D.Blog.AsynPFY, [[$("#UD_SYSXSZCD")[0], 1], UP, _UDE[1], UTF]);
  105. // U.A.Request(US.AUTH,"Blog.getNewArticess", [_UE - 120, _UE, UTF ? _UDE[0][0].ArticleID : ""], U.MD.D.Blog.AsynPFY, [[$("#UD_SYSXSZCD")[0], 1], UP, _UDE[1], UTF]);
  106. }
  107. }
  108. //最新blog异步
  109. U.MD.D.Blog.AsynPFY = function (r) {
  110. var i, _UAE, _UDE = U.MD.D.H.ET["UB"][0], _context = r.context, _UP = _context[1], _UTP = _context[2], _UTF = _context[3]; r = r.value
  111. if (_UTF) {
  112. if ((_UAE = r).length) {
  113. for (i = 1; i < _UDE.length; i++) {
  114. _UDE[i] = _UAE.concat(_UDE[i]);
  115. _UAE = _UDE[i].splice(120, _UAE.length - 120);
  116. }
  117. }
  118. }
  119. else {
  120. _UAE = _UDE[_UTP] = r;
  121. }
  122. if (_UAE.length > 1) { U.MD.D.Blog.ZFSYPFY(_UAE) };
  123. U.MD.D.Blog.PFY(_UP); //打印
  124. }
  125. //#endregion
  126. //#region 好友圈查看
  127. //根据用户ID获取用户数据
  128. U.MD.D.Blog.GBL = function (UDOD, UP, userid) {
  129. var _UGE = U.MD.D.H.ET["UL"]["HY"],
  130. _userid = _UGE["userid"] || userid,
  131. _UDE = U.MD.D.D.FYGBL(_UGE[_userid],
  132. UP,
  133. [15, 150]),
  134. _UCE = ["ReplayMost", [(_UDE[1] - 1) * 150, _UDE[1] * 150, _userid, US.EMPTYGUID]];
  135. if (UP == 1) { UDOD.innerText = "" };
  136. if (_UDE[0]) {//直接打印显示
  137. if (_UDE[0].length) {
  138. U.MD.D.Blog.PGBL(UDOD, _UDE[0], null);
  139. if (UDOD.scrollHeight < US.height - UDOD.offsetTop - 120) {
  140. U.MD.D.Blog.GBL(UDOD, UP + 1, userid);
  141. }
  142. }
  143. else { if (UP == 1) { U.MD.D.Blog.PGBLK(UDOD) }; }
  144. }
  145. else {//获取数据
  146. if (UP == 1) { UDOD.style.height = Math.max((US.height - 110 - UDOD.offsetTop), 50) + "px" }; //初始化大小
  147. if (_userid != "RM") { _UCE[1].unshift(_userid); _UCE[0] = "GFA"; };
  148. _UCE[1].unshift(_UCE[0]);
  149. U.A.Request(US.AUTH, (_UCE[1]), U.MD.D.Blog.AsynGBL, [UP == 1 ? [UDOD, true] : null, UDOD, UP, _UDE[1], _userid]);
  150. }
  151. }
  152. //获取朋友圈异步
  153. U.MD.D.Blog.AsynGBL = function (r) {
  154. var _UDE, _UGE = U.MD.D.H.ET["UL"]["HY"],
  155. _context = r.context,
  156. _UDOD = _context[1],
  157. _UP = _context[2],
  158. _UTP = _context[3],
  159. _userid = _context[4];
  160. r = r.value;
  161. if (r) {
  162. _UDE = _UGE[_userid];
  163. if (!_UDE) { _UDE = _UGE[_userid] = [] }
  164. _UDE[_UTP] = U.MD.D.Blog.ZFSGBL(r);
  165. U.MD.D.Blog.GBL(_UDOD, _UP, _userid);
  166. } //设置
  167. }
  168. //#endregion
  169. //转发生成
  170. U.MD.D.Blog.ZFSGBL = function (UDE) {
  171. var i, j;
  172. U.UF.Ut.AddArr(UDE, { "JZ": true });
  173. for (i = 0; i < UDE.length; i++) {
  174. if (UDE[i].Forward) {
  175. for (j = UDE.length - 1; j > i; j--) {
  176. if (UDE[i].Forward == UDE[j].ArticleID) {
  177. UDE[i].ZF = UDE.splice(j, 1)[0]; break;
  178. }
  179. }
  180. }
  181. }
  182. return UDE;
  183. }
  184. //打印朋友圈信息
  185. U.MD.D.Blog.PGBL = function (UDOD, UDE, UTF, UIE, USID) {
  186. if (UTF) {
  187. U.MD.D.Blog.ZLNRPY(UDOD, UDE);
  188. } //个人信息里的朋友圈展示
  189. else {
  190. U.MD.D.Blog.U.ZXBlog(UDOD, UDE, USID, UIE != null ? (UIE === true ? $(UDOD).Child().length - 1 : UIE) : null, true);
  191. } //首页朋友圈样式
  192. }
  193. //打印朋友圈空消息的
  194. U.MD.D.Blog.PGBLK = function (UDOD) {
  195. var _UTF = US.friend.friends.length,
  196. _UDSD,
  197. _UDMD = $("#UD_SYSXZLRSSI")[0],
  198. _UDTD = $$("div",{"className": "UD_SYSXZLRSRDO},UDOD");
  199. $$("div",{"className": "UD_SYSXZLRSRDOS","innerHTML": _UTF ? "暂无追随好友消息" : "你还没有追随喜欢的人哦 ! &nbsp;!"},_UDTD);
  200. $$("div",{"className": "UD_SYSXZLRSRDOZ","innerHTML": _UTF ? "可以查看热门用户" : "可以尝试追随喜欢的人。"},_UDTD);
  201. _UDSD = $$("div",{"className": "UD_SYSXZLRSRDOX","innerHTML": "或者:"},_UDTD);
  202. $$("span",{"innerHTML": "发布动静..",
  203. "onclick": U.MD.D.Blog.A.FBCKME
  204. },_UDSD);
  205. }
  206. //资料内容里的朋友圈信息
  207. U.MD.D.Blog.ZLNRPY = function (UDOD, UDE) {
  208. var i, _UTF, _UCE, _UDHD, _UDTD, _UDMD, _UDSD, _UDLD, _UDRD, _UDWD, _UDYD, _UDND, _UDID, _UDIOD, _UDITD, _UDFD = $$("frag");
  209. for (i = 0; i < UDE.length; i++) {
  210. _UTF = true; _UDTD = $$("div",{"className": "UD_SYSXZLRSRDTK"},
  211. _UDFD);
  212. _UDMD = $$("div",{"className": "UD_SYSXZLRSRDTKO"},_UDTD);
  213. if ((_UCE = UDE[i].ZF) || UDE[i].Forward) {//
  214. _UDSD = $$("div", { "className": "UD_SYSXZLRSRDTS" }, _UDMD);
  215. $$("div", { "className": "UD_SYSXZLRSRDTSL U_Boom_Img_ys2017" }, _UDSD);
  216. _UDLD = $$("div", { "className": "UD_SYSXZLRSRDTSI" }, _UDSD);
  217. $$("img", {
  218. "onerror": U.MD.C.imgError, "title": "点击查看",
  219. "onclick": function () { U.UF.EV.stopBubble(); U.MD.U.V.ViewOtherUserInfo(UDE[i].UserID); },
  220. "src": U.MD.C.getHeadImage(UDE[i].UserThumbnailImageHead) }, _UDLD);
  221. _UDLD = $$("div", { "className": "UD_SYSXZLRSRDTSR" }, _UDSD);
  222. _UDRD = $$("div", { "className": "UD_SYSXZLRSRDTSRS" }, _UDLD);
  223. $$("div", { "className": "UD_SYSXZLRSRDTSRSL", "innerHTML": UDE[i].UserName }, _UDRD);
  224. $$("div", { "className": "UD_SYSXZLRSRDTSRSR", "innerHTML": "推荐了" }, _UDRD);
  225. $$("div", { "className": "UD_SYSXZLRSRDTSRX", "innerHTML": UDE[i].ArticleContentBrief }, _UDLD);
  226. if (UDE[i].UserID == US.userInfo.userid) { $$("div", { "className": "UD_SYSXZLRSRDTRZTI UD_SYSXZLRSRDTRZTIO U_Boom_Img_ys2017",
  227. "onclick": function () { U.UF.EV.stopBubble(); U.UF.UI.Confirm("是否取消转发", function () { U.MD.D.Blog.F.SCPGBL(UDE[i], _UDTD); }); }, "title": "取消转发" }, _UDSD) } //
  228. else { $$("div", { "className": "UD_SYSXZLRSRDTRZTI UD_SYSXZLRSRDTRZTIT U_Boom_Img_ys2017", "title": "点击展开" }, _UDSD); }
  229. _UTF = !_UTF; if (_UCE == null) { _UCE = new U.MD.D.Blog.A.BLEI([UDE[i].ArticleID, 0, 0, UDE[i].ArticleAddTime, "很遗憾,动静已被作者删除了", "很遗憾,动静已被作者删除了", "", "", "", 0]) }; //原文被删除
  230. }
  231. _UCE = _UCE || UDE[i]; _UDHD = $$("div",{"className": "UD_SYSXZLRSRDTKLO"},_UDMD);
  232. _UDSD = $$("div",{"className": "UD_SYSXZLRSRDTKL"},_UDHD);
  233. _UDLD = $$("div",{"className": "UD_SYSXZLRSRDTLI"},_UDSD);
  234. $$("img",
  235. {
  236. "onerror": U.MD.C.imgError,
  237. "title": "点击查看",
  238. "onclick": function () {
  239. U.UF.EV.stopBubble();
  240. U.MD.U.V.ViewOtherUserInfo(_UCE.UserID);
  241. },
  242. "src": U.MD.C.getHeadImage(_UCE.UserThumbnailImageHead)
  243. },
  244. _UDLD);
  245. $$("div",{"style":{"fontWeight": "100"},"className": "UD_SYSXZLRSRDTLKN UTDF","innerHTML": _UCE.UserName || US.userInfo.UserNickName},_UDSD);
  246. _UDRD = $$("div",{"className": "UD_SYSXZLRSRDTKR UD_SYUPCC"},_UDHD);
  247. _UDYD = $$("div",{"className": "UD_SYSXZLRSRDTRZ UD_SYUPCCY"},_UDRD);
  248. _UDND = $$("div",{"className": "UD_SYSXZLRSRDTRZTC UD_SYUPCCT"},_UDYD);
  249. U.MD.D.Blog.TPGBL(_UDND, _UCE, true, true); //打印图片
  250. if (_UTF && _UCE.UserID == US.userInfo.userid) {
  251. if (_UCE.UserID == US.userInfo.userid) {
  252. $$("div",{
  253. "className": "UD_SYSXZLRSRDTRZTI UD_SYSXZLRSRDTRZTIM UD_SYSXZLRSRDTRZTIO U_Boom_Img_ys2017",
  254. "onclick": function () {
  255. U.UF.EV.stopBubble();
  256. U.UF.UI.Confirm("是否删除该消息", function () { U.MD.D.Blog.F.SCPGBL(UDE[i], _UDTD); });
  257. },
  258. "title": "移除消息"
  259. },
  260. _UDHD);
  261. }
  262. else if (!UDE[i].Forward) {
  263. $$("div",{"className": "UD_SYSXZLRSRDTRZTI UD_SYSXZLRSRDTRZTIT U_Boom_Img_ys2017","title": "点击展开"},_UDHD);
  264. }
  265. }
  266. if (_UCE.UserID) {
  267. _UDID = $$("div",{"className": "UD_SYSXZLRSRDTRD UD_SYSXZLRSRDTKRD"},_UDYD);
  268. _UDHD = $$("div",{"className": "UD_SYSXZLRSRDTRDY"},_UDID);
  269. _UDIOD = $$("div",{"className": "UD_SYSXZLRSRDTRDRT"},_UDID);
  270. _UDITD = $$("div",{
  271. "className": "UD_SYSXZLRSRDTRDRZ",
  272. "title": "转发",
  273. "onclick": _UCE["UserID"] ? function () {
  274. U.UF.EV.stopBubble();
  275. U.MD.D.Blog.A.PAZF(_UCE, "this");
  276. } : ""
  277. },
  278. _UDIOD);
  279. $$("div",{"className": "UD_SYSXZLRSRDTRDRZI UD_SYSXZLRSRDTRDRZIO U_Boom_Img_ys2017"},_UDITD);
  280. $$("div",{"className": "UD_SYSXZLRSRDTRDRZN","innerHTML": _UCE.ArticleZFN},_UDITD);
  281. _UDITD = $$("div",{"className": "UD_SYSXZLRSRDTRDRZ","title": "回复"},_UDIOD);
  282. $$("div",{"className": "UD_SYSXZLRSRDTRDRZI UD_SYSXZLRSRDTRDRZIT U_Boom_Img_ys2017"},_UDITD);
  283. $$("div",{"className": "UD_SYSXZLRSRDTRDRZN","innerHTML": _UCE.ArticleReplayNumber},_UDITD);
  284. _UDTD["onclick"] = function () {
  285. U.MD.D.Blog.F.GSHGBL(_UCE, null, null);
  286. };
  287. }
  288. $$("div",{"className": "UD_SYSXZLRSRDTD","innerHTML": U.UF.D.getDateInterval(_UCE.ArticleAddTime)},_UDTD)}
  289. UDOD.appendChild(_UDFD);
  290. }
  291. //打印图片
  292. U.MD.D.Blog.TPGBL = function (UDOD, UDE, TF, UFT) {
  293. var _UIMG, _UDTD, _UDCD, _UDID, _UDKD, _UTH, _ULT, _UIE = [];
  294. UDOD.innerHTML = UDE.ArticleContent || UDE.ArticleContentBrief;
  295. _UIMG = $("img", UDOD);
  296. _UTH = UDOD.innerText || UDE.ArticleContentBrief || "";
  297. UDOD.innerText = "";
  298. _ULT = TF ? 1 : _UIMG.length;
  299. _UDTD = $$("div",{"className": UFT ? "UD_SYSXZLRSRDTRZTCS" : "UD_SYSXZLRSRDTRZTKCS","style": UDE.UserID ? {} :{"color": "#9B9B9B","textAlign": "center","padding": "95px 0 90px 0"},
  300. "innerHTML": _UTH
  301. },UDOD);
  302. (_UTH = _UDTD.innerText); _UDTD.innerText = (TF ? (_UTH.length > 60 ? _UTH.substring(0, 60) + "..." : _UTH) : _UTH); _UDTD.innerText = _UDTD.innerText.trim() || "图片分享";
  303. if (_UIMG.length) {
  304. _UDCD = $$("div",{
  305. "className": "UD_SYSXZLRSRDTRZTCD" + (UFT ? " UD_SYSXZLRSRDTRZTKCD" : ""),
  306. "style": TF ? {} :
  307. {
  308. "width": "100%",
  309. "height": "auto",
  310. "paddingBottom": "10px"
  311. }
  312. },
  313. UDOD);
  314. for (i = 0; i < _ULT; i++) { _UIE.push({ "Time": UDE.ArticleAddTime || UDE.UserFilesAddTime, "Thm": _UIMG[i].src, "Img": _UIMG[i].alt.indexOf(US.FILESYSTEMURL) > -1 ? _UIMG[i].title : _UIMG[i].src }); } //生成图片阅览数组
  315. for (i = 0; i < _ULT; i++) { //生成图片
  316. _UDID = $$("div",{"className": TF ? "UD_SYSXZLRSRDTRZTCDT" : "UD_SYSXZLRSRDTRZTCDO",
  317. "onclick": function () { }
  318. },
  319. _UDCD);
  320. if (TF) {
  321. U.MD.D.H.JZTPJS(_UIMG[i].src, _UDID, UDE);
  322. } //居中图查看
  323. else {
  324. $$("img",
  325. {
  326. "onerror": U.MD.C.imgError,
  327. "title": "点击查看",
  328. "onclick": function () {
  329. U.UF.EV.stopBubble();
  330. U.MD.I.Img(UDE, _UIE, i);
  331. },
  332. "src": _UIMG[i].src
  333. }, _UDID);
  334. } //查看
  335. }
  336. }
  337. }
  338. //位置偏移算法
  339. U.MD.D.Blog.ZXWZ = function (UDOD, UIE, UDCD, UTF) {
  340. var i, j, _UST, _UL, _UDSD, _UKE, _UDMD, _UDE = [], _UDND = $(UDOD).Child(), _UBE = U.UF.CI.getBrowser(), _UFT = (_UBE.browser == "msie" && (parseInt(_UBE["ver"]) < 10)), _UW = $(UDOD).Parent().offsetWidth - 30, _USH = UDOD.offsetHeight, _UMW = 350, _UTI = Math.floor((_UW + 20) / (_UMW + 20)), j = Math.ceil(UIE / _UTI) - 1, k = UIE % _UTI;
  341. for (i = 0; i < _UTI; i++) {
  342. _UDE[i] = [20];
  343. };
  344. _UKE = [_UMW, 100 / _UTI, _UTI, k, (_UW - _UMW) / 2, _USH - (US.height / 2), _UFT]; //添加的位置定位
  345. if (UDCD) {//需要添加元素
  346. if (j > -1) {
  347. for (i = 0; i < _UTI; i++) {
  348. _UDSD = _UDND[(j - (i < (k || _UTI) ? 0 : 1)) * _UTI + i];
  349. _UDE[i] = [_UDSD.offsetHeight + _UDSD.style.top.toInt() + 20];
  350. };
  351. } //制定的位置设定
  352. for (i = 0; i < UDCD.length; i++) {
  353. _UIM = (i + k) % _UTI;
  354. _UDE[_UIM].push(_UDE[_UIM][_UDE[_UIM].length - 1] + UDCD[i].offsetHeight + 20);
  355. }
  356. for (i = 0; i < UDCD.length; i++) {
  357. _UIM = (i + k) % _UTI;
  358. UDCD[i].style.cssText = "top:" + (_UDE[_UIM].shift()) + "px;left:" + (_UIM * (_UMW + 20)) + "px;";
  359. }
  360. UIE += i;
  361. }
  362. if (!UTF) {//需要定位添加
  363. if (UIE < _UDND.length) {
  364. for (i = UIE; i < _UDND.length; i++) {
  365. _UIM = i % _UTI;
  366. _UDE[_UIM].push(_UDE[_UIM][_UDE[_UIM].length - 1] + _UDND[i].offsetHeight + 20);
  367. }
  368. for (i = UIE; i < _UDND.length; i++) {
  369. _UIM = i % _UTI;
  370. _UDND[i].style.cssText = "top:" + (_UDE[_UIM].shift()) + "px;left:" + (_UIM * (_UMW + 20)) + "px;";
  371. }
  372. }
  373. _USH = 0; for (i = 0; i < _UDE.length; i++) { _USH = Math.max(_UDE[i], _USH); }; (_USH) && ($(UDOD).css("cssText", ";height:" + _USH + "px;width:" + (_UTI * (_UMW + 20) - 20) + "px"));
  374. }
  375. return _UKE;
  376. }
  377. //#endregion