Sha256: f6515f4104806cd0d56e466db14350cdad164d36e2ba52497b00280a49cd2088
Contents?: true
Size: 1.59 KB
Versions: 31
Compression:
Stored size: 1.59 KB
Contents
<script type="text/javascript"> $(document).ready(function () { if (authByCookie()){ //Authentication by cookie $("#passwordFormChat").hide(); $('.connectChatButton').bind('click', function () { if (requestConnectToChat()){ connectToServerWithCookie(); } }); } else { //Authentication by password if ((window.sessionStorage) && (sessionStorage.getItem("ss_user_pass") != null)) { $("#passwordFormChat").hide(); } else { $("#passwordFormChat").show(); } $('.connectChatButton').bind('click', function () { if (requestConnectToChat()) { connectToServerWithPassword($('#user_password').val()); } }); $('.storePass').bind('click', function () { storePassword(); }); } }); </script> <div class="block"> <div class="header"> <%=image_tag("btn/btn_friend.png", :class => "header_icon")%> <div class="header_text"> <p id="chat_header_title"><%=t('chat.disconnected')%></p> </div> </div> </div> <div class="chat_off"> <div id="passwordFormChat"> <label for="user_password" class="chatPasswordTitle"><%=t('chat.password')%></label> <input id="user_password" class="chat_password" type="password"></input> </div> <input class="connectChatButton storePass" value="Connect"> </div>
Version data entries
31 entries across 31 versions & 3 rubygems