Coder Social home page Coder Social logo

gogogo's Introduction

gogogo

分享最新的工具、教程、lib等各种干货,欢迎提交。目前没有什么新东西,天天会更新一点。

贡献

如果你发现了什么,加个标题,链接放在内容,直接扔在issue就可以了,我看到后会加上标签的。如果你发的这个没有什么用,那么我就会烧掉。

gogogo's People

Stargazers

raynard avatar limichange avatar

Watchers

James Cloos avatar A avatar  avatar

gogogo's Issues

is.mobile

var userAgent = 'navigator' in window && 'userAgent' in navigator && navigator.userAgent.toLowerCase() || '';
var appVersion = 'navigator' in window && 'appVersion' in navigator && navigator.appVersion.toLowerCase() || '';

var is = {};

is.iphone = function() {
  return /iphone/i.test(userAgent);
};

is.ipod = function() {
  return /ipod/i.test(userAgent);
};

is.androidPhone = function() {
  return /android/i.test(userAgent) && /mobile/i.test(userAgent);
};

is.blackberry = function() {
  return /blackberry/i.test(userAgent) || /BB10/i.test(userAgent);
};

is.windows = function() {
  return /win/i.test(appVersion);
};

is.windowsPhone = function() {
  return is.windows() && /phone/i.test(userAgent);
};

is.mobile = function() {
  return is.iphone() || is.ipod() || is.androidPhone() || is.blackberry() || is.windowsPhone();
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.