Masthash

#vanillajs

postmodern
2 months ago

Implementing my own dark-mode toggle icon using JavaScript+CSS+SVG, and really enjoying writing plain vanilla JavaScript. You can do a lot in just a few dozen lines of boilerplate vanilla JavaScript that is easily googleable. It's honestly not that bad, and I don't have to deal with the Lovecraftian nightmare of complexity that is npm, yarn, babel/webpack, React, etc.
http://vanilla-js.com/
#javascript #vanillajs

Thomas Weibel
2 months ago

Nur das Wetter machte nicht mit. Sonst aber… https://mont.thomasweibel.ch (iOS only). #opendata #vanillaJS #geoinformatik

Demovideo der Webapplikation „Mont“.
Téotime Pacreau
2 months ago

@loupbrun @antoinentl RDV 20 Juin pour - PAGED.JS

"Faire du Web to print et transformer des contenus HTML en PDF depuis un navigateur."

#HTML2PRINT #WebToPrint #PAGEDJS #CSS #VanillaJS @julieblanc @julienbidoret @polylogue @kajou @jeremy

Téotime Pacreau
2 months ago

#100DaysOfCode : #HTML #CSS #VanillaJS

#Day14 : Interactive Form

Online demo :
https://teotimepacreau.github.io/Interactive-Form-Day-14-of-100DaysOfCode/

Source Code : https://github.com/teotimepacreau/Interactive-Form-Day-14-of-100DaysOfCode/blob/main/README.md

Project goals :
- learning input, forms and radio buttons UI best practices
- form validation, error alerts, password visibility
- checking for best practices to control email, passwords

#WebDev #Frontend #WebDesign #LearnWebDev #Javascript #LearnToCode #CodingDay #FrontendDevelopment #WebDevelopment #UIDesign #UITrend #CodingChallenge #LearnCode

a form webpage showcase : on the left an astronaut walking in the desert. On the right several inputs : a plan chooser, adress and account info are required. Error message display if problems
Thomas Weibel
2 months ago

Mit dem #Gamedev müsste man mal ein Wörtchen reden. https://mahjongg.thomasweibel.ch #vanillaJS

Screenshot des Onlinespiels Mahjongg Solitaire.
Thomas Weibel
2 months ago

Im Frühtau zu Berge: Berggipfel erkennen mit MONT (iPhone only). https://www.thomasweibel.ch/mont2/ #vanillaJS #OpenData

App mit der Erkennung des Monte Gambarogno, Tessin, Schweiz.
Téotime Pacreau
2 months ago

#100DaysOfCode : #HTML #CSS #VanillaJS

#Day13 : Sliding Menu and Grid App View

Online demo :
https://teotimepacreau.github.io/Sliding-menu-and-grip-app-view-Day13-Of-100DaysOfCode/

Source Code : https://github.com/teotimepacreau/Sliding-menu-and-grip-app-view-Day13-Of-100DaysOfCode

Project goals :
- lch() color function
- button alignment with ::before technique (vertical-align: middle) and UI principles of 2ex padding-inline for 1ex padding-block

#WebDev #Frontend #WebDesign #LearnWebDev #Javascript #LearnToCode #CodingDay #FrontendDevelopment #WebDevelopment #UIDesign #UITrend #CodingChallenge #LearnCode

sliding menu website showcase. A grid app view with tinted colors. When you click on the bars icon it opens a sliding-menu coming from the right with an opacity and moving effect
Bertrand Delacretaz
2 months ago

The video recording (in French) of my "VanillaJS & the Web Platform, a match made in heaven?" talk at Very Tech Trip is now online, https://grep.codeconsult.ch/2023/03/29/vanilla-js-web-platform/
#webplatform #vanillajs #webcomponents

panigrc
3 months ago

@calebhailey
They are not wrong you know? :thinkerguns:
Kudos to them for linking the Mozilla documentation.

#codinghumor #javascript #vanillajs

Caleb Hailey
3 months ago

This is pretty funny actually: http://vanilla-js.com

"0 bytes uncompressed" 😅

#Javascript #VanillaJS

Téotime Pacreau
3 months ago

@calebhailey also searching for a #VanillaJS community

Téotime Pacreau
3 months ago

