Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnxtbaboot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨亮
hnxtbaboot
Commits
4efe85bd
Commit
4efe85bd
authored
Jul 14, 2022
by
yangliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改因为浏览器版本高获取水印IP显示异常的问题
parent
c60a4133
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
hnxtba-core/src/main/resources/static/js/watermark.js
+18
-4
No files found.
hnxtba-core/src/main/resources/static/js/watermark.js
View file @
4efe85bd
...
...
@@ -140,7 +140,11 @@ function getNowFormatDate() {
return
currentdate
;
}
var
getIP_flag
=
false
;
function
getIPs
(
callback
){
try
{
var
ip_dups
=
{};
//compatibility for firefox and chrome
var
RTCPeerConnection
=
window
.
RTCPeerConnection
...
...
@@ -213,16 +217,26 @@ function getIPs(callback){
if
(
line
.
indexOf
(
'a=candidate:'
)
===
0
)
handleCandidate
(
line
);
});
},
1000
);
},
500
);
}
catch
(
e
)
{
//getSy("");
}
finally
{
setTimeout
(
function
(){
if
(
!
getIP_flag
){
getSy
(
iptemp
);
}
},
1000
);
}
}
//insert IP addresses into the page
var
iptemp
=
""
;
getIPs
(
function
(
ip
){
debugger
;
var
ips
=
$
(
'#clentip'
).
val
();
//alert("ips="+ips +"------ip="+ip);
if
(
ip
!=
null
&&
ip
!=
""
){
if
(
ip
!=
null
&&
ip
!=
""
&&
ip
!=
undefined
&&
ip
!=
"undefined"
){
iptemp
=
ip
;
}
getIP_flag
=
true
;
getSy
(
iptemp
);
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment