Camfrog Room Hosting


Online Video Chat Rooms, Live Streaming Webcam Video Chat Rooms .nav-menu > .nav-btns > .nav-btn’); if (button) { [].slice.call(document.querySelectorAll(‘#nav-static > .nav-sandwich-menu-button, #nav-fixed-menu > .nav-sandwich-menu-button’)) .forEach(function(item) { item.parentNode.insertBefore(button.cloneNode(true), item); }); } var short_nickname = getAvatarNickname(); if (document.querySelector(‘.nav-user-logo’)) { document.querySelector(‘.nav-user-logo’).setAttribute(‘data-nickname’, short_nickname); } var coins_element = document.getElementById(‘header-coins-count’); if (coins_element) { coins_element.innerHTML = (coins_element.getAttribute(‘data-coins’) * 1).toLocaleString(‘en-US’); coins_element.setAttribute(‘title’,(coins_element.getAttribute(‘data-coins’) * 1).toLocaleString(‘en-US’)); } try { checkAds(); } catch(e) {} }); // // Events on scrolling page // window.onscroll = function() { // showFixedNavigation(); // }; // // // // Events on resize page // window.onresize = function() { // setTimeout( // function() { // // }, 500) // }; // Minimal scroll offset for fixed menu var min_fixed_length = 500; // Base URL for download Camfrog var BASE_DOWNLOAD_URL = ‘https://download.camfrog.com/en’; // Get client OS type if (typeof current_os == “undefined”) { current_os = getCurrentClientOs(); } // Maximal width without! parallax effect var max_width_without_parallax = 320; // Client OS params var os_param = { macosx: { img_url: ‘https://static3.camfrogcdn.com/images/mac-device.png’, os_name: ‘Mac OS X’, download_link: ‘https://download.camfrogcdn.com/distr/camfrog_mac.dmg’, class_name: ‘support-slide-mac’, img_alt: ‘Camfrog Video Chat for Mac’ }, android: { img_url: ‘https://static3.camfrogcdn.com/images/android-device.png’, os_name: ‘Android’, download_link: ‘https://play.google.com/store/apps/details?id=com.camshare.camfrog.android’, class_name: ‘support-slide-android’, img_alt: ‘Camfrog Video Chat for Android’ }, ipad: { img_url: ‘https://static3.camfrogcdn.com/images/ios-device.png’, os_name: ‘iOS’, download_link: ‘https://itunes.apple.com/app/id694578768?ls=1&mt=8’, class_name: ‘support-slide-ios’, img_alt: ‘Camfrog Video Chat for iOS’ }, iphone: { img_url: ‘https://static3.camfrogcdn.com/images/ios-device.png’, os_name: ‘iOS’, download_link: ‘https://itunes.apple.com/app/id694578768?ls=1&mt=8’, class_name: ‘support-slide-ios’, img_alt: ‘Camfrog Video Chat for iOS’ }, windows: { img_url: ‘https://static3.camfrogcdn.com/images/win-device.png’, os_name: ‘Windows’, download_link: ‘https://download.camfrogcdn.com/setup/camfrog.exe’, class_name: ‘support-slide-windows’, img_alt: ‘Camfrog Video Chat for Windows’ } }; /** * Clone navigation menu to fixed division */ function cloneNavigationToFixed() { document.getElementById(‘nav-fixed-menu’).innerHTML = document.getElementById(‘nav-static’).innerHTML } /** * Get OS version */ function isBannedDevices() { if (typeof current_os == “undefined”) { current_os = getCurrentClientOs(); } return current_os == ‘android’ || current_os == ‘ipad’ || current_os == ‘iphone’ || getWindowSizes().width .nav-menu’)) .forEach(function(item) { item.addClass(‘device-version’); }); } } // For all pages Menu functions (2 item) /** * Add event to click on user avatar */ function showUserMenu(hide) { [].slice.call(document.querySelectorAll(‘.nav-user-logo + .nav-popover’)) .forEach(function(item) { if (hide) { item.addClass(‘hide’); } else { item.toggleClass(‘hide’); } }); } /** * Add event to click on sandwich button */ function showCollapsedMenu(hide) { [].slice.call(document.querySelectorAll(‘#nav-fixed .nav-menu, #nav-static .nav-menu’)) .forEach(function(item) { if (item.style.height == ‘0px’ && ! hide) { var transition_length = (item.querySelectorAll(‘.nav-menu-links > a, .nav-btns > a:first-child’).length) * 40 + ‘px’; item.style.height = transition_length; if ( ! document.querySelector(‘#wrapper.index-page’) && document.querySelector(‘#content-wrapper.device-version’)) { document.getElementById(‘content-wrapper’).style.paddingTop = transition_length; } } else { item.style.height = 0; if ( ! document.querySelector(‘#wrapper.index-page’) && document.querySelector(‘#content-wrapper.device-version’)) { document.getElementById(‘content-wrapper’).style.paddingTop = 0; } } }); } // For all pages Language functions (3 item) /** * Set cookie language * * @param sel_lang – current language */ function set_cookie(sel_lang){ var now = new Date(); var expires = new Date(now.getTime() + (1000 * 60 * 60 * 24 * 365)); setCookie(‘lang’, sel_lang, expires.toGMTString(), “/”, “.camfrog.com”, true, ‘Lax’); } /** * Change language * * @param sel_lang – language for changing */ function change_lang(sel_lang){ location.replace(“https://www.camfrog.com/en/updateUserLanguage.php?lang_abr=” + sel_lang + “&http_referer=” + encodeURIComponent(window.location.href)); } /** * Show/Hide language panel */ function toggleLangList(type){ type = type || ”; var lang_list = document.getElementById(‘footer-language-form’); if (lang_list) { if (type == ‘show’) { lang_list.addClass(‘show’); } else if (type == ‘hide’) { lang_list.removeClass(‘show’); } else { lang_list.toggleClass(‘show’); } } } function getAvatarNickname(nickname) { if ( ! nickname) { nickname = document.querySelector(‘.nav-popover-username’); if ( ! nickname) { return ”; } nickname = nickname.title; } if ( ! nickname) { return ”; } if (nickname.match(/[a-zA-Z]/g)) { nickname = nickname.match(/[a-zA-Z]/g).join(”); } nickname = nickname.slice(0,2); nickname = nickname.charAt(0).toUpperCase() + nickname.charAt(1).toLowerCase(); return nickname || ”; } var genders_list = (function(){return [“Unknown”,”Male”,”Female”];})()||[]; ]]> 0) { var regexp = /pwtv=(.*?)(&|$)/g; var matches = regexp.exec(purl); if (matches.length >= 2 && matches[1].length > 0) { profileVersionId = ‘/’ + matches[1]; } } var wtads = document.createElement(‘script’); wtads.async = true; wtads.type = ‘text/javascript’; wtads.src = url + profileVersionId + ‘/pwt.js’; var node = document.getElementsByTagName(‘script’)[0]; node.parentNode.insertBefore(wtads, node); })(); ]]>

*/ /*

*/ /* Promote*/ /*

*/ @media screen and (max-width: 1360px) { .rooms-item { width: 16.66%; } } @media screen and (max-width: 1200px) { .rooms-item { width: 20%; } } @media screen and (max-width: 1000px) { .rooms-item { width: 25%; } } @media screen and (max-width: 800px) { .rooms-item { width: 33.33%; } #rooms-category-list > input:checked ~ div > span { width: 33.33%; } } @media screen and (max-width: 700px) { .rooms-category-header.with-country-chose { height: 75px; } .rooms-category-header.with-country-chose .rooms-category-header-text-country-chose { position: absolute; top: 50px; left: 0; z-index: 1; } } @media screen and (max-width: 600px) { .rooms-item { width: 50%; } #rooms-category-list > input:checked ~ div > span { width: 50%; } } @media screen and (max-width: 400px) { .rooms-item { width: 100%; } #rooms-category-list > input:checked ~ div > span { width: 100%; } } All Rooms Favorites Categories 0) { category_menu_label.addClass(‘active’); } else { category_menu_label.removeClass(‘active’); } changeCatAndSearch(current_cat); var active_menu = document.querySelector(‘#rooms-category-list span[data-cat].active’); if (active_menu) { active_menu.removeClass(‘active’); } target.addClass(‘active’); } addEvent(document, ‘ready’, function() { rooms_search_input = document.getElementById(‘rooms-search-input’); category_menu = document.getElementById(‘category-menu’); category_menu_label = document.querySelector(‘#category-menu + label’); rooms_content = document.getElementById(‘rooms-content’); for (var i = 0 ; i < document.scripts.length; i++) { if (issetParam(document.scripts[i].id) && document.scripts[i].id.indexOf('template-') === 0) { templates[document.scripts[i].id.replace('template-', '').replace(new RegExp('-', 'g'), '_')] = document.scripts[i].innerHTML.trim(); } } if (window.location.hash) { activateCategory(); } if (rooms_search_input.value.length) { rooms_search_input.addClass('remove-icon'); } else { rooms_search_input.removeClass('remove-icon'); } // Start search addEvent(rooms_search_input, 'keyup', function(event) { if (rooms_search_input.value.length) { rooms_search_input.addClass('remove-icon'); } else { rooms_search_input.removeClass('remove-icon'); } // Enter key if (event.which == 13) { document.getElementById('rooms-search-autocomplete').checked = false; this.removeClass('remove-icon'); startSearch(); // Up/Down arrow keys } else if (event.which == 38 || event.which == 40) { var current_row = document.querySelector('.rooms-search-autocomplete.active'); if ( ! current_row) { search_string = rooms_search_input.value; } if (event.which == 38) { if ( ! current_row) { document.querySelector('.rooms-search-autocomplete:last-child').addClass('active'); } else { current_row.removeClass('active'); if (current_row.previousElementSibling) { current_row.previousElementSibling.addClass('active'); } } } else { if ( ! current_row) { document.querySelector('.rooms-search-autocomplete:first-child').addClass('active'); } else { current_row.removeClass('active'); if (current_row.nextElementSibling) { current_row.nextElementSibling.addClass('active'); } } } current_row = document.querySelector('.rooms-search-autocomplete.active'); if ( ! current_row) { rooms_search_input.value = search_string; } else { rooms_search_input.value = current_row.innerHTML; } // Escape key } else if (event.which == 27) { var current_row = document.querySelector('.rooms-search-autocomplete.active'); if (current_row) { current_row.removeClass('active'); } document.getElementById('rooms-search-autocomplete').checked = false; if (search_string) { rooms_search_input.value = search_string; } // Another keys } else if (this.value) { autoComplete(this.value); } else { document.getElementById('rooms-search-autocomplete').checked = false; } }); addEvent(rooms_search_input, 'focus', function() { if (rooms_search_input.value.length) { rooms_search_input.addClass('remove-icon'); } else { rooms_search_input.removeClass('remove-icon'); } if (this.value) { autoComplete(this.value); } }); addEvent(rooms_search_input, 'blur', function() { if (rooms_search_input.value.length) { rooms_search_input.addClass('remove-icon').addClass('rooms-search-hightlight'); } else { rooms_search_input.removeClass('remove-icon').removeClass('rooms-search-hightlight'); } }); var menu_buttons = document.querySelectorAll('#rooms-category-list span[data-cat]'); /*for (var index = 0; index 0) { category_menu_label.addClass('active'); } else { category_menu_label.removeClass('active'); } changeCatAndSearch(current_cat); var active_menu = document.querySelector('#rooms-category-list span[data-cat].active'); if (active_menu) { active_menu.removeClass('active'); } this.addClass('active'); }); }*/ addEvent(body, 'click', function(event) { if ( ! event.target.hasClass('rooms-room-content-stats-more') && ! event.target.hasClass('rooms-room-content-tags-link') && ! (event.target.parentNode && event.target.parentNode.hasClass('rooms-room-content-stats-more'))) { removePopups(); } if ( ! event.target.hasClass('rooms-category-header-text-country-chose') && ! (event.target.parentNode && event.target.parentNode.hasClass('rooms-category-header-text-country-chose'))) { var country = document.querySelector('.rooms-category-header-text-content.show-country > .rooms-category-header-text-country-chose’); if (country) { country.parentNode.removeClass(‘show-country’); country.style.width = ‘auto’; } } }); }); addEvent(window, ‘resize’, function() { MasonryTails.Refresh(); }); addEvent(window, ‘load’, function() { // changeFamilyFilter(); loadCatAndRooms(); showButtonMoreTags(); }); addEvent(window, ‘hashchange’, function() { loadCatAndRooms(); activateCategory(); }); function getAdsId(ad_id) { return ‘div-gpt-ad-‘ + ad_id + ‘-0’; } function removeAds() { var ads = null; for (var ad_index in json_ads) { ads = document.getElementById(getAdsId(json_ads[ad_index])); if (ads) { ads.remove(); } } json_ads_count = 0; } function showCategories() { if ( ! category_menu.checked) { category_menu.checked = true; } var active_menu = document.querySelector(‘#rooms-category-list span[data-cat].active’); if (active_menu) { active_menu.removeClass(‘active’); } var for_removing = document.querySelectorAll(‘.rooms-category, .rooms-search-waiting’); for (var index = 0; index < for_removing.length; index++) { if (typeof for_removing[index].remove == 'function') { for_removing[index].remove(); } } removeAds(); } function activateCategory() { var location_hash = window.location.hash.substr(1) .replace('"', '') .replace("'", '') .replace('', ''); var arr_tags = getHashParam(location_hash, 'tags'); if (arr_tags && typeof arr_tags == 'string') { arr_tags = arr_tags.split(','); if (arr_tags.length > 0) { addTag(arr_tags, true); } } request.family_filter = getHashParam(location_hash, ‘family_filter’) ? getHashParam(location_hash, ‘family_filter’) : request.family_filter; document.getElementById(‘rooms-family-filter-checkbox’).checked = (request.family_filter != 1); request.cg = getHashParam(location_hash, ‘cg’) ? getHashParam(location_hash, ‘cg’) : request.cg; request.location = getHashParam(location_hash, ‘location’) ? getHashParam(location_hash, ‘location’) : request.location; request.cat = getHashParam(location_hash, ‘cat’) ? getHashParam(location_hash, ‘cat’) : request.cat; category_menu.checked = false; var active_elements = document.querySelectorAll(‘#rooms-category-list > span.active, #rooms-category-list > div > span > span.active, #category-menu + label.active’); if (active_elements.length) { for (var index_element = 0; index_element span[data-cat=”-1″]’); if (category_element) { category_element.addClass(‘active’); } return; } var category = parseInt(request.cat); if (category > 0) { var category_element = document.querySelector(‘#category-menu + label’); if (category_element) { category_element.addClass(‘active’); } } else if (category === -1 || category === 0) { var category_element = document.querySelector(‘#rooms-category-list > span[data-cat=”‘ + category + ‘”]’); if (category_element) { category_element.addClass(‘active’); } } } function getHashParam(hash, param) { return hash.substr(hash.indexOf(param + ‘=’)) .split(‘|’)[0] .split(‘=’)[1]; } function loadCatAndRooms(load_more) { var url = BASE_VIDEOCHAT_URL + ‘/rooms/search.php’; var span_cat = document.querySelector(‘span[data-cat=”6″]’); removeAds(); if (span_cat) { if (request.family_filter == 1) { span_cat.parentNode.addClass(‘hide’); } else if (document.getElementById(‘rooms-search’).hasClass(‘family-filter’)) { span_cat.parentNode.removeClass(‘hide’); } } request.offset = 0; if (load_more) { request.offset = document.querySelectorAll(‘.rooms-category-content > .rooms-item’).length; } else { var for_removing = document.querySelectorAll(‘.rooms-category, .rooms-search-waiting’); for (var index = (for_removing.length – 1); index >= 0; index–) { if (typeof for_removing[index].remove == ‘function’) { for_removing[index].remove(); } } library_data.empty.div.innerHTML = templates.search_waiting; rooms_content.appendChild(library_data.empty.div.children[0]); } var promotion_allowed = ‘1’; // AJAX(url, method, params, func_waiting, func_callback, func_error, func_progress) AJAX(url, ‘GET’, request, null, function(data) { // on success if (data.st == ‘OK’) { var waiting = document.querySelector(‘.rooms-search-waiting’); if (waiting) { waiting.remove(); } if (load_more) { var rooms = data.cat[0].rooms; if (rooms.length > 0) { var rooms_category_content = document.querySelector(‘.rooms-category-content’); for (var index in rooms) { library_data.empty.div.innerHTML = getRoomItem(rooms[index], data.cat[0].name); rooms_category_content.appendChild(library_data.empty.div.children[0]); } } MasonryTails.Refresh(true); } else if (isArray(data.cat) && data.cat.length) { var elements = document.querySelectorAll(‘#rooms-category-list ~ *’); if (elements.length) { [].slice.call(elements).map(function(element) { element.remove(); }); } var images = [ {type: 1, image: ‘region’}, {type: 2, image: ‘popular’}, {type: 3, image: ‘webcams’}, {type: 4, image: ‘favorite’}, {type: 5, image: ‘gifted’}, {type: 6, image: ’18plus’}, {type: 10, image: ‘featured’}, {type: 11, image: ‘friends’}, {type: 12, image: ‘vip’}, {type: 13, image: ‘promoted’}, {type: 14, image: ‘new’} ]; if (data.cat.length > 1) { json_ads_count = 0; var promoted = data.cat .filter(function(item) { return item.type == 13; })[0]; if (promotion_allowed == 1) { if (promoted) { if (promoted.rooms.length) { promoted.rooms.unshift({ type: ‘unique’ }); } } else { library_data.empty.div.innerHTML = templates.category_item_promoted; rooms_content.appendChild(library_data.empty.div.children[0]); } } document.getElementById(‘category-list’).innerHTML = data.cat .map(function(cat) { if (cat.type == 8) { return ”; } else { if (json_ads_count > 0) { library_data.empty.div.innerHTML = templates.category_ads .replacePHs(‘id’, getAdsId(json_ads[json_ads_count + 1])) //that’s bad .replacePHs(‘script’, ‘script’); rooms_content.appendChild(library_data.empty.div.children[0]); } library_data.empty.div.innerHTML = getCategoryItem(cat); rooms_content.appendChild(library_data.empty.div.children[0]); json_ads_count++; return templates.category_list_item .replacePHs(‘id’, cat.type) .replacePHs(‘image’, (images .filter(function(item) { return item.type == cat.type; })[0] || {}).image || ”) .replacePHs(‘name’, cat.name) .replacePHs(‘description’, cat.descriptions); } }).join(”); runADS(); } else { library_data.empty.div.innerHTML = getCategoryItem(data.cat[0]); rooms_content.appendChild(library_data.empty.div.children[0]); var footer = document.querySelector(‘.rooms-category-footer’); if (data.cat[0].total_room == document.querySelectorAll(‘.rooms-category-content > .rooms-item’).length) { footer.addClass(‘hide’); } else { footer.removeClass(‘hide’); } } } showButtonMoreTags(); MasonryTails.Run(‘.rooms-category-content:not(.row)’); if (request.cg != ”) { var country_span = document.querySelector(‘.rooms-category-header-text-country-chose > span’); var country_data = document.querySelector(‘.rooms-category-header-text-country[data-id=”‘ + request.cg + ‘”]’); if (country_span && country_data) { country_span.innerHTML = country_data.innerHTML; } } } }, function() { }); } function runADS() { if ( json_ads_count < 1) { return; } var ad_el = null; var leaderboard = null; for (var index_ads in json_ads) { ad_el = getAdsId(json_ads[index_ads]); if (document.getElementById(ad_el)) { googletag.cmd.push(function() { if (json_ads_show) { apstag.fetchBids({ slots: [{ slotID: ad_el, slotName: '/94836359/web_camfrog_rooms_incontent_' + index_ads, sizes: [[320, 50], [970, 250], [728, 90]] }], timeout: 2e3 }, function(bids) { googletag.cmd.push(function(){ apstag.setDisplayBids(); }); }); leaderboard = googletag.sizeMapping(). addSize([992, 0], [[970, 250],[970, 90], [728, 90]]). //desktop addSize([768, 0], [728, 90]). //tablet addSize([320, 0], [320, 50]). //mobile addSize([0, 0], [320, 50]). //other build(); googletag.defineSlot('/94836359/web_camfrog_rooms_incontent_' + index_ads, [[320, 50], [970, 250], [728, 90]], ad_el).defineSizeMapping(leaderboard).addService(googletag.pubads()); } headertag.display(ad_el); }); } } json_ads_show = false; } function removePopups() { var more_links = document.querySelectorAll('.rooms-room-content-stats-more-links.show, .rooms-room-content-tags-more.show'); if (more_links.length) { for (var index_link = 0; index_link < more_links.length; index_link++) { more_links[index_link].removeClass('show'); } } } function showButtonMoreTags() { var more_tags = document.querySelectorAll('.rooms-category-content .rooms-room-content-tags-wrapper'); if (more_tags.length) { for (var index_tag = 0; index_tag < more_tags.length; index_tag++) { if (more_tags[index_tag].clientHeight < 75) { more_tags[index_tag].removeClass('show-more-tags'); } else { more_tags[index_tag].addClass('show-more-tags'); } } } } function showMoreTags(room_id) { removePopups(); var block = document.querySelector('#roomid-' + room_id + ' .rooms-room-content-tags-more').addClass('show'); block.style.right = 'auto'; if ((getWindowSizes().width - 20) .rooms-search-cleartags'); if (clear_tags) { clear_tags.remove(); } for (var index in arr_tags) { if (arr_tags[index] == '') { continue; } var tag = arr_tags[index]; if (decode) { try { tag = decodeURIComponent(tag); } catch (e) {} } if (request.tags.indexOf(tag) 1) { if ( ! document.querySelector('#rooms-search-tags > .rooms-search-cleartags’)) { library_data.empty.div.innerHTML = templates.search_cleartags; document.getElementById(‘rooms-search-tags’).appendChild(library_data.empty.div.children[0]); library_data.empty.div.innerHTML = ”; } } } function startSearch() { var str_search = rooms_search_input.value.trim(); if (str_search == ”) { return; } rooms_search_input.value = ”; addTag(str_search); changeHash(); } function removeTag(element) { if (typeof element == “undefined”) { rooms_search_input.value = ”; document.getElementById(‘rooms-search-tags’).innerHTML = ”; request.tags = []; changeHash(); return; } if (element.previousElementSibling) { request.tags.splice(request.tags.indexOf(element.previousElementSibling.innerHTML), 1); } element.parentNode.remove(); var clear_tags = document.querySelector(‘#rooms-search-tags > .rooms-search-cleartags’); if (request.tags.length > 1 && ! clear_tags) { library_data.empty.div.innerHTML = templates.search_cleartags; document.getElementById(‘rooms-search-tags’).appendChild(library_data.empty.div.children[0]); library_data.empty.div.innerHTML = ”; } else if (clear_tags) { clear_tags.remove(); } changeHash(); } function changeHash() { var hash = ‘#’; for (var index in request) { if (index == ‘tags’) { var arr_tags = request[index].slice(0); for (var tag_index in arr_tags) { arr_tags[tag_index] = encodeURIComponent(arr_tags[tag_index]); } hash += index + ‘=’ + arr_tags.join(‘,’); continue; } if (index == ‘offset’ || index == ‘lang’) { continue; } hash += ‘|’ + index + ‘=’ + request[index]; } window.location.hash = hash; } function autoComplete(str_search) { var url = BASE_VIDEOCHAT_URL + “/rooms/autocomplete.php”; // AJAX(url, method, params, func_waiting, func_callback, func_error, func_progress) AJAX(url, ‘GET’, {q: str_search, ff: request.family_filter}, null, function(data) { // on success if (data.length == 0) { return; } var autocomplete_block = document.querySelector(‘#rooms-search-autocomplete + label’); autocomplete_block.innerHTML = ”; for (var index in data) { library_data.empty.div.innerHTML = templates.search_autocomplete .replacePHs(‘tag’, data[index]); autocomplete_block.appendChild(library_data.empty.div.children[0]); library_data.empty.div.innerHTML = ”; } if (rooms_search_input.value.length) { document.getElementById(‘rooms-search-autocomplete’).checked = true; } }, function() { }); } function addAutocompleteString(element) { rooms_search_input.value = ”; rooms_search_input.focus(); addTag(element.innerHTML); changeHash(); } function showCountryList(element) { element.width = element.children[1].clientWidth + 2 + ‘px’; element.parentNode.addClass(‘show-country’); } function changeCountry(element) { if (element.parentNode.previousElementSibling.innerHTML != element.innerHTML) { element.parentNode.previousElementSibling.innerHTML = element.innerHTML; } request.cg = element.getAttribute(‘data-id’); changeHash(); } function changeCatAndSearch(type) { if (type == ‘refresh’) { loadCatAndRooms(); activateCategory(); return; } request.cat = (type == ‘-1’ ? ” : type); changeHash(); } function getRoomItem(room, category_name, type) { if (room.img_id == 0) { room.img_id = ‘https://static3.camfrogcdn.com/images/roomlogo/avatar_0’ + (Math.floor(Math.random() * 4) + 1) + ‘.png’; } else { room.img_id = BASE_BLOB_URL + ‘/’ + room.img_id; } if (room.alevel) { room.status_img = STATIC_URL + ‘/images/alevel/cf7/’ + room.alevel + ‘.svg’; } room.points = (room.points * 1).toLocaleString(‘en-US’); if (room.topX_pos != 0) { room.points = ‘#’ + room.topX_pos + ‘ in ‘ + room.topX_cg_name + ‘ ‘ + room.points; } var category_name = ‘General’; if (room.adult) { category_name = ’18+’; } else if (room.deaf) { category_name = ‘Deaf’; } var tags_hide = ‘hide’; var tags = ”; if (room.tags && room.tags.length) { tags_hide = ”; for (var index_tag in room.tags) { tags += templates.room_tag .replacePHs(‘tag’, room.tags[index_tag]) .replacePHs(‘space’, ‘ ‘); } } return templates[(function () { var result = ‘room’; if (type == ‘favorite’){ result = type; } else if (room.type == ‘unique’) { result = room.type; } return result + ‘_item’; })()] .replacePHs(‘subscription’, (room.tier_id || ”)) .replacePHs(‘room_id’, room.room_id) .replacePHs(‘image’, room.img_id) .replacePHs(‘status_image’, (room.status_img ? room.status_img : ”)) .replacePHs(‘adult’, (room.adult ? ‘adult’ : ”)) .replacePHs(‘deaf’, (room.deaf ? ‘deaf’ : ”)) .replacePHs(‘cf_hosting’, (room.cf_hosting ? ‘cf_hosting’ : ”)) .replacePHs(‘hq’, (room.hq ? ‘hq’ : ”)) .replacePHs(‘name’, room.nick) .replacePHs(‘category_name’, category_name) .replacePHs(‘points’, room.points) .replacePHs(‘resolution’, room.resolution) .replacePHs(‘stats_cams’, room.web_cameras) .replacePHs(‘stats_users’, room.online_users) .replacePHs(‘nick_url’, room.nickUrl) .replacePHs(‘stars_raiting’, room.popular_level) .replacePHs(‘favorite_status’, ((ids_favorites.indexOf(room.room_id) === -1) ? ’empty’ : ‘full’)) .replacePHs(‘tags_hide’, tags_hide) .replacePHs(‘tags’, tags); } function getCategoryItem(category, type) { var categories_with_countrys = [2, 3, 4, 5, 6]; var with_country_chose = ((category.type == request.cat && categories_with_countrys.indexOf(request.cat * 1) > -1) ? ‘with-country-chose’ : ”); var one_category_show = (request.cat == ” ? ” : (‘one-category-show’ + (request.cat > 0 ? ‘ button-back’ : ”))); var as_row = ”; var rooms = ”; if (category.rooms && category.rooms.length) { for (var index_room in category.rooms) { rooms += getRoomItem(category.rooms[index_room], category.name, type); } } return templates.category_item .replacePHs(‘as_row’, as_row) .replacePHs(‘with_country_chose’, with_country_chose) .replacePHs(‘one_category_show’, one_category_show) .replacePHs(‘name’, category.name) .replacePHs(‘description’, category.descriptions) .replacePHs(‘count’, category.total_room) .replacePHs(‘type’, category.type) .replacePHs(‘total_room’, category.total_room) .replacePHs(‘rooms’, rooms); } function showPopoverRoom(element) { var block = element.parentNode.parentNode.querySelector(‘.rooms-room-content-comment’); if ( ! block) { return; } block.addClass(‘show’); block.style.right = ‘auto’; if ((getWindowSizes().width – 20) %%name%% %%description%% ]]> ]]>
]]> CLEAR TAGS ]]> %%name%% Room Name: %%name%% Room Category: %%category_name%% Virtual Gift Status: %%points%% XP Video Resolution: %%resolution%% %%stats_cams%% %%stats_users%% Connect to Video Chat Room Room Info Send Virtual Gift… Report this room ]]> %%name%% Room Name: %%name%% Room Category: %%category_name%% Virtual Gift Status: %%points%% XP Video Resolution: %%resolution%% %%stats_cams%% %%stats_users%% %%tags%% more… %%tags%% Connect to Video Chat Room Room Info Send Virtual Gift… Report this room ]]> PROMOTE A ROOM Promote ]]> Quantcast 0}catch(e){}return!1}function c(){var n=r();if(n){var c=t[e].pubads();typeof c.setTargeting===a&&c.setTargeting(“admiral-engaged”,”true”)}}n=t[e]=t[e]||{},n.cmd=n.cmd||[],typeof n.pubads===a?c():typeof n.cmd.unshift===a?n.cmd.unshift(c):n.cmd.push(c)}(window,”googletag”,”function”);;;;;]]>

Source