'); } } changeNoFollowLinks(); if ($('#logged-in-menu').html()) { $('#nav-tags').css("display", 'none'); // $('#extra-content').removeClass('col-md-11'); } //Showing topic title on small screens if (window.location.href.indexOf("topic") > -1) { $(".topic-title").parent().removeClass('hidden-xs'); $('.post-header').each(function(i, obj) { $(this).children().find("a:gt(5)").hide(); }); // Improve layout of related posts on desktop $(".content").removeClass('col-md-6'); $(".content").addClass('col-md-12'); } if (window.location.href.indexOf("voice-chat") > -1) { // For moving jitsi iframe to correct position $("#meet").prepend($("#jitsiConferenceFrame0")).css('text-align', 'center'); $("#jitsiConferenceFrame0").show(); $('#desktop-view').on('click', function() { $('head').find('meta').each(function(index, element) { if (this.name == "viewport") { $(this).removeAttr('content'); $(this).attr('content', 'initial-scale=0'); console.log(this.name); $(".voice-chat-unavailable").hide(); } }); }); } if (window.location.href.indexOf("voice-test") > -1) { // For moving jitsi iframe to correct position $("#meet").prepend($("#jitsiConferenceFrame0")).css('text-align', 'center'); $("#jitsiConferenceFrame0").show(); $('#desktop-view').on('click', function() { $('head').find('meta').each(function(index, element) { if (this.name == "viewport") { $(this).removeAttr('content'); $(this).attr('content', 'initial-scale=0'); console.log(this.name); $(".voice-chat-unavailable").hide(); } }); }); } if (window.location.href.indexOf("imbored") > -1) { $("#meet").prepend($("#jitsiConferenceFrame0")).css('text-align', 'center'); $("#jitsiConferenceFrame0").show(); } if (window.location.href.indexOf("m/chatrooms") > -1) { // Changing box layout to full screen for rocket chat iframe document.getElementById("content").className = "container-fluid"; $('.col-lg-12').css("padding", "0px"); } if (window.location.href.indexOf("m/voice-chat") > -1) { // Changing box layout to full screen for rocket chat iframe document.getElementById("content").className = "container-fluid"; } //Adding link of popular on the popular page if (window.location.href.indexOf("popular") > -1) { $('.nav-pills').prepend('