modularorg / modularjs Goto Github PK
View Code? Open in Web Editor NEW△ Dead simple modular JavaScript framework for ES modules.
License: MIT License
△ Dead simple modular JavaScript framework for ES modules.
License: MIT License
Just a quick shot: any chances or plans to ship modujs with additional typescript support?
Hi, recently I was testing the Locomotive Boilerplate and I found out this tiny amazing framework. Really great job.
I am facing an issue with the module query selector. In the modal example this.$('accept').style.display = 'none';
is giving an error since this.$('accept')
returns a NodeList.
I can make this work by using this.$('accept')[0].style.display = 'none';
or by "looping" the NodeList.
Is there any solution that I can directly select an element in the module scope?
Hello!
I am trying to figure out how to use the modules effectively. There's one feature on this website that's puzzling me: http://boyntonyards.com/
The Expolre Somerville button is fixed on the screen. It hides when I scroll down, closer to the footer. I wanted to see how this was done because it would be nice to have control over any element if needed. In chrome's insepctor sources panel I was searching for StickyCtaToggler and there's almost nothing in the hide() function. I don't even see where the hide function was called. The "enter" that's in the hide function - where does it come from? I assume the setInView function dispatches dispatchCall and sticks the enter value somehow but I can't figure out how to use calls to create a similar trigger animation. I was hoping I could do this elegantly but I ran out of ideas.
Thanks
I've been using modularjs for a while now but I'm starting to get the error as per the title but can't seem to find a solution online. it happens when using the following code:
1 | import { module } from 'modujs';
2 |
> 3 | export default class extends module {
| ^
4 | constructor(m) {
5 | super(m);
6 |
I'm using Laravel-mix 6.0.6 for front end development and compiling. I have rolled this back to 5 where it has previously been okay but still received the above error.
I was wondering if someone could help or point me in the right direction.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.