add video template 4
@@ -4,54 +4,56 @@
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
"{strSiteName} - {strYear}{strVideoParentCategoryName}{strOrderName}",
|
||||
"{strOrderName}{strVideoParentCategoryName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}{strVideoParentCategoryName}排行榜",
|
||||
"{strVideoParentCategoryName}{strOrderName}榜单 - {strSiteName}",
|
||||
"{strSiteName} - 热门{strVideoParentCategoryName}{strOrderName}",
|
||||
"{strOrderName}{strVideoParentCategoryName}排行榜推荐 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strOrderName}排行榜",
|
||||
"{strYear}{strVideoParentCategoryName}{strOrderName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - 精选{strVideoParentCategoryName}{strOrderName}榜单",
|
||||
"{strVideoParentCategoryName}{strOrderName}排行榜推荐 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}热门{strVideoParentCategoryName}{strOrderName}",
|
||||
"{strOrderName}{strVideoParentCategoryName}榜单 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strOrderName}排行榜推荐",
|
||||
"{strYear}精选{strVideoParentCategoryName}{strOrderName}榜单 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strOrderName}排行榜",
|
||||
"{strOrderName}{strVideoParentCategoryName}热门排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}{strVideoParentCategoryName}{strOrderName}榜单",
|
||||
"{strVideoParentCategoryName}{strOrderName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - 热门{strVideoParentCategoryName}{strOrderName}排行榜",
|
||||
"{strYear}{strOrderName}{strVideoParentCategoryName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strOrderName}榜单推荐",
|
||||
"{strVideoParentCategoryName}热门{strOrderName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}精选{strVideoParentCategoryName}{strOrderName}榜单",
|
||||
"{strOrderName}{strVideoParentCategoryName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strOrderName}排行榜推荐",
|
||||
"{strYear}热门{strVideoParentCategoryName}{strOrderName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strOrderName}排行榜",
|
||||
"{strOrderName}{strVideoParentCategoryName}精选排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}{strVideoParentCategoryName}{strOrderName}排行榜推荐",
|
||||
"{strVideoParentCategoryName}{strOrderName}榜单 - {strSiteName}",
|
||||
"{strSiteName} - 精选{strVideoParentCategoryName}{strOrderName}排行榜",
|
||||
"{strYear}{strOrderName}{strVideoParentCategoryName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - 热门{strVideoParentCategoryName}{strOrderName}榜单",
|
||||
"{strVideoParentCategoryName}{strOrderName}排行榜推荐 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}{strVideoParentCategoryName}{strOrderName}排行榜",
|
||||
"{strOrderName}{strVideoParentCategoryName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strOrderName}排行榜推荐",
|
||||
"{strYear}精选{strVideoParentCategoryName}{strOrderName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strOrderName}榜单",
|
||||
"{strOrderName}{strVideoParentCategoryName}热门排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}热门{strVideoParentCategoryName}{strOrderName}排行榜",
|
||||
"{strVideoParentCategoryName}{strOrderName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strOrderName}排行榜推荐",
|
||||
"{strYear}{strVideoParentCategoryName}{strOrderName}榜单 - {strSiteName}",
|
||||
"{strSiteName} - 热门{strVideoParentCategoryName}{strOrderName}排行榜",
|
||||
"{strOrderName}{strVideoParentCategoryName}排行榜推荐 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}{strVideoParentCategoryName}{strOrderName}排行榜推荐",
|
||||
"{strVideoParentCategoryName}{strOrderName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - 精选{strVideoParentCategoryName}{strOrderName}排行榜",
|
||||
"{strYear}热门{strVideoParentCategoryName}{strOrderName}排行榜 - {strSiteName}"
|
||||
"{strSiteName} - {strYear}{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}",
|
||||
"{strOrderName}{strVideoParentCategoryName}{strVideoCategoryName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}{strVideoParentCategoryName}{strVideoCategoryName}排行榜",
|
||||
"{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}榜单 - {strSiteName}",
|
||||
"{strSiteName} - 热门{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}",
|
||||
"{strOrderName}{strVideoParentCategoryName}{strVideoCategoryName}排行榜推荐 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜",
|
||||
"{strYear}{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - 精选{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}榜单",
|
||||
"{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜推荐 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}热门{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}",
|
||||
"{strOrderName}{strVideoParentCategoryName}{strVideoCategoryName}榜单 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜推荐",
|
||||
"{strYear}精选{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}榜单 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜",
|
||||
"{strOrderName}{strVideoParentCategoryName}{strVideoCategoryName}热门排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}榜单",
|
||||
"{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - 热门{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜",
|
||||
"{strYear}{strOrderName}{strVideoParentCategoryName}{strVideoCategoryName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}榜单推荐",
|
||||
"{strVideoParentCategoryName}{strVideoCategoryName}热门{strOrderName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}精选{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}榜单",
|
||||
"{strOrderName}{strVideoParentCategoryName}{strVideoCategoryName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜推荐",
|
||||
"{strYear}热门{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜",
|
||||
"{strOrderName}{strVideoParentCategoryName}{strVideoCategoryName}精选排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜推荐",
|
||||
"{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}榜单 - {strSiteName}",
|
||||
"{strSiteName} - 精选{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜",
|
||||
"{strYear}{strOrderName}{strVideoParentCategoryName}{strVideoCategoryName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - 热门{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}榜单",
|
||||
"{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜推荐 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜",
|
||||
"{strOrderName}{strVideoParentCategoryName}{strVideoCategoryName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜推荐",
|
||||
"{strYear}精选{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}榜单",
|
||||
"{strOrderName}{strVideoParentCategoryName}{strVideoCategoryName}热门排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}热门{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜",
|
||||
"{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - {strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜推荐",
|
||||
"{strYear}{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}榜单 - {strSiteName}",
|
||||
"{strSiteName} - 热门{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜",
|
||||
"{strOrderName}{strVideoParentCategoryName}{strVideoCategoryName}排行榜推荐 - {strSiteName}",
|
||||
"{strSiteName} - {strYear}{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜推荐",
|
||||
"{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜 - {strSiteName}",
|
||||
"{strSiteName} - 精选{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜",
|
||||
"{strYear}热门{strVideoParentCategoryName}{strVideoCategoryName}{strOrderName}排行榜 - {strSiteName}"
|
||||
];
|
||||
|
||||
|
||||
|
||||
@@ -4,54 +4,54 @@
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
"{strSiteName}提供{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDescription:50},主演{strVideoActor},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50},{strVideoDirector}执导,{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDescription:50},{strAreaName}热播,{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoActor}主演,{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intPlayIndex}集高清在线,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intPlayIndex}集免费,{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}执导{strVideoParentCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50},{strVideoActor}主演{strAreaName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intPlayIndex}集免费{strVideoParentCategoryName},{strVideoDescription:50},{strVideoDirector}导演,{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集在线,{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50},{strVideoDirector}执导{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDescription:50},{strVideoActor}主演,{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清在线,{strVideoDescription:50},{strVideoActor}主演{strAreaName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strVideoName} 第{intPlayIndex}集免费,{strVideoDescription:50},{strVideoDirector}执导{strVideoParentCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intPlayIndex}集高清{strVideoParentCategoryName},{strVideoDescription:50},{strVideoDirector}导演,{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intPlayIndex}集在线播放,{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intPlayIndex}集免费,{strVideoDescription:50},{strVideoDirector}执导{strAreaName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50},{strVideoActor}主演{strVideoParentCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intPlayIndex}集免费{strVideoParentCategoryName},{strVideoDescription:50},{strVideoDirector}导演{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集在线,{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intPlayIndex}集高清播放,{strVideoDescription:50},{strVideoDirector}执导,{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intPlayIndex}集免费{strVideoParentCategoryName},{strVideoDescription:50},{strVideoActor}主演{strAreaName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intPlayIndex}集高清在线,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}执导{strVideoParentCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intPlayIndex}集免费{strVideoParentCategoryName},{strVideoDescription:50},{strVideoDirector}导演{strAreaName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intPlayIndex}集在线观看,{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50},{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集免费{strVideoParentCategoryName},{strVideoDescription:50},{strVideoActor}主演,{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intPlayIndex}集高清在线,{strVideoDescription:50},{strVideoDirector}导演{strVideoParentCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDescription:50},{strVideoActor}主演{strAreaName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50},{strVideoDirector}执导{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intPlayIndex}集高清{strVideoParentCategoryName},{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intPlayIndex}集免费在线,{strVideoDescription:50},{strVideoDirector}导演{strVideoParentCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清播放,{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intPlayIndex}集免费{strVideoParentCategoryName},{strVideoDescription:50},{strVideoDirector}执导,{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集在线,{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intPlayIndex}集高清{strVideoParentCategoryName},{strVideoDescription:50},{strVideoDirector}导演{strAreaName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDescription:50},{strVideoActor}主演{strVideoParentCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intPlayIndex}集高清在线,{strVideoDescription:50},{strVideoDirector}执导{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集免费{strVideoParentCategoryName},{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intPlayIndex}集高清播放,{strVideoDescription:50},{strVideoDirector}导演{strVideoParentCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集在线播放,{strVideoDescription:50},{strVideoActor}主演{strAreaName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intPlayIndex}集免费,{strVideoDescription:50},{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intPlayIndex}集高清{strVideoParentCategoryName},{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intPlayIndex}集免费在线,{strVideoDescription:50},{strVideoDirector}导演{strVideoParentCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!"
|
||||
"{strSiteName}提供{strVideoName} 第{intVideoPlaySort}集免费播放,{strVideoDescription:50},主演{strVideoActor},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intVideoPlaySort}集高清,{strVideoDescription:50},{strVideoDirector}执导,{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intVideoPlaySort}集,{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strVideoName} 第{intVideoPlaySort}集免费播放,{strVideoDescription:50},{strAreaName}热播,{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strYear}{strVideoName} 第{intVideoPlaySort}集,{strVideoDescription:50},{strVideoActor}主演,{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intVideoPlaySort}集高清在线,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intVideoPlaySort}集免费,{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intVideoPlaySort}集,{strVideoDescription:50},{strVideoDirector}执导{strVideoParentCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intVideoPlaySort}集高清,{strVideoDescription:50},{strVideoActor}主演{strAreaName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intVideoPlaySort}集免费{strVideoParentCategoryName},{strVideoDescription:50},{strVideoDirector}导演,{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strVideoName} 第{intVideoPlaySort}集在线,{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intVideoPlaySort}集高清,{strVideoDescription:50},{strVideoDirector}执导{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intVideoPlaySort}集免费播放,{strVideoDescription:50},{strVideoActor}主演,{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intVideoPlaySort}集,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intVideoPlaySort}集高清在线,{strVideoDescription:50},{strVideoActor}主演{strAreaName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strVideoName} 第{intVideoPlaySort}集免费,{strVideoDescription:50},{strVideoDirector}执导{strVideoParentCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strYear}{strVideoName} 第{intVideoPlaySort}集,{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intVideoPlaySort}集高清{strVideoParentCategoryName},{strVideoDescription:50},{strVideoDirector}导演,{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intVideoPlaySort}集在线播放,{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intVideoPlaySort}集免费,{strVideoDescription:50},{strVideoDirector}执导{strAreaName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intVideoPlaySort}集高清,{strVideoDescription:50},{strVideoActor}主演{strVideoParentCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intVideoPlaySort}集免费{strVideoParentCategoryName},{strVideoDescription:50},{strVideoDirector}导演{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strVideoName} 第{intVideoPlaySort}集在线,{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intVideoPlaySort}集高清播放,{strVideoDescription:50},{strVideoDirector}执导,{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intVideoPlaySort}集免费{strVideoParentCategoryName},{strVideoDescription:50},{strVideoActor}主演{strAreaName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intVideoPlaySort}集高清在线,{strVideoDescription:50},{strVideoDirector}导演{strVideoCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intVideoPlaySort}集免费播放,{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intVideoPlaySort}集,{strVideoDescription:50},{strVideoDirector}执导{strVideoParentCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strVideoName} 第{intVideoPlaySort}集高清,{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intVideoPlaySort}集免费{strVideoParentCategoryName},{strVideoDescription:50},{strVideoDirector}导演{strAreaName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intVideoPlaySort}集在线观看,{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intVideoPlaySort}集高清,{strVideoDescription:50},{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intVideoPlaySort}集免费{strVideoParentCategoryName},{strVideoDescription:50},{strVideoActor}主演,{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intVideoPlaySort}集高清在线,{strVideoDescription:50},{strVideoDirector}导演{strVideoParentCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strVideoName} 第{intVideoPlaySort}集免费播放,{strVideoDescription:50},{strVideoActor}主演{strAreaName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intVideoPlaySort}集,{strVideoDescription:50},{strVideoDirector}执导{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intVideoPlaySort}集高清{strVideoParentCategoryName},{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intVideoPlaySort}集免费在线,{strVideoDescription:50},{strVideoDirector}导演{strVideoParentCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intVideoPlaySort}集高清播放,{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intVideoPlaySort}集免费{strVideoParentCategoryName},{strVideoDescription:50},{strVideoDirector}执导,{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strVideoName} 第{intVideoPlaySort}集在线,{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intVideoPlaySort}集高清{strVideoParentCategoryName},{strVideoDescription:50},{strVideoDirector}导演{strAreaName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intVideoPlaySort}集免费播放,{strVideoDescription:50},{strVideoActor}主演{strVideoParentCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intVideoPlaySort}集高清在线,{strVideoDescription:50},{strVideoDirector}执导{strLangName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}献上{strVideoName} 第{intVideoPlaySort}集免费{strVideoParentCategoryName},{strVideoDescription:50},{strVideoActor}主演{strVideoCategoryName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intVideoPlaySort}集高清播放,{strVideoDescription:50},{strVideoDirector}导演{strVideoParentCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}推荐{strVideoName} 第{intVideoPlaySort}集在线播放,{strVideoDescription:50},{strVideoActor}主演{strAreaName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"探索{strYear}{strVideoName} 第{intVideoPlaySort}集免费,{strVideoDescription:50},{strVideoDirector}执导{strVideoCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!",
|
||||
"{strSiteName}提供{strVideoName} 第{intVideoPlaySort}集高清{strVideoParentCategoryName},{strVideoDescription:50},{strVideoActor}主演{strLangName},{strSiteKeywords},访问{strSiteDomain}!",
|
||||
"畅享{strVideoName} 第{intVideoPlaySort}集免费在线,{strVideoDescription:50},{strVideoDirector}导演{strVideoParentCategoryName},{strSiteKeywords},立即访问{strSiteDomain}!"
|
||||
];
|
||||
|
||||
@@ -443,8 +443,8 @@ function initDPlayer(strPlayUrl) {
|
||||
document.querySelector("video").style.maxHeight = "218px";
|
||||
document.querySelector(".video-play-page .dplayer-video-wrap").style.maxHeight = "218px";
|
||||
}else{
|
||||
document.querySelector("video").style.maxHeight = "480px";
|
||||
document.querySelector(".video-play-page .dplayer-video-wrap").style.maxHeight = "480px";
|
||||
document.querySelector("video").style.maxHeight = strMaxPlayHeight ?? '480px';
|
||||
document.querySelector(".video-play-page .dplayer-video-wrap").style.maxHeight = strMaxPlayHeight ?? '480px';
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
2280
code/public/template/videolaoniu/css/global.css
Normal file
5138
code/public/template/videolaoniu/css/style.css
Normal file
13
code/public/template/videolaoniu/css/swiper-bundle.min.css
vendored
Normal file
BIN
code/public/template/videolaoniu/images/favicon.png
Normal file
|
After Width: | Height: | Size: 396 B |
BIN
code/public/template/videolaoniu/images/icon/bd.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
code/public/template/videolaoniu/images/icon/dh.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
code/public/template/videolaoniu/images/icon/dian-shi-ju.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
code/public/template/videolaoniu/images/icon/dian-ying.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
code/public/template/videolaoniu/images/icon/dong-man.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
code/public/template/videolaoniu/images/icon/duan-ju-da-quan.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
code/public/template/videolaoniu/images/icon/home.png
Normal file
|
After Width: | Height: | Size: 917 B |
BIN
code/public/template/videolaoniu/images/icon/zong-yi.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
code/public/template/videolaoniu/images/icons.png
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
code/public/template/videolaoniu/images/palyer.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
code/public/template/videolaoniu/images/pic.png
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
BIN
code/public/template/videolaoniu/images/play.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
252
code/public/template/videolaoniu/js/ewave-common.js
Normal file
@@ -0,0 +1,252 @@
|
||||
MAC.History = {
|
||||
'BoxShow': 0,
|
||||
'Limit': 10,
|
||||
'Days': 7,
|
||||
'Json': '',
|
||||
'Init': function() {
|
||||
if ($('.mac_history').length == 0) {
|
||||
return;
|
||||
}
|
||||
var jsondata = [];
|
||||
if (this.Json) {
|
||||
jsondata = this.Json;
|
||||
} else {
|
||||
var jsonstr = MAC.Cookie.Get('mac_history_full');
|
||||
if (jsonstr != undefined) {
|
||||
jsondata = eval(jsonstr);
|
||||
}
|
||||
}
|
||||
if (jsondata.length > 0) {
|
||||
html = '';
|
||||
for ($i = 0; $i < jsondata.length; $i++) {
|
||||
html += '<li><h5><a href="' + jsondata[$i].link + '">' + jsondata[$i].name +
|
||||
'</a><em>/</em><a target="_blank" href="' + jsondata[$i].playlink + '">' + jsondata[$i].playname +
|
||||
'</a></h5><a href="' + jsondata[$i].playlink +
|
||||
'" class="playlog-del" id="playlog-del"><i class="icon iconfont icon-jijiang"></i></a></li>';
|
||||
}
|
||||
} else {
|
||||
html = '<strong>暂无观看历史记录列表</strong>';
|
||||
}
|
||||
$(".mac_history_box").html(html);
|
||||
if ($(".mac_history_set").attr('data-name')) {
|
||||
var $that = $(".mac_history_set");
|
||||
MAC.History.Set($that.attr('data-id'), $that.attr('data-name'), $that.attr('data-link'), $that.attr(
|
||||
'data-playname'), $that.attr('data-playlink'), $that.attr('data-pic'), $that.attr('data-time'));
|
||||
}
|
||||
},
|
||||
'Set': function(id, name, link, playname, playlink, pic, time) {
|
||||
if (!playlink) {
|
||||
playlink = document.URL;
|
||||
}
|
||||
if (!time) {
|
||||
time = new Date();
|
||||
}
|
||||
var jsondata = MAC.Cookie.Get('mac_history_full');
|
||||
if (jsondata != undefined) {
|
||||
this.Json = eval(jsondata);
|
||||
|
||||
jsonstr = '{log:[{"id":"' + id + '","name":"' + name + '","link":"' + link + '","playname":"' + playname +
|
||||
'","playlink":"' + playlink + '","pic":"' + pic + '","time":"' + time + '"},';
|
||||
for ($i = 0; $i < this.Json.length; $i++) {
|
||||
if ($i <= this.Limit && this.Json[$i]) {
|
||||
if (this.Json[$i].id == id) {
|
||||
continue;
|
||||
} else {
|
||||
jsonstr += '{"id":"' + this.Json[$i].id + '","name":"' + this.Json[$i].name + '","link":"' + this.Json[
|
||||
$i].link + '","playname":"' + this.Json[$i].playname + '","playlink":"' + this.Json[$i].playlink +
|
||||
'","pic":"' + this.Json[$i].pic + '","time":"' + this.Json[$i].time + '"},';
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
jsonstr = jsonstr.substring(0, jsonstr.lastIndexOf(','));
|
||||
jsonstr += "]}";
|
||||
} else {
|
||||
jsonstr = '{log:[{"id":"' + id + '","name":"' + name + '","link":"' + link + '","playname":"' + playname +
|
||||
'","playlink":"' + playlink + '","pic":"' + pic + '","time":"' + time + '"}]}';
|
||||
}
|
||||
this.Json = eval(jsonstr);
|
||||
MAC.Cookie.Set('mac_history_full', jsonstr, this.Days);
|
||||
},
|
||||
'Clear': function() {
|
||||
MAC.Cookie.Del('mac_history_full');
|
||||
$('.mac_history_box').html('<strong>暂无观看历史记录列表</strong>');
|
||||
},
|
||||
}
|
||||
|
||||
function playlistHeight() {
|
||||
$(".min-play-list").css('maxHeight', $("#ewave_player").height() - $(".player-play-nav").height() - 20);
|
||||
}
|
||||
$(document).ready(function() {
|
||||
var navSwiper = new Swiper('.header-nav-wrap', {
|
||||
freeMode: true,
|
||||
slidesPerView: 'auto',
|
||||
initialSlide: $('.header-nav-wrap').find('.active').index(),
|
||||
centeredSlides: true,
|
||||
centeredSlidesBounds: true,
|
||||
});
|
||||
var navSwiper2 = new Swiper('.header-menu', {
|
||||
freeMode: true,
|
||||
slidesPerView: 'auto',
|
||||
initialSlide: $('.header-menu').find('.active').index(),
|
||||
centeredSlides: true,
|
||||
centeredSlidesBounds: true,
|
||||
});
|
||||
var indexSwiper = new Swiper('#box-slide-1', {
|
||||
lazy: {
|
||||
loadPrevNext: true,
|
||||
loadPrevNextAmount: 2,
|
||||
},
|
||||
loop: true,
|
||||
autoplay: true,
|
||||
effect: 'fade',
|
||||
fadeEffect: {
|
||||
crossFade: true,
|
||||
},
|
||||
pagination: {
|
||||
el: '.swiper-pagination',
|
||||
},
|
||||
navigation: {
|
||||
nextEl: '.swiper-button-next',
|
||||
prevEl: '.swiper-button-prev',
|
||||
},
|
||||
});
|
||||
var typeSwiper = new Swiper('#box-slide-2', {
|
||||
lazy: {
|
||||
loadPrevNext: true,
|
||||
loadPrevNextAmount: 2,
|
||||
},
|
||||
loop: true,
|
||||
autoplay: true,
|
||||
effect: 'fade',
|
||||
fadeEffect: {
|
||||
crossFade: true,
|
||||
},
|
||||
pagination: {
|
||||
el: '.swiper-pagination',
|
||||
},
|
||||
navigation: {
|
||||
nextEl: '.swiper-button-next',
|
||||
prevEl: '.swiper-button-prev',
|
||||
},
|
||||
});
|
||||
var indexTypeSwiper = new Swiper('#box-slide-index', {
|
||||
lazy: {
|
||||
loadPrevNext: true,
|
||||
loadPrevNextAmount: 2,
|
||||
},
|
||||
loop: true,
|
||||
autoplay: true,
|
||||
effect: 'fade',
|
||||
fadeEffect: {
|
||||
crossFade: true,
|
||||
},
|
||||
pagination: {
|
||||
el: '.swiper-pagination',
|
||||
},
|
||||
navigation: {
|
||||
nextEl: '.swiper-button-next',
|
||||
prevEl: '.swiper-button-prev',
|
||||
},
|
||||
});
|
||||
var selectSwiper = new Swiper('.type-select-slide', {
|
||||
freeMode: true,
|
||||
slidesPerView: 'auto',
|
||||
on: {
|
||||
init: function(swiper) {
|
||||
this.slideTo($('.type-select-slide').eq(this.$el.index()).find('.active').index() - 1);
|
||||
},
|
||||
},
|
||||
});
|
||||
var topSwiper = new Swiper('#nav-select', {
|
||||
freeMode: true,
|
||||
slidesPerView: 'auto',
|
||||
on: {
|
||||
init: function(swiper) {
|
||||
this.slideTo(this.$el.find('.active').index() - 1);
|
||||
},
|
||||
},
|
||||
});
|
||||
if ($(".shrink-content").height() > 72) {
|
||||
$(".shrink-box").addClass("closed");
|
||||
}
|
||||
$(".shrink-box.opened,.shrink-box.closed").click(function() {
|
||||
$(this).toggleClass("opened closed");
|
||||
});
|
||||
if ($("#user-login").length > 0) {
|
||||
if (MAC.Cookie.Get('user_id') != undefined && MAC.Cookie.Get('user_id') != '') {
|
||||
$(".user-login-link").attr({
|
||||
'href': maccms.path + '/index.php/user/index.html',
|
||||
'target': '_blank',
|
||||
'title': '用户中心'
|
||||
});
|
||||
} else {
|
||||
$(".user-login-link").attr({
|
||||
'href': 'javascript:;',
|
||||
'target': '_self',
|
||||
'title': '点击登录'
|
||||
}).click(MAC.User.Login);
|
||||
}
|
||||
}
|
||||
$("#slideDown-box").click(function() {
|
||||
var $that = $(this);
|
||||
$(".slideDown-box").slideToggle(function() {
|
||||
if ($that.hasClass("up")) {
|
||||
$that.html('展开<i class="iconfont icon-down"></i>');
|
||||
} else {
|
||||
$that.html('收起<i class="iconfont icon-up"></i>');
|
||||
}
|
||||
$that.toggleClass("up");
|
||||
});
|
||||
});
|
||||
$(".detail-info").click(function() {
|
||||
$(this).children("p").toggleClass("txt-hidden").siblings().children(".icon-down").toggleClass("icon-up");
|
||||
});
|
||||
$(".tab-toggle").click(function() {
|
||||
if (!$(this).hasClass("active")) {
|
||||
$(this).addClass("active").siblings().removeClass("active");
|
||||
$(".tab-content").children().eq($(this).index()).fadeIn("fast").siblings().hide();
|
||||
$(".tab-content").children().eq($(this).index()).find(".lazyload").lazyload();
|
||||
if ($(this).hasClass("player-tab-toggle")) {
|
||||
$("#min-more").removeClass().addClass("gico " + $(this).attr("from")).children(".name").text($(this)
|
||||
.attr("show"));
|
||||
}
|
||||
}
|
||||
});
|
||||
$(".js-ep-show.more").click(function() {
|
||||
$(this).toggleClass("hided").siblings(".js-ep-show").toggleClass("hided");
|
||||
});
|
||||
if ($(".player-play-nav").length > 0) {
|
||||
playlistHeight();
|
||||
$(window).resize(playlistHeight);
|
||||
}
|
||||
$(".player-shrink").click(function() {
|
||||
$(this).toggleClass("icon-left").parents(".vod-play-box").toggleClass("max");
|
||||
playlistHeight();
|
||||
});
|
||||
$(".min-play-more").click(function() {
|
||||
$(this).find(".icon-down").toggleClass("icon-up");
|
||||
$(".player-more-list").slideToggle("fast");
|
||||
});
|
||||
if ($(".min-play-more").length > 0) {
|
||||
$("body").click(function(e) {
|
||||
if ($(e.target).closest(".min-play-more,.player-more-list").length == 0) {
|
||||
$(".min-play-more").find(".icon-down").removeClass("icon-up");
|
||||
$(".player-more-list").slideUp("fast");
|
||||
}
|
||||
});
|
||||
}
|
||||
$(".back-top").click(function() {
|
||||
$("html,body").animate({
|
||||
scrollTop: 0
|
||||
}, 300);
|
||||
});
|
||||
$(window).scroll(function() {
|
||||
if ($(document).scrollTop() >= 100) {
|
||||
$(".back-top").show();
|
||||
} else {
|
||||
$(".back-top").hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
313
code/public/template/videolaoniu/js/ewave-global.js
Normal file
@@ -0,0 +1,313 @@
|
||||
var eWave = {
|
||||
'Image': {
|
||||
'Lazyload': function() {
|
||||
$(".lazyload").lazyload({
|
||||
effect: "fadeIn",
|
||||
threshold: 200,
|
||||
failurelimit: 50,
|
||||
skip_invisible: false
|
||||
});
|
||||
}
|
||||
},
|
||||
'Digg': {
|
||||
'Init': function() {
|
||||
$('body').on('click', '.ewave_digg_link', function(e) {
|
||||
var $that = $(this);
|
||||
if ($that.attr("data-id")) {
|
||||
MAC.Ajax(maccms.path + '/index.php/ajax/digg.html?mid=' + $that.attr("data-mid") + '&id=' + $that.attr("data-id") + '&type=' + $that.attr("data-type"), 'get', 'json', '',
|
||||
function(r) {
|
||||
if (r.code == 1) {
|
||||
if ($that.attr("data-type") == 'up') {
|
||||
$that.find('.digg_num').html(r.data.up);
|
||||
} else {
|
||||
$that.find('.digg_num').html(r.data.down);
|
||||
}
|
||||
} else {
|
||||
MAC.Pop.Msg(100, 20, r.msg, 1000);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'Star': {
|
||||
'Static': 0, //判断页面是否为静态
|
||||
'Obj': '.ewave_star',
|
||||
'Init': function() {
|
||||
if ($(eWave.Star.Obj).length == 0) {
|
||||
return;
|
||||
}
|
||||
if (eWave.Star.Static == 0) {
|
||||
eWave.Star.View();
|
||||
} else {
|
||||
MAC.Ajax(maccms.path + '/index.php/ajax/score?mid=' + $(eWave.Star.Obj).attr('data-mid') + '&id=' + $(eWave
|
||||
.Star.Obj).attr('data-id'), 'get', 'json', '', function(e) {
|
||||
$(eWave.Star.Obj).attr({
|
||||
'score': e.data.score,
|
||||
'data-star': Math.ceil(e.data.score / 2),
|
||||
'data-score-num': e.data.score_num
|
||||
});
|
||||
$(".raty-score-num").text(e.data.score);
|
||||
eWave.Star.View();
|
||||
});
|
||||
}
|
||||
},
|
||||
'Get': function() {
|
||||
MAC.Ajax(maccms.path + '/index.php/ajax/score?mid=' + $(eWave.Star.Obj).attr('data-mid') + '&id=' + $(eWave
|
||||
.Star.Obj).attr('data-id'), 'get', 'json', '', function(e) {
|
||||
$(eWave.Star.Obj).attr({
|
||||
'score': e.data.score,
|
||||
'data-star': Math.ceil(e.data.score / 2),
|
||||
'data-score-num': e.data.score_num
|
||||
});
|
||||
$(".raty-score-num").text(e.data.score);
|
||||
eWave.Star.View();
|
||||
});
|
||||
},
|
||||
'View': function() {
|
||||
$(eWave.Star.Obj).raty({
|
||||
starType: 'li',
|
||||
number: 5,
|
||||
numberMax: 5,
|
||||
space: false,
|
||||
score: function() {
|
||||
$(".raty-score-num").text($(eWave.Star.Obj).attr('score'));
|
||||
return $(eWave.Star.Obj).attr('data-star');
|
||||
},
|
||||
hints: ['很差', '较差', '还行', '推荐', '力荐'],
|
||||
starOff: '',
|
||||
starOn: 'active',
|
||||
target: $("#ratewords"),
|
||||
targetKeep: $(eWave.Star.Obj).attr('data-score-num') > 0 ? true : false,
|
||||
targetText: '暂无',
|
||||
click: function(score, evt) {
|
||||
MAC.Ajax(maccms.path + '/index.php/ajax/score?mid=' + $(eWave.Star.Obj).attr('data-mid') + '&id=' +
|
||||
$(eWave.Star.Obj).attr('data-id') + '&score=' + (score * 2), 'get', 'json', '',
|
||||
function(r) {
|
||||
if (r.code == 1) {
|
||||
$(eWave.Star.Obj).attr({
|
||||
'score': r.data.score,
|
||||
'data-star': Math.ceil(r.data.score / 2),
|
||||
'data-score-num': r.data.score_num
|
||||
});
|
||||
$(".raty-score-num").text(r.data.score);
|
||||
$(eWave.Star.Obj).raty('set', {
|
||||
'score': Math.ceil(r.data.score / 2),
|
||||
});
|
||||
MAC.Pop.Msg(100, 20, '评分成功', 1000);
|
||||
} else {
|
||||
$(eWave.Star.Obj).raty('score', $(eWave.Star.Obj).attr('data-star'));
|
||||
MAC.Pop.Msg(100, 20, r.msg, 1000);
|
||||
}
|
||||
},
|
||||
function() {
|
||||
$(eWave.Star.Obj).raty('score', $(eWave.Star.Obj).attr('data-star'));
|
||||
MAC.Pop.Msg(100, 20, '网络异常', 1000);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'Comment': {
|
||||
'Login': 0,
|
||||
'Verify': 0,
|
||||
'Init': function() {
|
||||
$('body').on('click', '.comment_face_box img', function(e) {
|
||||
var obj = $(this).parent().parent().parent().find('.comment_content');
|
||||
MAC.AddEm(obj, $(this).attr('data-id'));
|
||||
});
|
||||
$('body').on('click', '.comment_face_panel', function(e) {
|
||||
// $('.comment_face_box').toggle();
|
||||
$(this).parent().find('.comment_face_box').toggle();
|
||||
});
|
||||
$('body').on('keyup', '.comment_content', function(e) {
|
||||
var obj = $(this).parent().parent().parent().parent().find('.comment_remaining');
|
||||
MAC.Remaining($(this), 200, obj)
|
||||
});
|
||||
$('body').on('focus', '.comment_content', function(e) {
|
||||
if (eWave.Comment.Login == 1 && MAC.User.IsLogin != 1) {
|
||||
MAC.User.Login();
|
||||
}
|
||||
});
|
||||
$("body").on("click", ".ewave-comment-reply-switch", function() {
|
||||
$($(this).attr("to")).slideToggle("fast");
|
||||
$(".ewave-comment-reply-form").not($(this).attr("to")).slideUp("fast");
|
||||
});
|
||||
$('body').on('click', '.comment_report', function(e) {
|
||||
var $that = $(this);
|
||||
if ($(this).attr("data-id")) {
|
||||
$.ajax({
|
||||
url: maccms.path + '/index.php/comment/report.html?id=' + $that.attr("data-id"),
|
||||
cache: false,
|
||||
dataType: 'json',
|
||||
success: function($r) {
|
||||
$that.addClass('disabled');
|
||||
MAC.Pop.Msg(100, 20, $r.msg, 1000);
|
||||
if ($r.code == 1) {}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('body').on('click', '.comment_submit', function(e) {
|
||||
var $that = $(this);
|
||||
eWave.Comment.Submit($that);
|
||||
});
|
||||
},
|
||||
'Show': function($page) {
|
||||
if ($(".ewave_comment").length > 0) {
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: maccms.path + '/index.php/comment/ajax.html?rid=' + $('.ewave_comment').attr('data-id') +
|
||||
'&mid=' + $('.ewave_comment').attr('data-mid') + '&page=' + $page,
|
||||
timeout: 5000,
|
||||
error: function() {
|
||||
$(".ewave_comment").html('<a href="javascript:void(0)" onclick="eWave.Comment.Show(' + $page + ')">评论加载失败,点击我刷新...</a>');
|
||||
},
|
||||
success: function($r) {
|
||||
$(".ewave_comment").html($r);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'Reply': function($o) {
|
||||
|
||||
},
|
||||
'Submit': function($o) {
|
||||
var form = $o.parents('form');
|
||||
if ($(form).find(".comment_content").val() == '') {
|
||||
MAC.Pop.Msg(100, 20, '请输入评论!', 1000);
|
||||
return false;
|
||||
}
|
||||
if ($('.ewave_comment').attr('data-mid') == '') {
|
||||
MAC.Pop.Msg(100, 20, '模块mid错误!', 1000);
|
||||
return false;
|
||||
}
|
||||
if ($('.ewave_comment').attr('data-id') == '') {
|
||||
MAC.Pop.Msg(100, 20, '关联id错误!', 1000);
|
||||
return false;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: maccms.path + '/index.php/comment/saveData',
|
||||
data: $(form).serialize() + '&comment_mid=' + $('.ewave_comment').attr('data-mid') + '&comment_rid=' +
|
||||
$('.ewave_comment').attr('data-id'),
|
||||
success: function($r) {
|
||||
MAC.Pop.Msg(100, 20, $r.msg, 1000);
|
||||
if ($r.code == 1) {
|
||||
eWave.Comment.Show(1);
|
||||
} else {
|
||||
if (eWave.Comment.Verify == 1) {
|
||||
form.find(".ewave-comment-verify-img").attr('src', maccms.path + '/index.php/verify/index.html?r=' + Math.random());
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'Gbook': {
|
||||
'Login': 0,
|
||||
'Verify': 0,
|
||||
'Init': function() {
|
||||
$('body').on('keyup', '.gbook_content', function(e) {
|
||||
MAC.Remaining($(this), 200, '.gbook_remaining')
|
||||
});
|
||||
$('body').on('focus', '.gbook_content', function(e) {
|
||||
if (eWave.Gbook.Login == 1 && MAC.User.IsLogin != 1) {
|
||||
$(".gbook_content").blur();
|
||||
MAC.User.Login();
|
||||
}
|
||||
});
|
||||
$('body').on('click', '.gbook_submit', function(e) {
|
||||
eWave.Gbook.Submit();
|
||||
});
|
||||
},
|
||||
'Show': function($page) {
|
||||
MAC.Ajax(maccms.path + '/index.php/gbook/index?page=' + $page, 'post', 'json', '', function(r) {
|
||||
$(".mac_gbook_box").html(r);
|
||||
}, function() {
|
||||
$(".mac_gbook_box").html('留言加载失败,请刷新...');
|
||||
});
|
||||
},
|
||||
'Submit': function() {
|
||||
if ($(".gbook_content").val() == '') {
|
||||
MAC.Pop.Msg(100, 20, '请输入您的留言!', 1000);
|
||||
return false;
|
||||
}
|
||||
MAC.Ajax(maccms.path + '/index.php/gbook/saveData', 'post', 'json', $('.gbook_form').serialize(), function(
|
||||
r) {
|
||||
MAC.Pop.Msg(100, 20, r.msg, 1000);
|
||||
if (r.code == 1) {
|
||||
location.reload();
|
||||
} else {
|
||||
if (eWave.Gbook.Verify == 1) {
|
||||
$(".gbook_form").find(".ewave-comment-verify-img").attr('src', maccms.path + '/index.php/verify/index.html?r=' + Math.random());
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
'Report': function(name, id) {
|
||||
MAC.Pop.Show(400, 300, '数据报错', maccms.path + '/index.php/gbook/report.html?id=' + id + '&name=' +
|
||||
encodeURIComponent(name),
|
||||
function(r) {
|
||||
$(".gbook_content").focus();
|
||||
$(".mac_verify_img_report").click();
|
||||
});
|
||||
}
|
||||
},
|
||||
'Ulog': {
|
||||
'Init': function() {
|
||||
eWave.Ulog.Set();
|
||||
eWave.Ulog.Click();
|
||||
|
||||
},
|
||||
'Get': function() {
|
||||
MAC.Ajax(maccms.path + '/index.php/user/ajax_ulog/?ac=list&limit=2000&type=2', 'get', 'json', '', function(
|
||||
r) {
|
||||
if (r.code == 1) {
|
||||
$.each(r['list'], function(index, row) {
|
||||
if (row.ulog_type == 2) {
|
||||
$("#detail-fav-" + row.data.id).removeAttr("data-id").html('<i class="fa fa-star"></i>已收藏');
|
||||
$("#player-fav-" + row.data.id).removeAttr("data-id").children("a").text('已收藏');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
'Set': function() {
|
||||
if ($(".ewave_ulog_set").attr('data-mid')) {
|
||||
var $that = $(".ewave_ulog_set");
|
||||
$.get(maccms.path + '/index.php/user/ajax_ulog/?ac=set&mid=' + $that.attr("data-mid") + '&id=' + $that.attr("data-id") + '&sid=' + $that.attr("data-sid") + '&nid=' + $that.attr("data-nid") + '&type=' + $that.attr("data-type"));
|
||||
}
|
||||
},
|
||||
'Click': function() {
|
||||
$('body').on('click', '.ewave_ulog', function(e) {
|
||||
//是否需要验证登录
|
||||
if (MAC.User.IsLogin == 0) {
|
||||
MAC.User.Login();
|
||||
return;
|
||||
}
|
||||
var $that = $(this);
|
||||
if ($that.attr("data-id")) {
|
||||
MAC.Ajax(maccms.path + '/index.php/user/ajax_ulog/?ac=set&mid=' + $that.attr("data-mid") + '&id=' + $that.attr("data-id") + '&type=' + $that.attr("data-type"), 'get', 'json', '',
|
||||
function(r) {
|
||||
if (r.code == 1) {
|
||||
MAC.Pop.Msg(100, 20, '收藏成功', 1000);
|
||||
$(".detail-ulog").removeAttr("data-id").html('<i class="fa fa-star"></i>已收藏');
|
||||
} else {
|
||||
MAC.Pop.Msg(100, 20, '收藏成功', 1000);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
$(document).ready(function() {
|
||||
eWave.Digg.Init();
|
||||
eWave.Star.Init();
|
||||
eWave.Image.Lazyload();
|
||||
});
|
||||
2
code/public/template/videolaoniu/js/jquery.lazyload.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/*! Lazy Load 1.9.7 - MIT license - Copyright 2010-2015 Mika Tuupola */
|
||||
!function(a,b,c,d){var e=a(b);a.fn.lazyload=function(f){function g(){var b=0;i.each(function(){var c=a(this);if(!j.skip_invisible||c.is(":visible"))if(a.abovethetop(this,j)||a.leftofbegin(this,j));else if(a.belowthefold(this,j)||a.rightoffold(this,j)){if(++b>j.failure_limit)return!1}else c.trigger("appear"),b=0})}var h,i=this,j={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return f&&(d!==f.failurelimit&&(f.failure_limit=f.failurelimit,delete f.failurelimit),d!==f.effectspeed&&(f.effect_speed=f.effectspeed,delete f.effectspeed),a.extend(j,f)),h=j.container===d||j.container===b?e:a(j.container),0===j.event.indexOf("scroll")&&h.bind(j.event,function(){return g()}),this.each(function(){var b=this,c=a(b);b.loaded=!1,(c.attr("src")===d||c.attr("src")===!1)&&c.is("img")&&c.attr("src",j.placeholder),c.one("appear",function(){if(!this.loaded){if(j.appear){var d=i.length;j.appear.call(b,d,j)}a("<img />").bind("load",function(){var d=c.attr("data-"+j.data_attribute);c.hide(),c.is("img")?c.attr("src",d):c.css("background-image","url('"+d+"')"),c[j.effect](j.effect_speed),b.loaded=!0;var e=a.grep(i,function(a){return!a.loaded});if(i=a(e),j.load){var f=i.length;j.load.call(b,f,j)}}).attr("src",c.attr("data-"+j.data_attribute))}}),0!==j.event.indexOf("scroll")&&c.bind(j.event,function(){b.loaded||c.trigger("appear")})}),e.bind("resize",function(){g()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&e.bind("pageshow",function(b){b.originalEvent&&b.originalEvent.persisted&&i.each(function(){a(this).trigger("appear")})}),a(c).ready(function(){g()}),this},a.belowthefold=function(c,f){var g;return g=f.container===d||f.container===b?(b.innerHeight?b.innerHeight:e.height())+e.scrollTop():a(f.container).offset().top+a(f.container).height(),g<=a(c).offset().top-f.threshold},a.rightoffold=function(c,f){var g;return g=f.container===d||f.container===b?e.width()+e.scrollLeft():a(f.container).offset().left+a(f.container).width(),g<=a(c).offset().left-f.threshold},a.abovethetop=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollTop():a(f.container).offset().top,g>=a(c).offset().top+f.threshold+a(c).height()},a.leftofbegin=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollLeft():a(f.container).offset().left,g>=a(c).offset().left+f.threshold+a(c).width()},a.inviewport=function(b,c){return!(a.rightoffold(b,c)||a.leftofbegin(b,c)||a.belowthefold(b,c)||a.abovethetop(b,c))},a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-screen":function(b){return a.rightoffold(b,{threshold:0})},"left-of-screen":function(b){return!a.rightoffold(b,{threshold:0})},"in-viewport":function(b){return a.inviewport(b,{threshold:0})},"above-the-fold":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0})},"left-of-fold":function(b){return!a.rightoffold(b,{threshold:0})}})}(jQuery,window,document);
|
||||
2
code/public/template/videolaoniu/js/jquery.min.js
vendored
Normal file
763
code/public/template/videolaoniu/js/jquery.raty.js
Normal file
@@ -0,0 +1,763 @@
|
||||
/*!
|
||||
* jQuery Raty - A Star Rating Plugin
|
||||
*
|
||||
* The MIT License
|
||||
*
|
||||
* author: Washington Botelho
|
||||
* github: wbotelhos/raty
|
||||
* version: 2.9.0
|
||||
*
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
'use strict';
|
||||
|
||||
var methods = {
|
||||
init: function(options) {
|
||||
return this.each(function() {
|
||||
this.self = $(this);
|
||||
|
||||
methods.destroy.call(this.self);
|
||||
|
||||
this.opt = $.extend(true, {}, $.fn.raty.defaults, options, this.self.data());
|
||||
|
||||
methods._adjustCallback.call(this);
|
||||
methods._adjustNumber.call(this);
|
||||
methods._adjustHints.call(this);
|
||||
|
||||
this.opt.score = methods._adjustedScore.call(this, this.opt.score);
|
||||
|
||||
if (this.opt.starType !== 'img') {
|
||||
methods._adjustStarType.call(this);
|
||||
}
|
||||
|
||||
methods._adjustPath.call(this);
|
||||
methods._createStars.call(this);
|
||||
|
||||
if (this.opt.cancel) {
|
||||
methods._createCancel.call(this);
|
||||
}
|
||||
|
||||
if (this.opt.precision) {
|
||||
methods._adjustPrecision.call(this);
|
||||
}
|
||||
|
||||
methods._createScore.call(this);
|
||||
methods._apply.call(this, this.opt.score);
|
||||
methods._setTitle.call(this, this.opt.score);
|
||||
methods._target.call(this, this.opt.score);
|
||||
|
||||
if (this.opt.readOnly) {
|
||||
methods._lock.call(this);
|
||||
} else {
|
||||
this.style.cursor = 'pointer';
|
||||
|
||||
methods._binds.call(this);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
_adjustCallback: function() {
|
||||
var options = ['number', 'readOnly', 'score', 'scoreName', 'target', 'path'];
|
||||
|
||||
for (var i = 0; i < options.length; i++) {
|
||||
if (typeof this.opt[options[i]] === 'function') {
|
||||
this.opt[options[i]] = this.opt[options[i]].call(this);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
_adjustedScore: function(score) {
|
||||
if (!score) {
|
||||
return score;
|
||||
}
|
||||
|
||||
return methods._between(score, 0, this.opt.number);
|
||||
},
|
||||
|
||||
_adjustHints: function() {
|
||||
if (!this.opt.hints) {
|
||||
this.opt.hints = [];
|
||||
}
|
||||
|
||||
if (!this.opt.halfShow && !this.opt.half) {
|
||||
return;
|
||||
}
|
||||
|
||||
var steps = this.opt.precision ? 10 : 2;
|
||||
|
||||
for (var i = 0; i < this.opt.number; i++) {
|
||||
var group = this.opt.hints[i];
|
||||
|
||||
if (Object.prototype.toString.call(group) !== '[object Array]') {
|
||||
group = [group];
|
||||
}
|
||||
|
||||
this.opt.hints[i] = [];
|
||||
|
||||
for (var j = 0; j < steps; j++) {
|
||||
var
|
||||
hint = group[j],
|
||||
last = group[group.length - 1];
|
||||
|
||||
if (last === undefined) {
|
||||
last = null;
|
||||
}
|
||||
|
||||
this.opt.hints[i][j] = hint === undefined ? last : hint;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
_adjustNumber: function() {
|
||||
this.opt.number = methods._between(this.opt.number, 1, this.opt.numberMax);
|
||||
},
|
||||
|
||||
_adjustPath: function() {
|
||||
this.opt.path = this.opt.path || '';
|
||||
|
||||
if (this.opt.path && this.opt.path.charAt(this.opt.path.length - 1) !== '/') {
|
||||
this.opt.path += '/';
|
||||
}
|
||||
},
|
||||
|
||||
_adjustPrecision: function() {
|
||||
this.opt.half = true;
|
||||
},
|
||||
|
||||
_adjustStarType: function() {
|
||||
var replaces = ['cancelOff', 'cancelOn', 'starHalf', 'starOff', 'starOn'];
|
||||
|
||||
this.opt.path = '';
|
||||
|
||||
for (var i = 0; i < replaces.length; i++) {
|
||||
this.opt[replaces[i]] = this.opt[replaces[i]].replace('.', '-');
|
||||
}
|
||||
},
|
||||
|
||||
_apply: function(score) {
|
||||
methods._fill.call(this, score);
|
||||
|
||||
if (score) {
|
||||
if (score > 0) {
|
||||
this.score.val(score);
|
||||
}
|
||||
|
||||
methods._roundStars.call(this, score);
|
||||
}
|
||||
},
|
||||
|
||||
_between: function(value, min, max) {
|
||||
return Math.min(Math.max(parseFloat(value), min), max);
|
||||
},
|
||||
|
||||
_binds: function() {
|
||||
if (this.cancel) {
|
||||
methods._bindOverCancel.call(this);
|
||||
methods._bindClickCancel.call(this);
|
||||
methods._bindOutCancel.call(this);
|
||||
}
|
||||
|
||||
methods._bindOver.call(this);
|
||||
methods._bindClick.call(this);
|
||||
methods._bindOut.call(this);
|
||||
},
|
||||
|
||||
_bindClick: function() {
|
||||
var that = this;
|
||||
|
||||
that.stars.on('click.raty', function(evt) {
|
||||
var
|
||||
execute = true,
|
||||
score = (that.opt.half || that.opt.precision) ? that.self.data('score') : (this.alt || $(this).data('alt'));
|
||||
|
||||
if (that.opt.click) {
|
||||
execute = that.opt.click.call(that, +score, evt);
|
||||
}
|
||||
|
||||
if (execute || execute === undefined) {
|
||||
if (that.opt.half && !that.opt.precision) {
|
||||
score = methods._roundHalfScore.call(that, score);
|
||||
}
|
||||
|
||||
methods._apply.call(that, score);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
_bindClickCancel: function() {
|
||||
var that = this;
|
||||
|
||||
that.cancel.on('click.raty', function(evt) {
|
||||
that.score.removeAttr('value');
|
||||
|
||||
if (that.opt.click) {
|
||||
that.opt.click.call(that, null, evt);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
_bindOut: function() {
|
||||
var that = this;
|
||||
|
||||
that.self.on('mouseleave.raty', function(evt) {
|
||||
var score = +that.score.val() || undefined;
|
||||
|
||||
methods._apply.call(that, score);
|
||||
methods._target.call(that, score, evt);
|
||||
methods._resetTitle.call(that);
|
||||
|
||||
if (that.opt.mouseout) {
|
||||
that.opt.mouseout.call(that, score, evt);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
_bindOutCancel: function() {
|
||||
var that = this;
|
||||
|
||||
that.cancel.on('mouseleave.raty', function(evt) {
|
||||
var icon = that.opt.cancelOff;
|
||||
|
||||
if (that.opt.starType !== 'img') {
|
||||
icon = that.opt.cancelClass + ' ' + icon;
|
||||
}
|
||||
|
||||
methods._setIcon.call(that, this, icon);
|
||||
|
||||
if (that.opt.mouseout) {
|
||||
var score = +that.score.val() || undefined;
|
||||
|
||||
that.opt.mouseout.call(that, score, evt);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
_bindOver: function() {
|
||||
var
|
||||
that = this,
|
||||
action = that.opt.half ? 'mousemove.raty' : 'mouseover.raty';
|
||||
|
||||
that.stars.on(action, function(evt) {
|
||||
var score = methods._getScoreByPosition.call(that, evt, this);
|
||||
|
||||
methods._fill.call(that, score);
|
||||
|
||||
if (that.opt.half) {
|
||||
methods._roundStars.call(that, score, evt);
|
||||
methods._setTitle.call(that, score, evt);
|
||||
|
||||
that.self.data('score', score);
|
||||
}
|
||||
|
||||
methods._target.call(that, score, evt);
|
||||
|
||||
if (that.opt.mouseover) {
|
||||
that.opt.mouseover.call(that, score, evt);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
_bindOverCancel: function() {
|
||||
var that = this;
|
||||
|
||||
that.cancel.on('mouseover.raty', function(evt) {
|
||||
var
|
||||
starOff = that.opt.path + that.opt.starOff,
|
||||
icon = that.opt.cancelOn;
|
||||
|
||||
if (that.opt.starType === 'img') {
|
||||
that.stars.attr('src', starOff);
|
||||
} else {
|
||||
icon = that.opt.cancelClass + ' ' + icon;
|
||||
|
||||
that.stars.attr('class', starOff);
|
||||
}
|
||||
|
||||
methods._setIcon.call(that, this, icon);
|
||||
methods._target.call(that, null, evt);
|
||||
|
||||
if (that.opt.mouseover) {
|
||||
that.opt.mouseover.call(that, null);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
_buildScoreField: function() {
|
||||
return $('<input />', { name: this.opt.scoreName, type: 'hidden' }).appendTo(this);
|
||||
},
|
||||
|
||||
_createCancel: function() {
|
||||
var
|
||||
icon = this.opt.path + this.opt.cancelOff,
|
||||
cancel = $('<' + this.opt.starType + ' />', { title: this.opt.cancelHint, 'class': this.opt.cancelClass });
|
||||
|
||||
if (this.opt.starType === 'img') {
|
||||
cancel.attr({ src: icon, alt: 'x' });
|
||||
} else {
|
||||
// TODO: use $.data
|
||||
cancel.attr('data-alt', 'x').addClass(icon);
|
||||
}
|
||||
|
||||
if (this.opt.cancelPlace === 'left') {
|
||||
this.self.prepend(' ').prepend(cancel);
|
||||
} else {
|
||||
this.self.append(' ').append(cancel);
|
||||
}
|
||||
|
||||
this.cancel = cancel;
|
||||
},
|
||||
|
||||
_createScore: function() {
|
||||
var score = $(this.opt.targetScore);
|
||||
|
||||
this.score = score.length ? score : methods._buildScoreField.call(this);
|
||||
},
|
||||
|
||||
_createStars: function() {
|
||||
for (var i = 1; i <= this.opt.number; i++) {
|
||||
var
|
||||
name = methods._nameForIndex.call(this, i),
|
||||
attrs = { alt: i, src: this.opt.path + this.opt[name] };
|
||||
|
||||
if (this.opt.starType !== 'img') {
|
||||
attrs = { 'data-alt': i, 'class': attrs.src }; // TODO: use $.data.
|
||||
}
|
||||
|
||||
attrs.title = methods._getHint.call(this, i);
|
||||
|
||||
$('<' + this.opt.starType + ' />', attrs).appendTo(this);
|
||||
|
||||
if (this.opt.space) {
|
||||
this.self.append(i < this.opt.number ? ' ' : '');
|
||||
}
|
||||
}
|
||||
|
||||
this.stars = this.self.children(this.opt.starType);
|
||||
},
|
||||
|
||||
_error: function(message) {
|
||||
$(this).text(message);
|
||||
|
||||
$.error(message);
|
||||
},
|
||||
|
||||
_fill: function(score) {
|
||||
var hash = 0;
|
||||
|
||||
for (var i = 1; i <= this.stars.length; i++) {
|
||||
var
|
||||
icon,
|
||||
star = this.stars[i - 1],
|
||||
turnOn = methods._turnOn.call(this, i, score);
|
||||
|
||||
if (this.opt.iconRange && this.opt.iconRange.length > hash) {
|
||||
var irange = this.opt.iconRange[hash];
|
||||
|
||||
icon = methods._getRangeIcon.call(this, irange, turnOn);
|
||||
|
||||
if (i <= irange.range) {
|
||||
methods._setIcon.call(this, star, icon);
|
||||
}
|
||||
|
||||
if (i === irange.range) {
|
||||
hash++;
|
||||
}
|
||||
} else {
|
||||
icon = this.opt[turnOn ? 'starOn' : 'starOff'];
|
||||
|
||||
methods._setIcon.call(this, star, icon);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
_getFirstDecimal: function(number) {
|
||||
var
|
||||
decimal = number.toString().split('.')[1],
|
||||
result = 0;
|
||||
|
||||
if (decimal) {
|
||||
result = parseInt(decimal.charAt(0), 10);
|
||||
|
||||
if (decimal.slice(1, 5) === '9999') {
|
||||
result++;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
},
|
||||
|
||||
_getRangeIcon: function(irange, turnOn) {
|
||||
return turnOn ? irange.on || this.opt.starOn : irange.off || this.opt.starOff;
|
||||
},
|
||||
|
||||
_getScoreByPosition: function(evt, icon) {
|
||||
var score = parseInt(icon.alt || icon.getAttribute('data-alt'), 10);
|
||||
|
||||
if (this.opt.half) {
|
||||
var
|
||||
size = methods._getWidth.call(this),
|
||||
percent = parseFloat((evt.pageX - $(icon).offset().left) / size);
|
||||
|
||||
score = score - 1 + percent;
|
||||
}
|
||||
|
||||
return score;
|
||||
},
|
||||
|
||||
_getHint: function(score, evt) {
|
||||
if (score !== 0 && !score) {
|
||||
return this.opt.noRatedMsg;
|
||||
}
|
||||
|
||||
var
|
||||
decimal = methods._getFirstDecimal.call(this, score),
|
||||
integer = Math.ceil(score),
|
||||
group = this.opt.hints[(integer || 1) - 1],
|
||||
hint = group,
|
||||
set = !evt || this.move;
|
||||
|
||||
if (this.opt.precision) {
|
||||
if (set) {
|
||||
decimal = decimal === 0 ? 9 : decimal - 1;
|
||||
}
|
||||
|
||||
hint = group[decimal];
|
||||
} else if (this.opt.halfShow || this.opt.half) {
|
||||
decimal = set && decimal === 0 ? 1 : decimal > 5 ? 1 : 0;
|
||||
|
||||
hint = group[decimal];
|
||||
}
|
||||
|
||||
return hint === '' ? '' : hint || score;
|
||||
},
|
||||
|
||||
_getWidth: function() {
|
||||
var width = this.stars[0].width || parseFloat(this.stars.eq(0).css('font-size'));
|
||||
|
||||
if (!width) {
|
||||
methods._error.call(this, 'Could not get the icon width!');
|
||||
}
|
||||
|
||||
return width;
|
||||
},
|
||||
|
||||
_lock: function() {
|
||||
var hint = methods._getHint.call(this, this.score.val());
|
||||
|
||||
this.style.cursor = '';
|
||||
this.title = hint;
|
||||
|
||||
this.score.prop('readonly', true);
|
||||
this.stars.prop('title', hint);
|
||||
|
||||
if (this.cancel) {
|
||||
this.cancel.hide();
|
||||
}
|
||||
|
||||
this.self.data('readonly', true);
|
||||
},
|
||||
|
||||
_nameForIndex: function(i) {
|
||||
return this.opt.score && this.opt.score >= i ? 'starOn' : 'starOff';
|
||||
},
|
||||
|
||||
_resetTitle: function() {
|
||||
for (var i = 0; i < this.opt.number; i++) {
|
||||
this.stars[i].title = methods._getHint.call(this, i + 1);
|
||||
}
|
||||
},
|
||||
|
||||
_roundHalfScore: function(score) {
|
||||
var
|
||||
integer = parseInt(score, 10),
|
||||
decimal = methods._getFirstDecimal.call(this, score);
|
||||
|
||||
if (decimal !== 0) {
|
||||
decimal = decimal > 5 ? 1 : 0.5;
|
||||
}
|
||||
|
||||
return integer + decimal;
|
||||
},
|
||||
|
||||
_roundStars: function(score, evt) {
|
||||
var
|
||||
decimal = (score % 1).toFixed(2),
|
||||
name ;
|
||||
|
||||
if (evt || this.move) {
|
||||
name = decimal > 0.5 ? 'starOn' : 'starHalf';
|
||||
} else if (decimal > this.opt.round.down) { // Up: [x.76 .. x.99]
|
||||
name = 'starOn';
|
||||
|
||||
if (this.opt.halfShow && decimal < this.opt.round.up) { // Half: [x.26 .. x.75]
|
||||
name = 'starHalf';
|
||||
} else if (decimal < this.opt.round.full) { // Down: [x.00 .. x.5]
|
||||
name = 'starOff';
|
||||
}
|
||||
}
|
||||
|
||||
if (name) {
|
||||
var
|
||||
icon = this.opt[name],
|
||||
star = this.stars[Math.ceil(score) - 1];
|
||||
|
||||
methods._setIcon.call(this, star, icon);
|
||||
} // Full down: [x.00 .. x.25]
|
||||
},
|
||||
|
||||
_setIcon: function(star, icon) {
|
||||
star[this.opt.starType === 'img' ? 'src' : 'className'] = this.opt.path + icon;
|
||||
},
|
||||
|
||||
_setTarget: function(target, score) {
|
||||
if (score) {
|
||||
score = this.opt.targetFormat.toString().replace('{score}', score);
|
||||
}
|
||||
|
||||
if (target.is(':input')) {
|
||||
target.val(score);
|
||||
} else {
|
||||
target.html(score);
|
||||
}
|
||||
},
|
||||
|
||||
_setTitle: function(score, evt) {
|
||||
if (score) {
|
||||
var
|
||||
integer = parseInt(Math.ceil(score), 10),
|
||||
star = this.stars[integer - 1];
|
||||
|
||||
star.title = methods._getHint.call(this, score, evt);
|
||||
}
|
||||
},
|
||||
|
||||
_target: function(score, evt) {
|
||||
if (this.opt.target) {
|
||||
var target = $(this.opt.target);
|
||||
|
||||
if (!target.length) {
|
||||
methods._error.call(this, 'Target selector invalid or missing!');
|
||||
}
|
||||
|
||||
var mouseover = evt && evt.type === 'mouseover';
|
||||
|
||||
if (score === undefined) {
|
||||
score = this.opt.targetText;
|
||||
} else if (score === null) {
|
||||
score = mouseover ? this.opt.cancelHint : this.opt.targetText;
|
||||
} else {
|
||||
if (this.opt.targetType === 'hint') {
|
||||
score = methods._getHint.call(this, score, evt);
|
||||
} else if (this.opt.precision) {
|
||||
score = parseFloat(score).toFixed(1);
|
||||
}
|
||||
|
||||
var mousemove = evt && evt.type === 'mousemove';
|
||||
|
||||
if (!mouseover && !mousemove && !this.opt.targetKeep) {
|
||||
score = this.opt.targetText;
|
||||
}
|
||||
}
|
||||
|
||||
methods._setTarget.call(this, target, score);
|
||||
}
|
||||
},
|
||||
|
||||
_turnOn: function(i, score) {
|
||||
return this.opt.single ? (i === score) : (i <= score);
|
||||
},
|
||||
|
||||
_unlock: function() {
|
||||
this.style.cursor = 'pointer';
|
||||
this.removeAttribute('title');
|
||||
|
||||
this.score.removeAttr('readonly');
|
||||
|
||||
this.self.data('readonly', false);
|
||||
|
||||
for (var i = 0; i < this.opt.number; i++) {
|
||||
this.stars[i].title = methods._getHint.call(this, i + 1);
|
||||
}
|
||||
|
||||
if (this.cancel) {
|
||||
this.cancel.css('display', '');
|
||||
}
|
||||
},
|
||||
|
||||
cancel: function(click) {
|
||||
return this.each(function() {
|
||||
var self = $(this);
|
||||
|
||||
if (self.data('readonly') !== true) {
|
||||
methods[click ? 'click' : 'score'].call(self, null);
|
||||
|
||||
this.score.removeAttr('value');
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
click: function(score) {
|
||||
return this.each(function() {
|
||||
if ($(this).data('readonly') !== true) {
|
||||
score = methods._adjustedScore.call(this, score);
|
||||
|
||||
methods._apply.call(this, score);
|
||||
|
||||
if (this.opt.click) {
|
||||
this.opt.click.call(this, score, $.Event('click'));
|
||||
}
|
||||
|
||||
methods._target.call(this, score);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
return this.each(function() {
|
||||
var
|
||||
self = $(this),
|
||||
raw = self.data('raw');
|
||||
|
||||
if (raw) {
|
||||
self.off('.raty').empty().css({ cursor: raw.style.cursor }).removeData('readonly');
|
||||
} else {
|
||||
self.data('raw', self.clone()[0]);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
getScore: function() {
|
||||
var
|
||||
score = [],
|
||||
value ;
|
||||
|
||||
this.each(function() {
|
||||
value = this.score.val();
|
||||
|
||||
score.push(value ? +value : undefined);
|
||||
});
|
||||
|
||||
return (score.length > 1) ? score : score[0];
|
||||
},
|
||||
|
||||
move: function(score) {
|
||||
return this.each(function() {
|
||||
var
|
||||
integer = parseInt(score, 10),
|
||||
decimal = methods._getFirstDecimal.call(this, score);
|
||||
|
||||
if (integer >= this.opt.number) {
|
||||
integer = this.opt.number - 1;
|
||||
decimal = 10;
|
||||
}
|
||||
|
||||
var
|
||||
width = methods._getWidth.call(this),
|
||||
steps = width / 10,
|
||||
star = $(this.stars[integer]),
|
||||
percent = star.offset().left + steps * decimal,
|
||||
evt = $.Event('mousemove', { pageX: percent });
|
||||
|
||||
this.move = true;
|
||||
|
||||
star.trigger(evt);
|
||||
|
||||
this.move = false;
|
||||
});
|
||||
},
|
||||
|
||||
readOnly: function(readonly) {
|
||||
return this.each(function() {
|
||||
var self = $(this);
|
||||
|
||||
if (self.data('readonly') !== readonly) {
|
||||
if (readonly) {
|
||||
self.off('.raty').children(this.opt.starType).off('.raty');
|
||||
|
||||
methods._lock.call(this);
|
||||
} else {
|
||||
methods._binds.call(this);
|
||||
methods._unlock.call(this);
|
||||
}
|
||||
|
||||
self.data('readonly', readonly);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
reload: function() {
|
||||
return methods.set.call(this, {});
|
||||
},
|
||||
|
||||
score: function() {
|
||||
var self = $(this);
|
||||
|
||||
return arguments.length ? methods.setScore.apply(self, arguments) : methods.getScore.call(self);
|
||||
},
|
||||
|
||||
set: function(options) {
|
||||
return this.each(function() {
|
||||
$(this).raty($.extend({}, this.opt, options));
|
||||
});
|
||||
},
|
||||
|
||||
setScore: function(score) {
|
||||
return this.each(function() {
|
||||
if ($(this).data('readonly') !== true) {
|
||||
score = methods._adjustedScore.call(this, score);
|
||||
|
||||
methods._apply.call(this, score);
|
||||
methods._target.call(this, score);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.raty = function(method) {
|
||||
if (methods[method]) {
|
||||
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
|
||||
} else if (typeof method === 'object' || !method) {
|
||||
return methods.init.apply(this, arguments);
|
||||
} else {
|
||||
$.error('Method ' + method + ' does not exist!');
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.raty.defaults = {
|
||||
cancel: false,
|
||||
cancelClass: 'raty-cancel',
|
||||
cancelHint: 'Cancel this rating!',
|
||||
cancelOff: 'cancel-off.png',
|
||||
cancelOn: 'cancel-on.png',
|
||||
cancelPlace: 'left',
|
||||
click: undefined,
|
||||
half: false,
|
||||
halfShow: true,
|
||||
hints: ['bad', 'poor', 'regular', 'good', 'gorgeous'],
|
||||
iconRange: undefined,
|
||||
mouseout: undefined,
|
||||
mouseover: undefined,
|
||||
noRatedMsg: 'Not rated yet!',
|
||||
number: 5,
|
||||
numberMax: 20,
|
||||
path: undefined,
|
||||
precision: false,
|
||||
readOnly: false,
|
||||
round: { down: 0.25, full: 0.6, up: 0.76 },
|
||||
score: undefined,
|
||||
scoreName: 'score',
|
||||
single: false,
|
||||
space: true,
|
||||
starHalf: 'star-half.png',
|
||||
starOff: 'star-off.png',
|
||||
starOn: 'star-on.png',
|
||||
starType: 'img',
|
||||
target: undefined,
|
||||
targetFormat: '{score}',
|
||||
targetKeep: false,
|
||||
targetScore: undefined,
|
||||
targetText: '',
|
||||
targetType: 'hint'
|
||||
};
|
||||
})(jQuery);
|
||||
13
code/public/template/videolaoniu/js/swiper-bundle.min.js
vendored
Normal file
936
code/public/template/videolaoniu/static/js/home.js
Normal file
@@ -0,0 +1,936 @@
|
||||
String.prototype.replaceAll = function(s1,s2){ return this.replace(new RegExp(s1,"gm"),s2); }
|
||||
String.prototype.trim=function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); }
|
||||
var base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var base64DecodeChars=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function base64encode(str){var out,i,len;var c1,c2,c3;len=str.length;i=0;out="";while(i<len){c1=str.charCodeAt(i++)&0xff;if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt((c1&0x3)<<4);out+="==";break}c2=str.charCodeAt(i++);if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt((c2&0xF)<<2);out+="=";break}c3=str.charCodeAt(i++);out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt(((c2&0xF)<<2)|((c3&0xC0)>>6));out+=base64EncodeChars.charAt(c3&0x3F)}return out}function base64decode(str){var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i<len){do{c1=base64DecodeChars[str.charCodeAt(i++)&0xff]}while(i<len&&c1==-1);if(c1==-1)break;do{c2=base64DecodeChars[str.charCodeAt(i++)&0xff]}while(i<len&&c2==-1);if(c2==-1)break;out+=String.fromCharCode((c1<<2)|((c2&0x30)>>4));do{c3=str.charCodeAt(i++)&0xff;if(c3==61)return out;c3=base64DecodeChars[c3]}while(i<len&&c3==-1);if(c3==-1)break;out+=String.fromCharCode(((c2&0XF)<<4)|((c3&0x3C)>>2));do{c4=str.charCodeAt(i++)&0xff;if(c4==61)return out;c4=base64DecodeChars[c4]}while(i<len&&c4==-1);if(c4==-1)break;out+=String.fromCharCode(((c3&0x03)<<6)|c4)}return out}function utf16to8(str){var out,i,len,c;out="";len=str.length;for(i=0;i<len;i++){c=str.charCodeAt(i);if((c>=0x0001)&&(c<=0x007F)){out+=str.charAt(i)}else if(c>0x07FF){out+=String.fromCharCode(0xE0|((c>>12)&0x0F));out+=String.fromCharCode(0x80|((c>>6)&0x3F));out+=String.fromCharCode(0x80|((c>>0)&0x3F))}else{out+=String.fromCharCode(0xC0|((c>>6)&0x1F));out+=String.fromCharCode(0x80|((c>>0)&0x3F))}}return out}function utf8to16(str){var out,i,len,c;var char2,char3;out="";len=str.length;i=0;while(i<len){c=str.charCodeAt(i++);switch(c>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:out+=str.charAt(i-1);break;case 12:case 13:char2=str.charCodeAt(i++);out+=String.fromCharCode(((c&0x1F)<<6)|(char2&0x3F));break;case 14:char2=str.charCodeAt(i++);char3=str.charCodeAt(i++);out+=String.fromCharCode(((c&0x0F)<<12)|((char2&0x3F)<<6)|((char3&0x3F)<<0));break}}return out}
|
||||
|
||||
var MAC={
|
||||
'Url': document.URL,
|
||||
'Title': document.title,
|
||||
'UserAgent' : function(){
|
||||
var ua = navigator.userAgent;//navigator.appVersion
|
||||
return {
|
||||
'mobile': !!ua.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
|
||||
'ios': !!ua.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
|
||||
'android': ua.indexOf('Android') > -1 || ua.indexOf('Linux') > -1, //android终端或者uc浏览器
|
||||
'iPhone': ua.indexOf('iPhone') > -1 || ua.indexOf('Mac') > -1, //是否为iPhone或者QQHD浏览器
|
||||
'iPad': ua.indexOf('iPad') > -1, //是否iPad
|
||||
'trident': ua.indexOf('Trident') > -1, //IE内核
|
||||
'presto': ua.indexOf('Presto') > -1, //opera内核
|
||||
'webKit': ua.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
|
||||
'gecko': ua.indexOf('Gecko') > -1 && ua.indexOf('KHTML') == -1, //火狐内核
|
||||
'weixin': ua.indexOf('MicroMessenger') > -1 //是否微信 ua.match(/MicroMessenger/i) == "micromessenger",
|
||||
};
|
||||
}(),
|
||||
'Copy': function(s){
|
||||
if (window.clipboardData){ window.clipboardData.setData("Text",s); }
|
||||
else{
|
||||
if( $("#mac_flash_copy").get(0) ==undefined ){ $('<div id="mac_flash_copy"></div>'); } else {$('#mac_flash_copy').html(''); }
|
||||
$('#mac_flash_copy').html('<embed src='+maccms.path+'"images/_clipboard.swf" FlashVars="clipboard='+escape(s)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>');
|
||||
}
|
||||
MAC.Pop.Msg(100,20,'复制成功',1000);
|
||||
},
|
||||
'Home': function(o,u){
|
||||
try{
|
||||
o.style.behavior='url(#default#homepage)'; o.setHomePage(u);
|
||||
}
|
||||
catch(e){
|
||||
if(window.netscape){
|
||||
try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");}
|
||||
catch(e){ MAC.Pop.Msg(150,40,'此操作被浏览器拒绝!请手动设置',1000); }
|
||||
var moz = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
|
||||
moz.setCharPref('browser.startup.homepage',u);
|
||||
}
|
||||
}
|
||||
},
|
||||
'Fav': function(u,s){
|
||||
try{ window.external.addFavorite(u, s);}
|
||||
catch (e){
|
||||
try{window.sidebar.addPanel(s, u, "");}catch (e){ MAC.Pop.Msg(150,40,'加入收藏出错,请使用键盘Ctrl+D进行添加',1000); }
|
||||
}
|
||||
},
|
||||
'Open': function(u,w,h){
|
||||
window.open(u,'macopen1','toolbars=0, scrollbars=0, location=0, statusbars=0,menubars=0,resizable=yes,width='+w+',height='+h+'');
|
||||
},
|
||||
'Cookie': {
|
||||
'Set': function(name,value,days){
|
||||
var exp = new Date();
|
||||
exp.setTime(exp.getTime() + days*24*60*60*1000);
|
||||
var arr=document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
|
||||
document.cookie=name+"="+encodeURIComponent(value)+";path=/;expires="+exp.toUTCString();
|
||||
},
|
||||
'Get': function(name){
|
||||
var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
|
||||
if(arr != null){ return decodeURIComponent(arr[2]); return null; }
|
||||
},
|
||||
'Del': function(name){
|
||||
var exp = new Date();
|
||||
exp.setTime(exp.getTime()-1);
|
||||
var cval = this.Get(name);
|
||||
if(cval != null){ document.cookie = name+"="+encodeURIComponent(cval)+";path=/;expires="+exp.toUTCString(); }
|
||||
}
|
||||
},
|
||||
'GoBack':function(){
|
||||
var ldghost=document.domain;
|
||||
if(document.referrer.indexOf(ldghost)>0) {
|
||||
history.back();
|
||||
}
|
||||
else{
|
||||
window.location ="//"+ldghost;
|
||||
}
|
||||
},
|
||||
'Adaptive':function(){
|
||||
if(maccms.mob_status=='1' && maccms.url != maccms.wapurl){
|
||||
if(document.domain ==maccms.url && MAC.UserAgent.mobile){
|
||||
location.href = location.href.replace(maccms.url,maccms.wapurl);
|
||||
}
|
||||
else if(document.domain ==maccms.wapurl && !MAC.UserAgent.mobile){
|
||||
location.href = location.href.replace(maccms.wapurl,maccms.url);
|
||||
}
|
||||
}
|
||||
},
|
||||
'CheckBox':{
|
||||
'All':function(n){
|
||||
$("input[name='"+n+"']").each(function() {
|
||||
this.checked = true;
|
||||
});
|
||||
},
|
||||
'Other':function(n){
|
||||
$("input[name='"+n+"']").each(function() {
|
||||
this.checked = !this.checked;
|
||||
});
|
||||
},
|
||||
'Count':function(n){
|
||||
var res=0;
|
||||
$("input[name='"+n+"']").each(function() {
|
||||
if(this.checked){ res++; }
|
||||
});
|
||||
return res;
|
||||
},
|
||||
'Ids':function(n){
|
||||
var res=[];
|
||||
$("input[name='"+n+"']").each(function() {
|
||||
if(this.checked){ res.push(this.value); }
|
||||
});
|
||||
return res.join(",");
|
||||
}
|
||||
},
|
||||
'Ajax':function(url,type,dataType,data,sfun,efun,cfun){
|
||||
type=type||'get';
|
||||
dataType=dataType||'json';
|
||||
data=data||'';
|
||||
efun=efun||'';
|
||||
cfun=cfun||'';
|
||||
|
||||
$.ajax({
|
||||
url:url,
|
||||
type:type,
|
||||
dataType:dataType,
|
||||
data:data,
|
||||
timeout: 5000,
|
||||
beforeSend:function(XHR){
|
||||
|
||||
},
|
||||
error:function(XHR,textStatus,errorThrown){
|
||||
if(efun) efun(XHR,textStatus,errorThrown);
|
||||
},
|
||||
success:function(data){
|
||||
sfun(data);
|
||||
},
|
||||
complete:function(XHR, TS){
|
||||
if(cfun) cfun(XHR, TS);
|
||||
}
|
||||
})
|
||||
},
|
||||
'Qrcode':{
|
||||
'Init':function(){
|
||||
$('.mac_qrcode').attr('src', maccms.path +'/index.php/qrcode/index.html?url='+ MAC.Url);
|
||||
}
|
||||
},
|
||||
'Shorten': {
|
||||
'Init':function(){
|
||||
if($('.mac_shorten').length==0){
|
||||
return;
|
||||
}
|
||||
MAC.Shorten.Get();
|
||||
},
|
||||
'Get':function(url,call){
|
||||
url=url||location.href;
|
||||
// dajiba
|
||||
// MAC.Ajax('//api.maccms.la/shorten/index/url/'+ encodeURIComponent(url),'get','jsonp','',function(r){
|
||||
// if (r.code == 1) {
|
||||
// if($('.mac_shorten').length>0) {
|
||||
// $('.mac_shorten').val(r.data.url_short);
|
||||
// $('.mac_shorten').html(r.data.url_short);
|
||||
// }
|
||||
// if(call){
|
||||
// call(r);
|
||||
// }
|
||||
|
||||
// }
|
||||
// });
|
||||
}
|
||||
},
|
||||
'Image':{
|
||||
'Lazyload':{
|
||||
'Show': function(){
|
||||
try { $("img.lazy").lazyload(); }catch(e){};
|
||||
},
|
||||
'Box': function($id){
|
||||
$("img.lazy").lazyload({
|
||||
container: $("#"+$id)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
'Verify': {
|
||||
'Init': function(){
|
||||
MAC.Verify.Focus();
|
||||
MAC.Verify.Click();
|
||||
},
|
||||
'Focus': function(){//验证码框焦点
|
||||
$('body').on("focus", ".mac_verify", function(){
|
||||
$(this).removeClass('mac_verify').after(MAC.Verify.Show());
|
||||
$(this).unbind();
|
||||
});
|
||||
},
|
||||
'Click': function(){//点击刷新
|
||||
$('body').on('click', 'img.mac_verify_img', function(){
|
||||
$(this).attr('src', maccms.path +'/index.php/verify/index.html?r='+Math.random());
|
||||
});
|
||||
},
|
||||
'Refresh':function(){
|
||||
$('.mac_verify_img').attr('src', maccms.path +'/index.php/verify/index.html?r='+Math.random());
|
||||
},
|
||||
'Show':function(){
|
||||
return '<img class="mac_verify_img" src="'+ maccms.path +'/index.php/verify/index.html?" title="看不清楚? 换一张!">';
|
||||
}
|
||||
},
|
||||
'PageGo':{
|
||||
'Init':function() {
|
||||
$('.mac_page_go').click(function () {
|
||||
var that =$(this);
|
||||
var url = that.attr('data-url');
|
||||
var total = parseInt(that.attr('data-total'));
|
||||
var sp = that.attr('data-sp');
|
||||
var page= parseInt($('#page').val());
|
||||
|
||||
if(page>0&&(page<=total)){
|
||||
url=url.replace(sp + 'PAGELINK',sp + page).replace('PAGELINK',page);
|
||||
location.href=url;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
}
|
||||
},
|
||||
'Hits': {
|
||||
'Init':function() {
|
||||
if($('.mac_hits').length==0){
|
||||
return;
|
||||
}
|
||||
var $that = $(".mac_hits");
|
||||
|
||||
MAC.Ajax(maccms.path + '/index.php/ajax/hits?mid='+$that.attr("data-mid")+'&id='+$that.attr("data-id")+'&type=update','get','json','',function(r){
|
||||
if (r.code == 1) {
|
||||
$(".mac_hits").each(function(i){
|
||||
$type = $(".mac_hits").eq(i).attr('data-type');
|
||||
if($type != 'insert'){
|
||||
$('.'+$type).html(eval('(r.data.' + $type + ')'));
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
},
|
||||
'Score': {
|
||||
'Init':function(){
|
||||
if($('.mac_score').length==0){
|
||||
return;
|
||||
}
|
||||
$('body').on('click', '.score_btn', function(e){
|
||||
MAC.Score.Submit();
|
||||
});
|
||||
|
||||
MAC.Ajax(maccms.path+'/index.php/ajax/score?mid='+ $('.mac_score').attr('data-mid') +'&id=' +$('.mac_score').attr('data-id'),'post','json','',function(r){
|
||||
MAC.Score.View(r);
|
||||
},function(){
|
||||
$(".mac_score").html('评分加载失败');
|
||||
});
|
||||
|
||||
},
|
||||
'Submit':function(){
|
||||
var $s = $('.mac_score').find("input[name='score']").val();
|
||||
MAC.Ajax(maccms.path+'/index.php/ajax/score?mid='+$('.mac_score').attr('data-mid')+'&id='+$('.mac_score').attr('data-id') + '&score='+ $s,'get','json','',function(r){
|
||||
MAC.Pop.Msg(100,20,r.msg,1000);
|
||||
if(r.code==1){
|
||||
MAC.Score.View(r);
|
||||
}
|
||||
});
|
||||
},
|
||||
'View':function(r){
|
||||
$(".rating"+Math.floor(r.data.score)).attr('checked',true);
|
||||
$(".score_num").text(r.data.score_num);
|
||||
$(".score_all").text(r.data.score_all);
|
||||
$(".score_pjf").text(r.data.score);
|
||||
}
|
||||
},
|
||||
'Star': {
|
||||
'Init':function(){
|
||||
if($('.mac_star').length==0){
|
||||
return;
|
||||
}
|
||||
|
||||
$('.mac_star').raty({
|
||||
starType: 'i',
|
||||
number: 5,
|
||||
numberMax : 5,
|
||||
half: true,
|
||||
score : function(){
|
||||
return $(this).attr('data-score');
|
||||
},
|
||||
click: function(score, evt) {
|
||||
|
||||
MAC.Ajax(maccms.path+'/index.php/ajax/score?mid='+$('.mac_star').attr('data-mid')+'&id='+$('.mac_star').attr('data-id')+'&score='+(score*2),'get','json','',function(r){
|
||||
if(json.status == 1){
|
||||
$('.star_tips').html(r.data.score);
|
||||
}else{
|
||||
$('.star_box').attr('title', r.msg);
|
||||
}
|
||||
},function(){
|
||||
$('.star_box').attr('title', '网络异常!');
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'Digg': {
|
||||
'Init':function(){
|
||||
$('body').on('click', '.digg_link', function(e){
|
||||
var $that = $(this);
|
||||
if($that.attr("data-id")){
|
||||
|
||||
MAC.Ajax(maccms.path + '/index.php/ajax/digg.html?mid='+$that.attr("data-mid")+'&id='+$that.attr("data-id")+'&type='+$that.attr("data-type"),'get','json','',function(r){
|
||||
$that.addClass('disabled');
|
||||
if(r.code == 1){
|
||||
if($that.attr("data-type")=='up'){
|
||||
$that.find('.digg_num').html(r.data.up);
|
||||
}
|
||||
else{
|
||||
$that.find('.digg_num').html(r.data.down);
|
||||
}
|
||||
}
|
||||
else{
|
||||
$that.attr('title', r.msg);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'Gbook':{
|
||||
'Login':0,
|
||||
'Verify':0,
|
||||
'Init':function(){
|
||||
$('body').on('keyup', '.gbook_content', function(e){
|
||||
MAC.Remaining($(this),200,'.gbook_remaining')
|
||||
});
|
||||
$('body').on('focus', '.gbook_content', function(e){
|
||||
if(MAC.Gbook.Login==1 && MAC.User.IsLogin!=1){
|
||||
MAC.User.Login();
|
||||
}
|
||||
});
|
||||
$('body').on('click', '.gbook_submit', function(e){
|
||||
MAC.Gbook.Submit();
|
||||
});
|
||||
},
|
||||
'Show':function($page){
|
||||
MAC.Ajax(maccms.path+'/index.php/gbook/index?page='+$page,'post','json','',function(r){
|
||||
$(".mac_gbook_box").html(r);
|
||||
},function(){
|
||||
$(".mac_gbook_box").html('留言加载失败,请刷新...');
|
||||
});
|
||||
},
|
||||
'Submit':function(){
|
||||
if($(".gbook_content").val() == ''){
|
||||
MAC.Pop.Msg(100,20,'请输入您的留言!',1000);
|
||||
return false;
|
||||
}
|
||||
MAC.Ajax(maccms.path + '/index.php/gbook/saveData','post','json',$('.gbook_form').serialize(),function(r){
|
||||
MAC.Pop.Msg(100,20,r.msg,1000);
|
||||
if(r.code == 1){
|
||||
location.reload();
|
||||
}
|
||||
else{
|
||||
if(MAC.Gbook.Verify==1){
|
||||
MAC.Verify.Refresh();
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
'Report':function(name,id){
|
||||
MAC.Pop.Show(400,300,'数据报错',maccms.path+'/index.php/gbook/report.html?id='+id+'&name='+ encodeURIComponent(name),function(r){
|
||||
|
||||
});
|
||||
}
|
||||
},
|
||||
'Search':{
|
||||
'Init':function(){
|
||||
$('.mac_search').click(function(){
|
||||
var that=$(this);
|
||||
var url = that.attr('data-href') ? that.attr('data-href') : maccms.path + '/index.php/vod/search.html';
|
||||
location.href = url + '?wd='+ encodeURIComponent($("#wd").val());
|
||||
});
|
||||
},
|
||||
'Submit':function(){
|
||||
|
||||
return false;
|
||||
}
|
||||
},
|
||||
'Suggest':{
|
||||
'Init':function($obj,$mid,$jumpurl){
|
||||
try {
|
||||
$($obj).autocomplete(maccms.path + '/index.php/ajax/suggest?mid=' + $mid, {
|
||||
inputClass: "mac_input",
|
||||
resultsClass: "mac_results",
|
||||
loadingClass: "mac_loading",
|
||||
width: 175, scrollHeight: 300, minChars: 1, matchSubset: 0,
|
||||
cacheLength: 10, multiple: false, matchContains: true, autoFill: false,
|
||||
dataType: "json",
|
||||
parse: function (r) {
|
||||
if (r.code == 1) {
|
||||
var parsed = [];
|
||||
$.each(r['list'], function (index, row) {
|
||||
row.url = r.url;
|
||||
parsed[index] = {
|
||||
data: row
|
||||
};
|
||||
});
|
||||
return parsed;
|
||||
} else {
|
||||
return {data: ''};
|
||||
}
|
||||
},
|
||||
formatItem: function (row, i, max) {
|
||||
return row.name;
|
||||
},
|
||||
formatResult: function (row, i, max) {
|
||||
return row.text;
|
||||
}
|
||||
}).result(function (event, data, formatted) {
|
||||
$($obj).val(data.name);
|
||||
location.href = data.url.replace('mac_wd', encodeURIComponent(data.name));
|
||||
});
|
||||
}
|
||||
catch(e){}
|
||||
}
|
||||
},
|
||||
'History': {
|
||||
'BoxShow':0,
|
||||
'Limit':10,
|
||||
'Days':7,
|
||||
'Json':'',
|
||||
'Init':function(){
|
||||
if($('.mac_history').length ==0){
|
||||
return;
|
||||
}
|
||||
|
||||
$('.mac_history').hover(function(e){
|
||||
$('.mac_history_box').show();
|
||||
}, function(){
|
||||
$('.mac_history_box').hover(function(){
|
||||
MAC.History.BoxShow=1;
|
||||
}, function(){
|
||||
MAC.History.BoxShow=0;
|
||||
$('.mac_history_box').hide();
|
||||
});
|
||||
});
|
||||
|
||||
var jsondata = [];
|
||||
if(this.Json){
|
||||
jsondata = this.Json;
|
||||
}else{
|
||||
var jsonstr = MAC.Cookie.Get('mac_history');
|
||||
if(jsonstr != undefined){
|
||||
jsondata = eval(jsonstr);
|
||||
}
|
||||
}
|
||||
|
||||
html = '<dl class="mac_drop_box mac_history_box" style="display:none;">';
|
||||
html +='<dt><a target="_self" href="javascript:void(0)" onclick="MAC.History.Clear();">清空</a></dt>';
|
||||
|
||||
if(jsondata.length > 0){
|
||||
for($i=0; $i<jsondata.length; $i++){
|
||||
if($i%2==1){
|
||||
html +='<dd class="odd">';
|
||||
}else{
|
||||
html +='<dd class="even">';
|
||||
}
|
||||
html +='<a href="'+jsondata[$i].link+'" class="hx_title">'+jsondata[$i].name+'</a></dd>';
|
||||
}
|
||||
}else{
|
||||
html +='<dd class="hide">暂无浏览记录</dd>';
|
||||
}
|
||||
html += '</dl>';
|
||||
|
||||
$('.mac_history').after(html);
|
||||
var h = $('.mac_history').height();
|
||||
var position = $('.mac_history').position();
|
||||
$('.mac_history_box').css({'left':position.left,'top':(position.top+h)});
|
||||
|
||||
|
||||
if($(".mac_history_set").attr('data-name')){
|
||||
var $that = $(".mac_history_set");
|
||||
MAC.History.Set($that.attr('data-name'),$that.attr('data-link'),$that.attr('data-pic'));
|
||||
}
|
||||
},
|
||||
'Set':function(name,link,pic){
|
||||
if(!link){ link = document.URL; }
|
||||
var jsondata = MAC.Cookie.Get('mac_history');
|
||||
|
||||
if(jsondata != undefined){
|
||||
this.Json = eval(jsondata);
|
||||
|
||||
for($i=0;$i<this.Json.length;$i++){
|
||||
if(this.Json[$i].link == link){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
jsonstr = '{log:[{"name":"'+name+'","link":"'+link+'","pic":"'+pic+'"},';
|
||||
for($i=0; $i<this.Json.length; $i++){
|
||||
if($i<= this.Limit && this.Json[$i]){
|
||||
jsonstr += '{"name":"'+this.Json[$i].name+'","link":"'+this.Json[$i].link+'","pic":"'+this.Json[$i].pic+'"},';
|
||||
}else{
|
||||
break;
|
||||
}
|
||||
}
|
||||
jsonstr = jsonstr.substring(0,jsonstr.lastIndexOf(','));
|
||||
jsonstr += "]}";
|
||||
}else{
|
||||
jsonstr = '{log:[{"name":"'+name+'","link":"'+link+'","pic":"'+pic+'"}]}';
|
||||
}
|
||||
this.Json = eval(jsonstr);
|
||||
MAC.Cookie.Set('mac_history',jsonstr,this.Days);
|
||||
},
|
||||
'Clear': function(){
|
||||
MAC.Cookie.Del('mac_history');
|
||||
$('.mac_history_box').html('<li class="hx_clear">已清空观看记录。</li>');
|
||||
},
|
||||
},
|
||||
'Ulog':{
|
||||
'Init':function(){
|
||||
MAC.Ulog.Set();
|
||||
MAC.Ulog.Click();
|
||||
|
||||
},
|
||||
'Get':function(mid,id,type,page,limit,call){
|
||||
MAC.Ajax(maccms.path+'/index.php/user/ajax_ulog/?ac=list&mid='+mid+'&id='+id+'&type='+type+'&page='+page+'&limit='+limit,'get','json','',call);
|
||||
},
|
||||
'Set':function(){
|
||||
if($(".mac_ulog_set").attr('data-mid')){
|
||||
var $that = $(".mac_ulog_set");
|
||||
$.get(maccms.path+'/index.php/user/ajax_ulog/?ac=set&mid='+$that.attr("data-mid")+'&id='+$that.attr("data-id")+'&sid='+$that.attr("data-sid")+'&nid='+$that.attr("data-nid")+'&type='+$that.attr("data-type"));
|
||||
}
|
||||
},
|
||||
'Click':function(){
|
||||
$('body').on('click', 'a.mac_ulog', function(e){
|
||||
|
||||
//是否需要验证登录
|
||||
if(MAC.User.IsLogin == 0){
|
||||
MAC.User.Login();
|
||||
return;
|
||||
}
|
||||
|
||||
var $that = $(this);
|
||||
if($that.attr("data-id")){
|
||||
MAC.Ajax(maccms.path+'/index.php/user/ajax_ulog/?ac=set&mid='+$that.attr("data-mid")+'&id='+$that.attr("data-id")+'&type='+$that.attr("data-type"),'get','json','',function(r){
|
||||
MAC.Pop.Msg(100,20,r.msg,1000);
|
||||
if(r.code == 1){
|
||||
$that.addClass('disabled');
|
||||
}else{
|
||||
$that.attr('title', r.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'Website':{
|
||||
'Referer':function() {
|
||||
if($('.mac_referer').length==0){
|
||||
return;
|
||||
}
|
||||
|
||||
var url = document.referrer
|
||||
,domain=''
|
||||
,host = window.location.host
|
||||
,reg = /^http(s)?:\/\/(.*?)\//i
|
||||
,mc = url.match(reg);
|
||||
|
||||
if(url=='' || url.indexOf(host)!=-1 || mc ==null){
|
||||
return;
|
||||
}
|
||||
domain = mc[2];
|
||||
MAC.Ajax(maccms.path + '/index.php/ajax/referer?domain='+encodeURIComponent(domain)+'&url='+encodeURIComponent(url)+'&type=update','get','json','',function(r){
|
||||
if (r.code == 1) {
|
||||
}
|
||||
console.log(r);
|
||||
});
|
||||
}
|
||||
},
|
||||
'User':{
|
||||
'BoxShow':0,
|
||||
'IsLogin':0,
|
||||
'UserId':'',
|
||||
'UserName':'',
|
||||
'GroupId':'',
|
||||
'GroupName':'',
|
||||
'Portrait':'',
|
||||
'Init':function(){
|
||||
if($('.mac_user').length >0){
|
||||
$('body').on('click', '.mac_user', function(e){
|
||||
MAC.User.Login();
|
||||
});
|
||||
|
||||
$('.mac_user').hover(function(e){
|
||||
$('.mac_user_box').show();
|
||||
}, function(){
|
||||
$('.mac_user_box').hover(function(){
|
||||
MAC.User.BoxShow = 1;
|
||||
}, function(){
|
||||
MAC.User.BoxShow = 0;
|
||||
$('.mac_user_box').hide();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if(MAC.Cookie.Get('user_id') !=undefined && MAC.Cookie.Get('user_id')!=''){
|
||||
var url = maccms.path + '/index.php/user';
|
||||
MAC.User.UserId = MAC.Cookie.Get('user_id');
|
||||
MAC.User.UserName = MAC.Cookie.Get('user_name');
|
||||
MAC.User.GroupId = MAC.Cookie.Get('group_id');
|
||||
MAC.User.GroupName = MAC.Cookie.Get('group_name');
|
||||
MAC.User.Portrait = MAC.Cookie.Get('user_portrait');
|
||||
MAC.User.IsLogin = 1;
|
||||
|
||||
if($('.mac_user').length >0) {
|
||||
if ($('.mac_user').prop("outerHTML").substr(0, 2) == '<a') {
|
||||
$('.mac_user').attr('href', url);
|
||||
$('.mac_user').text(MAC.User.UserName);
|
||||
}
|
||||
else {
|
||||
//$('.mac_user').html('<a class="mac_text" href="'+ url +'">'+ name +'</a>');
|
||||
}
|
||||
|
||||
var html = '<div class="mac_drop_box mac_user_box" style="display: none;">';
|
||||
html += '<ul class="logged"><li><a target="_blank" href="' + url + '">用户中心</a></li><li class="logout"><a class="logoutbt" href="javascript:;" onclick="MAC.User.Logout();" target="_self"><i class="user-logout"></i>退出</a></li></ul>'
|
||||
|
||||
$('.mac_user').after(html);
|
||||
var h = $('.mac_user').height();
|
||||
var position = $('.mac_user').position();
|
||||
$('.mac_user_box').css({'left': position.left, 'top': (position.top + h)});
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
'CheckLogin':function(){
|
||||
if(MAC.User.IsLogin == 0){
|
||||
MAC.User.Login();
|
||||
}
|
||||
},
|
||||
'Login':function(){
|
||||
var ac='ajax_login';
|
||||
if(MAC.Cookie.Get('user_id') !=undefined && MAC.Cookie.Get('user_id')!=''){
|
||||
ac= 'ajax_info';
|
||||
}
|
||||
MAC.Pop.Show(400,380,'用户登录',maccms.path+'/index.php/user/'+ac,function(r){
|
||||
$('body').off('click', '.login_form_submit');
|
||||
$('body').on('click', '.login_form_submit', function(e){
|
||||
$(this).unbind('click');
|
||||
|
||||
MAC.Ajax(maccms.path + '/index.php/user/login','post','json',$('.mac_login_form').serialize(),function(r){
|
||||
alert(r.msg);
|
||||
if(r.code == 1){
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
'Logout':function(){
|
||||
MAC.Ajax(maccms.path + '/index.php/user/logout','post','json','',function(r){
|
||||
MAC.Pop.Msg(100,20,r.msg,1000);
|
||||
if(r.code == 1){
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
},
|
||||
'PopedomCallBack':function(trysee,h) {
|
||||
window.setTimeout(function(){
|
||||
$(window.frames["player_if"].document).find(".MacPlayer").html(h);
|
||||
},1000*10*trysee);
|
||||
},
|
||||
'BuyPopedom':function(o){
|
||||
var $that = $(o);
|
||||
if($that.attr("data-id")){
|
||||
if (confirm('您确认购买此条数据访问权限吗?')) {
|
||||
MAC.Ajax(maccms.path + '/index.php/user/ajax_buy_popedom.html?id=' + $that.attr("data-id") + '&mid=' + $that.attr("data-mid") + '&sid=' + $that.attr("data-sid") + '&nid=' + $that.attr("data-nid") + '&type=' + $that.attr("data-type"),'get','json','',function(r){
|
||||
$that.addClass('disabled');
|
||||
MAC.Pop.Msg(300, 50, r.msg, 2000);
|
||||
if (r.code == 1) {
|
||||
top.location.reload();
|
||||
}
|
||||
$that.removeClass('disabled');
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
'Pop':{
|
||||
'Remove':function(){
|
||||
$('.mac_pop_bg').remove();
|
||||
$('.mac_pop').remove();
|
||||
},
|
||||
'RemoveMsg':function(){
|
||||
$('.mac_pop_msg_bg').remove();
|
||||
$('.mac_pop_msg').remove();
|
||||
},
|
||||
'Msg':function($w,$h,$msg,$timeout){
|
||||
if($('.mac_pop_bg').length !=1) {
|
||||
MAC.Pop.Remove();
|
||||
}
|
||||
$('body').append('<div class="mac_pop_msg_bg"></div><div class="mac_pop_msg"><div class="pop-msg"></div></div>');
|
||||
$('.mac_pop_msg .pop_close').click(function(){
|
||||
$('.mac_pop_msg').remove();
|
||||
});
|
||||
|
||||
$('.mac_pop_msg').width($w);
|
||||
$('.mac_pop_msg').height($h);
|
||||
$('.mac_pop_msg .pop-msg').html($msg);
|
||||
$('.mac_pop_msg_bg,.mac_pop_msg').show();
|
||||
setTimeout(MAC.Pop.RemoveMsg,$timeout);
|
||||
},
|
||||
'Show':function($w,$h,$title,$url,$callback) {
|
||||
if($('.mac_pop_bg').length !=1) {
|
||||
MAC.Pop.Remove();
|
||||
}
|
||||
|
||||
$('body').append('<div class="mac_pop_bg"></div><div class="mac_pop"><div class="pop_top"><h2></h2><span class="pop_close">X</span></div><div class="pop_content"></div></div>');
|
||||
$('.mac_pop .pop_close').click(function(){
|
||||
$('.mac_pop_bg,.mac_pop').remove();
|
||||
});
|
||||
|
||||
$('.mac_pop').width($w);
|
||||
$('.mac_pop').height($h);
|
||||
$('.pop_content').html('');
|
||||
$('.pop_top').find('h2').html($title);
|
||||
|
||||
MAC.Ajax($url,'post','json','',function(r){
|
||||
$(".pop_content").html(r);
|
||||
$callback(r);
|
||||
},function(){
|
||||
$(".pop_content").html('加载失败,请刷新...');
|
||||
});
|
||||
|
||||
$('.mac_pop_bg,.mac_pop').show();
|
||||
}
|
||||
},
|
||||
'Pwd':{
|
||||
'Check':function(o){
|
||||
var $that = $(o);
|
||||
if($that.attr("data-id")){
|
||||
MAC.Ajax(maccms.path + '/index.php/ajax/pwd.html?id=' + $that.attr("data-id") + '&mid=' + $that.attr("data-mid") + '&type=' + $that.attr("data-type") + '&pwd='+ $that.parents('form').find('input[name="pwd"]').val() ,'get','json','',function(r){
|
||||
$that.addClass('disabled');
|
||||
MAC.Pop.Msg(300, 50, r.msg, 2000);
|
||||
if (r.code == 1) {
|
||||
location.reload();
|
||||
}
|
||||
$that.removeClass('disabled');
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
'AdsWrap':function(w,h,n){
|
||||
document.writeln('<img width="'+w+'" height="'+h+'" alt="'+n+'" style="background-color: #CCCCCC" />');
|
||||
},
|
||||
'Css':function($url){
|
||||
$("<link>").attr({ rel: "stylesheet",type: "text/css",href: $url}).appendTo("head");
|
||||
},
|
||||
'Js':function($url){
|
||||
$.getScript($url, function(response, status) {
|
||||
|
||||
});
|
||||
},
|
||||
'Desktop':function(s){
|
||||
location.href= maccms.path + '/index.php/ajax/desktop?name='+encodeURI(s)+'&url=' + encodeURI(location.href);
|
||||
},
|
||||
'Timming':function(){
|
||||
if($('.mac_timming').length==0){
|
||||
return;
|
||||
}
|
||||
var infile = $('.mac_timming').attr("data-file");
|
||||
if(infile==undefined || infile == ''){
|
||||
infile = 'api.php';
|
||||
}
|
||||
var t=(new Image());t.src=maccms.path + '/'+infile+'/timming/index?t='+Math.random();
|
||||
},
|
||||
'Error':function(tab,id,name){
|
||||
|
||||
},
|
||||
'AddEm':function(obj,i){
|
||||
var oldtext = $(obj).val();
|
||||
$(obj).val( oldtext + '[em:' + i +']' );
|
||||
},
|
||||
'Remaining':function(obj,len,show){
|
||||
var count = len - $(obj).val().length;
|
||||
if(count < 0){
|
||||
count = 0;
|
||||
$(obj).val($(obj).val().substr(0,200));
|
||||
}
|
||||
$(show).text(count);
|
||||
},
|
||||
'Comment':{
|
||||
'Login':0,
|
||||
'Verify':0,
|
||||
'Init':function(){
|
||||
|
||||
$('body').on('click', '.comment_face_box img', function(e){
|
||||
var obj = $(this).parent().parent().parent().find('.comment_content');
|
||||
MAC.AddEm(obj,$(this).attr('data-id'));
|
||||
});
|
||||
$('body').on('click', '.comment_face_panel', function(e){
|
||||
// $('.comment_face_box').toggle();
|
||||
$(this).parent().find('.comment_face_box').toggle();
|
||||
});
|
||||
$('body').on('keyup', '.comment_content', function(e){
|
||||
var obj = $(this).parent().parent().parent().parent().find('.comment_remaining');
|
||||
MAC.Remaining($(this),200,obj)
|
||||
});
|
||||
$('body').on('focus', '.comment_content', function(e){
|
||||
if(MAC.Comment.Login==1 && MAC.User.IsLogin!=1){
|
||||
MAC.User.Login();
|
||||
}
|
||||
});
|
||||
|
||||
$('body').on('click', '.comment_report', function(e){
|
||||
var $that = $(this);
|
||||
if($(this).attr("data-id")){
|
||||
MAC.Ajax(maccms.path + '/index.php/comment/report.html?id='+$that.attr("data-id"),'get','json','',function(r){
|
||||
$that.addClass('disabled');
|
||||
MAC.Pop.Msg(100,20,r.msg,1000);
|
||||
if(r.code == 1){
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('body').on('click', '.comment_reply', function(e){
|
||||
var $that = $(this);
|
||||
if($that.attr("data-id")){
|
||||
var str = $that.html();
|
||||
$('.comment_reply_form').remove();
|
||||
if (str == '取消回复') {
|
||||
$that.html('回复');
|
||||
return false;
|
||||
}
|
||||
if (str == '回复') {
|
||||
$('.comment_reply').html('回复');
|
||||
}
|
||||
var html = $('.comment_form').prop("outerHTML");
|
||||
|
||||
var oo = $(html);
|
||||
oo.addClass('comment_reply_form');
|
||||
oo.find('input[name="comment_pid"]').val( $that.attr("data-id") );
|
||||
|
||||
$that.parent().after(oo);
|
||||
$that.html('取消回复');
|
||||
}
|
||||
});
|
||||
|
||||
$('body').on('click', '.comment_submit', function(e){
|
||||
var $that = $(this);
|
||||
MAC.Comment.Submit($that);
|
||||
});
|
||||
|
||||
},
|
||||
'Show':function($page){
|
||||
if($(".mac_comment").length>0){
|
||||
MAC.Ajax(maccms.path + '/index.php/comment/ajax.html?rid='+$('.mac_comment').attr('data-id')+'&mid='+ $('.mac_comment').attr('data-mid') +'&page='+$page,'get','json','',function(r){
|
||||
$(".mac_comment").html(r);
|
||||
},function(){
|
||||
$(".mac_comment").html('<a href="javascript:void(0)" onclick="MAC.Comment.Show('+$page+')">评论加载失败,点击我刷新...</a>');
|
||||
});
|
||||
}
|
||||
},
|
||||
'Reply':function($o){
|
||||
|
||||
},
|
||||
'Submit':function($o){
|
||||
var form = $o.parents('form');
|
||||
if($(form).find(".comment_content").val() == ''){
|
||||
MAC.Pop.Msg(100,20,'请输入您的评论!',1000);
|
||||
return false;
|
||||
}
|
||||
if($('.mac_comment').attr('data-mid') == ''){
|
||||
MAC.Pop.Msg(100,20,'模块mid错误!',1000);
|
||||
return false;
|
||||
}
|
||||
if($('.mac_comment').attr('data-id') == ''){
|
||||
MAC.Pop.Msg(100,20,'关联id错误!',1000);
|
||||
return false;
|
||||
}
|
||||
MAC.Ajax(maccms.path + '/index.php/comment/saveData','post','json',$(form).serialize() + '&comment_mid='+ $('.mac_comment').attr('data-mid') + '&comment_rid=' + $('.mac_comment').attr('data-id'),function(r){
|
||||
MAC.Pop.Msg(100,20,r.msg,1000);
|
||||
if(r.code == 1){
|
||||
MAC.Comment.Show(1);
|
||||
}
|
||||
else{
|
||||
if(MAC.Comment.Verify==1){
|
||||
MAC.Verify.Refresh();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$(function(){
|
||||
//异步加载图片初始化
|
||||
MAC.Image.Lazyload.Show();
|
||||
//自动跳转手机和pc网页地址
|
||||
MAC.Adaptive();
|
||||
//验证码初始化
|
||||
MAC.Verify.Init();
|
||||
//分页跳转初始化
|
||||
MAC.PageGo.Init();
|
||||
//用户部分初始化
|
||||
MAC.User.Init();
|
||||
//二维码初始化
|
||||
MAC.Qrcode.Init();
|
||||
//顶和踩初始化
|
||||
MAC.Digg.Init();
|
||||
//评分初始化
|
||||
MAC.Score.Init();
|
||||
//星星评分初始化
|
||||
MAC.Star.Init();
|
||||
//点击数量
|
||||
MAC.Hits.Init();
|
||||
//短网址
|
||||
MAC.Shorten.Init();
|
||||
//历史记录初始化
|
||||
MAC.History.Init();
|
||||
//用户访问记录初始化
|
||||
MAC.Ulog.Init();
|
||||
//联想搜索初始化
|
||||
MAC.Suggest.Init('.mac_wd',1,'');
|
||||
//网址导航来路统计
|
||||
MAC.Website.Referer();
|
||||
//定时任务初始化
|
||||
MAC.Timming();
|
||||
});
|
||||
117
code/public/template/videolaoniu/static/js/player.js
Normal file
@@ -0,0 +1,117 @@
|
||||
var killErrors=function(value){return true};window.onerror=null;window.onerror=killErrors;
|
||||
var base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var base64DecodeChars=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function base64encode(str){var out,i,len;var c1,c2,c3;len=str.length;i=0;out="";while(i<len){c1=str.charCodeAt(i++)&0xff;if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt((c1&0x3)<<4);out+="==";break}c2=str.charCodeAt(i++);if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt((c2&0xF)<<2);out+="=";break}c3=str.charCodeAt(i++);out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt(((c2&0xF)<<2)|((c3&0xC0)>>6));out+=base64EncodeChars.charAt(c3&0x3F)}return out}function base64decode(str){var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i<len){do{c1=base64DecodeChars[str.charCodeAt(i++)&0xff]}while(i<len&&c1==-1);if(c1==-1)break;do{c2=base64DecodeChars[str.charCodeAt(i++)&0xff]}while(i<len&&c2==-1);if(c2==-1)break;out+=String.fromCharCode((c1<<2)|((c2&0x30)>>4));do{c3=str.charCodeAt(i++)&0xff;if(c3==61)return out;c3=base64DecodeChars[c3]}while(i<len&&c3==-1);if(c3==-1)break;out+=String.fromCharCode(((c2&0XF)<<4)|((c3&0x3C)>>2));do{c4=str.charCodeAt(i++)&0xff;if(c4==61)return out;c4=base64DecodeChars[c4]}while(i<len&&c4==-1);if(c4==-1)break;out+=String.fromCharCode(((c3&0x03)<<6)|c4)}return out}function utf16to8(str){var out,i,len,c;out="";len=str.length;for(i=0;i<len;i++){c=str.charCodeAt(i);if((c>=0x0001)&&(c<=0x007F)){out+=str.charAt(i)}else if(c>0x07FF){out+=String.fromCharCode(0xE0|((c>>12)&0x0F));out+=String.fromCharCode(0x80|((c>>6)&0x3F));out+=String.fromCharCode(0x80|((c>>0)&0x3F))}else{out+=String.fromCharCode(0xC0|((c>>6)&0x1F));out+=String.fromCharCode(0x80|((c>>0)&0x3F))}}return out}function utf8to16(str){var out,i,len,c;var char2,char3;out="";len=str.length;i=0;while(i<len){c=str.charCodeAt(i++);switch(c>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:out+=str.charAt(i-1);break;case 12:case 13:char2=str.charCodeAt(i++);out+=String.fromCharCode(((c&0x1F)<<6)|(char2&0x3F));break;case 14:char2=str.charCodeAt(i++);char3=str.charCodeAt(i++);out+=String.fromCharCode(((c&0x0F)<<12)|((char2&0x3F)<<6)|((char3&0x3F)<<0));break}}return out}
|
||||
|
||||
var MacPlayer = {
|
||||
'GetDate':function(f,t){
|
||||
if(!t){
|
||||
t = new Date();
|
||||
}
|
||||
var Week = ['日', '一', '二', '三', '四', '五', '六'];
|
||||
f = f.replace(/yyyy|YYYY/, t.getFullYear());
|
||||
f = f.replace(/yy|YY/, (t.getYear() % 100) > 9 ? (t.getYear() % 100).toString() : '0' + (t.getYear() % 100));
|
||||
f = f.replace(/MM/, t.getMonth() > 9 ? t.getMonth().toString() : '0' + t.getMonth());
|
||||
f = f.replace(/M/g, t.getMonth());
|
||||
f = f.replace(/w|W/g, Week[t.getDay()]);
|
||||
f = f.replace(/dd|DD/, t.getDate() > 9 ? t.getDate().toString() : '0' + t.getDate());
|
||||
f = f.replace(/d|D/g, t.getDate());
|
||||
f = f.replace(/hh|HH/, t.getHours() > 9 ? t.getHours().toString() : '0' + t.getHours());
|
||||
f = f.replace(/h|H/g, t.getHours());
|
||||
f = f.replace(/mm/, t.getMinutes() > 9 ? t.getMinutes().toString() : '0' + t.getMinutes());
|
||||
f = f.replace(/m/g, t.getMinutes());
|
||||
f = f.replace(/ss|SS/, t.getSeconds() > 9 ? t.getSeconds().toString() : '0' + t.getSeconds());
|
||||
f = f.replace(/s|S/g, t.getSeconds());
|
||||
return f;
|
||||
},
|
||||
'GetUrl': function(s, n) {
|
||||
return this.Link.replace('{sid}', s).replace('{sid}', s).replace('{nid}', n).replace('{nid}', n)
|
||||
},
|
||||
'Go': function(s, n) {
|
||||
location.href = this.GetUrl(s, n)
|
||||
},
|
||||
'Show': function() {
|
||||
$('#buffer').attr('src', this.Prestrain);
|
||||
setTimeout(function() {
|
||||
MacPlayer.AdsEnd()
|
||||
}, this.Second * 1000);
|
||||
$("#playleft").get(0).innerHTML = this.Html + '';
|
||||
},
|
||||
'AdsStart': function() {
|
||||
if ($("#buffer").attr('src') != this.Buffer) {
|
||||
$("#buffer").attr('src', this.Buffer)
|
||||
}
|
||||
$("#buffer").show()
|
||||
},
|
||||
'AdsEnd': function() {
|
||||
$('#buffer').hide()
|
||||
},
|
||||
'Install': function() {
|
||||
this.Status = false;
|
||||
$('#install').show()
|
||||
},
|
||||
'Play': function() {
|
||||
document.write('<style>.MacPlayer{background: #000000;font-size:14px;color:#F6F6F6;margin:0px;padding:0px;position:relative;overflow:hidden;width:' + this.Width + ';height:' + this.Height + ';min-height:100px;}.MacPlayer table{width:100%;height:100%;}.MacPlayer #playleft{position:inherit;!important;width:100%;height:100%;}</style><div class="MacPlayer">' + '<iframe id="buffer" src="" frameBorder="0" scrolling="no" width="100%" height="100%" style="position:absolute;z-index:99998;"></iframe><iframe id="install" src="" frameBorder="0" scrolling="no" width="100%" height="100%" style="position:absolute;z-index:99998;display:none;"></iframe>' + '<table border="0" cellpadding="0" cellspacing="0"><tr><td id="playleft" valign="top" style=""> </td></table></div>');
|
||||
this.offsetHeight = $('.MacPlayer').get(0).offsetHeight;
|
||||
this.offsetWidth = $('.MacPlayer').get(0).offsetWidth;
|
||||
document.write('<scr' + 'ipt src="' + this.Path + this.PlayFrom + '.js"></scr' + 'ipt>')
|
||||
},
|
||||
'Down': function() {},
|
||||
'Init': function() {
|
||||
this.Status = true;
|
||||
this.Parse = '';
|
||||
var player_data = player_aaaa;
|
||||
if (player_data.encrypt == '1') {
|
||||
player_data.url = unescape(player_data.url);
|
||||
player_data.url_next = unescape(player_data.url_next)
|
||||
} else if (player_data.encrypt == '2') {
|
||||
player_data.url = unescape(base64decode(player_data.url));
|
||||
player_data.url_next = unescape(base64decode(player_data.url_next))
|
||||
}
|
||||
this.Agent = navigator.userAgent.toLowerCase();
|
||||
this.Width = MacPlayerConfig.width;
|
||||
this.Height = MacPlayerConfig.height;
|
||||
if (this.Agent.indexOf("android") > 0 || this.Agent.indexOf("mobile") > 0 || this.Agent.indexOf("ipod") > 0 || this.Agent.indexOf("ios") > 0 || this.Agent.indexOf("iphone") > 0 || this.Agent.indexOf("ipad") > 0) {
|
||||
this.Width = MacPlayerConfig.widthmob;
|
||||
this.Height = MacPlayerConfig.heightmob
|
||||
}
|
||||
if (this.Width.indexOf("px") == -1 && this.Width.indexOf("%") == -1) {
|
||||
this.Width = '100%'
|
||||
}
|
||||
if (this.Height.indexOf("px") == -1 && this.Height.indexOf("%") == -1) {
|
||||
this.Height = '100%'
|
||||
}
|
||||
this.Prestrain = MacPlayerConfig.prestrain;
|
||||
this.Buffer = MacPlayerConfig.buffer;
|
||||
this.Second = MacPlayerConfig.second;
|
||||
this.Flag = player_data.flag;
|
||||
this.Trysee = player_data.trysee;
|
||||
this.Points = player_data.points;
|
||||
this.Link = decodeURIComponent(player_data.link);
|
||||
this.PlayFrom = player_data.from;
|
||||
this.PlayNote = player_data.note;
|
||||
this.PlayServer = player_data.server == 'no' ? '' : player_data.server;
|
||||
this.PlayUrl = player_data.url;
|
||||
this.PlayUrlNext = player_data.url_next;
|
||||
this.PlayLinkNext = player_data.link_next;
|
||||
this.PlayLinkPre = player_data.link_pre;
|
||||
this.Id = player_data.id;
|
||||
this.Sid = player_data.sid;
|
||||
this.Nid = player_data.nid;
|
||||
if (MacPlayerConfig.server_list[this.PlayServer] != undefined) {
|
||||
this.PlayServer = MacPlayerConfig.server_list[this.PlayServer].des
|
||||
}
|
||||
if (MacPlayerConfig.player_list[this.PlayFrom] != undefined) {
|
||||
if (MacPlayerConfig.player_list[this.PlayFrom].ps == "1") {
|
||||
this.Parse = MacPlayerConfig.player_list[this.PlayFrom].parse == '' ? MacPlayerConfig.parse : MacPlayerConfig.player_list[this.PlayFrom].parse;
|
||||
this.PlayFrom = 'parse'
|
||||
}
|
||||
}
|
||||
this.Path = maccms.path + '/static/player/';
|
||||
if (this.Flag == "down") {
|
||||
MacPlayer.Down()
|
||||
} else {
|
||||
MacPlayer.Play()
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
MacPlayer.Init();
|
||||
@@ -0,0 +1,7 @@
|
||||
var MacPlayerConfig={};
|
||||
//参数开始
|
||||
MacPlayerConfig={"width":"100%","height":"100%","widthmob":"100%","heightmob":"100%","widthpop":"0","heightpop":"600","second":"0","prestrain":"","buffer":"","parse":"","autofull":"0","showtop":"1","showlist":"1","flag":"0","colors":"000000,F6F6F6,F6F6F6,333333,666666,FFFFF,FF0000,2c2c2c,ffffff,a3a3a3,2c2c2c,adadad,adadad,48486c,fcfcfc"};
|
||||
//参数结束
|
||||
//缓存开始
|
||||
MacPlayerConfig.player_list={"lzm3u8":{"show":"\u91cf\u5b50\u4e91\u64ad","des":"\u91cf\u5b50","ps":"1","parse":"\/bf\/?url="},"ffm3u8":{"show":"\u975e\u51e1\u4e91\u64ad","des":"\u975e\u51e1","ps":"1","parse":"\/bf\/?url="},"snm3u8":{"show":"\u516b\u6212\u4e91\u64ad","des":"\u7d22\u5c3c","ps":"1","parse":"\/bf\/?url="},"hnm3u8":{"show":"\u7ea2\u725b\u4e91\u64ad","des":"\u7ea2\u725b","ps":"1","parse":"\/bf\/?url="},"wjm3u8":{"show":"\u65e0\u5c3d\u4e91\u64ad","des":"\u65e0\u5c3d","ps":"1","parse":"\/bf\/?url="},"bfzym3u8":{"show":"\u66b4\u98ce\u4e91\u64ad","des":"\u66b4\u98ce","ps":"1","parse":"\/bf\/?url="},"fsm3u8":{"show":"\u98de\u901f\u4e91\u64ad","des":"\u98de\u901f","ps":"1","parse":"\/bf\/?url="},"leshi":{"show":"\u4e91\u64ad\u56db","des":"\u4e50\u89c6","ps":"1","parse":"\/bf\/?url="},"sdm3u8":{"show":"\u95ea\u7535\u4e91\u64ad","des":"\u95ea\u7535","ps":"1","parse":"\/bf\/?url="},"gsm3u8":{"show":"\u5149\u901f\u4e91\u64ad","des":"\u5149\u901f","ps":"1","parse":"\/bf\/?url="},"xgm3u8":{"show":"\u767e\u5ea6\u4e91\u64ad","des":"\u81ea\u5df1","ps":"1","parse":"\/bf\/?url="},"dplayer":{"show":"DPlayer-H5\u64ad\u653e\u5668","des":"dplayer.js.org","ps":"0","parse":""},"videojs":{"show":"videojs-H5\u64ad\u653e\u5668","des":"videojs.com","ps":"0","parse":""},"iva":{"show":"iva-H5\u64ad\u653e\u5668","des":"videojj.com","ps":"0","parse":""},"iframe":{"show":"iframe\u5916\u94fe\u6570\u636e","des":"iframe\u5916\u94fe\u6570\u636e","ps":"0","parse":""},"link":{"show":"\u5916\u94fe\u6570\u636e","des":"\u5916\u90e8\u7f51\u7ad9\u64ad\u653e\u94fe\u63a5","ps":"0","parse":""},"swf":{"show":"Flash\u6587\u4ef6","des":"swf","ps":"0","parse":""},"flv":{"show":"Flv\u6587\u4ef6","des":"flv","ps":"0","parse":""}},MacPlayerConfig.downer_list={"http":{"show":"http\u4e0b\u8f7d","des":"des\u63d0\u793a\u4fe1\u606f","ps":"0","parse":""},"xunlei":{"show":"xunlei\u4e0b\u8f7d","des":"des\u63d0\u793a\u4fe1\u606f","ps":"0","parse":""}},MacPlayerConfig.server_list={"server1":{"show":"\u6d4b\u8bd5\u670d\u52a1\u56681","des":"des\u63d0\u793a\u4fe1\u606f1"}};
|
||||
//缓存结束
|
||||
2
code/public/template/videolaoniu/static/player/parse.js
Normal file
@@ -0,0 +1,2 @@
|
||||
MacPlayer.Html = '<iframe width="100%" height="100%" src="'+MacPlayer.Parse + MacPlayer.PlayUrl+'" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen" msallowfullscreen="msallowfullscreen" oallowfullscreen="oallowfullscreen" webkitallowfullscreen="webkitallowfullscreen" security="restricted" sandbox="allow-same-origin allow-forms allow-scripts"></iframe>';
|
||||
MacPlayer.Show();
|
||||