MobileDetect demo
This wiki has the MobileDetect extension installed, which makes it possible to specify that some content is to be shown only on mobile page views, or only on desktop page views.
| MobileDetect | |
|---|---|
| Documentation | |
| Maintained by WikiTeq? |
No |
| Version |
|
Below is a (non-escaped) copy of the following code - only one of the two sections should show up! You can also test out the page on the other view using these links:
<nomobile> == You are on desktop == </nomobile> <p class="nomobile"> You can also use the <code>nomobile</code> class directly to hide stuff on mobile. </p> <mobileonly> == You are on mobile == </mobileonly> <p class="mobileonly"> You can also use the <code>mobileonly</code> class directly to hide stuff on desktops. </p>
You are on desktop
You are on mobile
You can also use the mobileonly class directly to hide stuff on desktops.