You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
15 KiB
10 lines
15 KiB
2 years ago
|
"use strict";function menuhrres(){$(window)[0].innerWidth<768?setTimeout(function(){$(".sidenav-horizontal-wrapper").addClass("sidenav-horizontal-wrapper-dis").removeClass("sidenav-horizontal-wrapper"),$(".theme-horizontal").addClass("theme-horizontal-dis").removeClass("theme-horizontal")},400):setTimeout(function(){$(".sidenav-horizontal-wrapper-dis").addClass("sidenav-horizontal-wrapper").removeClass("sidenav-horizontal-wrapper-dis"),$(".theme-horizontal-dis").addClass("theme-horizontal").removeClass("theme-horizontal-dis")},400)}function togglemenu(){var e=$(window)[0].innerWidth;0==$(".pcoded-navbar").hasClass("theme-horizontal")&&(e<=1200&&e>=992&&$(".pcoded-navbar").addClass("navbar-collapsed"),e<992&&$(".pcoded-navbar").removeClass("navbar-collapsed"))}function toggleFullScreen(){$(window).height();document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement?document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT),$(".full-screen > i").toggleClass("icon-maximize"),$(".full-screen > i").toggleClass("icon-minimize")}$(document).ready(function(){function e(e){13==e.which&&s(e)}function s(e){$(".header-chat .main-friend-chat").append('<div class="media chat-messages"><div class="media-body chat-menu-reply"><div class=""><p class="chat-cont">'+$(".h-send-chat").val()+'</p></div><p class="chat-time">now</p></div></div>'),d($(".h-send-chat").val()),i(),$(".h-send-chat").val(null)}function d(e){setTimeout(function(){$(".header-chat .main-friend-chat").append('<div class="media chat-messages typing"><a class="media-left photo-table" href="javascript:"><img class="media-object img-radius img-radius m-t-5" src="assets/images/user/avatar-2.jpg" alt="Generic placeholder image"></a><div class="media-body chat-menu-content"><div class="rem-msg"><p class="chat-cont">Typing . . .</p></div><p class="chat-time">now</p></div></div>'),i()},1500),setTimeout(function(){document.getElementsByClassName("rem-msg")[0].innerHTML="<p class='chat-cont'>hello superior personality you write</p> <p class='chat-cont'>"+e+"</p>",$(".rem-msg").removeClass("rem-msg"),$(".typing").removeClass("typing"),i()},3e3)}function i(){var e=$(".header-chat .main-friend-chat");$(".main-chat-cont.scroll-div").slimScroll({scrollBy:e.outerHeight(),animate:!0})}togglemenu(),menuhrres();var o=$(window)[0].innerWidth;if($('[data-toggle="tooltip"]').tooltip(),$('[data-toggle="popover"]').popover(),$(".to-do-list input[type=checkbox]").on("click",function(){$(this).prop("checked")?$(this).parent().addClass("done-task"):$(this).parent().removeClass("done-task")}),$(".mobile-menu").on("click",function(){$(this).toggleClass("on")}),$("#mobile-collapse").on("click",function(){$(".pcoded-navbar").toggleClass("navbar-collapsed")}),$(".search-btn").on("click",function(){$(this);$(".main-search").addClass("open"),$(".main-search .form-control").css({width:"90px"})}),$(".search-close").on("click",function(){$(this);$(".main-search").removeClass("open"),$(".main-search .form-control").css({width:"0"})}),$("#search-friends").on("keyup",function(){var e=$(this).val().toLowerCase();$(".header-user-list .userlist-box .media-body .chat-header").each(function(){var s=$(this).text().toLowerCase();$(this).closest(".userlist-box")[-1!==s.indexOf(e)?"show":"hide"]()})}),$("#m-search").on("keyup",function(){var e=$(this).val().toLowerCase(),s=$(this).val().length;$(".pcoded-inner-navbar > li").each(function(){var d=$(this).attr("data-username");if(d)var i=d.toLowerCase();if(i){-1!==i.indexOf(e)?$(this).show():$(this).hide(),s>0?$(".pcoded-menu-caption").hide():$(".pcoded-menu-caption").show()}})}),$(".displayChatbox").on("click",fun
|
||
|
|
||
|
var $window = $(window);
|
||
|
$window.scroll(function() {
|
||
|
if ($window.scrollTop() >= 200) {
|
||
|
nav.addClass('active');
|
||
|
} else {
|
||
|
nav.removeClass('active');
|
||
|
}
|
||
|
});
|