Purple Diaries - The Best Free Online Journal & Online Diary
[\\s\\S]*?',
'gi');
function iso88599Escape(strText){
return encodeURI(strText);
}
function removeTags(html) {
var oldHtml;
do {
oldHtml = html;
html = html.replace(tagOrComment, '');
} while (html !== oldHtml);
return html.replace(/ tsay){
setTimeout(function(){
if($(kontrol_class).length > 0){
if($(kontrol_class).val() == 1){
msg_buton_kilitle('irt_form_submit',false);
}else{
msg_buton_kilitle('irt_form_submit',true);
}
}else{
yuklendiyse_sonuc_kontrol(tsay,maxs, kontrol_class);
}
}, 500);
}
}//func
function msg_buton_kilitle(id,islem){
if(islem == true){
$('#'+id).removeClass('active');
$('#'+id).attr("disabled", true);
$('#'+id).attr("onclick", 'alert("Lütfen önceki işlemin tamamlanmasını bekleyin!");');
$('#'+id).text('LÜTFEN BEKLEYİNİZ...');
}else{
//console.log("işlem tamamlandı")
$('#'+id).addClass('active');
$('#'+id).attr("disabled", false);
$('#'+id).attr("onclick", 'irt_form_kaydet("irt_fismekan");');
$('#'+id).text('MESAJINIZ GÖNDERİLDİ!');
}
}
function localdb_sil(alan){
if(alan) {
localStorage.removeItem(alan);
}}
function localdb_yaz(alan,veri){
if(alan && veri) {
localStorage.setItem(alan, veri);
}}
function localdb_cek(alan){
return localStorage.getItem(alan);
}
function sessiondb_yaz(alan,veri){
if(alan && veri) {
sessionStorage.setItem(alan, veri);
}}
function sessiondb_cek(alan){
return sessionStorage.getItem(alan);
}
function fotomuyaz() {
var fottom = '';
localdb_yaz('fotto', fottom);
}
function sisteme_gir(){
modal_ac('0','basla','modal','fismekan_genel','Login to the System','genel_Modal','/dosyalar/sisteme_giris.asp');
}
function ucretsiz_dene(){
modal_ac('0','basla','modal','fismekan_reg','A NEW ACCOUNT IS BEING CREATED','reg_Modal','/uygulama/yeni_hesap_ac.asp');
}
function sifremi_unuttum(){
modal_ac('0','basla','modal','fismekan_sifre','I Forgot My Password!','sifre_Modal','/uygulama/sifremi_unuttum.asp');
}
function dil_belirle(){
modal_ac('0','basla','modal','fismekan_genel','Please select a language','genel_Modal','/dosyalar/dil_secimi.asp');
}
function modal_ac(id,islem,mekan,fismekan,baslik,modaldiv,urlx){
if($('#myModal').hasClass('in')){
$('#modal_genel_dismis').click();
$('#modal_sifre_dismis').click();
$('#modal_reg_dismis').click();
}
var sc = 'id='+ id+'&islem='+islem+'&modaldiv='+modaldiv;
JXP(1, fismekan, urlx, sc);
var dellay =500;
if(modaldiv=='genel_Modal'){$('#myModalLabel_genel').text(baslik);$('#modal_sifre_dismis').click();$('#modal_reg_dismis').click();dellay =300}
if(modaldiv=='sifre_Modal'){$('#myModalLabel_sifre').text(baslik);$('#modal_genel_dismis').click();$('#modal_reg_dismis').click();dellay =500}
if(modaldiv=='reg_Modal'){$('#myModalLabel_reg').text(baslik);$('#modal_genel_dismis').click();$('#modal_sifre_dismis').click();dellay =500}
setTimeout(function() {$('#'+modaldiv).appendTo("body").modal()}, dellay);
/*
setTimeout(function() {
createRecaptchaModal(modaldiv);
}, 1000);
*/
}
function createRecaptchaModal(modaldiv) {
if($('#'+modaldiv).find('#captcha').length){
grecaptcha.render("captcha", {sitekey: "6LfDkBsTAAAAAHo2z3BCksV4n-Oh05bLTCwJAkjB", theme: "light"});
}
}
function createRecaptcha() {
if($("#captcha").length){
grecaptcha.render("captcha", {sitekey: "6LfDkBsTAAAAAHo2z3BCksV4n-Oh05bLTCwJAkjB", theme: "light"});
}
}
$(document).ready(function() {
/*
if(!jQuery('body').hasClass('boxed')) {
jQuery('body').addClass('boxed');
jQuery("#is_boxed").trigger('click');
cerez_yaz("is_boxed", 'true', 365);
}
*/
var kullad = localdb_cek('pers');
var fotto = localdb_cek('fotto');
var crm_res = '/resimler/avatar/';
$('#genel_Modal').on('shown.bs.modal', function (event) {
var delay=300; //1 seconds
setTimeout(function(){
if(kullad){
$('#genel_Modal').find('#fismekan_genel #kad').val(kullad);
$('#genel_Modal').find('#fismekan_genel #kadx').val(kullad);
$('#genel_Modal').find('#fismekan_genel #otacik').prop('checked', true);
}
if(fotto){
$('#genel_Modal').find('#fismekan_genel #fotto').attr("src",crm_res+''+fotto);
}
$('#genel_Modal').find('#fismekan_genel #logbtn').removeClass('hidden');
}, delay);
//KARAKTER TEMİZLEME
var moddalim_karakter = "genel_Modal";
setTimeout(function(){
yuklendiyse_patternle(1,20,moddalim_karakter, '.kar_tem_func', 'regx')
}, 0);
})//.on
$('#genel_Modal').on('hide.bs.modal', function () {
$('#genel_Modal').find('#captcha').empty();
})
$('#sifre_Modal').on('shown.bs.modal', function (event) {
//KARAKTER TEMİZLEME
var moddalim_karakter = "sifre_Modal";
setTimeout(function(){
yuklendiyse_patternle(1,20,moddalim_karakter, '.kar_tem_func', 'regx')
}, 0);
})//.on
$('#sifre_Modal').on('hide.bs.modal', function () {
$('#sifre_Modal').find('#captcha').empty();
})
$('#reg_Modal').on('shown.bs.modal', function (event) {
//KARAKTER TEMİZLEME
var moddalim_karakter = "reg_Modal";
setTimeout(function(){
yuklendiyse_patternle(1,20,moddalim_karakter, '.kar_tem_func', 'regx')
}, 0);
})//.on
$('#reg_Modal').on('hide.bs.modal', function () {
$('#reg_Modal').find('#captcha').empty();
})
$("body").on('keyup', "#sifrex", calculate);
});//ready
function tirnaklari_temizle(t){
if(t){
t = replaceAll(t,"&","|and|")
t = replaceAll(t,"#","|diyez|")
t = replaceAll(t,"'","|tekt|")
t = replaceAll(t,"\"","|cift|")
t = replaceAll(t,"\n","|enter|")
return t
}//else{console.log("Missing parameter!")}
}//func
function chartem(){
//KARAKTER TEMİZLEME
var moddalim_karakter = '';
setTimeout(function(){
var selc = $('.kar_tem_func')
if(selc.length > 0){
selc.keyup(function() {
if($(this).attr('id') && $(this).attr('regx')){
clearInput_regx(moddalim_karakter,$(this).attr('id'),$(this).attr('regx'),0,0,0);
}else{console.log("clearInput_regx parametreleri elde edilemedi-> "+$(this).attr('id') + " - " +$(this).attr('regx'))}
});
}
}, 0);
}//func
function html_cevir(txt){
if(txt){
return txt.replace(/\n/g, "
");
}
}
var calculate = function() {
var value = $('#genel_Modal').find('#fismekan_genel #sifrex').val();
$('#genel_Modal').find('#fismekan_genel #sifre').val( value );
}
function yuklendiyse_patternle(tsay,maxs,moddalim_karakter, kontrol_class, atrm){
tsay = tsay + 1
//console.log(tsay+' - '+maxs)
if(maxs > tsay){
setTimeout(function(){
if($('#'+moddalim_karakter).find('.modal-body').contents().find(kontrol_class).length > 0){
setTimeout(function(){
var selc = $('#'+moddalim_karakter).find('.kar_tem_func')
if(selc.length > 0){
selc.keyup(function() {
if($(this).attr('id') && $(this).attr('regx')){
clearInput_regx(moddalim_karakter,$(this).attr('id'),$(this).attr('regx')); // /[^a-z0-9-. _]/gi
}else{console.log("clearInput_regx parametreleri elde edilemedi-> "+$(this).attr('id') + " - " +$(this).attr('regx'))}
});
}
}, 0);
}else{
yuklendiyse_patternle(tsay,maxs,moddalim_karakter, kontrol_class, atrm);
}
}, 500);
}
}//func
function escapeRegExp(str) {
return ("" + str).replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
}
function replaceAll(str, find, replace) {
return ("" + str).replace(new RegExp(escapeRegExp(find), 'g'), replace);
}
function clearInput_regx(modaldiv,id,regx) {
if(id && regx){
//console.log(regx)
if(modaldiv){
var selcc = $("#" + modaldiv).find("#"+id)
}else{
var selcc = $("#" + id)
}
if(selcc.length > 0){
//selcc.val(selcc.val().replace(new RegExp(regx),""));
selcc.val(selcc.val().replace(new RegExp(regx, 'g'), ""));
}else{console.log("clearInput_regx element belirlenemedi-> "+modaldiv+" - "+id + " - " +regx)}
}else{console.log("clearInput_regx parametreleri elde edilemedi-> "+modaldiv+" - "+id + " - " +regx)}
}//func
function sifre_frm(){
var emailno = $('#sifre_Modal').find('#fismekan_sifre #emailno').val();
if(!emailno){
alert("Please enter the e-mail address you entered while you were registering for the system!")
}else{
var urlx = '/uygulama/sifremi_unuttum.asp';
//var response22 = grecaptcha.getResponse();
var response22 = 1;
if(response22.length == 0){
var rbt = "";
}else{
var rbt = 1;
}
if(rbt){
$('#sifre_Modal').find('#fismekan_sifre #logbtn').attr("disabled", true);
$('#sifre_Modal').find('#fismekan_sifre #logbtn').html(' PLEASE WAIT...');
$.ajax({
type: 'POST',
url: urlx,
data: $('form#sifre_form').serialize(),
success: function(hesapCevap) {
if(hesapCevap) {
var b = hesapCevap;
var temp = new Array();
temp = b.split('');
c = temp[1];
var sonuc = new Array();
sonuc = c.split('');
var b2 = hesapCevap;
var temp3 = new Array();
temp3 = b2.split('');
c2 = temp3[1];
var aciklama = new Array();
aciklama = c2.split('');
if(sonuc[0]!=1){
alert(aciklama[0]);
$('#sifre_Modal').find('#fismekan_sifre #logbtn').attr("disabled", false);
$('#sifre_Modal').find('#fismekan_sifre #logbtn').html(' SEND THE PASSWORD CLUE');
}else{
$('#sifre_Modal').find('#fismekan_sifre #sifre_sonuc').text(aciklama[0]);
$('#sifre_Modal').find('#fismekan_sifre #logbtn').attr("disabled", true);
$('#sifre_Modal').find('#fismekan_sifre #logbtn').html(' MAIL HAS BEEN SENT');
//window.location.reload();
//window.location.href='/uygulama/';
}
}//hesapCevap <>
else{alert("Sunucudan yanıt alınamadı!");
$('#sifre_Modal').find('#fismekan_sifre #logbtn').attr("disabled", true);
$('#sifre_Modal').find('#fismekan_sifre #logbtn').html(' PLEASE WAIT...');
}
}
});
}else{
alert("Please click I'M NOT A ROBOT button!");
}
}
}//func
function login_frm(){
var fkodu = 'F1001'//$('#genel_Modal').find('#fismekan_genel #fkodux').val();
var kad = $('#genel_Modal').find('#fismekan_genel #kadx').val();
var sifre = $('#genel_Modal').find('#fismekan_genel #sifrex').val();
var otacik = $('#genel_Modal').find('#fismekan_genel #otacik').is(":checked");
sifre = replaceAll(sifre,"\"","")
//alert(kad+' - '+otacik);
if(kad && sifre && fkodu){
$('#genel_Modal').find('#fismekan_genel #kad').val(kad);
$('#genel_Modal').find('#fismekan_genel #fkodu').val(fkodu);
var urlx = '/uygulama/yonetici_login.asp';
//var response11 = grecaptcha.getResponse();
var response11 = 1;
if(response11.length == 0){
var rbt = "";
}else{
var rbt = 1;
}
if(rbt){
var sc = 'kad='+kad+'&sifre='+sifre+'&fkodu='+fkodu;
$('#genel_Modal').find('#fismekan_genel #logbtn').attr("disabled", true);
$.ajax({
type: 'POST',
url: urlx,
data: $('form#yonform').serialize(),
success: function(hesapCevap) {
if(hesapCevap) {
var b = hesapCevap;
var temp = new Array();
temp = b.split('');
c = temp[1];
var sonuc = new Array();
sonuc = c.split('');
var b2 = hesapCevap;
var temp3 = new Array();
temp3 = b2.split('');
c2 = temp3[1];
var aciklama = new Array();
aciklama = c2.split('');
var b3 = hesapCevap;
var temp4 = new Array();
temp4 = b3.split('');
c3 = temp4[1];
var uyg_url = new Array();
uyg_url = c3.split('')[0];
if(hesapCevap.indexOf("") != -1){
var b4 = hesapCevap;
var temp5 = new Array();
temp5 = b4.split('');
var avt = temp5[1];
var avtr = new Array();
avtr = avt.split('')[0];
if(avtr){localdb_yaz('fotto', avtr);}else{localdb_sil('fotto');}
}else{localdb_sil('fotto');}
if(sonuc[0]!=1){
if(sonuc[0]==2){
window.location.href=aciklama[0];
}else{
alert(aciklama[0]);
$('#genel_Modal').find('#fismekan_genel #logbtn').attr("disabled", false);
}//sonuc <> 2
}else{
if (otacik===true){
localdb_yaz('pers', kad);
}else{
localdb_sil('pers');
}
//window.location.reload();
if (uyg_url){
var temp15 = new Array();
uyg1 = uyg_url.split('?oto')[0];
$('#uyg_url').val(uyg1);
localdb_yaz('uyg_url', uyg1);
//console.log(uyg_url);
window.location.href=uyg_url;//'/uygulama/';
}else{console.log("Application server information could not be obtained!");}
}
}//hesapCevap <>
else{alert("Server isn't responding!");
$('#genel_Modal').find('#fismekan_genel #logbtn').attr("disabled", true);
}
}
});
//JXP(1, "fismekan_genel", urlx, sc);
}else{
alert("Please click I'M NOT A ROBOT button!");
}
}else{alert("Please enter your user information!")}
}
function karakter_temizle(id) {
var charMap = {Ç:'C',Ö:'O',Ş:'S',İ:'i',I:'i',Ü:'U',Ğ:'G',ç:'c',ö:'o',ş:'s',ı:'i',ü:'u',ğ:'g'};
var str = $('#genel_Modal').find('#fismekan_genel '+id).val();
//var str = $("#" + id).val();
str_array = str.split('');
for(var i=0, len = str_array.length; i < len; i++) {
str_array[i] = charMap[ str_array[i] ] || str_array[i];
}
str = str_array.join('');
var clearStr = str.replace(" ","_").replace("__","_").replace(/[^a-zA-Z0-9]/g,"");
$('#genel_Modal').find('#fismekan_genel '+id).val(clearStr);
return clearStr
}//func
function reg_frm(){
var kad = "";
var terms = $('#reg_Modal').find('#fismekan_reg #terms').is(":checked");
var bildirim_yapp = $('#reg_Modal').find('#fismekan_reg #bildirim_yapp').is(":checked");
var sifre_kayip_kabul = $('#reg_Modal').find('#fismekan_reg #sifre_kayip_kabul').is(":checked");
//console.log(terms)
if(sifre_kayip_kabul){
if(terms){
/*var kadL = karakter_temizle("#kadx2")
kadL = iso88599Escape(kadL);
console.log(kadL)
*/
var kadL = $('#reg_Modal').find('#fismekan_reg #kadx2').val();
var sifre = $('#reg_Modal').find('#fismekan_reg #sifrex2').val();
var sifre_tekrar = $('#reg_Modal').find('#fismekan_reg #sifrex3').val();
var email = $('#reg_Modal').find('#fismekan_reg #emailx').val();
var sifre_ipucu = $('#reg_Modal').find('#fismekan_reg #sifre_ipucu').val();
var acik_gunluk_kullanimi_aktif = $('#reg_Modal').find('#fismekan_reg #acik_gunluk_kullanimi_aktif').val();
//var kadL = kad.toLowerCase()
if(kadL && (kadL == "admin" || kadL == "admın" || kadL == "eser" || kadL == "purple-diaries" || kadL == "purplediaries" || kadL == "administrator" || kadL == "admınıstrator" || kadL == "sistem" || kadL == "system") ){
alert("Please enter a different username!\n\n");
}else{//kad kont
if(kadL.length < 3){ alert("Please make sure you filled the username field.\n\nATTENTION: Username should consist of at least 3 characters!\n\n")
}else{ //kad kont iç
if((email.length < 7 || email.indexOf("mvrht.") != -1 || email.indexOf("@ziyap.") != -1 || email.indexOf("send22u.info") != -1 || email.indexOf("ugimail.") != -1 || email.indexOf("20boxme.") != -1 || email.indexOf("mail4-us.") != -1 || email.indexOf("crypemail.") != -1 || email.indexOf("youzend.") != -1 || email.indexOf("kumail8.") != -1 || email.indexOf("endrix.") != -1 || email.indexOf("0mixmail.") != -1 || email.indexOf("cryp.email") != -1 || email.indexOf("69postix.") != -1 || email.indexOf("mozej.com") != -1 || email.indexOf("emailo.") != -1 || email.indexOf("mailna.") != -1 || email.indexOf("mohmal.") != -1 || email.indexOf("13dk.") != -1 || email.indexOf("@giyam.") != -1 || email.indexOf("vmani.") != -1 || email.indexOf("nwytg") != -1 || email.indexOf("superrito") != -1 ))
{
alert("Please enter a valid e-mail address!\n\n");
}else{//mail kont
if(sifre.length < 8){ alert("Password should be at least 8 characters!\n\n")
}else{ //şifre kont
if(sifre !== sifre_tekrar){ alert("Password and password repetition fields aren't the same!\n\n")
}else{ //şifre kont iç
if(sifre_ipucu.length < 1){ alert("Make sure you filled the password reminder clue field!
If you forget your password it won't be possible to access your account!\n\n")
}else{ //şifre ipucu
if(kadL && sifre && sifre_tekrar && email && sifre_ipucu){
$('#reg_Modal').find('#fismekan_reg #kad2').val(kadL);
$('#reg_Modal').find('#fismekan_reg #sifre2').val(sifre);
$('#reg_Modal').find('#fismekan_reg #sifre3').val(sifre_tekrar);
$('#reg_Modal').find('#fismekan_reg #email').val(email);
$('#reg_Modal').find('#fismekan_reg #sifre_ipucu2').val(sifre_ipucu);
$('#reg_Modal').find('#fismekan_reg #terms2').val(terms);
$('#reg_Modal').find('#fismekan_reg #bildirim_yapp2').val(bildirim_yapp);
$('#reg_Modal').find('#fismekan_reg #sifre_kayip_kabul2').val(sifre_kayip_kabul);
var urlx = '/uygulama/yeni_hesap_ac.asp';
//var response33 = grecaptcha.getResponse();
var response33 = 1;
if(response33.length == 0){
var rbt = "";
}else{
var rbt = 1;
}
if(rbt){
$('#reg_Modal').find('#fismekan_reg #logbtn').attr("disabled", true);
$('#reg_Modal').find('#fismekan_reg #logbtn').attr("href", '#');
$('#reg_Modal').find('#fismekan_reg #logbtn').addClass('active');
$('#reg_Modal').find('#fismekan_reg #logbtn').html(' Registration is being completed. Please wait...');
$.ajax({
type: 'POST',
url: urlx,
data: $('form#yonform22').serialize(),
success: function(hesapCevap) {
if(hesapCevap) {
var b = hesapCevap;
var temp = new Array();
temp = b.split('');
c = temp[1];
var sonuc = new Array();
sonuc = c.split('');
var b2 = hesapCevap;
var temp3 = new Array();
temp3 = b2.split('');
c2 = temp3[1];
var aciklama = new Array();
aciklama = c2.split('');
if(sonuc[0]!=1){
alert(aciklama[0]);
$('#reg_Modal').find('#fismekan_reg #logbtn').attr("disabled", false);
$('#reg_Modal').find('#fismekan_reg #logbtn').attr("href", 'javascript:reg_frm();');
$('#reg_Modal').find('#fismekan_reg #logbtn').removeClass('active');
$('#reg_Modal').find('#fismekan_reg #logbtn').text('CREATE MY ACCOUNT');
}else{
localdb_yaz('pers', kadL);
$('#reg_Modal').find('#fismekan_reg #kayit_sonuc').html(aciklama[0]);
$('#reg_Modal').find('#fismekan_reg #logbtn').removeClass('active');
$('#reg_Modal').find('#fismekan_reg #logbtn').attr("disabled", true);
$('#reg_Modal').find('#fismekan_reg #logbtn').attr("href", '#');
$('#reg_Modal').find('#fismekan_reg #logbtn').text('Action is complete!');
}
}//hesapCevap <>
else{alert("Server isn't responding!");
$('#reg_Modal').find('#fismekan_reg #logbtn').attr("disabled", true);
$('#reg_Modal').find('#fismekan_reg #logbtn').attr("href", '#');
$('#reg_Modal').find('#fismekan_reg #logbtn').removeClass('active');
$('#reg_Modal').find('#fismekan_reg #logbtn').text('CREATE MY ACCOUNT');
}
}
});
//JXP(1, "fismekan_genel", urlx, sc);
}else{
alert("Please click I'M NOT A ROBOT button!");
$('#reg_Modal').find('#fismekan_reg #logbtn').removeClass('active');
$('#reg_Modal').find('#fismekan_reg #logbtn').attr("disabled", false);
$('#reg_Modal').find('#fismekan_reg #logbtn').attr("href", 'javascript:reg_frm();');
$('#reg_Modal').find('#fismekan_reg #logbtn').text('CREATE MY ACCOUNT');
}
}else{alert("Please make sure you filled the registration form completely and correctly!");$('#reg_Modal').find('#fismekan_reg #logbtn').removeClass('active'); $('#reg_Modal').find('#fismekan_reg #logbtn').attr("disabled", false); $('#reg_Modal').find('#fismekan_reg #logbtn').attr("href", 'javascript:reg_frm();'); $('#reg_Modal').find('#fismekan_reg #logbtn').text('CREATE MY ACCOUNT');}
}//şifre ipucu
}//şifre kont iç
}//şifre kont
}//mail kont
}//kad kont iç
}//kad kont
}else{alert("Please confirm you read and understood our User Agreement!"); $('#reg_Modal').find('#fismekan_reg #logbtn').removeClass('active'); $('#reg_Modal').find('#fismekan_reg #logbtn').attr("disabled", false); $('#reg_Modal').find('#fismekan_reg #logbtn').attr("href", 'javascript:reg_frm();'); $('#reg_Modal').find('#fismekan_reg #logbtn').text('CREATE MY ACCOUNT');}
}else{alert("Please confirm you understood that if you forget your password, you can lose your account completely and permanently!"); $('#reg_Modal').find('#fismekan_reg #logbtn').removeClass('active'); $('#reg_Modal').find('#fismekan_reg #logbtn').attr("disabled", false); $('#reg_Modal').find('#fismekan_reg #logbtn').attr("href", 'javascript:reg_frm();'); $('#reg_Modal').find('#fismekan_reg #logbtn').text('CREATE MY ACCOUNT');}
}//func
function uygulamaya_gir(){
var term_ad = $('#uyg_url').val();
var term_ad2 = localdb_cek('uyg_url');
if (term_ad){
window.location.href = term_ad
}else{
if (term_ad2){
window.location.href = term_ad2
}else{alert('Uygulama sunucunuz belirlenemedi!\n\nLütfen giriş yaparak tekrar deneyiniz..')}
}
}//func
$(function() {
$( "#search_blog" ).keyup(function() {
addAutocomplete2('#search_blog','','');
});
$( "#search_yardim" ).keyup(function() {
addAutocomplete2('#search_yardim','','');
});
$(document).on('change', '.chck_blog', function() {
if(this.checked) {
if(this.id) {
var urlx = '/dosyalar/blog_puanla.asp';
var sc = 'islem=ekle&bid='+ this.id
//alert(urlx+'?'+sc)
JXP(0, 'blog_like', urlx, sc);
}else{alert("Parametre eksik!")}
}
});
setTimeout(function(){
buttla(1,40)
}, 0);
chartem();
})//$func
function form_gonder_iletisim(frm){
var adi = $('#adi').val();
var email = $('#email').val();
var mesaj = $('#mesaj').val();
if(adi == 'undefined'){adi = ''}
if(email == 'undefined'){email = ''}
if(mesaj == 'undefined'){mesaj = ''}
if(adi == '' || email == '' || mesaj == ''){
alert("Please make sure you filled all the fields in the form!")
}else{
adi = tirnaklari_temizle(adi);
adi = iso88599Escape(adi);
email = tirnaklari_temizle(email);
email = iso88599Escape(email);
mesaj = tirnaklari_temizle(mesaj);
mesaj = iso88599Escape(mesaj);
var sc = 'formx='+frm+'&and_temizle=1&adi='+adi+'&email='+email+'&mesaj='+mesaj;
var urlx = 'mesaj_birak.asp';
msg_buton_kilitle('iletisim_btn',true)
//console.log(urlx+'?'+sc);
$.ajax({
url: urlx,
data: sc,
cache: false,
error: function(e){
var res = e.split("");
var donen = res[1].split("");
alert(donen[0]);
},
success: function(response){
var res = response.split("");
var donen = res[1].split("");
var res_class = response.split("");
var donen_class = res_class[1].split("");
alert(donen[0])
}
});//ajax
}//<> ""
}//func
function buttla(tsay,maxs){
tsay = tsay + 1
if(maxs > tsay){
setTimeout(function(){
if($( "#preloader" ).length==0){
if($( "a[name='ucdenbut']" ).length>0){
setTimeout(function(){
$( "a[name='ucdenbut']" ).addClass("element-video");
}, 500);
}else{console.log("Element bulunamadı!")}
}else{
buttla(tsay,maxs)
}
}, 500);
}
}//func
$(document).ready(function(){
$("#gbuton").click(function(){
var deger = $("#email").val();
var degerler = 'email='+deger;
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(deger))
{
$.ajax({
type: "post",
url: "/dosyalar/maillist_kayit.asp",
data : degerler,
success : function(b){
var hatatemp = new Array();
hatatemp = b.split('');
var hatatemp1 = hatatemp[1];
var hatatemp2 = new Array();
hatatemp2 = hatatemp1.split('');
var cevap = hatatemp2[0];
if (cevap){alert(cevap);}else{alert('Hata oluştu!\n\nLütfen tekrar deneyiniz...');}
}
});
} //reg
else{alert('Hata oluştu!\n\nLütfen geçerli bir mail adresi giriniz...');}
});
});
function custom_alert(txt,cls) {
if(!cls){cls = 'info'}
if(cls == '' ){cls = 'info'}
txt = html_cevir(txt);
txt = ''+txt+'
';
swal({
title: '',
html: txt,
type: cls,
animation: true,
confirmButtonText: "OK",
confirmButtonClass: 'btn btn-success',
customClass: 'animated tada '+cls+''
})
}//func
function custom_confirm(txt) {
var text_len = txt.length;
if(text_len <= 400){var customClass1 = ''}
else if(text_len > 400){
var customClass1 = 'sweetalert-lg'
}
txt = html_cevir(txt);
swal({
html: true,
title: "Onaylayınız",
text: ""+txt+"",
type: "success",
showCancelButton: true,
cancelButtonText: "İPTAL",
cancelButtonColor: "#DD4B39",
confirmButtonColor: "#00A65A",
confirmButtonText: "ONAYLIYORUM",
closeOnConfirm: true,
customClass: customClass1,
},
function(){
swal("Onaylandı", "Onaylama tamamlandı", "success");
}
);
}