Hiding images while clicking on a button using jQuery
Live Preview:
Did you see that some websites are hiding and showing images when we click on some links or buttons. Do you know how it works. Here is the solution for your confusion. Here I created 2 buttons naming hide me and show me to hide the picture and to show the picture when clicked on that button.The working of this program is completely built on jQuery which is simple and easy to learn.
Here I used two jQuery function show() and hide() to hide and view the images. You can use as many images as you want. The $(document).ready(function) is used here to load the function only when the entire document is loaded. The jQuery will work only if we have the Google or Microsoft cdn which is placed on the source code of the script tag.
Video Preview:
See how do the hide and show function works in this video. The video is uploaded in the youtube channel 'How To'. Subscribe the channel to get tuned.The code of the given program is given below.
To start a new node project, type C:\Users\jinoy\OneDrive\Desktop\MERN>npm init -y The basic syntax of calling a function in node.js with express is : const functionname = () => { console . log ( "hello world" ); } functionname (); To call a function after every 5 seconds : setInterval (() => { console . log ( "hello" ); }, 5000 ); To call a function only once after 4 second : setTimeout (() => { console . log ( "test" ); }, 4000 ); To run a script.js file on terminal, type : C:\Users\jinoy\OneDrive\Desktop\MERN>node script.js OR C:\Users\jinoy\OneDrive\Desktop\MERN>node script To stop a function that is executing on every interval( time to call function again) : const interval = setInterval (() => { console . log ( "hello" ); }, 1000 ); setTimeout (() => { clearInterval ( interval ); console . log ( "stopped" ); }, 6000 ); The above function will work continously untill
CodeIgniter is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant toolkit to create full-featured web applications. It is the second largest php framework for website development (first-Laravel). Due to its simplicity, it is the most used framework ever than laravel. Actually these frameworks are only used for developing large scale website. The important thing about this framework is that it is using MVC principle . A MVC or Model View Control framework has a controller that controls all the pages in the website. There can be any number of controller created in codeigniter. The orginal webpages or the contents are placed in the folder named view . Note : Don't touch the forder named system because it is the soul of the codeigniter Next ⇒
https://github.com/Jinoy-Varghese/Jain-Lab After a long time cloudflare introduce new feature ' cloudflare pages ' allowing jamstack developers to host their website as free in cloudflare page. This new feature allow developers to use unlimited bandwidth and unlimited websites as a free user. You can host your repo directly to cloudflare servers using github.Websites are built through collaboration between designers, engineers, writers, and more. Cloudflare Pages makes it effortless to satisfy each group, so you can iterate quickly, and save time on coordination. You don't need to worry about the ssl certificate, since cloudflare provides ssl free certificate too. Note: This pages are only for front end developers, it didn't have a database and did not support php.
Good
ReplyDelete