Repository navigation
Expand file tree
/
Copy pathgroupMsg.php
More file actions
executable file
·167 lines (138 loc) · 6.5 KB
/
Copy pathgroupMsg.php
File metadata and controls
executable file
·167 lines (138 loc) · 6.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="../../public/css/zaly-action-row.css?_version=<?php echo $versionCode?>" />
<link rel="stylesheet" href="../../public/css/zaly_contact.css?_version=<?php echo $versionCode?>" />
<link rel="stylesheet" href="../../public/css/zaly_apply_friend_list.css?_version=<?php echo $versionCode?>" />
<link rel="stylesheet" href="../../public/css/hint.min.css?_version=<?php echo $versionCode?>">
<link rel="stylesheet" href="../../public/css/zaly_msg.css?_version=<?php echo $versionCode?>" />
<link rel="stylesheet" media="(max-height: 650px)" href="../../public/css/zaly_media.css?_version=<?php echo $versionCode?>" />
<script src="../../public/js/jquery.min.js?_version=<?php echo $versionCode?>"></script>
<script src="../../public/js/template-web.js?_version=<?php echo $versionCode?>"></script>
<script src="../../public/js/jquery.i18n.properties.min.js?_version=<?php echo $versionCode?>"></script>
<script src="../../public/js/im/zalyKey.js?_version=<?php echo $versionCode?>"></script>
<link class="icon" rel="icon" href="favicon.ico?_version=<?php echo $versionCode?>" type="image/png" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>
<!--左列, 以及会话帧-->
<div style="background-color: red;height: 5rem;display: none" class="site-warning"></div>
<?php include(dirname(__DIR__) . '/base/baseView.php'); ?>
<!-- 右边聊天窗口,包括消息帧 -->
<div class="layout-right msg-chat-dialog" >
<div class="chat-dialog" style="display: none">
<?php include(dirname(__DIR__) . '/base/chatDialog.php'); ?>
</div>
<div class="no-chat-dialog-div" style="display: none">
<img src="../../public/img/msg/no_chat_dialog.png" style=" " class="no-chat-dialog">
</div>
</div>
<div class="layout-right friend-apply-dialog" style="display: none;">
<?php include(dirname(__DIR__) . '/base/friendApplyList.php'); ?>
</div>
</div>
<?php include(dirname(__DIR__) . '/base/template.php'); ?>
<?php include(dirname(__DIR__) . '/base/template_msg.php'); ?>
<script src="../../public/js/im/zalyAction.js?_version=<?php echo $versionCode?>"></script>
<script src="../../public/js/im/zalyClient.js?_version=<?php echo $versionCode?>"></script>
<script src="../../public/js/im/zalyBaseWs.js?_version=<?php echo $versionCode?>"></script>
<script src="../../public/js/im/zalyIm.js?_version=<?php echo $versionCode?>"></script>
<script src="../../public/js/im/zalyMsg.js?_version=<?php echo $versionCode?>"></script>
<script src="../../public/js/im/zalyGroupMsg.js?_version=<?php echo $versionCode?>"></script>
<script src="../../public/js/zalyjsNative.js?_version=<?php echo $versionCode?>"></script>
<script src="../../public/js/im/zalyHelper.js?_version=<?php echo $versionCode?>"></script>
<script src="../../public/js/qrcode.js?_version=<?php echo $versionCode?>" ></script>
<script src="../../public/js/utf.js?_version=<?php echo $versionCode?>" ></script>
<script src="../../public/js/jquery.qrcode.js?_version=<?php echo $versionCode?>"></script>
<script type="text/javascript">
requestSiteConfig(ZalyIm);
$(window).resize(function () {
setFontSize();
try{
var friendsDivHeight = $(".left-body-friends")[0].clientHeight;
var friendToolsHeight = $(".friend-tools")[0].clientHeight;
$(".friend-list-contact-row")[0].style.height = Number(friendsDivHeight-friendToolsHeight)+"px";
}catch (error) {
}
try{
var groupsDivHeight = $(".left-body-groups")[0].clientHeight;
var groupToolsHeight = $(".group-tools")[0].clientHeight;
$(".group-list-contact-row")[0].style.height = Number(groupsDivHeight-groupToolsHeight)+"px";
}catch (error) {
}
});
setFontSize();
function setFontSize()
{
var rem = getRemPx();
$('html').css('font-size', rem + "px");
}
function getRemPx()
{
var whdef = 10.66/1440;// 1440,使用10.66PX的默认值
var wW = window.innerWidth;// 当前窗口的宽度
var rem = wW * whdef;// 以默认比例值乘以当前窗口宽度,得到该宽度下的相应FONT-SIZE值
if(rem < 8) {
rem = 8;
}
if(rem > 10.66) {
rem = 10.66;
}
return rem;
}
localStorage.setItem(chatTypeKey, DefaultChat);
getRoomList();
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
jQuery.i18n.properties({
name: "lang",
path: '../../public/js/config/',
mode: 'map',
language: languageName,
callback: function () {
try {
//初始化页面元素
$('[data-local]').each(function () {
var changeData = $(this).attr("data-local");
var changeDatas = changeData.split(":");
var changeDataName = changeDatas[0];
var changeDataValue = changeDatas[1];
$(this).attr(changeDataName, $.i18n.map[changeDataValue]);
});
$('[data-local-value]').each(function () {
var changeHtmlValue = $(this).attr("data-local-value");
$(this).html($.i18n.map[changeHtmlValue]);
});
$('[data-local-placeholder]').each(function () {
var placeholderValue = $(this).attr("data-local-placeholder");
$(this).attr("placeholder", $.i18n.map[placeholderValue]);
});
}
catch(ex){
console.log(ex.message);
}
}
});
$(document).on("click", ".preemptiveVersionDiv", function(){
var qqUrl = "https://jq.qq.com/?_wv=1027&k=5GBN4lJ";
window.open(qqUrl);
});
if (window.Notification && Notification.permission !== "granted") {
Notification.requestPermission().then(function(result) {
if (result === 'denied') {
console.log('Permission wasn\'t granted. Allow a retry.');
return;
}
if (result === 'default') {
console.log('The permission request was dismissed.');
return;
}
});
}
</script>
</body>
</html>