'); } //Dissabling ajax for ads to load properly $(document.body).off('click', 'a'); // Show bigger logo on small screens if ($(window).width() < 960) { $('.forum-logo').attr('src', "https://chatrooms.talkwithstranger.com/assets/uploads/system/site-logo.png"); } $('.post-tools, [component="post/reply-count"], .ns-spoiler-control').click(function(e) { e.preventDefault(); }); //Moving the global footer above the recent topics box on topic's page $(".footer").prepend($(".trending-recently")).css('text-align', 'left'); $(".footer").prepend($(".trending-weekly")).css('text-align', 'left'); // Hide menu bar on smaller screens and move shoutbox up if (window.location.href.indexOf("free-online-chat-rooms") > -1) { if ($(window).width() < 960) { // $('.panel-title').html('Go Back to Home'); // $('#header-menu').remove(); $('#panel').css("padding-top", 20); } // Populate shortcuts var settings = { "async": true, "crossDomain": true, "url": "https://chatrooms.talkwithstranger.com/api/category/14/games", "method": "GET", "headers": { "cache-control": "no-cache", "Postman-Token": "486b198d-edba-4515-996b-3e67c7bd8b03" } } $.ajax(settings).done(function(response) { for (var i = 0; i < response.children.length; i++) { $('#shortcuts').append(' ' + response.children[i].name + ' '); } }); var get_mods = { "async": true, "crossDomain": true, "url": "https://chatrooms.talkwithstranger.com/api/groups/global-moderators", "method": "GET", } $.ajax(get_mods).done(function(response) { // console.log(response.group.members); for (var i = 0; i < response.group.members.length; i++) { $('#mods-users').append(' '); } }); // Handling shoutbox visitors and unverified accounts if (app.user.username !== "Guest") { // if(app.user['email:confirmed'] === false){ // $('.shoutbox-content-container').next().hide(); // $('.shoutbox-content-container').parent().append('