click to show phonenumber on multiple hml files with multiple locations

click to show phonenumber on multiple hml files with multiple locations

I have 200 html files where I have to hide phone number until we click on a text, so I need to change all the files content using some tool like GrepWin. I can do that with this code but the problem is that the function name and id needs to be changed for all locations within the same page that have the same content. So this line is present several times on the same file:

I have 200 html files where I have to hide phone number until we click on a text, so I need to change all the files content using some tool like GrepWin. I can do that with this code but the problem is that the function name and id needs to be changed for all locations within the same page that have the same content. So this line is present several times on the same file:

 <p><b>Contact data: <script>function myFunction() {document.getElementById("demo").innerHTML = "0316 301 958";}</script><button id="demo" onclick="myFunction()">Show the number</button>
 <p><b>Contact data: <script>function myFunction() {document.getElementById("demo").innerHTML = "0316 301 958";}</script><button id="demo" onclick="myFunction()">Show the number</button>

I need different solution to change them all on all html files but to show the number(which is the same for all). At this point is only showing one number http://jsfiddle.net/qyzkfush/ . I can manually edit the function name and button id but it will take me ages to change 200 files content with many positions in each file. I need to use GrepWin to search the code and replace it for all files.

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Render HTML with Vanilla JavaScript and lit-html

Sometimes you need to render HTML elements on a web page. And like Goldilocks' search for "just right", you have to try a few techniques before you find the right one. Using a framework may be too hard. Using pure HTML and the DOM API may be too soft. What you need is something in the middle that is just right. Is lit-html "just right"? Let's find out.

How to Retrieve full Profile of LinkedIn User using Javascript

I am trying to retrieve the full profile (especially job history and educational qualifications) of a linkedin user via the Javascript (Fetch LinkedIn Data Using JavaScript)

How to Create an Animated Navbar with Html, CSS and JavaScript

In this Html, CSS and JavaScript tutorial you will build an animated navbar with Html, CSS and JavaScript. Have you every wanted to create an awesome animated navbar with JavaScript? We will be looking at making a navbar with Html and CSS and then using the intersection observer in JavaScript to help us create this effect.