Skip to content

Author: admin@master

Highlight syntax in contenteditable

I have a contenteditable div I want users to type in. When users type inside the box with onkeyup, I activate a function that changes the color of certain characters: What this code does is it takes every < sign and every > sign and turns it into a gold color. However, when I do this, I am no longer

Bug reporter: Alternatives to getDisplayMedia?

I am trying to implement a bug reporter on my website. My goal is that the user will be able to describe the problem audibly and record the browser tab while walking through the problem. The bug report will then just be a video file, which can be emailed to me. It appears that the proposed navigator.mediaDevi…

What does ||| mean in JavaScript?

I’ve googled this and searched through the JavaScript documentation but I can’t find any mention of this operator: a |ǀ| b When I try the operator on its own I get an error but when I run the following code it runs perfectly fine: Changing the values of a and b would suggest it works like || but I…

Vue $route is not defined

I’m learning Vue router. And I want to made programmatic navigation without using <router-link> in templates file. My router and view: So by default I push to ‘allVideos’ route and inside that component I have a button and method for redirecting to ”editVideo’ button: metho…