Skip to content

Commit

Permalink
增加pv uv 上报,将 最新文章 改成 精华文章
Browse files Browse the repository at this point in the history
  • Loading branch information
kuangwk committed Jul 4, 2016
1 parent 65d06d4 commit bf39079
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 28 deletions.
1 change: 1 addition & 0 deletions friend/index.html
Expand Up @@ -17,6 +17,7 @@
<link rel="stylesheet" type="text/css" href="/css/default.css" />
<link rel="stylesheet" type="text/css" href="/css/component.css" />
<meta name="generator" content="腾讯IMWEB团队">
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=50001266" charset="UTF-8"></script>
</head>

<!--
Expand Down
1 change: 1 addition & 0 deletions hire/index.html
Expand Up @@ -17,6 +17,7 @@
<link rel="stylesheet" type="text/css" href="/css/default.css" />
<link rel="stylesheet" type="text/css" href="/css/component.css" />
<meta name="generator" content="腾讯IMWEB团队">
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=50001266" charset="UTF-8"></script>
</head>

<!--
Expand Down
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -66,7 +66,7 @@ <h2 class="blog-description"><button id="showMenu">了解更多</button>
组织类项目的研发工作。 IMWeb团队成员目前已分布全国各大互联网企业,或有些在创业公司担当要职。</p>
<hr>
<div class="latest-article">
<h4 class="section-title">社区最新文章</h4>
<h4 class="section-title">社区热门文章</h4>
</div>
<hr>
<div class="project-show">
Expand Down
40 changes: 13 additions & 27 deletions js/index.js
Expand Up @@ -85,43 +85,29 @@


$(document).ready(function(){
$.ajax({
type:"get",
async:false,
url:"http://imweb.io/topics/latestTopics",
dataType:"jsonp",
jsonp: "callback",
$.ajax({
type:"get",
async:false,
// 将 最新文章 改成 精华文章
// url:"http://imweb.io/topics/latestTopics",
url:"http://imweb.io/topics/latestTopics/sort/top_good",
dataType:"jsonp",
jsonp: "callback",
jsonpCallback:"callback",
data:{
topics: topics
topics: topics
},
success: function(callback){
for(var i in callback){
topics[i] = callback[i];
for(var i in callback){
topics[i] = callback[i];
latestTopics(topics[i]);
}
}
},
error: function(){
alert('fail');
}
});
/* $(".post-content").fitVids();
$(".site-head").interactive_bg({
strength: 25,
scale: 1,
animationSpeed: "5ms",
contain: true,
wrapContent: false
});*/
});

/* $(window).resize(function() {
$(".site-head > .ibg-bg").css({
width: $(window).outerWidth(),
height: $(window).outerHeight()
});
});*/

});

$('body').on('click', '.js-scroll-top-btn', function(e) {
$('body').animate({
Expand Down

0 comments on commit bf39079

Please sign in to comment.