/
home
/
mantaraham
/
public_html
/
js
/
File Upload :
llllll
Current File: /home/mantaraham/public_html/js/spiral.js
// Scroll on Target (function($){ $(window).load(function(){ $(".nav a[href*='#']").mPageScroll2id({ highlightSelector:".nav a", offset:0, scrollEasing: "easeOutCubic", highlightClass: "active" }); }); })(jQuery); $('.section').each(function() { var content = $(this).find(".content"); if ($(window).height()>content.height()) { var padding = ($(window).height()-content.height())/2; var height = $(window).height(); content.css({ height: height, paddingTop: padding }); }; }); $(window).resize(function(event) { $('.section').each(function() { var content = $(this).find(".content"); if ($(window).height()>content.height()) { var padding = ($(window).height()-content.height())/2; var height = $(window).height()-padding; content.css({ height: height, paddingTop: padding }); }; }); }); $(document).ready(function(){ $(".signup button").click(function() { $(".signup .loading").html('<img src="images/ajax-loader.gif" /> در حال ارسال اطلاعات'); var fullname = $('.signup input[name=fullname]').val(); var yourmail = $('.signup input[name=yourmail]').val(); var job = $('.signup input[name=job]').val(); var email = $('.signup input[name=email]').val(); var captcha = $('.signup input[name=captcha]').val(); var request = $.ajax({ type: "POST", url: "signup.php", data: "fullname="+ fullname + "&yourmail=" + yourmail + "&job=" + job + "&captcha=" + captcha + "&email=" + email , dataType: "json", success: function(data) { if(data.status == 'success') $('.signup form').fadeOut(function(){ $(".signup .loading").html('<br><h3 style="color:green">به جمع ما خوش آمدید!</h3>برای نمایش عکستان از <a href="/web/20160610233419/https://fa.gravatar.com/" target="_blank" rel="nofollow">Gravatar</a> استفاده می کنیم. پیشنهاد میشود حتما عکستان را در گراواتار آپلود کنید! و اگر نمیدانید چطور، برای آموزش درج عکستان <a href="/web/20160610233419/http://1admin.ir/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-%D9%82%D8%B1%D8%A7%D8%B1-%D8%AF%D8%A7%D8%AF%D9%86-%D8%B9%DA%A9%D8%B3-%D8%A8%D8%B1%D8%A7%DB%8C-%D8%AF%D8%B1-gravatar/" target="_blank" rel="nofollow">اینجا را بخوانید</a>.<br>ضمنا اگر در سایت <a href="https://atbox.io/?l=fa" target="_blank" rel="nofollow"> اتباکس </a> پروفایل دارید، عکستان به رزومه شما لینک خواهد شد.'); }); else if(data.status == 'empty') {$(".signup .loading").html('<p style="color:red">تمام فیلدها را پر کنید!</p>'); } else if(data.status == 'captcha') {$(".signup .loading").html('<p style="color:red">شماره را اشتباه وارد کردید!</p>'); } else if(data.status == 'error') { $(".signup .loading").html('<p style="color:red">احتمالا ایمیل شما قبلا ثبت شده است!</p>'); } else {$(".signup .loading").html('<p style="color:red">مشکلی در ثبت اطلاعات پیش آمده!</p>');}; } }); return false; }); $("input[name=fullname] , input[name=job] , input[name=yourmail]").focus(function(){ $(".captcha").fadeIn(); }); $(".supporters button").click(function(){ $(this).fadeOut(); $(".showmore .loading").fadeIn(); $(".showmore").load("allrecords.php", function(responseTxt, statusTxt, xhr){ if(statusTxt == "success") $(".showmore .loading").fadeOut(); if(statusTxt == "error") alert("Error: " + xhr.status + ": " + xhr.statusText); }); }); $(".supporters .pagination a").click(function(){ $clicked = $(this); $n = $(this).html(); $(".supporters ul li").fadeOut(); $(".supporters .loading").fadeIn(); $.get("allrecords.php?pageid="+$n, function(data, status){ if(status == "success") { $(".supporters .loading").fadeOut(); $(".supporters ul").html(data); $(".supporters .pagination a").removeClass('activepage'); $clicked.addClass('activepage'); } if(status == "error") alert("Error!"); }); }); $('.signup input').tooltipster({ animation: 'fade', delay: 0, position: 'top', touchDevices: true, trigger: 'click' }); $('.menu-toggle').on('click', function(){ $(this).toggleClass('open'); $('.menu-wrapper').slideToggle(); }); });
Copyright ©2k19 -
Hexid
|
Tex7ure