...
|
...
|
@@ -30,7 +30,7 @@ require('yoho.dotdotdot'); |
|
|
$('.saunter-nav > li:first-child').addClass('focus');
|
|
|
|
|
|
//初始化cached
|
|
|
$('.saunter-nav li').each(function () {
|
|
|
$('.saunter-nav li').each(function() {
|
|
|
var $el = $(this),
|
|
|
page = $el.index() === 0 ? 1 : 0;
|
|
|
|
...
|
...
|
@@ -51,8 +51,8 @@ swiper = new Swiper('.swiper-container', { |
|
|
lazyLoad();
|
|
|
|
|
|
//相关文章截取文字
|
|
|
baseFont = getComputedStyle(document.documentElement,null).fontSize;
|
|
|
baseFontSize = baseFont.substring(0, baseFont.length -2 );
|
|
|
baseFont = getComputedStyle(document.documentElement, null).fontSize;
|
|
|
baseFontSize = baseFont.substring(0, baseFont.length - 2);
|
|
|
function dot($container) {
|
|
|
$container.find('.tag-title').dotdotdot({
|
|
|
height: 2.2 * baseFontSize,
|
...
|
...
|
|