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 (() => { clearInterva...
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 ⇒
In the ever-evolving landscape of software development, ensuring supply chain security and embracing cloud-native practices are paramount. One solution that stands out in addressing these concerns is Chainguard, a platform providing secure images for development environments. Recently, I had the opportunity to explore Chainguard's capabilities firsthand through a sponsored video collaboration. The video delved into the seamless integration of Chainguard images into various development workflows, highlighting the significant advantages they offer in terms of security and efficiency. From hosting images on platforms like ECS, Apprunner, and Google Cloud Run to leveraging DockerHub for streamlined deployment, Chainguard simplifies the process while enhancing security measures. What sets Chainguard apart is its proactive approach to security. Images are rebuilt daily and frequently patched, minimizing vulnerabilities and mitigating risks associated with outdated dependencies. This ...
Good
ReplyDelete