Skip to main content

Addition of lightbox to my blogger template

Since i have started regularly blogging, i have felt the need for a small subpage or popup kind of feature where i can briefly explain things that do not need a dedicated blog post and where links to external pages would be 'a bit too much'.

I decided to use the lightbox effect for this. It would be the perfect solution to my problems. After a little googling, i came up with 2 amazing and simple implementations, one by Abhinay Rathore, this uses CSS and javascript, and the other is by Emanuele Feronato, which almost all css and even the minimal js is used to manipulate the css.

As I am extremely lazy and also was not entirely happy with both the implementations, i decided to mix the 2 and get my own lightbox. Abhinay's solution was something i found unnecessarily complex and Emanuele's solution was not elegant enough. My own solution is midway between these two and is satisfactory for personal reasons.( Yeah, click on the link. I already found a use for my new addition. )

Code's here.
and here is an example
Do play with those.
As always, do comment on the post and tell me if something can be made better.

Comments

Popular posts from this blog

The first half of 2017 in review

Hi people, Half the year is over and i think its good to list out things, so that i have an idea as to how i am doing with my studies ( and pretty much everything else ). It's been a wonderful and fulfilling half year, to be honest. I did a lot of things I always wanted to do.  I started experimenting with hydroponics - haven't really progressed much, but I am sure I will do something substantial in the other half of the year. Benefits are a lot over traditional way, and the joy of watching your plants grow are invaluable, at the least. I read a few books on history. I have always wanted to do this , but I always had an excuse or 2 to avoid it. I finally started, and it's brought me a sense of childlike wonder, something I sorely missed. I cleaned my home! That's 20 years of procrastination right there! It was insane but I got it done. Whew! And wow!  At the beginning of the year, i finished my re-study of the CS subjects. Post February, i opened th...

When you say........

......you don't believe in god, you admit there is a god to believe in This is the meme post that started this train of thought in my mind.   I have heard one of my classmates say a long time ago, if women truly believed that they were equal to men, then they would not fight for it. While I never accepted it, i didn't know how to speak against it either. but it was there, somewhere in my mind. I think i made some sense out of it, at last. This is stupidity. This is like saying 'If we Indians seriously believed that freedom was ours, we would never have had to fight for it'. The fight for independance was a fight to make the other party understand and/or accept your viewpoint. The first resonable method might be to consider the other person's viewpoint. And using that as a base point,then work, with suitable proof and arguments, raise, alter, or reconstruct their viewpoint to match ours. This method follows the logic that people can and will be fair in an...

Year 2016 in review and goals for 2017

Hello people, It's my 34th birthday today and I wanted to put the past year in review and where I wanted my life to go in the next year. Achievements of this year: Machine learning course by Andrew Ng ( completed ) Calculus I by Robert Ghrist ( completed ) Calculus II by Robert Ghrist ( completed ) Probability and Statistics ( 2 weeks left ) Data science - pandas ( 1 week done )  My first linear regression program Built a neural network from scratch  My first Regex. From scratch. No references. With tests. Algorithms I by Robert Sedgwick ( only audit ) Algorithms II by Robert Sedgwick ( only audit ) Also did the BE subjects for CS, all the stuff I had learned over the years. I am super happy to know that MOOCS help a lot in career advancement . Self-help books that really helped: How to win friends and influence people - Dale Carnegie   A mind for Numbers - Barbara Oakley   Altogether, a pretty good year, where le...