Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

libai / footseen-large-website

  • This project
    • Loading...
  • Sign in
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 de6114ce authored 2 years ago by libai's avatar libai
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

测试

parent b40495f5
Hide whitespace changes
Inline Side-by-side
Showing with 19 additions and 15 deletions
  • mobile/index.html
mobile/index.html
View file @ de6114ce
......@@ -408,6 +408,7 @@
<script>
$(function(){
var browserLang = navigator.language
if(browserLang.indexOf("zh")==-1){
$(".bottom-p-name1").text('Popular')
......@@ -528,27 +529,30 @@ $(function(){
var ua = window.navigator.userAgent.toLowerCase();
if(sessionStorage.oneLogin==1){
if (/iphone|ipad|ipod/.test(ua)) {
if(sessionStorage.type=="pwa")return;
sessionStorage.oneLogin=0
layer.open({
type: 1,
title: false,
shadeClose: true,
skin: "yourclass5",
area: ["7.3rem", "12.24rem"],
content: $(".layer-ios"),
end: function () {
$(".layui-layer-shade").hide()
layer.closeAll()
}
})
if(sessionStorage.type!="pwa"){
sessionStorage.oneLogin=0
layer.open({
type: 1,
title: false,
shadeClose: true,
skin: "yourclass5",
area: ["7.3rem", "12.24rem"],
content: $(".layer-ios"),
end: function () {
$(".layui-layer-shade").hide()
layer.closeAll()
}
})
}
}
}
//ios中PWA隱藏約會
if(sessionStorage.type=="pwa"){
var ua = window.navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) {
$(".bottom-nav >div").eq(2).hide()
$(".bottom-nav >div").css("width","33.3%")
$(".bottom-nav p").css("width","3.33rem")
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment