内射毛片内射国产夫妻,国产一区二区三区内射高清,无码人妻精品1国产婷婷
(function () { try { const containerEl = document.querySelector('#userPostedFeeds') const transformEl = document.querySelector('.transform-container') const tabEl = document.querySelector('.tab-content-item') if (!containerEl) return const notes = Array.from(containerEl.querySelectorAll('.note-item')) const notesCount = notes.length if (!notesCount) return function getLayoutInfo() { const width = Math.min(window.innerWidth, 1728) if (width >= 1424) { return { columns: 5, gapV: 16, gapH: 32, columnWidth: (width - (32 * 7)) / 6 } } if (width >= 1192) { return { columns: 4, gapV: 12, gapH: 24, columnWidth: (width - (24 * 6)) / 5 } } if (width >= 960) { return { columns: 3, gapV: 12, gapH: 24, columnWidth: (width - (24 * 5)) / 4 } } if (width >= 696) { return { columns: 3, gapV: 12, gapH: 24, columnWidth: (width - (24 * 4)) / 3 } } return { columns: 2, gapV: 6, gapH: 12, columnWidth: Math.max(142, (width - (12 * 3)) / 2) } } function getShortestColumn(colHeights) { let shortestIndex = 0 for (let i = 1; i < colHeights.length; i++) { if (colHeights[i] < colHeights[shortestIndex]) { shortestIndex = i } } return shortestIndex } function layout() { let nextTop, nextLeft, shortestColumn, note; const colHeights = new Array(layoutInfo.columns).fill(0) for (let i = 0; i < notesCount; i++) { note = notes[i] const isAlignLeft = notesCount % layoutInfo.columns === 0 ? false : notesCount - i <= notesCount % layoutInfo.columns shortestColumn = isAlignLeft ? i % layoutInfo.columns : getShortestColumn(colHeights) nextTop = colHeights[shortestColumn] nextLeft = shortestColumn * (layoutInfo.columnWidth + layoutInfo.gapH) const rawWidth = note.dataset.width const rawHeight = note.dataset.height const coverEl = note.querySelector('.cover') coverEl.style.width = layoutInfo.columnWidth + 'px' coverEl.style.height = Math.round(layoutInfo.columnWidth / rawWidth * rawHeight) + 'px' coverEl.style.borderRadius = layoutInfo.columns < 3 ? '12px' : '16px' if (notes.length >= layoutInfo.columns) { note.style.transform = 'translate(' + nextLeft + 'px,' + nextTop + 'px)' } else { note.classList.add('static-layout') containerEl.classList.add('static-layout') } note.style.width = layoutInfo.columnWidth + 'px' colHeights[shortestColumn] = colHeights[shortestColumn] + note.clientHeight + layoutInfo.gapV containerEl.style.height = Math.max.apply(null, colHeights) + 'px' } } const layoutInfo = getLayoutInfo() const containerWidth = Math.ceil(layoutInfo.columns * layoutInfo.columnWidth + layoutInfo.columns * layoutInfo.gapH) containerEl.style.width = containerWidth + 'px' transformEl.style.width = containerWidth + 'px' tabEl.style.width = containerWidth + 'px' layout() containerEl.style.visibility = 'visible' } catch (e) { console.log(e) } }())
该用户已设置收藏内容不可见
加载中
USER_FEEDS_LAYOUT_PLACEHOLDER
发现
发布
通知
登录
我
内射毛片内射国产夫妻