Skip to main content

All Questions

18 questions with no upvoted or accepted answers
4 votes
0 answers
84 views

Comparison of sprite movement implementations

I've come up with two ways to do sprite movement with CreateJS, and I'm wondering if one is better than the other as far as performance and maintainability. The player data is saved in a json file ...
Big McLargeHuge's user avatar
3 votes
0 answers
68 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-...
Mox's user avatar
  • 267
3 votes
0 answers
73 views

Creating an observable stream of clicks and converting it to an iterator

Problem 1 StratifiedJS allows people to cleanly create observable streams using the Stream class from sjs:sequence: ...
zamfofex's user avatar
  • 131
3 votes
0 answers
46 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: ...
pastuszkam's user avatar
3 votes
0 answers
46 views

Periodically monitor if record is not updated using Node, Event and setTimeOut

Here is my scenario: Every user checks in every five minutes. If some user doesn't check in after 5 minutes, I should be able to keep track of it. If some user doesn't check in N number of times, an ...
Jay's user avatar
  • 131
2 votes
0 answers
71 views

To-do list application

I use a lot of for loops and I think it slows the code down a lot but I have no idea how else this code could be written. Its for a to-do list app and each ...
Helan's user avatar
  • 21
2 votes
0 answers
1k views

JavaScript: implement event listener in custom object

For many years, there have been several JavaScript libraries for implementing custom events and event listeners. But, as MDN web docs suggests, there are now available constructable Event, CustomEvent ...
Passiday's user avatar
  • 121
2 votes
0 answers
27 views

UI Event Flow class

Purpose: I wanted a way to improve event clarity and event code organization. I observed that every single event flow went through the following steps: Trigger -> UI Change -> (Async) ...
Shelby115's user avatar
  • 1,961
2 votes
0 answers
51 views

Event handler re-use in Javascript

I've been trying to deal with a lot of duplicate code in the first web pages I've been working on and have been playing around with the prototype model, which I think is the 'right' way to go about it....
S Meredith's user avatar
2 votes
0 answers
28 views

Event based read and output file lines

In the near future, the app will have to start several actions after having read the content of the file (executing request based on the request module). I was ...
Quentin's user avatar
  • 121
2 votes
0 answers
55 views

Custom event trigger and listener module

I am working on a data collection JavaScript library, and would like other members of my organization to be able to write loosely coupled plugins to extend its core functionality. I've been working on ...
Jeremy H.'s user avatar
  • 141
2 votes
0 answers
254 views

Generating a carousel slider

I'm currently using Backbone to generate a carousel slider. In my View, I have an initialize function that looks like this: <...
DaveyJake's user avatar
  • 121
2 votes
0 answers
234 views

Event Delegates using IIFE or Module

I am learning jQuery/JavaScript best practices and am attempting to put them into practice. My overall goal is to have lots of small, independent .js files which contain specific functionality and ...
user avatar
2 votes
0 answers
297 views

handle drag and drop operations

I've come up with the following code to handle drag and drop operation. It's composed of a constructor function that returns an objects with methods to attach to event handlers. Notes about this ...
André Werlang's user avatar
1 vote
0 answers
55 views

Dynamic adding and removing div elements using event streams (eventlistners)

I has div block feedList which contains feedItems. Now to fill ...
Gudsaf's user avatar
  • 186

15 30 50 per page