Strange JS redirect & 404 - javascript

I created a new toolbar for this site and I get this really strange new tab / redirect when on mobile if I rotate the device and try to navigate through the toolbar.
https://www.birthinjurysafety.org/[object%20MouseEvent]&visitorId=a625aeab-d753-41bc-bd93-a9830020e101?__utma=236318866.1681129442.1540344287.1540346383.1540359074.2&__utmb=236318866.1.10.1540359074&__utmc=236318866&__utmx=-&__utmz=236318866.1540346383.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=142272497
Anyone know why JS would do this? Oddly enough the button that causes this strange new tab to open isn’t even a link itself. It just opens the next menu.
Thanks in advance for any help or suggestions! I’m really at a loss with this one.
The toolbar is built in vanilla JS. Except the button itself has some old jQuery dependent code that animates the button and shows the menu.

Related

How to create a menu page in my chrome extension

I don't know how to create a menu page / popup in a chrome extension (not sure if thats actually what its called). I am very new to coding chrome extensions, and I was wondering how to create a new page in my chrome extension, just like in a website in which you click a button and it brings you to a different page within the website. This is a screenshot of the 2048 menu page on chrome ->2048 Menu Page and im not sure how to create a page like that. I am creating a button-pressing game, and I want my menu page to pop up first when the chrome extension icon is clicked, and then there is a list of options like hardcore, begginer etc. and a button to bring me to the game page itself, but still in the same popup, with the same dimensions, exactly like 2048. Does it have something to do with the popups, the manifest.json file? Im really not sure...
Here is the Screenshot of my manifest.json file and here is the Screenshot of popup.html. If anyone knows how to do this, or needs any extra info, please let me know 🙏🏻
PS: Pls explain and show me step by step like im a kindergarden kid, cuz at this stage in my coding skills i probs am ngl.

Close Window opened manually in script

I am trying to close the current tab when the user clicks on the 'CloseWindow' Button. Whatever I try
VM303:1 Scripts may close only the windows that were opened by them.
statement is displayed. I tried all the workarounds using self, window.opener.close() etc.
Has anyone done and it's working please share and help. I am using React framework. I am trying this in a jsx file.

How can I add a close button to pop up window

I am in way over my head, new to S/O and need to get this done as soon as possible. If I am doing this wrong I apologize in advance.
I purchased an extension that was simple enough to install but I need to extend the function just a but. I reached out to the developer to no avail.
Anyway I need to add a close button to the pop ups featured on the home page of this website (http://www.juanlafontalaw.com) Click on one of the hotspots (Red) and the pop up will appear. I simply need to add a close button or X that will allow the user to close the pop up without touching the main screen.
The site is Wordpress based. Plug-in: Visual Composer. The Extension: Visual Composer Add-on Image Hotspot with Tooltip (This is the focal point of my question)
I have no idea where to begin and did not expect to be in this position. And I did not think the develop -who does offer support to totally ignore my
Make a button in html, and use jquery click function to make display none in the pop up
$("#btn-id").click(function(){
$("pop-up").css("display","none");
})

Code Mirror only displays after a user clicks on it when integrated into a Bootstrap tab

I am having an issue with integrating Code Mirror into a Bootstrap tab.
The problem is that because the Bootstrap tab is not set to active, code mirror will only display the content if the user clicks on it.
I have thoroughly searched a solution for the problem but have not found anything that works (possibly due to my knowledge about JavaScript not being very good). I have tried things like telling codemirror to refresh, but it doesn't solve the problem.
Calling .refresh() on the editor is what is needed here. You just have to make sure you do it after the editor actually becomes visible. I am not sure how to do this with Bootstrap tabs, but I'm sure there is some way to listen to tab change events.

javascript drop down stopped working on Wordpress Woocommerce https page

This is the site I'm currently working on.
http://www.mackeyshotrods.com/store/
When the browser window is resized to 820px a drop down menu appears in the right hand corner of the site. The drop down menu works great on every page except for the check out page. I cant seem to figure it out why the drop down menu isn't working on an HTTPS page. It has to be a JavaScript error of some sort.
To find the page I'm struggling with add a product to the cart and navigate to the checkout page.
http://www.mackeyshotrods.com/store/?product_cat=clothing
Thank you for your help. i hope someone is smart enough to figure this out.
Try changing your jQuery path from:
http://code.jquery.com/jquery-1.11.0.min.js
To:
//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
Good explanation of why your jQuery might be getting blocked here:
https://stackoverflow.com/a/1056635/2040509

Categories

Resources