Server IP : 103.233.192.212 / Your IP : 3.149.27.97 Web Server : Apache/2 System : Linux sv1.inde.co.th 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64 User : sumpatuan ( 1058) PHP Version : 5.5.38 Disable Function : symlink,shell_exec,exec,proc_close,proc_open,popen,system,dl,putenv,passthru,escapeshellarg,escapeshellcmd,pcntl_exec,proc_get_status,proc_nice,proc_terminate,pclose,ini_alter,virtual,openlog,ini_restore MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sumpatuan/domains/sumpatuan.go.th/private_html/backup/js/ |
Upload File : |
$(function(){"use strict";function v(e){if(i.height()<t.height()){i.height(t.height())}else if(t.height()<i.height()&&t.height()>parseInt(i.css("min-height").replace("px",""),10)){i.height(t.height())}if($(".news-content:nth-child("+e+")").height()>i.height()){i.height($(".news-content:nth-child("+e+")").height()+a)}}function m(){l=setInterval(function(){if($(".selected").prev().index()+1===s){r.trigger("click")}else{$(".selected").next(":not(.highlight)").trigger("click")}},f)}function g(){n.on("click",function(){n.removeClass("selected");$(this).addClass("selected");c=$(this).prevAll();h=0;for(d=0;d<c.length;d+=1){h+=$(c[d]).height();h+=o;h+=u}e.css({top:h,height:$(this).height()+o});p=$(this).index()+1;$(".news-content:nth-child("+p+")").siblings().removeClass("top-content");$(".news-content:nth-child("+p+")").addClass("top-content");clearInterval(l);m();v(p)})}function y(){$(window).resize(function(){clearInterval(l);$(".selected").trigger("click")})}var e,t=$(".news-headlines"),n=$(".news-headlines li"),r=$(".news-headlines li:nth-child(1)"),i=$(".news-preview"),s=$(".news-headlines").children(":not(.highlight)").index(),o=parseInt(r.css("padding-top").replace("px",""),10)+parseInt(r.css("padding-bottom").replace("px",""),10),u=parseInt(r.css("margin-top").replace("px",""),10)+parseInt(r.css("margin-bottom").replace("px",""),10),a=parseInt($(".news-content").css("padding-top").replace("px",""),10)+parseInt($(".news-content").css("padding-bottom").replace("px",""),10),f=5e3,l=null,c=null,h=null,p=1,d=null;t.append('<li class="highlight nh-anim"></li>');e=$(".highlight");n.addClass("nh-anim");$(".news-content").on("mouseover",function(){clearInterval(l)});$(".news-content").on("mouseout",function(){m()});g();y();$(".selected").trigger("click")})