Server IP : 80.241.246.6 / Your IP : 216.73.216.188 Web Server : Apache/2.4.25 (Debian) System : Linux kharagauli 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64 User : www-data ( 33) PHP Version : 7.0.33-0+deb9u12 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/kharagauli1/templates/game_on/js/ |
Upload File : |
var body_height = window.innerHeight/4; $.fn.scrollToTop = function(){ $(this).hide(); if($(window).scrollTop() != "0") $(this).fadeIn("slow"); var scrollDiv = $(this); $(window).scroll(function(){ if ($(window).scrollTop() == "0") $(scrollDiv).fadeOut("slow"); else $(scrollDiv).fadeIn("slow"); }); $(this).click(function(){ $("html, body").animate({scrollTop: 0},"slow"); }); }; var main_message = {}; $(document).ready(function(){ //if(parseInt($('#content').height()) < parseInt($("#sidebar").height())) { // setTimeout(function () { // $('#content').height(($("#sidebar").height()) + "px"); // }, 100); //} $("#site_up").scrollToTop(); $('.nav li:has(ul),#navigation li:has(ul)').addClass('_haser').hover(function(){ $(this).toggleClass('_haser_1'); }); $('#navigation > .top_level > li:first').siblings().addClass('_haser'); ///new $('#navigation li:has(ul)').addClass('_haser').prepend($("<div>",{class:"_clicker",click:function(){ //$(this).parent().toggleClass("haser_1"); var ths = $(this); $(this).parent().siblings('.haser_1').removeClass('haser_1').find('ul').slideUp(); //$('#content').height($('#content').height() - $('#navigation').height()); if($("ul:first",$(this).parent()).is(":visible")){ $("ul:first",$(this).parent()).slideUp(); ths.parent().toggleClass("haser_1"); //if(parseInt($('#content').height()) > parseInt($("#sidebar").height())) // $('#content').height(($("#sidebar").height()) + "px"); } else { // $('#content').height($('#content').height() + $('#navigation').height()); $("ul:first",$(this).parent()).slideDown(function(){ ths.parent().toggleClass("haser_1"); //if(parseInt($('#content').height()) < parseInt($("#sidebar").height())) // $('#content').height(($("#sidebar").height()) + "px"); }); } }})); ///new/// var hr_ = urldecode(location.href).split('/'); if(hr_.length > 3){ var _href_ = hr_.pop(); $('a[href="/'+_href_+'"]').parent().addClass('active').find('span.for_color').show(); } if($.browser.mozilla){ $('#templatemo_header #header_titles div').css("fontSize","23px"); $('#templatemo_header #header_titles div:first').css({ position:"absolute", left:"1px" }); $('#templatemo_header #header_titles div:last').css({ position:"absolute", left:"54%", fontSize:"22px" }); } // $('#onclicker_ li').mouseover(function(){ // if($(this).is('.bla_')){ // $(this).animate({marginLeft:"0px"},100).removeClass("bla_"); // }else{ // $(this).animate({marginLeft:"-30px"},100).addClass("bla_"); // } // // }); $('.contacts_active').click(function(){ contacts_active_click(this); }); }); function contacts_active_click(ths){ var whu = '#contact_form'; var string_name = $(ths).attr('app') || $(ths).text(); var app_ = ""; if(string_name.indexOf('შეგვეკითხეთ') >= 0) app_ = 0; else if(string_name.indexOf("მოადგილეს") >= 0) app_ = 2; else app_ = 1; if(!$(whu).is('.skjdfhskdjf')){ $(whu).animate({top:(window.innerHeight / 2 - (365/2)+$(window).scrollTop())+"px"},700).addClass('skjdfhskdjf').attr("app",app_); $('.string_name',whu).html(string_name); var one = parseInt(Math.random()*10)+5; var two = parseInt(Math.random()*10)+5; $('#for_span').empty(); $('<span class="first_math">'+one+'</span><span>+</span><span class="second_math">'+two+'</span> = ').prependTo('#for_span'); $("#contact_form input:text,#contact_form .contaqt_email,#contact_form textarea").val(""); }else $(whu).animate({top:-(365+body_height)+"px"},700).removeClass('skjdfhskdjf'); } function contact_form_button_click(ths){ var frm = $('#contact_form'); if(!inp() || $('.input_red').length || $('.add_red_colored').length){ var maines_message = (maines_contact(main_message))?maines_contact(main_message):'შეავსეთ ყველა ველი!!!'; $.alerts.alert(maines_message,'message!'); }else if(parseInt($('.first_math').html()) + parseInt($('.second_math').html()) != parseInt($('.captcha').val())){ $.alerts.alert("დამცავი კოდი არასწორია!",'message!'); }else{ $(ths).removeClass('input_red'); var contact_obj = { name : $('#contact_form .contaqt_name').val(), email: $('#contact_form .contaqt_email').val(), text : $('#contact_form .contaqt_text').val(), app: frm.attr("app") }; $.ajax({ url:'/view/ajax.php', type: 'POST', data: 'contact_send='+JSON.stringify(contact_obj), success : function(data){ if(data && data == 1){ $.alerts.alert('თქვენი შეტყობინება გაიგზავნა!!!','message'); frm.animate({top:"-365px"}); //$('div').css("opacity","1"); } } }); } } function f_s_ch(ths){ var th = $(ths); var app = th.attr("app"); var dv = $("#more_text"); var size = parseInt(dv.css("font-size")); var fix = 13; if((size > (fix + 3) && app == 1) || (size < (fix - 3) && app == 0))return; dv.css("font-size",function(){ return (app == 1)?(size + 1)+"px":(size - 1)+"px"; }); } function maines_contact(a){ var arra = ['email','capcha','body']; if(!Object.keys(a).length)return false; for(var n in a){ if(a[n])return a[n]; } } function inp(){ var ret = true; $('#contact_form input:text').each(function(){ if(!$(this).val().length)ret = false; }); return ret; } function main_contact_close(a){ var th = $(a); var whu = '#contact_form'; $(whu).animate({top:-(365+body_height)+"px"}).removeClass('skjdfhskdjf'); } $(window).bind('load resize',function(){ header_style(); }); function header_style(){ var ww = $(window).innerWidth();//($.browser.chrome)?$(window).innerWidth():screen.width; var sc_ = (ww/2) - ($('#templatemo_header').width()/2); $('#templatemo_header').css({marginLeft:sc_+"px",visibility:"visible"}); $('#templatemo_header #click_ed').css({left:(ww/2)+"px"}); } function urldecode(str) { return decodeURIComponent((str+'').replace(/\+/g, '%20')); } //function _set_cookie(a,b){ // var cookie_name = (typeof b == 'string' || typeof b == 'int')?b:JSON.stringify(b); // $.cookie(a,cookie_name,{ expires: 7, path: '/'}); //} // //function _get_cookie(a){ // return $.cookie(a); //}