Skip to content

Commit

Permalink
change links from http to https where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
hgoebl committed Sep 8, 2018
1 parent 54bb468 commit c8b5972
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ You can find out information about the device rendering your web page:
* mobile or not
* if mobile, whether phone or tablet
* operating system
* [Mobile Grade (A, B, C)](http://jquerymobile.com/gbs/)
* [Mobile Grade (A, B, C)](https://jquerymobile.com/browser-support/)
* specific versions (e.g. WebKit)

Current `master` branch is using detection logic from **Mobile-Detect@2.8.33**
Expand All @@ -18,9 +18,9 @@ Current `master` branch is using detection logic from **Mobile-Detect@2.8.33**
[@zeno](https://github.com/zeno) created a very nice [live-demo](https://github.com/zeno/mobile-detect-demo).
See it in action with your device:

**[Demo](http://zeno.github.io/mobile-detect-demo/)**
**[Demo](https://zeno.github.io/mobile-detect-demo/)**

Another Demo/check (though without any styling) can be found [here](http://hgoebl.github.io/mobile-detect.js/check/).
Another Demo/check (though without any styling) can be found [here](https://hgoebl.github.io/mobile-detect.js/check/).

# Warning

Expand All @@ -29,8 +29,8 @@ As mentioned later, "User-Agent" based detection is not a reliable solution in m
* The rules (regular expressions) are constantly out-dated and incomplete
* You have to update the detection code continuously
* There are other ways to detect how your web application should behave:
* feature detection, e.g. [Modernizr](http://modernizr.com/)
* [Media Queries](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries), examples at <http://mediaqueri.es/>
* feature detection, e.g. [Modernizr](https://modernizr.com/)
* [Media Queries](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries), examples at <https://mediaqueri.es/>
* Maybe there are some libraries out there (which are probably not free) doing a more reliable job

If you still want to (or have to) use this library, you should always **encapsulate it with your own code**,
Expand Down Expand Up @@ -89,15 +89,15 @@ console.log( md.match('playstation|xbox') ); // false

There is some documentation generated by JSDoc:

<http://hgoebl.github.io/mobile-detect.js/doc/MobileDetect.html>
<https://hgoebl.github.io/mobile-detect.js/doc/MobileDetect.html>

## Side Effects

Script creates the global property `MobileDetect`.

## Modernizr Extension

When using [Modernizr](http://modernizr.com/), you can include `mobile-detect-modernizr.js`.
When using [Modernizr](https://modernizr.com/), you can include `mobile-detect-modernizr.js`.
It will add the CSS classes `mobile`, `phone`, `tablet` and `mobilegradea` if applicable.

You can easily extend it, e.g. `android`, `iphone`, etc.
Expand Down Expand Up @@ -141,7 +141,7 @@ Often device detection is the first solution in your mind. Please consider looki
like media queries and feature detection (e.g. w/ Modernizr). Maybe there are better (simpler, smaller,
faster) device detection libraries, so here you have a list (order has no meaning apart from first element):

* [Modernizr](http://modernizr.com/)
* [Modernizr](https://modernizr.com/)
In most cases the better solution: don't use knowledge about device and version, but detect features
(touch, canvas, ...)
* [Mozilla Hacks - User-Agent detection, history and checklist](https://hacks.mozilla.org/2013/09/user-agent-detection-history-and-checklist/)
Expand All @@ -164,11 +164,11 @@ faster) device detection libraries, so here you have a list (order has no meanin
* [FormFactor](https://github.com/PaulKinlan/formfactor)
FormFactor helps you customize your web app for different form factors, e.g. when you make
"the mobile version", "the TV version", etc.
* [UAParser.js](http://faisalman.github.com/ua-parser-js/)
* [UAParser.js](https://faisalman.github.com/ua-parser-js/)
Lightweight JavaScript-based User-Agent String Parser
* [MobileESP - Easily detect mobile web site visitors](http://blog.mobileesp.com/)
* [WURFL](http://wurfl.sourceforge.net/)
* [Handset and Tablet Detection](http://www.handsetdetection.com/)
* [Handset and Tablet Detection](https://www.handsetdetection.com/)
* [Search on microjs.com](http://microjs.com/#detect)

## Mobile-Usage Statistics
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "git",
"url": "https://github.com/hgoebl/mobile-detect.js"
},
"homepage": "http://hgoebl.github.io/mobile-detect.js/",
"homepage": "https://hgoebl.github.io/mobile-detect.js/",
"keywords": [
"useragent",
"mobile",
Expand All @@ -27,7 +27,7 @@
"author": {
"name": "Heinrich Goebl",
"email": "hgoebl@goebl.com",
"url": "http://www.goebl.com/"
"url": "https://www.goebl.com/"
},
"license": "MIT",
"readmeFilename": "README.md",
Expand Down

0 comments on commit c8b5972

Please sign in to comment.