xjc vor 2 Jahren
Ursprung
Commit
26f9cdf3f8
37 geänderte Dateien mit 814 neuen und 683 gelöschten Zeilen
  1. 19 5
      src/manage/controls.py
  2. 5 1
      src/weixin/controls.py
  3. 0 1
      templates/css/chunk-0534893e.f2e59cbf.css
  4. 0 1
      templates/css/chunk-278500c2.3cf20b6d.css
  5. 0 1
      templates/css/chunk-413db6b6.f882a544.css
  6. 0 1
      templates/css/chunk-475ddf86.34d18e49.css
  7. 0 1
      templates/css/chunk-4a7589ad.3cf20b6d.css
  8. 0 1
      templates/css/chunk-5088936d.f2e59cbf.css
  9. 0 1
      templates/css/chunk-5bd1522e.8e8cc296.css
  10. 0 1
      templates/css/chunk-72110bb8.f2e59cbf.css
  11. 0 1
      templates/css/chunk-c86cf518.f2e59cbf.css
  12. 0 1
      templates/css/chunk-caffd35c.f2e59cbf.css
  13. 0 5
      templates/css/chunk-vendors.9e808491.css
  14. 1 1
      templates/index.html
  15. 0 2
      templates/js/chunk-0534893e.66dae43a.js
  16. 0 1
      templates/js/chunk-0534893e.66dae43a.js.map
  17. 0 2
      templates/js/chunk-278500c2.e48a6b28.js
  18. 0 1
      templates/js/chunk-278500c2.e48a6b28.js.map
  19. 0 2
      templates/js/chunk-413db6b6.691c1da8.js
  20. 0 1
      templates/js/chunk-413db6b6.691c1da8.js.map
  21. 0 2
      templates/js/chunk-475ddf86.4a450b31.js
  22. 0 1
      templates/js/chunk-475ddf86.4a450b31.js.map
  23. 0 2
      templates/js/chunk-4a7589ad.994593c7.js
  24. 0 1
      templates/js/chunk-4a7589ad.994593c7.js.map
  25. 0 2
      templates/js/chunk-5088936d.66ed8abd.js
  26. 0 1
      templates/js/chunk-5088936d.66ed8abd.js.map
  27. 0 2
      templates/js/chunk-5bd1522e.2ce77d01.js
  28. 0 1
      templates/js/chunk-5bd1522e.2ce77d01.js.map
  29. 0 2
      templates/js/chunk-c86cf518.73ae1dac.js
  30. 0 1
      templates/js/chunk-c86cf518.73ae1dac.js.map
  31. 0 2
      templates/js/chunk-caffd35c.c14dad7d.js
  32. 0 1
      templates/js/chunk-caffd35c.c14dad7d.js.map
  33. BIN
      templates/wzb/image/banner.jpg
  34. BIN
      templates/wzb/image/erwm.png
  35. BIN
      templates/wzb/image/llqopen.jpg
  36. 606 473
      templates/wzb/index.css
  37. 183 161
      templates/wzb/index.html

+ 19 - 5
src/manage/controls.py

@@ -349,6 +349,16 @@ def get_search_list(cls,**kwargs):
                 item["label"] = "%s(%s)" % (item["username"],item["usercode"])
         else:
             data = []
+    elif model_name == "MatchGroup":
+        if kwargs.get("match_id"):
+            qset = qset.filter(match_id__icontains=kwargs.get("match_id"))
+
+        if kwargs.get("is_active"):
+            qset = qset.filter(is_active__icontains=kwargs.get("is_active"))
+            
+        data = list(qset.values("id","name"))
+        
+
     else:
         if kwargs.get("name"):
             qset = qset.filter(name__icontains=kwargs.get("name"))
@@ -568,7 +578,7 @@ def download_records(request):
     """
     """
     kwargs = request.json
