Wednesday, November 25, 2015
how to check mobile device in php
This project has been started because, the developer of "php-mobile-detect" does not fix or support his version
Description Mobile Detect 2 is a simple PHP class for easy detection of the most popular mobile devices platforms:
- Android
- Blackberry
- iPhone
- iPad
- Opera Mini
- Palm
- Windows Mobile
- as well as generic ones.
Usage Include and instantiate the class:
include("Mobile_Detect.php"); $detect = new Mobile_Detect();
Check for a specific platform:
if ($detect->isAndroid()) { // code to run for the Google Android platform }
Available methods are isAndroid(), isBlackberry(), isOpera(), isPalm(), isWindows(), isGeneric(). Alternatively, if you are only interested in checking to see if the user is using a mobile device, without caring for specific platform:
if ($detect->isMobile()) { // any mobile platform }
PHP file Download Link : Click Here
Source : Code.Google.Com
Tuesday, November 24, 2015
Codecademy just launched a new course on Git, the industry standard for version control
Git lets you track changes to any project, so that you have a clean history of your code. It also functions like an "undo" button, letting you roll back changes if they cause problems. It's an essential tool for every developer - especially those working in groups.
Our new course will teach you Git's basic workflow and cover important areas like backtracking, branching and collaboration.
Learn Git Click Here
jQuery pagination plugin (bootstrap powered)
### Basic usage ###
Plugin requires jQuery (required - 1.7.0 or higher).
You can use Bootstrap CSS styles and markup (or use your own).
The following code shows call the function on `<ul>` tag (it can be also `<div>` tag).
```javascript
$('#pagination-demo').twbsPagination({
totalPages: 35,
visiblePages: 7,
onPageClick: function (event, page) {
$('#page-content').text('Page ' + page);
}
});
```
## Demo and Docs Click Here
Source : jQuery Pagination plugin
Plugin requires jQuery (required - 1.7.0 or higher).
You can use Bootstrap CSS styles and markup (or use your own).
The following code shows call the function on `<ul>` tag (it can be also `<div>` tag).
```javascript
$('#pagination-demo').twbsPagination({
totalPages: 35,
visiblePages: 7,
onPageClick: function (event, page) {
$('#page-content').text('Page ' + page);
}
});
```
## Demo and Docs Click Here
Source : jQuery Pagination plugin
What is slimScroll?
slimScroll is a small jQuery plugin that transforms any div into a scrollable area with a nice scrollbar - similar to the one Facebook and Google started using in their products recently. slimScroll doesn't occupy any visual space as it only appears on a user initiated mouse-over. User can drag the scrollbar or use mouse-wheel to change the scroll value.
Demo
Source : Rocha.la
Demo
Source : Rocha.la
Subscribe to:
Posts (Atom)
