Skip to content

Commit

Permalink
要らないホワイトスペースあると転送量増えるから厳しいので消した
Browse files Browse the repository at this point in the history
  • Loading branch information
moznion committed Jan 21, 2014
1 parent ac71a17 commit bed2fa4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions static/js/main_android.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ hook.addHook('doScrollBottom', function(hash){

if( domHeight - lastElmHeight <= nowBottom + 10 ){ // 10は遊び
$(window).scrollTop(10000000);
}
}
});


Expand Down Expand Up @@ -50,7 +50,7 @@ $(function () {

//送信ボタン
$('#send-message').submit(sendMessage);

//インプット欄の改行制御
$("#send-message").keypress(function(ev) {
if ((ev.which && ev.which === 13) || (ev.keyCode && ev.keyCode === 13)) { // 13 is Enter
Expand All @@ -63,8 +63,8 @@ $(function () {
} else {
return true;
}
});
});

//入力欄の高さ調整
$('#message').bind("click mouseup blur keyup input", function() {
resizeMessageTextarea();
Expand All @@ -78,7 +78,7 @@ $(function () {
var timeagoTimer = setInterval(function(){
$('abbr.timeago').timeago();
},60000);

$("#messages").touchwipe({
wipeLeft: function() { showControlpad(); },
wipeRight: function() { showmenu(); },
Expand All @@ -87,15 +87,15 @@ $(function () {
min_move_x: 150,
min_move_y: 150,
preventDefaultEvents: false
});
});


$("#infomation").touchwipe({
wipeLeft: function() { hidemenu(); },
min_move_x: 100,
min_move_y: 100,
preventDefaultEvents: false
});
});


$("#controlpad").touchwipe({
Expand Down

0 comments on commit bed2fa4

Please sign in to comment.