Private
Public Access
1
0

release beta4

This commit is contained in:
2016-12-14 15:50:48 +01:00
parent 6d125f2dab
commit bcc9671895
55 changed files with 452 additions and 198 deletions

View File

@@ -32,6 +32,18 @@ class MineSeeker extends React.Component {
return text;
}
currectGridSize() {
let $field = $('#mine-wrapper .grid');
$field.height($field.width());
$field = $('#mine-wrapper .grid .field-wrapper');
$field.height($field.width());
$('#mine-wrapper .grid .field-wrapper .field')
.height($field.width())
.css('line-height', ($field.width() - 2) + 'px');
}
/**
* STEP
*
@@ -238,6 +250,9 @@ class MineSeeker extends React.Component {
? 'blue' : 'red'
});
/** rwd */
(900 > $(document).width()) && this.currectGridSize();
/** every user has been came */
if (
payload.userCnt === 2 &&
@@ -318,7 +333,7 @@ class MineSeeker extends React.Component {
let websocket = WS.connect(
this.state.env === 'dev'
? "ws://mine.dev:6450"
: (this.state.ssl === 'true' ? "wss" : "ws") + "://www.mineseeker.party:6450/"
: (this.state.ssl === 'true' ? "wss" : "ws") + "://" + window.location.hostname + ":6450/"
);
/**