Modularity JS Library by Punkydg

Description
With these single global function packed in small footprint js library file, you can make your multi pages html process more efficient. In traditional way, we have to rewrite/includes all headers (styles and script block) all over again in every html page in our project. The only to way to connect all those html page are through a href or using framework with SPA based concept. Using this single library now we can link all those html page in a modular way, which means we only require headers (styles and script block) only once, will be able to place our html+javascript module file to specific target element in our main file, and also the best part is we do not need any frontend framework to achieve that.
Features
This packages includes mini project (index.html modules css js) to show how to use this library. Within modularity.min.js there is 1 global function :
1. loadModule : function to load other formated html page as a module
Requirements
Standar browser with javascript enabled
Instructions
1. link modularity.min.js to your script src attribute, included in your main html file
2. make your module html file with below structures :
Other module
3. use global function loadModule in your main html file to load other html formated file const res = await loadModule('modules/frmUser') or const res = await loadModule('modules/frmUser', '#target_element') or loadModule('modules/frmUser') if you're not require to verify its response
** Example how to implement can be found in index.html
| Author | punkydg |
|---|---|
| Category | Scripts & Code / JavaScript / Miscellaneous |
| Price | $25 |
| Likes | 1 |
| First Release | May 16, 2024 |
| Last Update | May 16, 2024 |
| Files included | .css, .html, JavaScript .js |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 3,582 views · 33 clicksSaaS · Week 45 · 3,582 views · 33 clicks
🥈
Conversational Backlinks for Busy Founders
Place Backlink Relevant Conversation for your domain across Forums and Conversations
Website · 41,103 views · 222 clicksWebsite · Week 45 · 41,103 views · 222 clicks
🥉
upvote.club
Free Social Media Engagement that Helps Boost Your Content. Upvote Club supports 19 social networks with 100+ engagement actions in one dashboard. Add links to your posts and get free engagement from real users.
SaaS · 39,162 views · 113 clicksSaaS · Week 45 · 39,162 views · 113 clicks
#4
Substack Posting API
Onboard your Agent to Substack. Write Publish on Substack via API
SaaS · 58,197 views · 198 clicksSaaS · Week 45 · 58,197 views · 198 clicks
#5
Seenshot App
Free, Fast, MacOS Screenshot app. Make Screenshot cmd+shift+2 and send it via link
Desktop App · 27,588 views · 120 clicksDesktop App · Week 45 · 27,588 views · 120 clicks
#6
Hand-Placed Backlinks $9.99 per link. Flat rate.
Buy hand-placed forum, Q-A and directory backlinks. Flat $9.99 per link, no subscriptions — you only pay for approved listings.
Website · 3,473 views · 18 clicksWebsite · Week 45 · 3,473 views · 18 clicks
#7
Free Invoice Generator - PDF Invoices in Your Browser, No Sign-Up
A free invoice maker for freelancers and small businesses: fill in the invoice, check the live preview, and download a PDF that looks exactly like it. Any currency, tax per item, three templates, no sign-up, and nothing leaves your device.
2,164 views · 16 clicksWeek 45 · 2,164 views · 16 clicks
#8
Merge PDF Files Free - Combine PDFs in Your Browser, No Upload
A free PDF merger for office workers, students, and freelancers: combine PDFs and images into one file in the browser, reorder files and pages, pick page ranges, keep bookmarks, and open password-protected PDFs. Nothing is uploaded, no sign-up, no watermark.
2,005 views · 13 clicksWeek 45 · 2,005 views · 13 clicks