This jQuery code removes the value of a input text type when the user clicks on the input. $(document).ready(function(){ $(function(){ $('input:text').each(function(){ var inputValue = $(this).val(); $(this).focus(function(){ $(this).val('') }); $(this).blur(function(){ if($(this).val() == ""){ $(this).val(inputValue); } }); }); }); });
Author Archives: klevisi
Facebook app beginner code example
Since it was not so easy for me to get things up and running, I wanted to share it for other developers. This code gets all videos that are uploaded to a page. First you should download the php sdk from github. <?php require_once 'facebook.php'; $app_id = "226102437478452"; //Your application ID $canvas_page = "http://apps.facebook.com/your_canvas_page/"; //Your [...]
Albanian Fried Dough with cheese and squashes
Ingredients 1 egg 1 teaspoon of salt 1 teaspoon of sugar 1 teaspoon of baking soda 400 gr flour 500 gr yoghurt 1 or 2 squashes 100 gr or more white cheese Mix the egg with the yoghurt. Add the flour slowly and continue mixing. Cut the cheese in tiny pieces and put them in [...]
My ASUS G73SW Republic Of Gamers Laptop
A week ago I purchased for $1450 the ASUS G73SW 4.4Kg desktop replacement laptop and I love it. It’s not a laptop you can travel with though. Here are the main technical specifications: Processor: Intel® Core™ i7 2630QM Processor RAM: 8Gb DDR3 HD: 1Tb Optical Drive: Blu-Ray DVD Combo Display: 17.3″ Graphics: NVIDIA® [...]
My very first web site
This is the very first website I’ve developed in Joomla 1.5. I made some fixes because the site got hacked, the english version wasn’t working. I noticed that 2 installations of Joomla were used, one for each language . For the existence of multilanguage components? I didn’t know at that time. I’ve deleted the english [...]
First diary post
Just added the diary page. I created a page template which gets the posts from the “Diary” category and assigned it to the Diary page.
Developing an Android App
I’ve got my Samsung Galaxy S2 a week ago, now I want to develop an app for it. I am also reading a book along the way.
First post from my Samsung Galaxy S2
Yesterday I bought the Samsung Galaxy S2. I am amazed by this phone, except the fact that it is too big and won’t fit right in my pocket. I have always the feeling that some pickpocket will steal it .I found a worpdress application and am so happy to know that now I can write [...]
HTML5 Boilerplate looks interesting
It looks like a perfect startup theme. I will do my next HTML5/CSS site with it.