Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
peachlive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4ee6f8e5
authored
6 years ago
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6
parent
112824e6
master
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
index.html
index.html
View file @
4ee6f8e5
...
...
@@ -13,15 +13,13 @@
<script
src=
"https://pv.sohu.com/cityjson?ie=utf-8"
></script>
<script
src=
"lib/jquery-3.1.1.min.js"
></script>
<script>
// console.log(returnCitySN["cname"])
// var ua = navigator.userAgent.toLowerCase();
// province =['北京','上海','深圳','广州','杭州','苏州']
// for(var i=0;i
<
province
.
length
;
i
++
){
// if(returnCitySN["cname"].indexOf(province[i])!=-1){
// window.location.href='content.html'
// }
// }
var
ua
=
navigator
.
userAgent
.
toLowerCase
();
province
=
[
'北京'
,
'上海'
,
'深圳'
,
'广州'
,
'杭州'
,
'苏州'
]
for
(
var
i
=
0
;
i
<
province
.
length
;
i
++
){
if
(
returnCitySN
[
"cname"
].
indexOf
(
province
[
i
])
!=-
1
){
window
.
location
.
href
=
'content.html'
}
}
</script>
<script
type=
"text/javascript"
src=
"//res.cdn.openinstall.io/openinstall.js"
></script>
<meta
charset=
"UTF-8"
>
...
...
This diff is collapsed.
Click to expand it.
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