更新站点数据
This commit is contained in:
parent
2c145168ac
commit
385d251f10
@ -1027,10 +1027,10 @@ window.cbl = function (u, h) {
|
||||
});
|
||||
setInterval(function () {
|
||||
entry12306 = false;
|
||||
chrome.tabs.query({ url: "*://*.12306.cn/otn*" }, function (a) {
|
||||
chrome.tabs.query({ url: "*://*.12306.cn/*" }, function (a) {
|
||||
entry12306 |= a && a.length > 0;
|
||||
});
|
||||
chrome.tabs.query({ url: "*://12306.*/*" }, function (a) {
|
||||
chrome.tabs.query({ url: "*://12306.liebao.cn/*" }, function (a) {
|
||||
entry12306 |= a && a.length > 0;
|
||||
});
|
||||
}, 20000);
|
||||
|
@ -50,6 +50,9 @@
|
||||
|
||||
#chat_container .chat-items .chat-item > section {
|
||||
}
|
||||
#chat_container .chat-items .chat-item > section > div {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
#chat_container .chat-items .chat-item > time {
|
||||
float: right;
|
||||
@ -60,6 +63,11 @@
|
||||
background-color: #F8F8F8;
|
||||
}
|
||||
|
||||
#chat_container .chat-items .chat-item-warning {
|
||||
color: #bb4474;
|
||||
background-color: #FFF4F4;
|
||||
}
|
||||
|
||||
#chat_container .chat-items .chat-item-self {
|
||||
color: rgb(55, 153, 55);
|
||||
background-color: #EFFAEF;
|
||||
|
@ -964,7 +964,15 @@
|
||||
<script type="text/x-dot-template" id="chat_sys_alert">
|
||||
<section class="chat-item chat-item-alert">
|
||||
<i class="fa fa-exclamation-triangle"></i>
|
||||
您已经进入了 <span>{{!it.name}}</span>,当前在线 <span class="chat-online-count">{{=it.onlinecount}}</span> 人。请不要出现任何非法信息和倒卖信息,否则您的账号将会被封。
|
||||
您已经进入了 <span>{{!it.name}}</span>,当前在线 <span class="chat-online-count">{{=it.onlinecount}}</span> 人。禁止出现任何推广信息。
|
||||
</section>
|
||||
<section class="chat-item chat-item-warning">
|
||||
<i class="fa fa-exclamation-triangle"></i>
|
||||
<strong>系统提醒:</strong>12306对过路站限售,请尽量避免选择过路车尤其是直达/特快的过路车。放票时间12306频繁出错,请耐心重试。无法提交订单是因为票不够,请重试。放票是分批、随机的,请多试试。
|
||||
<br />
|
||||
<strong>遇到问题反馈渠道:</strong>
|
||||
<br />
|
||||
<a href="http://bbs.liebao.cn/" target="_blank">猎豹论坛</a> | <a href="http://weibo.com/liebaocn" target="_blank">猎豹官微</a> | <a href="http://www.fishlee.net/about/" target="_blank">订票求助</a> | <a href="http://weibo.com/imcfish" target="_blank">木鱼微博</a>
|
||||
</section>
|
||||
</script>
|
||||
<script type="text/x-dot-template" id="chat_connect_server">
|
||||
@ -1011,6 +1019,10 @@
|
||||
<input type="color" value="" class="chat-editor-color" />
|
||||
<select><option value=''>插入表情字符</option></select>
|
||||
<button type="button" class="chat-btn-cls">清屏</button>
|
||||
<label>
|
||||
<input type="checkbox" value="" id="btnAutoScroll" data-option-key="autoScroll" />
|
||||
自动滚屏
|
||||
</label>
|
||||
</header>
|
||||
<section contenteditable="true" class="chat-editor-container"></section>
|
||||
<footer>
|
||||
|
File diff suppressed because one or more lines are too long
@ -80,7 +80,9 @@
|
||||
};
|
||||
this.appendMessageItem = function (html) {
|
||||
chatListContainer.append(html);
|
||||
chatListContainerDom.scrollTop = chatListContainerDom.scrollHeight;
|
||||
|
||||
if (sessMgr.current.options.autoScroll !== 0)
|
||||
chatListContainerDom.scrollTop = chatListContainerDom.scrollHeight;
|
||||
};
|
||||
this.clearDisplay = function () {
|
||||
chatListContainer.empty();
|
||||
|
@ -92,17 +92,18 @@
|
||||
//规则:如果只有待售的,那么等到指定的时间
|
||||
//如果没有且在整点附近的,那么等到整点
|
||||
//否则就按常规时间
|
||||
var now = new Date();
|
||||
if (data.available.length && currentProfile.autoWaitToSell && data.include.length && _.every(data.include, function (x) { return x.available === -1; })) {
|
||||
var next = _.min(_.map(data.include, function (x) {
|
||||
return x.selltime;
|
||||
}));
|
||||
data.nextTime = now.getDate() === next.getDate() && next > now ? (next - now) / 1000 + 15 : currentProfile.autoRefreshDelay;
|
||||
} else if (now.getMinutes() >= 59) {
|
||||
data.nextTime = 61 - now.getSeconds();
|
||||
} else {
|
||||
data.nextTime = currentProfile.autoRefreshDelay;
|
||||
}
|
||||
//var now = new Date();
|
||||
//if (data.available.length && currentProfile.autoWaitToSell && data.include.length && _.every(data.include, function (x) { return x.available === -1; })) {
|
||||
// var next = _.min(_.map(data.include, function (x) {
|
||||
// return x.selltime;
|
||||
// }));
|
||||
// data.nextTime = now.getDate() === next.getDate() && next > now ? (next - now) / 1000 + 15 : currentProfile.autoRefreshDelay;
|
||||
//} else
|
||||
//if (now.getMinutes() >= 59) {
|
||||
// data.nextTime = 61 - now.getSeconds();
|
||||
//} else {
|
||||
data.nextTime = currentProfile.autoRefreshDelay;
|
||||
//}
|
||||
}
|
||||
};
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user