Conditionally enqueue a stylesheet based off of a javascript click event

I would like to use a different ccs file based on a javascript click event. The user will have a choice of color themes by clicking one of the colored buttons on the screen. I originally have it working by providing the linked css with an id that can be targeted with javascript. The link is in the HTML head tag of course. In WordPress though we enqueue the css file in the functions.php file and so I am not sure how to give the css file an ID to target it with the javascript. If anyone can help me out or point me in the right direction I will really appreciate it. I am open to all possibilities and I thank you all in advance. if you need me to elaborate more feel free to let me know.

facebook customer chat for website – button click event help need

Dear friends, I need a help. I am facing a problem;

I have setup facebook customerchat in my site. It appear at the bottom-right corner of the page. When clicked on the green round button it open.

View attachment 255988
# I wish to add another option on it, so that I can also open this chat clicking another button/ image/ text also. Suppose see the attchment, if I click on "Chat with us" or the female face image, it will open the customer chat same way.

Optional:
Also can I add…

facebook customer chat for website – button click event help need

My Button Default Click Is Not Working In WordPress Using Javascript Code

I have added 2 buttons in my page and I have added the default button click code using javascript but it is not working.

This is my HTML code:

<button class="tablink" onclick="openPage('inside', this, '#0077c0')" id="defaultOpen">Inside</button> <button class="tablink" style="left:40px;" onclick="openPage('outside', this, '#0077c0')" >Outside</button> 

This is JS code added in functions.php:

function wp_head_custom_mm(){ ?>  // Get the element with id="defaultOpen" and click on it document.getElementById("defaultOpen").click();  </script>     <?php         } add_action('wp_head', 'wp_head_custom_mm'); 

But it is not working, my default button is not clicked.

Error:

Uncaught TypeError: Cannot read property ‘click’ of null

I want to button with id defaultOpen should be clicked when the website opens.

Any help is much appreciated.

Is it possible that the photos I click with the smartphone camera gets uploaded secretly? [closed]

When I take a photo with my smartphone camera is this information sent to the servers provided my internet connectivity is on? I came across some articles about spying on personal data by mobile company servers. So I am a bit worried and curious. I have cloud sync turned off. Is it possible that the photos I click are sent to the servers and the people working there can see my photos and can do anything they want? I am using a redmi phone.

Will Googlebot click a button/link to reveal AJAX content?

my client has to inform it’s customers about some new regulations that the Googlebot should NOT crawl. It is not possible to place this information on a separate page and disallow Google to crawl it. So the idea is to place a button/link on the page, that will AJAX-load the corresponding information only when the user clicks it. My assumption is, that Google is unable to click the link and crawl that specific AJAX content.

Am I right? And if yes, is there an official documentation that proofs my point on this?

Chrome Malware, Redirects To Ad When I Click Link in Google?

I’ve been dealing with this Chrome malware for awhile now, and I can’t identify where it’s coming from. Very occasionally, when I click on a top link in Google, it’ll redirect me to a site that looks like this (always the same green circle with the text “Loading”), and then to adware. The redirect is located at a new domain every time, but it’s always the same green circle. Can anyone help? I only have uBlock Origin installed and I installed it via the Chrome Store. I’m on OS X Mojave. Malwarebytes turns up nothing (PUPs enabled).

dynamically create elements on button click

I’m using create guten blocks to create a custom block for my theme and I need to create a list item with an onClick.

<script> function addItem() {   var ul = document.getElementById("ul-item");   var li = document.createElement("li");   var input = document.createElement("input");   input.type = "text";   li.setAttribute("id", "li-item");   li.appendChild(input);   ul.appendChild(li); } </script>  <ul id='ul-item'>   <li id="li-item"><input type="text" value="" /></li> </ul> <button onClick='addItem()'>Add Item</button> 

see the fiddle https://jsfiddle.net/j2yp7ub9/

something like that I just don’t know how to do it in CGB and can’t find anything using google.

Instagram Phishing: “Look – I Made This Just For You – Click Here”

I manage a somewhat popular Instagram page with ~5000 followers.

Recently I’ve been getting a ton of the exact same direct message from various followers:

Look

I Made This Just For You – Click Here

This took me about 2 hours to make. They came out really nice. I hope you love them.

I just made this for you, I hope u like it.

instagram phishing

They’re all people who have legitimately messaged us in the past. In some cases the usernames have been recently changed and/or the account’s pictures have been deleted.


The link contained in the message is:

https://instagram.com-accounts-authentication-secure-id-46884434223.me/?look=ACCOUNT_NAME_HERE

The url also has a &ure= parameter that maps to a instagram.ftpe7-3.fna.fbcdn.net resource. This seems to be how they bring up the account’s profile page on the fake login screen.


How are these Instagram accounts being hacked?

What is the goal in sending our account these direct messages? What happens if you are unfortunate enough to click the link?

We’re being careful with DM links and two-factor authentication is enabled for this account.

How can we prevent these spam messages?

Is there anything we can do to safeguard or report our hacked followers?