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
Recursive function to compare XML files using MSXML DOM
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 ...
3
votes
0
answers
85
views
Command line notebook
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 ...
3
votes
0
answers
130
views
Splash screen library in jQuery
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.
...
3
votes
0
answers
71
views
Displaying sections from pre-checked options
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 ...
3
votes
0
answers
129
views
Function to flip cards in a memory game
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 ...
3
votes
0
answers
123
views
Copy-to-clipboard function from a React.js component
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 ...
3
votes
0
answers
78
views
Javascript Call To Action Modal
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-...
3
votes
0
answers
3k
views
Event Calendar in JS, CSS, and HTML
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
...
3
votes
0
answers
2k
views
Converting HTML input characters to asterisks after a given time
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?
...
3
votes
0
answers
87
views
Remove pre-loader animations when all assets on page become available
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 ...
3
votes
0
answers
60
views
Simple gallery with scroll
I just created a simple gallery with scroll. Everything works fine but I'm not sure how should I optimize this code:
...
2
votes
0
answers
79
views
Hashtable Visualizer in TypeScript
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 ...
2
votes
0
answers
277
views
Wait for an element to exist in DOM before clicking it
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 ...
2
votes
0
answers
546
views
Angular 8: Scroll spy implementation for a timeline Contents
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 ...
2
votes
0
answers
239
views
Vanilla Javascript code to sort nested tables
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 ...