@notabene Je ne comprends pas comment il peut être possible de recommander à quelqu'un d'apprendre directement un framework type React sans avoir les bases #HTML #CSS #VanillaJS

Téotime Pacreau
3 months ago

#100DaysOfCode : #HTML #CSS #VanillaJS

#Day9 : Expandable FAQ

Online demo :
https://teotimepacreau.github.io/Expandable-FAQ-Day9-of-100DaysofCode/

Source Code : https://github.com/teotimepacreau/Expandable-FAQ-Day9-of-100DaysofCode

Project goals :
- VanillaJS closest selector and lastElementChild + DOM manipulation
- CSS use of linear gradient and box shadows
- multiple flexbox imbrication
- Font awesome icon toggle

#WebDev #Frontend #WebDesign #CodingChallenge #Javascript #LearnToCode #CodingDay #FrontendDevelopment #WebDevelopment #UIDesign #UITrend #CodingChallenge #LearnCode

a website showcase demo. It's a flight FAQ page, with accordeon opening answer : when you click on the the arrow near the question it opens the answer. Alinear-gradient with shade of blue and pink agrement the UI and on the right there is a photo of TOKYO
Téotime Pacreau
3 months ago

#100DaysOfCode : #HTML #CSS #VanillaJS

#Day8 : Glassmorphism split page

Online demo :
https://teotimepacreau.github.io/Split-Glassmorphism-Landing-Day8-of-100DaysOfCode/

Source Code : https://github.com/teotimepacreau/Split-Glassmorphism-Landing-Day8-of-100DaysOfCode

Goals :
- glassmorphism effect with CSS z-index, backdrop-filter, background-clip and box-shadow
- Vanilla JS add a class on mouseenter and remove class on mouseleave event
- CSS opacity and visibility transition for smooth

#WebDev #Frontend #WebDesign #CodingChallenge #Javascript #LearnToCode #CodingDay #FrontendDevelopment #WebDevelopment

a glassmorphism website shocase. Two sides : left side is an image of chrome controller and a product card. Right side is a stadia controller and a product card.
Téotime Pacreau
3 months ago

#100DaysOfCode : #HTML #CSS #VanillaJS

#Day7 : Brutalist portfolio landing page and reveal animation

Online demo :
https://teotimepacreau.github.io/Brutalist-portfolio-landing-page-Day7-of-100DaysOfCode/

Source Code : https://github.com/teotimepacreau/Brutalist-portfolio-landing-page-Day7-of-100DaysOfCode

Goals :
- IntersectionObserver of VanillaJS to rerecreate scroll trigger without GSAP
- different CSS transition-delay on each line element to give the stagger feel
- CSS translateY, opacity and cubic-bezier

#WebDev #Frontend #WebDesign #CodingChallenge #Javascript #LearnToCode #CodingDay #FrontendDevelopment

a portfolio website demo. Lines are appearing smoothly as the user scroll down the page. Words and vibrant colors comes from down with low opacity to up in full sight
Téotime Pacreau
3 months ago

#100DaysOfCode : #HTML #CSS #VanillaJS #GSAP

#Day6 : Text line filling opacity animation

Le projet est à retrouver sur :
https://teotimepacreau.github.io/Text-line-filling-animation-on-scroll-Day6-Of-100DaysOfCode/

Code source : https://github.com/teotimepacreau/Text-line-filling-animation-on-scroll-Day6-Of-100DaysOfCode

Goals :
- VanillaJSto add a line-mask div in each line (forEach and appendChild)
- line-mask CSS class with position absolute that cover the line from right to left with high opacity

#WebDev #Frontend #WebDesign #CodingChallenge #Javascript #LearnToCode #CodingDay #FrontendDevelopment #Greensock

a website showcase. We can see business paragraphs with a line filling animation. Text starts at the beginning with high opacity to high vibrant colors.
Téotime Pacreau
3 months ago

#100DaysOfCode : #HTML #CSS #VanillaJS seulement !

#Day4 : #SlidingMenu and art landing page

Le projet est à retrouver sur :
https://teotimepacreau.github.io/Sliding-Menu-and-art-landingpage-Day4-of-100DaysOfCode/

Code source : https://github.com/teotimepacreau/Sliding-Menu-and-art-landingpage-Day4-of-100DaysOfCode

