Quantcast
Channel: Linux Feed » position
Browsing latest articles
Browse All 7 View Live

jQuery – Center DIV vertically and horizzontally with Jquery

$(document).ready(function(){ $(window).resize(function(){ $('.centered').css({ position:'absolute', left: ($(window).width() – $('.centered').outerWidth())/2, top …

View Article



jQuery – Use jQuery to display an image alt tag as a caption overlay

Loop through all the images in a given container, grab their alt tags if they are not empty, and then create an overlay in a span tag that will be positioned on the bottom corner of the each image.

View Article

JavaScript – Get user location using the browser GeoLocation features.

In browsers that support geocoding, the geolocation API is exposed in Javascript as a member of the navigator object navigator.geolocation, here it is a snippet on how to use such feature to geo tag...

View Article

PHP – ROT-13 Decrypter Caesar cipher

ROT-13 Decrypter

View Article

C – Project a 3D vertex [X,Y,Z] object to a 2D [X,Y] point.

This little function could help you if you want to transform a 3D point ( vertex ) to a 2D space point ( from a [x,y,z] vector to [x,y] ), for instance to print a 3D object, which is just a set of...

View Article


Python – A-Star ( A* ) search algorithm implementation

In computer science, A* (pronounced "A star") is a computer algorithm that is widely used in pathfinding and graph traversal, the process of plotting an efficiently traversable path between points,...

View Article

HTML – Create Windows Phone 8 Tile for your Site

This code allows you to add to the main screen of the smartphone Windows Phone 8 a "tile" to your site.

View Article
Browsing latest articles
Browse All 7 View Live




Latest Images