Here you go for the directive to show loader for images in your angularjs application. Inject the module “sesu.imageloader” in your main app module and start using it. You need to pass the loader image and the css class for your loader which gives more flexibility to customize loader based on your application’s theme. Usage: […]
It is obvious case that you need to have login as a beginning of your app. We will learn how to create login based application with ionic in this tutorial. Install ionic npm install -g cordova ionic Create a project with readily available templates from ionic. Use sidemenu template in our case. ionic start login […]
I have created a jQuery plugin to handle expand and close functionality of searchbar. This would help some to minimize their work, since it is straight forward to use. Download the files from github. Add javascript ( jquery.searchbox.js ) and css ( searchbox.css ) files in your html document. Create a div in your document and […]
Using fallback image with <img> tag is common scenario to show a default image if the original image is not loaded. In angular you can achieve this by creating a fallback directive like below, angular.module(‘fallback’,[]).directive(‘fallbackSrc’, function () { return{ link: function postLink(scope, element, attrs) { element.bind(‘error’, function () { angular.element(this).attr(“src”, attrs.fallbackSrc); }); } } }); […]
Setting height and width to an image is a general scenario in web development. We need to take in account that image shouldn’t get stretched, it should be resized based on aspect ratio. So I created a javascript helper which resizes the image proportionally based on the traget-height and target-width instead of setting the height […]
There are lot of image capture scripts out there in AS2 but, when we try to capture large images using AS2 it becomes horrible due to huge memory utilization. This is due to pixel by pixel RGB value collection process of AS2.When I was into a project development, I suppose to do the image saving […]
I have been searching for rotating any display object based on its center and ended up with the stuffs using MatrixTransformer. Though it may helpful to use those stuffs, it didnt work for me. finally i did a work around it and created a method which uses the getRect() of AS3 and works well without […]