Goals :
- grid template areas
- position absolute and z-index for menu slider
- opacity transition
- mouse follower
- :hover and ::before to anim menu items
- Vanilla JS class toggle with click listener

#WebDev #Frontend #WebDesign #CodingChallenge #Javascript #LearnToCode #CodingDay #FrontendDevelopment

A landing webpage with two paintings. Uses a serif typeface and a sans-serif. When you click on nav button a slider menu appears with opacity transition.
Nebyoolae
3 months ago

I'm not saying that #jquery is bad, or that you should stop using it, or remove it from your app. It was instrumental in my initial #javascript training, and sometimes it's just easier to use than #vanillajs.

What I _am_ saying, however, is that #javascript has matured since then, and I want to have fewer dependencies in my projects these days.

Thus, I'm planning to eradicate it from anything I work on if I can.

#css got better, too, so I'm probably gonna stop using #sass so much, as well.

Téotime Pacreau
3 months ago

#100DaysOfCode : #HTML #CSS #VanillaJS seulement !

#Day3 : Effet de défausse et #ContainerQueries

Le projet est à retrouver sur : https://teotimepacreau.github.io/Discarding-effect-and-container-queries-Day3-of-100DaysOfCode/

Code source : https://github.com/teotimepacreau/Discarding-effect-and-container-queries-Day3-of-100DaysOfCode

Goals :
- enabling dynamic and adaptive styling with container queries
- border-radius container handle images thanks to "overflow: hidden"
- discarding effect with translateX + rotate + scale

#WebDev #Frontend #WebDesign #CodingChallenge #Javascript #LearnToCode #CodingDay #FrontendDevelopment

A restaurant menu card display on a webpage.

Showcasing container queries, discarding effect
Thomas Weibel
4 months ago

Heute vor 550 Jahren wurde Nikolaus Kopernikus im polnischen Toruń geboren. Zu seinen Ehren habe ich sein Hauptwerk, „De revolutionibus orbium coelestium“ aus dem Jahr 1543, auf der Basis seiner eigenen Illustration des Planetensystems animiert. Auf dass wir alle stets die richtigen Dinge in den Mittelpunkt stellen mögen. https://www.thomasweibel.ch/copernicus/ #opendata #openglam #vanillaJS @OpendataCH @OpenDataZurich @OSUniBe @OpenCulture

Interaktive animierte Darstellung des Sonnensystems nach Nikolaus Kopernikus.
Téotime Pacreau
4 months ago

#100DaysOfCode : #HTML #CSS #VanillaJS seulement !

#Day2 : Barre de progression évolutive accompagnée d'icônes

Le projet est à retrouver sur : https://teotimepacreau.github.io/Progress-Steps-Day2-of-100DaysOfCode/

Code source : https://github.com/teotimepacreau/Progress-Steps-Day2-of-100DaysOfCode

Objectifs :
- position relative and position absolute to create the progress bar
- disabling and enabling buttons
- Cursor not-allowed and cursor pointer
- Vanilla JS IF logic

#WebDev #Frontend #WebDesign #CodingChallenge #Javascript #LearnToCode #CodingDay #FrontendDevelopment

progress steps demonstration
Pedro Machado Santa
4 months ago

Customary #Safari is the new IE.

Just found out the <script type=importmap>, which makes it much easier to handle modules and dependencies with vanilla JS (without bundlers/building). Unsurprisingly, Safari is absolutely nowhere to be seen in that regard. 🤷 Oh well.

https://caniuse.com/mdn-html_elements_script_type_importmap

#webdev #webdevelopment #javascript #vanillajs #html #standards #frontend

Téotime Pacreau
4 months ago

#100DaysOfCode : #HTML #CSS #VanillaJS seulement !

#Day1 : Création de cartes extensibles pour contenir des images dynamiquement

Le projet est à retrouver sur : https://teotimepacreau.github.io/Expanding-Cards-Day1-of-100DaysOfCode/

Code source : https://github.com/teotimepacreau/Expanding-Cards-Day1-of-100DaysOfCode

- handle images with object-fit: cover
- Vanilla JS eventListener, loops, class and attributes handling, create/remove DOM elements

