Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
2016-12-07 12:56:43 +0800
Commit
a336bf7846476de974a36a11825d717eeabc589b
1 parent
7d331515
del console
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
doraemon/views/partial/mobile-refer.hbs
doraemon/views/partial/mobile-refer.hbs
View file @
a336bf7
{{#if
mobileRefer
}}
<input
type=
"hidden"
id=
"m-refer"
value=
"
{{
mobileRefer
}}
"
>
<script
type=
"text/javascript"
>
var u=document.getElementById("m-refer").value;
console.log(u);
if(u&&window.navigator.userAgent.match(/(nokia|iphone|android|ipad|motorola|^mot\-|softbank|foma|docomo|kddi|up\.browser|up\.link|htc|dopod|blazer|netfront|helio|hosin|huawei|novarra|CoolPad|webos|techfaith|palmsource|blackberry|alcatel|amoi|ktouch|nexian|samsung|^sam\-|s[cg]h|^lge|ericsson|philips|sagem|wellcom|bunjalloo|maui|symbian|smartphone|midp|wap|phone|windows ce|iemobile|^spice|^bird|^zte\-|longcos|pantech|gionee|^sie\-|portalmmm|jig\s browser|hiptop|^ucweb|^benq|haier|^lct|opera\s*mobi|opera\
*
mini
|
320
x320
|
240
x320
|
176
x220
)
/
i
)){
window
.
location
=
u
};
</script>
<script
type=
"text/javascript"
>
var u=document.getElementById("m-refer").value;if(u&&window.navigator.userAgent.match(/(nokia|iphone|android|ipad|motorola|^mot\-|softbank|foma|docomo|kddi|up\.browser|up\.link|htc|dopod|blazer|netfront|helio|hosin|huawei|novarra|CoolPad|webos|techfaith|palmsource|blackberry|alcatel|amoi|ktouch|nexian|samsung|^sam\-|s[cg]h|^lge|ericsson|philips|sagem|wellcom|bunjalloo|maui|symbian|smartphone|midp|wap|phone|windows ce|iemobile|^spice|^bird|^zte\-|longcos|pantech|gionee|^sie\-|portalmmm|jig\s browser|hiptop|^ucweb|^benq|haier|^lct|opera\s*mobi|opera\
*
mini
|
320
x320
|
240
x320
|
176
x220
)
/
i
)){
window
.
location
=
u
};
</script>
{{/if}}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment