Hello! I have a problem initializing the Firebase in Quasar. Please tell me...
I have a problem initializing the Firebase in Quasar. Please tell me how to do it right.I created the firebase.js file in ./boot folder. Also added firebase in quasar.conf.js. But still not...
View ArticleHow to create a vector brush tool in WebGL ? (like Clip Studio or Concepts)
I'm working to create a Drawing tool on the browser using WebGL. I would like to be able to edit and modify strokes. So it's about having something like Clip Studio or Concepts. I think they use some...
View ArticleBrowser back/next button to navigate between tabs
I'm getting lot of complaints from the users that when they're using my jQuery based tabs, they find it annoying that when they hit back on their browser, they dont go to the previous tab but to the...
View ArticleHTML5 Canvas: Invert Color of Pixels
I am following the tutorial on WC3 found here: http://www.w3schools.com/tags/canvas_getimagedata.aspI have my image loaded up and next to this is the canvas which I have a nice boarder and I'm...
View ArticleHow do I add an active class to my li element in html css
I have been trying to get an active border when selecting a list item. I cannot get the item to show the CSS background-color. how can I get this to work... then a second question I would have is how...
View ArticleAfter refresh route display first route
I have this routing systemconstructor(props){ super(props); this.state = { url: window.location.pathname, about: '', user: '', userPath: '' } } componentDidMount(){ this.setState({ about:...
View ArticleCreating JSON array using JavaScript
I have a JSON object which I need to remodel. The initial JSON looks like this: { "id": "[ 1, 2, 3]", "priority": "High", "assignto": "DanTest", "comment": "This is a test" } The expected result is:[{...
View ArticleDisplay img from bytes generated by python's pillow module
I read an jpg image with python using pillow module:from PIL import Image img = Image.open('./test.jpg') bytes = img.tobytes() If I print bytes I get something like this:print(f'{bytes}') #...
View ArticleWhy are preload link not working for JSON requests ?
The JavaScript on my website loads several JSON to initialize itself.I would like to preload them so, when the JavaScript will launch an Ajax request on it, they will be loaded instantaneously.A new...
View Articlehow to make a route in react inaccessible to all users except when certain...
I have implemented a Private component in the app I'm building that will redirect the user to the login page if they do not have an account yet. It is a fairly common implementation that can be found...
View ArticleHow to change ANY text when click on it? jQuery
I want any text on the site to change to 'Ok!' when I click on it.I tried using this code:if($('*').text() != ''){ $(this).click(function(){ $(this).text('Ok!'); }); } But it does not work because if...
View ArticleOnly send values that have changed in formik onSubmit
I have a small table of data that is pre-filled by an api call on page load. Each row in the table has a facility name and an Enabled value which comes from the api call. If Enabled == true the...
View ArticleShould I use Array.map in a JS Library even with its poor performance?
I'm trying to think the best solution for a NodeJS library I've been writting in the last year. In this project, performance definitively matters. The current performance is good (we've been able to...
View ArticleBest approach for loading a random video file (hosted on a server) in the...
I have a folder of many videos which follow no naming convention. If I upload this folder to a server, is there a viable approach for accessing these on the client side using browser code? Loading a...
View ArticleHow to integrate particles.js into bootstrap template
I would like to integrate particles.js (https://vincentgarreau.com/particles.js/) into a bootstrap template I got and would like it to only appear in the little banner/container. I was able to...
View ArticleJavaScript Array: Query an array by 2 grouping: stuck in a reduce()...
I have a problem with reduce() function.Let`s assume I have this array:myOrders = [ { order_date: '2019/12/01', order_type: 'Shoes', order_amount: 50 } , { order_date: '2019/12/01', order_type:...
View ArticleFormatting p tags in convert from html to ms word
I'm trying to get two signatures to appear on each link such as this but every time I export the the project it then only appears one per a line. I'm not sure if I need to do new margins for the p tags...
View ArticleSynchronizing two MDC drawers
In my page I have two Material Design Component drawers with the same items. One is permanent for desktop/tablet display, the other is hidden/modal for mobile display.<aside class="mdc-drawer...
View Articlenamed router outlet doesn't render template
I have a problem with my angular 8 app, not rendering into a named router-outlet. The routes are:routes.module:const routes: Routes = [ ... { path: 'settings', loadChildren:...
View ArticleHow to dynamically set a function/object name in Javascript as it is...
This is something which has been bugging me with the Google Chrome debugger and I was wondering if there was a way to solve it.I'm working on a large Javascript application, using a lot of object...
View Article