#WebDev #Frontend #WebDesign #CodingChallenge #Javascript #LearnToCode #CodingDay #LearningDaily #FrontendDevelopment #WebDevelopment

démonstration d'un projet web de cartes extensibles
Andrew Wooldridge 🌱
4 months ago

I no longer criticise frameworks and stuff like Tailwind, even though I personally would not use them. I love it that the web is big enough for you to use whatever library, framework, system, or technique that you like, and that there are so many different ways to build stuff. It's a sign of strength in a system.

Heck you can even use #jquery or *gasp* #vanillajs and still have cool websites and apps.

Just, please only use #html tables for tabular data.

So many people have told me that you should become an expert in #react if you want to be successful as a #webdeveloper but that's like saying as a chef you should only know how to cook steaks. There's so much more to the web than React, but it's big enough that you can do that if you want, or use PHP , or Vue ( Just .. not Angular please ) .

The point is - if you stick to standards and use semantic tagging with accessibility in mind, you should be free to use whatever kind of code technique you want. And you should NOT have to feel like you have to just be a React / Tailwind developer. Be a #web developer.

Thomas Weibel
4 months ago

Mit MONT Schweizer Berge entdecken: Smartphone auf den Horizont richten, Namen sowie Gipfelhöhe und Entfernung ablesen (iOS only). https://www.thomasweibel.ch/mont2 @OpendataCH @OpenDataZurich #opendata #vanillaJS

Demovideo der Webapp Mont.

I prefer to write #VanillaJS in order to avoid tooling and make my webpages hackable/debuggable. However, I'll be first to admit that using the DOM to populate a template is the coding equivalent of CBT.

It sucks that web standards haven't embraced JSX style rendering like they had embraced jQuery style APIs. Thankfully, @webreflection's µhtml library might the closest to having vanilla JSX https://github.com/WebReflection/uhtml/blob/main/DOCUMENTATION.md

#JavaScript #frontend #programming

En lecciones aprendidas descubrí que #rails tiene cosas bonitas. No lo usaría, pero me permito admirar el calibre de proyecto que es. #ruby sigue sin gustarme ni un poco.

Y me mantengo firme en mi creencia de que #react es de hecho una mala elección si quieres que tu software sea pueda mantener hoy y en cinco años. #vanillajs ftw

Abe Massry
5 months ago

My #Frontend dev journey:
#jQuery -> #React -> #Angular -> #VanillaJS -> #jQuery

I use :vim:
5 months ago

When using #babel to #transpile a #nodejs library, is there something you must configure for editor #IntelliSense to work when importing the library? The actual import map is working (I can use modules in my project) but class properties and methods don’t have any IntelliSense in #vscode and in #webstorm class properties are highlighted as “undefined“ (even though they work just fine).

#webdev #question #SoftwareDevlopment #development #bundler #webpack #javascript #typescript #vanillajs

TheTagManager
5 months ago

One of my goals for 2022 is to get back up to speed with vanilla JavaScript. No frameworks, just pure JS. Diving back into some new techniques and projects. Who else is focusing on the fundamentals this year? #javascript #vanillajs #newyearsresolution #coding

Cool thing about Custom Elements is you can call your methods from the DOM element directly. Such a great way to organize UI code with #VanillaJS

#javascript #frontend #programming #WebComponents

Code. MastoAuthForm class that extens HTMLFormElement and has an async getToken method that awaits on a network call
Code. Querying the MastoAuthForm element from the document and await calling the getToken method.
5 months ago

@IrrsinnHilft @DeveloperMemes drum verzichtet man wos geht idealerweise auf #javascript und schreibt wenn es nötig ist auch alles in #vanillajs (entsprechende erfahrung vorausgesetzt) :)

Thomas Weibel
6 months ago

Im Frühtau zu Berge: MONT ist eine Augmented-Reality-Webapp für iPhones (iOS only), die sämtliche Hügelkuppen und Berggipfel der Schweiz einschliesslich Höhe und Distanz angibt. Die App basiert auf #Opendata, nutzt ein flat-file-Datenmodell und ist in #VanillaJS geschrieben. #swisstopo
Mehr: https://www.thomasweibel.ch/?post=mont-2
App: https://www.thomasweibel.ch/mont2

Screenshot der Webapp MONT.
Roni Laukkarinen
6 months ago

Any Svelte/Vite/Vanilla JS developers here who'd like to give me tips for my code? https://github.com/ronilaukkarinen/finnish-mastodon-users/blob/6d899cd72d8f48875ac557017a5dbdf2e77064fc/main.js

It's currently not performant and may even crash the browser. If the authorize/follow function is enabled, getting easily rate limited.

All tips appreciated. #Developers #WebDev #JS #JavaScript #VanillaJS #Svelte #Vite #GitHub #OpenSource #Performance #Coding #CodingTips #HelpWanted

Rodion Borisov
6 months ago

@acbilson forget what I said...

As they stand now without framework - #WebComponents are a nightmare to do in #vanillaJS. Let my last three weeks of back and forth be a testament to that!
(눈_눈)

Tried to attach #ShadowDOM to this blasted table, and it won't let me. Turns out we can have it on only so much base elements, and the most generic ones at that: div, article, section, etc.

To top it all, unhelpful #JavaScript error messages made me go debugging for other 3 hours!

Thomas Weibel
6 months ago

Mit MONT Schweizer Berge und Hügel entdecken (iOS only): iPhone auf den Horizont richten, Namen sowie Gipfelhöhe und Entfernung ablesen. https://www.thomasweibel.ch/mont2/ #opendata #swisstopo #vanillaJS @OpendataCH

Screencast der Webapp Mont.
Jeffrey Yasskin
6 months ago

Wrote my first use of web #DragAndDrop tonight. I'm using #SolidJS for the main editing UI, so I wasted yesterday's coding trying to find+use a native D&D library for that, but stable object identity + #VanillaJS turned out to be much simpler than decoding those libraries' documentation.

Thomas Weibel
7 months ago

Ein Höhenmesser für unterwegs? Voilà. https://www.thomasweibel.ch/altiswiss/ #opendata #vanillaJS

Jason B.
7 months ago

As an expert in unfinished projects, I thought I'd share some ancient web dev projects.

(2006)
https://talltree.us
Freelance development site. #ClassicASP, #TSQL
Includes a web UI for hosted sites.

(2006)
https://wireframe.talltree.us
Neat (free) wireframing tool but horribly coded in bad #VanillaJS. With a better UI/UX it could have been a fun project / service.

(2017)
https://fi.retorch.com
Manually track transactions, account balances, see #budget reports and net worth. Needs charts badly.

Jason B.
7 months ago

@jeff Similar. Comfortable in C#, SQL, even #VanillaJS - but takes a bit to get anywhere with #Angular or #React. A few years ago I was building a bunch of internal tools on Angular 7 #TypeScript! and that was pretty satisfying. But I've yet to start a React project from scratch and get anywhere...

@benjaminhollon OMG that is funny didnt know there was a framework called #vanillajs .
I thought that just meant pure js.

Timo Zimmermann
10 months ago

I guess I’ll spend some time with PWAs this weekend. Service workers seem straight forward. I just have to figure out if it’s feasible to write a proper app using #vanillaJS. For a few state transitions and a handful API calls as solo dev frameworks seem extremely wasteful.

Ben Francis
10 months ago

Currently experiencing the unbridled joy of prototyping in vanilla JavaScript, without anyone trying to make me use TypeScript or webpack.

Live reload for the win. #VanillaJS

Ænðr E. Feldstraw
5 years ago

A web page pretending #VanillaJS is a 0-kB #Javascript #Framework.

http://vanilla-js.com/

It's a joke, of course, and while reading the page the more experienced #webdevs among us should recognize it as such. Vanilla JS is what browsers give us, based on the EcmaScript specs and their own. It is not a script or library to load into a web site: it's already there.

The page author probably uses this to mock all those webdevs who couldn't write JS to save their lives, without jQuery...

Thomas Fuchs 🕹️🔭
5 years ago

#JavaScript doesn’t have to be bloated. Use http://microjs.com/ if you need a bit of help from dependency-free micro-libraries.

#vanillajs #leanweb

Matt5sean3
5 years ago

I'm glad this weird thing I helped make still exists. I should add touchscreen controls some time. #games #rva #vanillajs #hackrva https://games.hackrva.org/moon-defender/

Fabio Neves🍍
6 years ago