We're sorry...

  1. The post is outdated.
  2. The post has been blocked under instructions of the owner.
  3. Ensure words are spelled correctly.
  4. Your search is does not match with any documents.

Go to home

x
$('.youtubeDivs').each(function(){ $(this).removeClass('videoPlaceHolder') $(this).YTPlayer({ fitToBackground: false, videoId: $(this).attr('video-id'), playerVars: { modestbranding: 1, autoplay: 0, controls: 0, showinfo: 0, branding: 0, rel: 0, autohide: 0, start: 0 } }); }) var windowheight = $(window).height(); //alert(windowheight); var chatheight = $('.chat_header').height()+60; //alert(chatheight); var chat_height=(windowheight-chatheight); $('.partners_listing').css('max-height',chat_height); $('.partners_listing').css('overflowY', 'auto'); }); function change_lang(lang){ current_language = lang; if(lang=="en"){ location.reload(); return; } $.getJSON('https://interlet.globalnoticeboard.com/get_language_file.php?language='+lang, function( data ) { window[current_language+'_lang'] = new Array(); $.each( data, function(key, value) { key = key.replace('&', '&'); window[current_language+'_lang'][key.toUpperCase()] = value; }); $("body *[lang='en']").each(function() { var word_that_should_change = $(this).text(); word_that_should_change = word_that_should_change.toUpperCase(); if(window[current_language+'_lang'][word_that_should_change]){ $(this).html(camelize(window[current_language+'_lang'][word_that_should_change])); $(this).attr('lang',current_language) } else{ //Nothing } }) $("input[placeholder]").each( function () { var placeholders_to_change = $(this).attr("placeholder"); if(window[current_language+'_lang'][placeholders_to_change]){ var placeholder_label = $(this).attr("placeholder"); placeholder_label =placeholder_label.toUpperCase() $(this).attr("placeholder", camelize(window[current_language+'_lang'][placeholder_label])); } }); $("optgroup").each( function () { var label = $(this).attr("label"); label = label.toUpperCase(); $(this).attr("label", camelize(window[current_language+'_lang'][label])); }); $('.preload_box').remove().delay( 1000 ); //check_header_menu(); }); } function change_lang_response(response, holder, change_or_append){ var html = $('#processing_holder').html(); if(change_or_append==0){ $(holder).html(response); } else if(change_or_append==1){ $(holder).append(response); } } function camelize(str) { return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function(match, index) { if (+match === 0) return ""; // or if (/\s+/.test(match)) for white spaces return index == 0 ? match.toUpperCase() : match.toLowerCase(); }); } function strip_tags(input, allowed) { input = input.replace(' ',''); allowed = (((allowed || '') + '') .toLowerCase() .match(/<[a-z][a-z0-9]*>/g) || []) .join(''); // making sure the allowed arg is a string containing only tags in lowercase () var tags = /<\/?([a-z][a-z0-9]*)\b[^>]*>/gi, commentsAndPhpTags = /|<\?(?:php)?[\s\S]*?\?>/gi; return input.replace(commentsAndPhpTags, '') .replace(tags, function($0, $1) { return allowed.indexOf('<' + $1.toLowerCase() + '>') > -1 ? $0 : ''; }); } function internal_jgrowl_notification(id,type,to_user_enc){ } function internal_message_notification(id,to_user_enc) { }