rPage is an easy to use plugin for making Bootstrap 3's pagination more responsive. rPage automatically shrinks the pagination component and removes some of its elements when there isn't enough room.
by via jQuery-Plugins.net RSS Feed
"Mr Branding" is a blog based on RSS for everything related to website branding and website design, it collects its posts from many sites in order to facilitate the updating to the latest technology.
To suggest any source, please contact me: Taha.baba@consultant.com
rPage is an easy to use plugin for making Bootstrap 3's pagination more responsive. rPage automatically shrinks the pagination component and removes some of its elements when there isn't enough room.
Wunderlist is one of the most popular task management and list keeping applications out there. It allows you to create lists to which you can then add tasks that are easily checkable and have all sorts of functionality built into them. It has native apps for all the major OS’s and all your data syncs effectively over the cloud. It’s very nice to work with if you are trying to keep yourself organized and you can get a lot done even with the free version.
Nowadays, most web apps out there provide APIs for developers to integrate with their own applications (even free ones like Trello). In 2015, it finally happened for Wunderlist as well: their API was made public and thoroughly documented.
In this article, we will look at their API and see how we can interact with a Wunderlist application programatically. To this end, we will start a very small PHP app without any kind of framework behind it, just some raw PHP files brought together by Composer for testing purposes. And since there is no official PHP SDK, we’ll make use of Guzzle to perform HTTP requests to the various endpoints.
In addition, if you are curious, check out this demo repository which contains some basic code that allows you to load up all the tasks of a given list and then check them off one by one using Ajax. Similar to the core functionality of Wunderlist, but again without any kind of framework or styling.
Inside the root folder of our project we can have a composer.json file like this:
{
"require": {
"php": ">=5.5.0",
"guzzlehttp/guzzle": "~6.0"
},
"autoload": {
"psr-4": {
"Wunderlist\\": "src/"
}
},
"require-dev": {
"symfony/var-dumper": "~2.7"
}
}
Continue reading %Crash Course of Wunderlist’s API with Guzzle%
December’s “Most Loved” One Page website round up is brought to you by the free Zerif Lite WordPress Theme.
Zerif Lite is a suited for any digital agency and really has a lot on offer for a free theme. First off the whole theme is setup using the WordPress theme customizer where you can drag around items and easily fill out your company details. Other features include Localization for multi-language support, RTL (right-to-left) support, e-commerce (WooCommerce) compatibility, parallax scrolling, a pretty nice looking team section and a full responsive design.
If you want to receive these round ups in your inbox at the end of each month, subscribe to our Monthly Digest. Below are 6 One Page websites we awarded “Most Loved” in December – hope you enjoy!
Crisp big imagery and gorgeous speaker transitions as you scroll through this One Pager promoting the new ‘Montues’ event – a division of Epicurrence. The quality photography by Helena Price really adds a great first impression. Nice touch with the speaker transitions being moved inside the badge logo on smaller screens.
Beautiful illustrations and subtle animations in this unique One Pager for a new Georgian craft beer called 34. It’s difficult to put into words the amount of love that the Leavingstone team put into this Single Page website. The layout is really unique but still very flexible, the intro age verification check is hilarious and the overall consistency of color, typography and illustrations is just superb. Make sure you watch the video too with their pricing experiment, interesting stuff.
Lovely dark-schemed One Pager for a tarot-reading iPhone app called ‘Golden Thread Tarot’. The Single Page website features brilliant little icon animations and the responsive adaption is just superb.
Awesome illustrations and animations in this One Pager wishing a happy holiday from digital agency, Urban Influence. The site features an illustrated version of their Seattle neighbourhood, Capital Hill, including some of their little buddies and critters – all animated with pure css, via keyframes. The video is hilarious too.
Music streaming service Spotify showcase their 2015 year in a colorful, interactive One Pager based on user stats. Make sure you use the navigation and arrows for a better user experience vs scrolling.
One Pager for the film ‘Our Brand Is Crisis’ staring Sandra Bullock and Billy Bob Thornton. The Single Page website features gorgeous big imagery and typography. Real nice touch with custom preloader that spells out “Crisis” while you read critic reviews. Also worth noting this is actually integrated into Tumblr!
Hope you enjoyed our December Round-Up! Why not give this a RT if you want to help spread the love:)
|
Bigger isn’t better when you have to sacrifice quality for size. Luckily, PhotoZoom gets it right on both fronts. Get the PhotoZoom Classic 6 application for $39 at SitePoint Shop.
PhotoZoom uses patented, award-winning technologies to enlarge your images to any dimensions while preserving their quality and keeping details clear. It’ll work on any photo, even cleaning up JPGs you pull from the web to remove compression and noise. Use the included presets or create your own and save them for future use.
Make a big statement. Get PhotoZoom Classic 6 for $39 at SitePoint Shop.
Continue reading %Get Striking Photo Enlargements with PhotoZoom Classic 6 for $39%
Using Siri, Google Now or Cortana to talk with your smartphone is pretty normal these days. But have you ever considered creating your own Voice Dialog? And would you think this is possible within a hybrid app using Cordova and the Ionic Framework? Let me prove it to you.
In this article I will show you how to build text to speech voice output and speech recognition input using Cordova plugins with the Ionic Framework.
We start with a blank Ionic app and install our two Cordova plugins, so go ahead and run:
ionic start cordova-speech blank cd cordova-speech cordova plugin add cordova-plugin-tts cordova plugin add http://ift.tt/1j3OWL1
This creates a new folder cordova-speech with a clean Ionic Framework app and adds two Cordova plugins we need for our example:
The first plugin is a cordova wrapper for the native text to speech output functions. This plugin uses the AVSpeechSynthesizer on iOS and the android.speech.tts.TextToSpeech package on Android, so it’s really a simple mapper of the best native functions for giving out text. This plugin also seems to work for Windows phone, but I had no chance to test this part. If one of you has a Windows Phone why not give it a try and leave a comment with your findings below?
The second plugin is a cordova wrapper for speech recognition. On Android this plugin uses the native android.speech.SpeechRecognizer package, on iOS it’s a bit harder to achieve this task so the author used the iSpeech SDK which you can test for free for now. If you plan to use this SDK in production additional costs may arise.
Besides those two plugins we don’t need any more tools or fancy components inside our app!
The view of our app will be quite simple. First of all we need an input field for some text which our app can speak later on.
Below this field we need two buttons, the first is to call our text to speech action so the text we have inserted get’s read to our user. The second button triggers our speech recognition dialog and listens for whatever we say.
The recorded text (or what the app thinks we have said) will be printed below our other components, just to see how precise the recognition is. This can vary quite a bit, depending on surrounding sounds, how clear you speak, how difficult the words and sentences are and so on. You can play around with the results later and leave your opinions about this plugin below!
For now go ahead and open your www/index.html and replace the current body with:
<body ng-app="starter"> <ion-pane ng-controller="AppCtrl"> <ion-header-bar class="bar-stable"> <h1 class="title">Cordova Text-to-Speech</h1> </ion-header-bar> <ion-content class="padding"> <div class="list list-inset"> <label class="item item-input"> <i class="icon ion-speakerphone placeholder-icon"></i> <input type="text" placeholder="Let me speak..." ng-model="data.speechText"> </label> </div> <button class="button button-full button-positive" ng-click="speakText()"> Speak! </button> <button class="button button-full button-positive"ng-click="record()"> Record </button> <div class="card"> <div class="item item-text-wrap"> {{recognizedText}} </div> </div> </ion-content> </ion-pane> </body>
There is really no magic in this view so let’s head to the real bread and butter of this article!
We have already installed all the needed plugins and don’t have to import any headers or anything else besides. Therefore, open your www/js/app.js and replace everything inside with:
angular.module('starter', ['ionic']) .controller('AppCtrl', function($scope) { $scope.data = { speechText: '' }; $scope.recognizedText = ''; $scope.speakText = function() { TTS.speak({ text: $scope.data.speechText, locale: 'en-GB', rate: 1.5 }, function () { // Do Something after success }, function (reason) { // Handle the error case }); }; $scope.record = function() { var recognition = new SpeechRecognition(); recognition.onresult = function(event) { if (event.results.length > 0) { $scope.recognizedText = event.results[0][0].transcript; $scope.$apply() } }; recognition.start(); }; });
As you can see there is not that much code needed for quite cool features! Let’s take a closer look at our controller implementation.
We create a data object which will is connected to our input field. We need to make it an object so the value is updated correctly using ng-model
.
If we want our inserted text to be spoken, the speakText()
function get’s called. We use the Cordova plugin by calling TTS.speak()
and also pass an object with some properties. In this example we pass the text (which you should always do) and also a language and a rate which defines how fast the text is spoken. You can create quite funny outputs playing around with these values, trust me I had my fun creating this article!
Finally we can also specify a success and error callback, which I left empty for now because handling those errors is very custom for every app.
Our voice recognition starts on calling record()
. Here we create a new instance of a SpeechRecognition
object. After creating it, we assign a function to the onresult
property of the object. This function will be called once the recognizer thinks he is done listening to you talking.
We check if we actually have any result, and if that’s the case we apply the text our recognizer understood to our scope variable which appears below our other view elements.
After setting the result block we only have to start our recognition and the app starts listening, that’s all!
In this step-by-step tutorial I explained how to use two Cordova plugins for text to speech and voice recognition inside an Ionic app. You might think that these two features are hard to implement, but given the great wrappers they are super cheap and easy to include in your hybrid app.
If you want to learn more about building great mobile Apps make sure to check out my Blog Devdactic and follow me on Twitter @schlimmson!
Cheers,
Simon