diff --git a/.github/workflows/azure-staticwebapp.yml b/.github/workflows/azure-staticwebapp.yml index d84e75e..6d2a686 100644 --- a/.github/workflows/azure-staticwebapp.yml +++ b/.github/workflows/azure-staticwebapp.yml @@ -15,9 +15,9 @@ name: Deploy EOEFANS LANDING to Azure Static Web Apps on: push: branches: [ "release" ] - pull_request: - types: [synchronize, closed] - branches: [ "release" ] +# pull_request: +# types: [synchronize, closed] +# branches: [ "release" ] # Environment variables available to all jobs and steps in this workflow env: diff --git a/.github/workflows/dev-azure-staticwebapp.yml b/.github/workflows/dev-azure-staticwebapp.yml index 433043d..491ae46 100644 --- a/.github/workflows/dev-azure-staticwebapp.yml +++ b/.github/workflows/dev-azure-staticwebapp.yml @@ -15,9 +15,9 @@ name: Deploy DEV EOEFANS LANDING to Azure Static Web Apps on: push: branches: ["main"] - pull_request: - types: [synchronize, closed] - branches: ["main"] +# pull_request: +# types: [synchronize, closed] +# branches: ["main"] # Environment variables available to all jobs and steps in this workflow env: diff --git a/src/utils/tools.ts b/src/utils/tools.ts new file mode 100644 index 0000000..c863c85 --- /dev/null +++ b/src/utils/tools.ts @@ -0,0 +1,17 @@ +export function getBrowserInfo() { + const ua = navigator.userAgent + + const isIOS = /(iPhone|iPad|iPod|iOS)/i.test(ua) + const isMac = ua.match(/(Mac OS X)\s([\d_]+)/i) + const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(ua) + + const isSafari = ua.indexOf('Safari') !== -1 && ua.indexOf('Chrome') === -1 + const isWx = /MicroMessenger/i.test(ua) + return { + isIOS, + isMobile, + isMac, + isSafari, + isWx + } +} diff --git a/src/views/Page1/Page1.vue b/src/views/Page1/Page1.vue index 23fab8d..6f250c5 100644 --- a/src/views/Page1/Page1.vue +++ b/src/views/Page1/Page1.vue @@ -1,5 +1,7 @@