-    header = [u"排名",u"选手",u"分组",u"初始资产(万)",u"昨日资产(万)",u"今日资产",u"今日盈亏",u"总盈亏",u"昨日持股",u"今日持股",u"图片"]
+    header = [u"NO.",u"选手",u"初始资产",u"今日资产",u"今日盈亏",u"总盈亏",u"昨日持股\n(万元)",u"今日持股\n(万元)"]
 
     match_id = kwargs.get("match_id") 
     qset = cm.PlayerRecord.get_db_model(match_id).objects.all()
@@ -633,21 +643,25 @@ def download_records(request):
                     [
                         item["group_rank"],
                         item["username"],
-                        item["match_group_name"],
                         item["init_fund"],
-                        item["yesterday_fund"],
                         item["today_fund"],
                         item["today_income"],
                         item["total_income"],
                         yesterday_stock,
                         today_stock,
-                        item["today_stock_imgs"]
+                        ''
                     ])
         except Exception as e:
             print(e)
     xlsfile = os.path.join(settings.BASE_DIR,"demo.xls")
     exceltool = ExcelTool(xlsfile)
-    xlsdata = exceltool.save_data(u"学员报名数据表",header,data)
+    
+    
+    groupName = kwargs.get("groupName")
+    if not groupName:
+        groupName = u"全部数据"
+
+    xlsdata = exceltool.save_data(groupName,header,data)
 
     return xlsdata
 

+ 5 - 1
src/weixin/controls.py

@@ -2831,6 +2831,10 @@ def get_profit_list(**kwargs):
         data = sorted(data,key=lambda x:x["total_win_loss"],reverse=True)
     if _type == "total_loss":
         data = sorted(data,key=lambda x:x["total_win_loss"])
+    if _type == "total_income_win":
+        data = sorted(data,key=lambda x:x["total_income"],reverse=True)
+    if _type == "total_income_loss":
+        data = sorted(data,key=lambda x:x["total_income"])
 
     page = int(kwargs.get("page",0))
     page_size = int(kwargs.get("page_size",20))
@@ -3218,7 +3222,7 @@ def get_stock_nb_comments(request):
     kwargs = request.json
     comment_date = kwargs.get("date")
 
-    qset = cm.StockComments.objects.all()
+    qset = cm.StockComments.objects.all().order_by("-ctime")
 
     if comment_date: 
         st = comment_date + " 00:00:00"

+ 0 - 1
templates/css/chunk-0534893e.f2e59cbf.css

@@ -1 +0,0 @@
-.el-pagination button,.el-pagination li{border:1px solid #cacaca!important;background-color:#fff!important}.el-pagination .active{border:none!important;background:#3895fe!important}

+ 0 - 1
templates/css/chunk-278500c2.3cf20b6d.css

@@ -1 +0,0 @@
-.el-pagination button,.el-pagination li{border:1px solid #cacaca!important;background-color:#fff!important}.el-pagination .active{border:none!important;background:#3895fe!important}.del{display:inline-block;vertical-align:top;font-size:28px;font-weight:500;margin-left:10px;color:#000;cursor:pointer}

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 1
templates/css/chunk-413db6b6.f882a544.css


+ 0 - 1
templates/css/chunk-475ddf86.34d18e49.css

@@ -1 +0,0 @@
-.editor[data-v-0bb49456]{width:100%;margin:0 auto;position:relative;z-index:0;overflow-y:scroll}.editor[data-v-0bb49456] .toolbar{border:1px solid #ccc;z-index:100000;width:100%;background:#fff;height:52px}.editor[data-v-0bb49456] .text{border:1px solid #ccc;min-height:500px;height:500px}

+ 0 - 1
templates/css/chunk-4a7589ad.3cf20b6d.css

@@ -1 +0,0 @@
-.el-pagination button,.el-pagination li{border:1px solid #cacaca!important;background-color:#fff!important}.el-pagination .active{border:none!important;background:#3895fe!important}.del{display:inline-block;vertical-align:top;font-size:28px;font-weight:500;margin-left:10px;color:#000;cursor:pointer}

+ 0 - 1
templates/css/chunk-5088936d.f2e59cbf.css

@@ -1 +0,0 @@
-.el-pagination button,.el-pagination li{border:1px solid #cacaca!important;background-color:#fff!important}.el-pagination .active{border:none!important;background:#3895fe!important}

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 1
templates/css/chunk-5bd1522e.8e8cc296.css


+ 0 - 1
templates/css/chunk-72110bb8.f2e59cbf.css

@@ -1 +0,0 @@
-.el-pagination button,.el-pagination li{border:1px solid #cacaca!important;background-color:#fff!important}.el-pagination .active{border:none!important;background:#3895fe!important}

+ 0 - 1
templates/css/chunk-c86cf518.f2e59cbf.css

@@ -1 +0,0 @@
-.el-pagination button,.el-pagination li{border:1px solid #cacaca!important;background-color:#fff!important}.el-pagination .active{border:none!important;background:#3895fe!important}

+ 0 - 1
templates/css/chunk-caffd35c.f2e59cbf.css

@@ -1 +0,0 @@
-.el-pagination button,.el-pagination li{border:1px solid #cacaca!important;background-color:#fff!important}.el-pagination .active{border:none!important;background:#3895fe!important}

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 5
templates/css/chunk-vendors.9e808491.css


Datei-Diff unterdrückt, da er zu groß ist
+ 1 - 1
templates/index.html


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 2
templates/js/chunk-0534893e.66dae43a.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 1
templates/js/chunk-0534893e.66dae43a.js.map


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 2
templates/js/chunk-278500c2.e48a6b28.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 1
templates/js/chunk-278500c2.e48a6b28.js.map


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 2
templates/js/chunk-413db6b6.691c1da8.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 1
templates/js/chunk-413db6b6.691c1da8.js.map


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 2
templates/js/chunk-475ddf86.4a450b31.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 1
templates/js/chunk-475ddf86.4a450b31.js.map


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 2
templates/js/chunk-4a7589ad.994593c7.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 1
templates/js/chunk-4a7589ad.994593c7.js.map


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 2
templates/js/chunk-5088936d.66ed8abd.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 1
templates/js/chunk-5088936d.66ed8abd.js.map


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 2
templates/js/chunk-5bd1522e.2ce77d01.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 1
templates/js/chunk-5bd1522e.2ce77d01.js.map


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 2
templates/js/chunk-c86cf518.73ae1dac.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 1
templates/js/chunk-c86cf518.73ae1dac.js.map


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 2
templates/js/chunk-caffd35c.c14dad7d.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 1
templates/js/chunk-caffd35c.c14dad7d.js.map


BIN
templates/wzb/image/banner.jpg


BIN
templates/wzb/image/erwm.png


BIN
templates/wzb/image/llqopen.jpg


Datei-Diff unterdrückt, da er zu groß ist
+ 606 - 473
templates/wzb/index.css


+ 183 - 161
templates/wzb/index.html

@@ -1,162 +1,184 @@
+
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="UTF-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
+    <title>找股市高手上顽主杯</title>
+    <!-- <link rel="stylesheet" href="bootstrap.min.css"> -->
+    <link rel="stylesheet" href="index.css">
+    <script src="jquery-3.6.1.min.js"></script>
+</head>
+
+<body>
+	<div class="banner phone">
+		<h1>大A顶级实盘赛</h1><span>下载顽主杯App,参与比赛/围观比赛</span> <br>
+		<button class="down_load">点击下载</button>
+		<img  width="90%" src="img/banner.png" alt="">
+	</div>
+	
+    <div class="banner pc">
+        <table>
+			<tr>
+                <td colspan="2">
+                    <h1>大A顶级实盘赛</h1><span>下载顽主杯App,参与比赛/围观比赛</span>
+                </td>  
+            </tr>
+			<tr>
+				<td class="ewm"><img width="200" src="img/ewm.png" alt=""></td>
+                <td class="app_down" width="20%">
+                    <a class="android" href="http://www.hunanwanzhu.com/wanzhubei.apk" target="_blank">
+						<img height="30" src="img/android.png" alt="">
+						安卓 Android</a>
+                    <a class="ios" style="margin: 0" href="https://apps.apple.com/cn/app/%E9%A1%BD%E4%B8%BB%E6%9D%AF/id6444557166" target="_blank">
+						<img height="30" src="img/ios.png" alt="">苹果 iPhone</a>
+                </td>
+			</tr>
+		</table>
+		<img  class="banner_img" src="img/banner.png" alt="">
+    </div>
+    <div class="content pc">
+        <div class="part  play_1 act_1">
+			<div class="row">
+				<div class="img"></div>
+				<div class="des">
+					<h1>大A顶级实盘赛</h1>
+					<p>每届上千人参与,人气鼎盛</p>
+					<img src="img/1-1.png" alt="">
+				</div>
+			</div>
+        </div>
+        <div class="part  play_2">
+            <div class="row">
+				<div class="des"><h1>海量牛人聚集地</h1>
+					<p>学习高手零距离</p></div>
+				<div class="img"></div>
+			</div>
+        </div>
+        <div class="part play_3">
+            <div class="row">
+				<div class="img"></div>
+            	<div class="des"><h1>场内情绪风向标</h1><p>及时发现热门牛股</p><img src="img/3-1.png" alt=""></div>
+			</div>
+        </div>
+        <div class="part play_4">
+            <div class="row">
+				<div class="des "><h1>比赛数据追溯回看</h1><p>不错过每一场赛事</p></div>
+            	<div class="img"></div>
+			</div>
+        </div>
+        <!-- <div class="part row play_5">
+            <div class="col-sm-6 col-xs-6 img"></div>
+            <div class="col-sm-6 col-xs-6 des"><h1>会议干货,精彩分享</h1><p>听大佬解读行业政策,分享行业干货</p></div>
+        </div> -->
+    </div>
+	<div class="content phone">
+        <div class="part  play_1 act_1">
+			<div class="row">
+				<div class="des">
+					<h1>大A顶级实盘赛</h1>
+					<p>每届上千人参与,人气鼎盛</p>
+					<img src="img/1-1.png" alt="">
+				</div>
+				<div class="img"></div>
+			</div>
+        </div>
+        <div class="part  play_2">
+            <div class="row">
+				<div class="des"><h1>海量牛人聚集地</h1>
+					<p>学习高手零距离</p></div>
+				<div class="img"></div>
+			</div>
+        </div>
+        <div class="part play_3">
+            <div class="row">
+				
+            	<div class="des"><h1>场内情绪风向标</h1><p>及时发现热门牛股</p><img src="img/3-1.png" alt=""></div>
+				<div class="img"></div>
+			</div>
+        </div>
+        <div class="part play_4">
+            <div class="row">
+				<div class="des "><h1>比赛数据追溯回看</h1><p>不错过每一场赛事</p></div>
+            	<div class="img"></div>
+			</div>
+        </div>
+        <!-- <div class="part row play_5">
+            <div class="col-sm-6 col-xs-6 img"></div>
+            <div class="col-sm-6 col-xs-6 des"><h1>会议干货,精彩分享</h1><p>听大佬解读行业政策,分享行业干货</p></div>
+        </div> -->
+    </div>
+
+<div class="footer">
+    <h1>大A顶级实盘赛,欢迎你的参与</h1>
+	<button class="pc">下载App参与比赛</button>
+	<button class="phone">点击下载</button>
+	<p>Copyright©️2023 长沙淼莱信息科技有限公司 版权所有 湘ICP备2021013011号-1</p>
+</div>
 
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="UTF-8">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
-    <title>大A顶级实盘赛</title>
-    <link rel="stylesheet" href="bootstrap.min.css">
-    <link rel="stylesheet" href="index.css">
-    <script src="jquery-3.6.1.min.js"></script>
-</head>
-
-<body>
-
-	<div id="open"></div>
-
-
-    <div class="banner" id="banner">
-        <img width="100%" src="image/banner.jpg" alt="">
-        <table>
-            <tr>
-                <td colspan="2">
-                    <h1>大A顶级实盘赛</h1><span>下载顽主杯App,参与比赛</span>
-                </td>
-                <td width="30%" rowspan="2" style="vertical-align: bottom;"><img width="82%" src="image/1.png" alt=""></td>
-            </tr>
-            <tr>
-                <td class="app_down" width="20%">
-                    <a class="android" href="#" target="_blank"><i class="fa fa-android"></i>Android</a>
-                    <a class="ios" style="margin: 0" href="#" target="_blank"><i class="fa fa-apple"></i>iOS</a>
-                </td>
-                <td class="ewm"><img width="170" src="image/erwm.png" alt=""></td>
-            </tr>
-        </table>
-    </div>
-    <div class="content" style="background: #F8F8F8">
-        <div class="part row play_1 act_1">
-            <div class="col-sm-6 col-xs-6 img"></div>
-            <div class="col-sm-6 col-xs-6 des"><h1>A股顶级实盘大赛</h1><p>每届上千人参与-资金数亿</p></div>
-        </div>
-        <div class="part row play_2">
-            <div class="col-sm-6 col-xs-6 des"><h1>海量牛人聚集地</h1><p>学习高手零距离</p></div>
-            <div class="col-sm-6 col-xs-6 img"></div>
-        </div>
-        <div class="part row play_3">
-            <div class="col-sm-6 col-xs-6 img"></div>
-            <div class="col-sm-6 col-xs-6 des"><h1>场内情绪风向标</h1><p>及时发现热门牛股</p></div>
-        </div>
-        <div class="part row play_4">
-            <div class="col-sm-6 col-xs-6 des "><h1>比赛数据追溯回看</h1><p>不错过每一场赛事</p></div>
-            <div class="col-sm-6 col-xs-6 img"></div>
-        </div>
-        <!-- <div class="part row play_5">
-            <div class="col-sm-6 col-xs-6 img"></div>
-            <div class="col-sm-6 col-xs-6 des"><h1>会议干货,精彩分享</h1><p>听大佬解读行业政策,分享行业干货</p></div>
-        </div> -->
-    </div>
-
-<div class="footer">
-    <p class="text-center">Copyright  2022 湖南顽主杯 版权所有  湘ICP备2021013011号-1
-</div>
-
-
-
-</body>
-
-<script>
-    var browser={
-		versions:function(){
-			var u = navigator.userAgent, app = navigator.appVersion;
-			return {
-				trident: u.indexOf('Trident') > -1,
-				presto: u.indexOf('Presto') > -1,
-				webKit: u.indexOf('AppleWebKit') > -1,
-				gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,
-				mobile: !!u.match(/AppleWebKit.*Mobile.*/),
-				ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
-				android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1,
-				iPhone: u.indexOf('iPhone') > -1 ,
-				iPad: u.indexOf('iPad') > -1,
-				webApp: u.indexOf('Safari') == -1
-			}
-		}(),
-		language:(navigator.browserLanguage || navigator.language).toLowerCase()
-	};
-	
-	function loadHtml(){
-      var div = document.createElement('div');
-      div.id = 'weixin-tip';
-      div.innerHTML = '<p><img src="image/llqopen.jpg" width="100%" alt="微信打开"/></p>';
-      document.getElementById("banner").appendChild(div)
-    }
-    
-    function loadStyleText(cssText) {
-          var style = document.createElement('style');
-          style.rel = 'stylesheet';
-          style.type = 'text/css';
-          try {
-              style.appendChild(document.createTextNode(cssText));
-          } catch (e) {
-              style.styleSheet.cssText = cssText; //ie9以下
-          }
-            var head=document.getElementsByTagName("head")[0]; //head标签之间加上style样式
-            head.appendChild(style); 
-      }
-      var cssText = "#weixin-tip{position: fixed; left:0; top:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); width: 100%; height:100%; z-index: 100;} #weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}";
-    
-    
- 
-	$(".app_down .ios").on("click", function () {
-		if(/MicroMessenger/i.test(navigator.userAgent)) {
-			loadHtml();
-			loadStyleText(cssText);
-			return false;
-// 			$(this).attr("href","https://apps.apple.com/cn/app/%E9%A1%BD%E4%B8%BB%E6%9D%AF/id6444557166")
-		}else{
-			$(this).attr("href","https://apps.apple.com/cn/app/%E9%A1%BD%E4%B8%BB%E6%9D%AF/id6444557166")
-		}
-	});
-
-	$(".app_down .android").on("click", function () {
-		if(/MicroMessenger/i.test(navigator.userAgent)) {
-			loadHtml();
-			loadStyleText(cssText);
-			return false;
-		}else{
-			$(this).attr("href","http://www.hunanwanzhu.com/wanzhubei.apk");
-		}
-	});
-   if(window.screen.width<768){
-      $('.play_1').addClass('act_1')
-	  $('.play_2').addClass('act_2')
-	  $('.play_3').addClass('act_3')
-   }
-	function animate(div,cssname){
-		var b,c,d;
-		d=div.offset().top;
-		b=$(window).scrollTop();
-		c=$(window).height();
-		if(b+c>d){
-			div.addClass((cssname));
-		}else {
-			div.removeClass((cssname));
-		}
-	}
-
-	$(document).ready(function(e) {
-		$(window).scroll(function(){
-			$('.part').each(function () {
-				var _index=$(this).index()+1
-				var Class="act_"+_index
-				animate($(this),Class);
-			})
-		});
-	});
-	
-	
-
-    
-</script>
-
-</html>
+<div class="bg_iphone"></div>
+<div class="bg_az"></div>
+
+</body>
+
+<script>
+	$('.footer .pc').on('click', function() {
+		$('html, body').stop().animate({
+			scrollTop: 0
+		})
+	})
+
+	$('.bg_iphone,.bg_az').click(function(){
+		$(this).hide()
+	})
+	$(".down_load,.phone").on("click", function () {
+		var ua = navigator.userAgent.toLowerCase();
+		var isWeixin = ua.indexOf('micromessenger') != -1;
+		if(isWeixin){
+			$('html, body').stop().animate({
+				scrollTop: 0
+			})
+			if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) { //判断iPhone|iPad|iPod|iOS
+			  $('.bg_iphone').show()
+			} else if (/(Android)/i.test(navigator.userAgent)) {  //判断Android
+			  $('.bg_az').show()
+			}
+		}else{
+			if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) { //判断iPhone|iPad|iPod|iOS
+			  window.location = "https://apps.apple.com/cn/app/%E9%A1%BD%E4%B8%BB%E6%9D%AF/id6444557166";
+			} else if (/(Android)/i.test(navigator.userAgent)) {  //判断Android
+			  window.location = "http://www.hunanwanzhu.com/wanzhubei.apk";
+			}
+		}
+	});
+
+
+   if(window.screen.width<768){
+      $('.play_1').addClass('act_1')
+	   $('.play_2').addClass('act_2')
+	   $('.play_3').addClass('act_3')
+   }
+	function animate(div,cssname){
+		var b,c,d;
+		d=div.offset().top;
+		b=$(window).scrollTop();
+		c=$(window).height();
+		if(b+c>d){
+			div.addClass((cssname));
+		}else {
+			div.removeClass((cssname));
+		}
+	}
+
+	$(document).ready(function(e) {
+		$(window).scroll(function(){
+			$('.part').each(function () {
+				var _index=$(this).index()+1
+				var Class="act_"+_index
+				animate($(this),Class);
+			})
+		});
+	});
+</script>
+
+</html>