Skip to main content

Questions tagged [dom]

The Document Object Model (DOM) is an application programming interface (API) for valid HTML and well-formed XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated.

25 questions with no upvoted or accepted answers
4 votes
0 answers
524 views

I have put together this function which compares two XMLs. On debugging, I found out that there are lot of useless loops which might cause performance problems for me if the files to compare are very ...
Pankaj Jaju's user avatar
3 votes
0 answers
85 views

I used Python and a little bit of JavaScript using the (Python) modules Dominate and Flask to create a web app that somewhat resembles the Jupyter Notebook though with very basic functionality. I ...
user14773854's user avatar
3 votes
0 answers
130 views

I have created a splash screen library in jQuery. The splash screen will display until the website has completed loading all the images. I just wanted to know if there are any possible improvements. ...
Ghost's user avatar
  • 217
3 votes
0 answers
71 views

First off, not the greatest with jQuery but know enough to get by. I have a custom script for our WordPress site that ties in with a main plugin we use. I have a JSFiddle that gives the gist of what ...
ADF's user avatar
  • 31
3 votes
0 answers
129 views

I've developed a small memory game, the game contains a function to flip cards for every turn. I'm looping thru the array containing the images every time to pick one card. I'm sure there's away to ...
octavemirbeau's user avatar
3 votes
0 answers
123 views

I have a React component with a copyToClipboard method, which all works fine, but feels extremely verbose and quite hacky (namely, having to create a new select ...
mrseanbaines's user avatar
3 votes
0 answers
78 views

I created a simple modal that when a user scrolls down a blog post, a modal pops up. If the user wants to sign up for newsletter, then a form pops up. The only external library I used was body-scroll-...
Mox's user avatar
  • 257
3 votes
0 answers
3k views

I repeated a lot of code here and I'm trying to use more ES6 but I'm not sure where I should have used it in my code. I'd appreciate any input on where I could improve. GitHub ...
icewizard's user avatar
  • 141
3 votes
0 answers
2k views

I tried for fun implementing a function that converts HTML input characters to asterisks after a given time. What do you think about my approach and how would you do it? ...
Mark Adel's user avatar
  • 307
3 votes
0 answers
87 views

This code starts when the page loads and when all assets become available, it removes pre-loader animation and page becomes visible. I know some functions has code repetition, but it can await ...
alandreev's user avatar
3 votes
0 answers
60 views

I just created a simple gallery with scroll. Everything works fine but I'm not sure how should I optimize this code: ...
pastuszkam's user avatar
2 votes
0 answers
79 views

Implementation is based on the MVC design pattern, with callbacks to allow model and view to communicate with controller. Concerns: It's not ideal to have async code inside the model, i.e the model ...
L292092's user avatar
  • 409
2 votes
0 answers
277 views

Here is the problem: some script is injecting some HTML5 elements (actually a button with the #thebutton ID) to the current DOM. But this is a third party script ...
F3L1X79's user avatar
  • 131
2 votes
0 answers
546 views

I have made a timeline component that can have multiple milestone/major/minor as sub components nested within timeline container component. I have also added a side navigation for that lists all ...
Velen Aranha's user avatar
2 votes
0 answers
239 views

I have written a code to sort a main table containing tables in each of its rows. Here I am trying to sort the table by first sorting the rows in each of the main rows and then sorting the table from ...
Lax_Sam's user avatar
  • 201

15 30 50 per page