function jb_doLinks(text) { if(!text){ return text; } if(text.match(/Download Link: /i)) { text=text.replace(/((https?\:\/\/|ftp\:\/\/)|(www\.))(\S+)(\w{2,4})(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/gi,function(url){ if(!url.match('^https?:\/\/')){ url = 'http://'+url; } var txt=''; txt += 'Click Here'; txt += ''; return txt; }); } else { text = text.replace(/((https?\:\/\/|ftp\:\/\/)|(www\.))(\S+)(\w{2,4})(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/gi,function(url){ if(!url.match('^https?:\/\/')){ url = 'http://'+url; } return ''+ url +''; }); } return text; } function jb_doSmileys(text) { text = text.replace(':)', ''); text = text.replace(':-)', ''); text = text.replace(':(', ''); text = text.replace(':-(', ''); text = text.replace(';)', ''); text = text.replace(';-)', ''); text = text.replace(';(', ''); text = text.replace('B-)', ''); text = text.replace('B)', ''); text = text.replace(':D', ''); text = text.replace(':-D', ''); text = text.replace(':o', ''); text = text.replace(':O', ''); text = text.replace(':-o', ''); text = text.replace(':-O', ''); text = text.replace(':-3', ''); return text; } function jb_doReplace(text) { text = jb_doLinks(text); text = jb_doSmileys(text); return text; } var trans_me="moi"; var jb_says="dit..."; var jb_offlinemsg="La personnne est hors ligne."; var jb_awaymsg="La personne est partie."; var jb_abs_link="https://cinecomics.fr/"; var jb_self_id="0"; var jb_maxChatHeartbeat="30"; jb_maxChatHeartbeat=jb_maxChatHeartbeat*1000; var is_su=0; var chat_status_array = new Array(); chat_status_array.push("Invisible"); chat_status_array.push("Disponible"); chat_status_array.push("Partie"); var chat_config_array = new Array(); chat_config_array.push("1"); chat_config_array.push("0"); chat_config_array.push(""); chat_config_array.push("0"); var jb_transstring={ "VIEW_HIST":"Voir l'historique", "SEND_FILE":"Envoyer le fichier", "CLEAR_CONV":"Effacer la conversation", "STATUS_MES_LIM": "Le message de statut ne peut pas dépasser 140 caractères", "STATUS_MES_PROMPT": "Entrer votre message d'accueil", "FILE_UPLOAD_ERR" : "Désolé, votre fichier n'a pas été téléchargé: ", "FILE_UPLOADING":"Téléchargement", "ADD_ACTIVITY":"Add activity to ticket", "CHAT_WINDOW_EMPTY":"Chat window is empty!", "ADD_ACTIVITY_PROMPT_MSG":"Do you want to add this chat as an activity to ticket?" } function showchatdiv(obj1){ jQuery('#ch_box_status').toggle(); }