Commit 58243ce7 authored by 神楽坂玲奈's avatar 神楽坂玲奈

new rooms

parent 5ec90d81
......@@ -103,6 +103,7 @@ login = ->
# else
# alert msg
# true
Candy.Util.setCookie('candy-nostatusmessages', '1', 365);
Candy.init('http://122.0.65.70:5280/http-bind/',
core:
debug: false,
......@@ -124,7 +125,6 @@ login = ->
CandyShop.InlineImages.init();
Candy.View.Template.Login.form = $('#login_form_template').html()
Candy.Util.setCookie('candy-nostatusmessages', '1', 365);
Candy.Core.connect(Candy.Util.getCookie('jid'), Candy.Util.getCookie('password'))
Candy.View.Pane.Roster.joinAnimation = (elementId)->
......@@ -137,10 +137,12 @@ login = ->
candy_height = $('#candy').outerHeight true
$('.card_center').css('margin-bottom', -candy_height)
$('.card_center').css('padding-bottom', candy_height)
#window.onunload = window.onbeforeunload
window.onbeforeunload = null
@after_login = ->
$('#rooms').css('padding-right', 225)
$('.online_list').show()
$('#current_username').html(Candy.Util.getCookie('username'))
......@@ -159,8 +161,11 @@ announcement_scroll = (obj)->
,500,->
$(this).css({marginTop:"0px"}).find("li:first").appendTo(this)
announcement_scrolling = null
setRosterHeight = ->
pageHight = (document.documentElement.clientHeight)-430
$("#roster").height(pageHight)
$(document).ready ->
#stroll.bind( '.online_list ul' );
if Candy.Util.getCookie('jid')
login()
......@@ -258,6 +263,9 @@ $(document).ready ->
announcement_scrolling = setInterval(announcement_scroll, 5000) if !announcement_scrolling
announcement_scrolling = null
setRosterHeight();
$(window).resize(setRosterHeight);
$.getJSON '/announcements.json', (data)->
for announcement in data
$('<li />').append($('<a />',
......@@ -273,3 +281,7 @@ $(document).ready ->
Server.fetch()
// Generated by CoffeeScript 1.4.0
(function() {
var Room, Rooms, Server, Servers, announcement_scroll, announcement_scrolling, login, logout,
var Room, Rooms, Server, Servers, announcement_scroll, announcement_scrolling, login, logout, setRosterHeight,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
......@@ -199,6 +199,7 @@
login = function() {
var candy_height;
Candy.Util.setCookie('candy-nostatusmessages', '1', 365);
Candy.init('http://122.0.65.70:5280/http-bind/', {
core: {
debug: false,
......@@ -227,7 +228,6 @@
};
CandyShop.InlineImages.init();
Candy.View.Template.Login.form = $('#login_form_template').html();
Candy.Util.setCookie('candy-nostatusmessages', '1', 365);
Candy.Core.connect(Candy.Util.getCookie('jid'), Candy.Util.getCookie('password'));
Candy.View.Pane.Roster.joinAnimation = function(elementId) {
return $('#' + elementId).show().css('opacity', 1);
......@@ -243,6 +243,7 @@
};
this.after_login = function() {
$('#rooms').css('padding-right', 225);
$('.online_list').show();
$('#current_username').html(Candy.Util.getCookie('username'));
$('.log_reg.not_logged').hide();
......@@ -268,6 +269,12 @@
announcement_scrolling = null;
setRosterHeight = function() {
var pageHight;
pageHight = document.documentElement.clientHeight - 430;
return $("#roster").height(pageHight);
};
$(document).ready(function() {
var new_room, rooms, servers;
if (Candy.Util.getCookie('jid')) {
......@@ -378,6 +385,8 @@
return announcement_scrolling = null;
}
});
setRosterHeight();
$(window).resize(setRosterHeight);
$.getJSON('/announcements.json', function(data) {
var announcement, _i, _len;
for (_i = 0, _len = data.length; _i < _len; _i++) {
......
This diff is collapsed.
filter = 房间筛选
new = 建立房间
chat = 聊天工具
mode[0] = 单局模式
mode[1] = 比赛模式
mode[2] = TAG
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment