Тёмный

Simple Weight Converter App With JavaScript & Bootstrap 4 

Traversy Media
Подписаться 2,3 млн
Просмотров 150 тыс.
50% 1

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 336   
@inponderland
@inponderland 6 лет назад
For people using the newest version of bootstrap, the classes to color the cards are 'bg-primary' , 'bg-success', and 'bg-danger'. They have done away with the 'card-success', etc. variants of the background classes.
@MrLuke3456
@MrLuke3456 6 лет назад
Thanks a lot! I spent a good couple of minutes trying to figure out what I was doing wrong.
@MrLuke3456
@MrLuke3456 6 лет назад
Thanks for the info! I helped my find what I was doing wrong.
@juthisarkeraka6336
@juthisarkeraka6336 6 лет назад
thnks for the info! :D
@alexraab3022
@alexraab3022 6 лет назад
Thank you
@sharifabahar6257
@sharifabahar6257 6 лет назад
tnqs a lot for ur useful command.
@aleferr3ira
@aleferr3ira 7 лет назад
Great tutorial!! For those who want to keep only two decimals: document.getElementById('gramsOutput').innerHTML = (lbs / 0.0022046).toFixed(2); document.getElementById('kgOutput').innerHTML = (lbs / 2.2046).toFixed(2);
@zmOe1
@zmOe1 7 лет назад
thx
@MayankSingh-lg5wx
@MayankSingh-lg5wx 7 лет назад
Alessandra Souza another way by using math.floor()
@aleferr3ira
@aleferr3ira 7 лет назад
thanks, Mayank Singh!
@caroldanvers265
@caroldanvers265 6 лет назад
good try but I still get a null value
@jorjlm83
@jorjlm83 6 лет назад
For those doing this tutorial most recently, I believe there were some naming changes for bootstrap classes, so, the visual end result in some parts might not be the same. This padding on each card (Grams, Kilograms and Ounces) wasn't working, so I tried replacing by class="card-body" instead of "card-block" and it works.
@kingberz
@kingberz 5 лет назад
geez thanks... i thought i was doing something wrong all the way xD
@stancedtaco
@stancedtaco 6 лет назад
For anyone using the latest version of BS4, to get the colored background of the cards to display, change "card-danger" to "bg-danger" same goes with the other cards as well.
@gabytzugabytzu16
@gabytzugabytzu16 6 лет назад
Thank you, man! You should go to the top with this comment. I scratched my head for like 5 minutes not knowing why tf my cards don't get the colored background. :))
@balance_andbliss
@balance_andbliss 6 лет назад
And also card-body instead of card-block
@bhavin7485
@bhavin7485 5 лет назад
Same here..@@gabytzugabytzu16
@bhavin7485
@bhavin7485 5 лет назад
Thanks man...
@kingberz
@kingberz 5 лет назад
@@gabytzugabytzu16yehh when are they going to be consistent all through
@onecarwood
@onecarwood 7 лет назад
This will come in handy for weed conversions
@TraversyMedia
@TraversyMedia 7 лет назад
LOL!
@munoha4438
@munoha4438 7 лет назад
hahha nice dude
@aleferr3ira
@aleferr3ira 7 лет назад
lol!
@raviverma8904
@raviverma8904 7 лет назад
LOL
@sk8reality65
@sk8reality65 5 лет назад
Lolllll
@efs76media
@efs76media 7 лет назад
By a mile and a half, you are by far the best tutor on RU-vid. Thank you so much for your videos and sharing your knowledge. Awesome stuff! :)
@tnmando
@tnmando 7 лет назад
Just getting started with JS, but I really like the assignment idea. As a beginner it is great to see the different ways people approached the task.
@rubenverster250
@rubenverster250 6 лет назад
check JavaScript30 out
@m.magdalena
@m.magdalena 7 лет назад
Homework delivery temperature converter style! codepen.io/m2creates/full/prvqjp/
7 лет назад
Melanie awesome work combining two tutorials. :) Can you do with a dropdown list for selecting initial input?
@TraversyMedia
@TraversyMedia 7 лет назад
Awesome Melanie! Just awesome. Thanks for sharing
@m.magdalena
@m.magdalena 7 лет назад
Strahinja Živković I thought about that but couldn't quite figure out how to dynamically fill just two output boxes (and having a drop-down with 6 output boxes seemed silly). Perhaps I'll poke it more today and see what I come up with!
@m.magdalena
@m.magdalena 7 лет назад
Traversy Media thanks for the fun assignment that made practicing JS fun!
@tylerzey1229
@tylerzey1229 7 лет назад
i know you.
@cherulast7998
@cherulast7998 4 года назад
Hey brad u know that thousnds students are using ur tutorials i like ur small projects it gives me some idea how to work practically
@subvice2593
@subvice2593 5 лет назад
This is a great tutorial. I am starting to build some real fluency with vanilla js concepts after this. Love the homework idea as well, going to try my hand at it for sure. Thanks for all the amazing content, Brad.
@CodingPhase
@CodingPhase 7 лет назад
This is a great quick tutorial for people to get their practice. Nice Job!!! Love seeing you in the video more!!!
@pickandhoop
@pickandhoop 5 лет назад
Great Work Brad. Clear, fast and simple. As usual. Keep them coming!
@obedientzombie3080
@obedientzombie3080 7 лет назад
This stuff is really good. Got no money to be a paetron, so here's a thubs up.
@TraversyMedia
@TraversyMedia 7 лет назад
Thanks my friend
@cesarlara3974
@cesarlara3974 7 лет назад
CAN YOU DO A VIDEO ON HOW TO DO A PORTFOLIO FOR BEGINNERS?
@praveenbadigerv
@praveenbadigerv 7 лет назад
Short and simple yet so many things to learn. Thanks Brad. 🙌
@vaibhavmor1868
@vaibhavmor1868 7 лет назад
Thanks @Travery Media! Keep these small projects coming!
@sangamadhikari8497
@sangamadhikari8497 7 лет назад
Vanilla way of programming is ❤
@stevankostadinovic2250
@stevankostadinovic2250 7 лет назад
I like how you are making app which looks good and not just text output on white background like in many other tutorials. I would like to see tutorial for currency converter with use of external api for getting current conversion rates, so it is always up to date.
@bardhan.abhirup
@bardhan.abhirup 6 лет назад
Thanks a ton for your content! this stuff has been really helpful. I've been binging on your tutorials!
@M3TALISB3AST
@M3TALISB3AST 7 лет назад
Do more of these I'm really digging these vanilla JavaScript projects.
@rubenverster250
@rubenverster250 6 лет назад
check JavaScript30 out
@GAVIGHUMMAN
@GAVIGHUMMAN 6 лет назад
With current bootstrap 4 cdn version "card card-primary" is now "card bg-primary". for future viewers
@ntakirutimanavalens4429
@ntakirutimanavalens4429 5 лет назад
thx, i've been challeged with card card-primary but card bg-primary is so helpful!
@brendanmckeown27
@brendanmckeown27 4 года назад
Thank you!
@busyrand
@busyrand 7 лет назад
Thank you so much for making this Very Beginner Friendly! I really appreciate your explanations.
@FULLUPE1
@FULLUPE1 4 года назад
Thanks so much it was a great tutorial .. i'm a beginner of js ...have added little to this which is " when lbs == 0 then the output is hidden again " thanks once again
@glennkey3461
@glennkey3461 4 года назад
card-primary etc. is now bg-primary on bootsrap, for those wondering
@jinhoshin7923
@jinhoshin7923 5 лет назад
card-primary, card-success and card-danger has changed to bg-primay, bg-success, and bg-danger currently. Also change card-block to "card-body" will look much more like his work.
@radiclelife
@radiclelife 5 лет назад
I went with card-header to make the blocks a little skinnier. The card-body was too fat for me. Either way, it'll work!
@medi7573
@medi7573 7 лет назад
This is it bro it is alot better now please make all next tutorials same way i mean live reloading and split screnn into two parts like this we can see what is created on the page while you are typing :D
@projectDominic
@projectDominic 6 лет назад
Great practice changing some of the classes from alpha Bootstrap to 4.1 and of course they were already pointed out in the comments! Also used some mx-auto from Brad's Bootstrap course Leaving background white looks better
@GilFavor101
@GilFavor101 4 года назад
Only thing wrong with this video is that there isn't a link in the description for another video just like this : ) Great video here, thanks for doing this.
@lukkash
@lukkash 3 года назад
Additionally formatting with toFixed and also names on the left and values on the right. I love converter projects :)
@ronaldjohnson4470
@ronaldjohnson4470 7 лет назад
Very nice tutorial Brad, thank you.
@dndnegy73
@dndnegy73 5 лет назад
finally I made simple app even if its a small one it worked and the bigger to come
@andreaskaaej
@andreaskaaej 2 года назад
Short and concise video, great explanations. Thanks 👍🏼
@daviskane7904
@daviskane7904 6 лет назад
Thanks Brad - another dope tutorial where I learned a ton!
@JBuchmann
@JBuchmann 7 лет назад
Great tutorial, thanks! I think it would be cool if you could show how to do the same/similar app in multiple technologies... for example Angular, React, and others (this vid is already vanilla js). It would be valuable to see the different approaches to the same problems in each technology.
@lawrencenkadi8926
@lawrencenkadi8926 5 лет назад
That was very helpful for a beginner like me. It was very clear and easy to follow. Yeah! I'm happy with that. Thank you
@lukkash
@lukkash 3 года назад
or with any framework you can make a converter (e.g. pounds, grams, ounces, troy ounces) where all other fields recalculate themselves when you input a number into one of them. A Converter is a quite interesting project when you start learning frameworks.
@MushaGH
@MushaGH 7 лет назад
you make me fall in love with web development
@rufus9821
@rufus9821 7 лет назад
awesome vid as usual. best 17 minutes i have spent
@scottyhall4215
@scottyhall4215 5 лет назад
I do wish you would slow down some for those that cannot type so fast and are trying to learn. Keep in mind you are teaching people and it would be nice to breathe every now and then and take in what has been done. Otherwise I might as well just copy and paste and be done with it.
@sriramrajagopal134
@sriramrajagopal134 5 лет назад
Play the video at 0.75x or 0.5x speed
@dineshrout2527
@dineshrout2527 4 года назад
This was not a difficult project, but your teaching made it interesting. I'm going to make it in css now.🙂
@Vlusion
@Vlusion 7 лет назад
Was in coding spree so picked a new 'coding theme' screensaver. Same like your banner I now see :)
@ThisIsJ0nny
@ThisIsJ0nny 7 лет назад
Hey man, would be great to get your opinion / some tutorials on sails. Keep up the awesome work! (Also love the clicky keyboard, not to loud, not too quiet)
@TraversyMedia
@TraversyMedia 7 лет назад
Thanks. It is actually one of the quieter ones I could find. I tend to smash the keys when I code. Off video I use a cherry mx red switch mechanical keyboard but it is way too loud for recording
@pikachu5223
@pikachu5223 7 лет назад
Thanks Brad! Love you
@MrDTTV
@MrDTTV 7 лет назад
this was awesome! keep the content coming!
@sigplayer112
@sigplayer112 5 лет назад
you can add if(document.getElementById('lbsInput').value.length === 0){ document.getElementById('output').style.visibility = 'hidden'; } to hide it from displaying zeros if input is empty
@justdarkjazz4020
@justdarkjazz4020 5 лет назад
Add it where exactly? I tried it and it kind of fucked up my code.
@dxdMyBroadcast
@dxdMyBroadcast 7 лет назад
Nice one) I'd add a check for typeof === 'number' and error handling.
@dusski1
@dusski1 7 лет назад
You don't need that because you're using a number input.
@skrezwan12
@skrezwan12 5 лет назад
Good for practicing Js and bootstrap as well.
@lulualmohtarif
@lulualmohtarif 7 лет назад
thanks alot brad, that was so great and clear from morroco
@FlashMoney-ps8ef
@FlashMoney-ps8ef Год назад
Great tutorial, I would like to know how to make with cross-references , in order that when I set the value of the ounces (or the kilograms or grams) the program gives me the original pounds value as well... Thanks for this video
@haroldw2823
@haroldw2823 7 лет назад
Nice Job Mate, easy to follow
@0the0ambient0
@0the0ambient0 7 лет назад
As always, great tutorial
@simplex2168
@simplex2168 6 лет назад
For the people who are getting stuck at the colors: The bootstrap class has been changed to bg-primary not card-primary.
@phethomberg9669
@phethomberg9669 6 лет назад
Awesome video man !! Pls do more this type of video
@jimdart8219
@jimdart8219 6 лет назад
I love Brads Tutorials. But now that boostrap 4 is stable, what a pain trying to get even the HTML to work right. Even had VSCode give me errors on the tags for the link to Bootstrap saying they were special and had to be escaped. Could not get the H1 to center and the form-control-lg, well that was md at best. Oh well on to bigger and better. Thanks Brad your the best.
@americomondragon6973
@americomondragon6973 3 года назад
Excelente video, es el mas sencillo que he econtrado, muchas gracias!
@sdborn8667
@sdborn8667 7 лет назад
Thank you, Brad! Nice video!
@hirephpdevelopers3840
@hirephpdevelopers3840 7 лет назад
Very informative tutorial Brad, thank you.
@Suneriins234
@Suneriins234 4 года назад
Weight Converter Grames Kilogrames Ounces ' document.getElementById('output').style.visibility = 'hidden'; document.getElementById('IbsInput').addEventListener('input', function(e){ document.getElementById('output').style.visibility = 'visible'; let Ibs = e.target.value; document.getElementById('gramsOutput').innerHTML = Ibs/0.0022045; document.getElementById('kgOutput').innerHTML = Ibs/2.2046; document.getElementById('ozOutput').innerHTML = Ibs*16; });
@amitgogna2701
@amitgogna2701 7 лет назад
Thanks brad ,pls make some videos on bootstrap dashboard with some charts and bars in them
@rymbouchetara1066
@rymbouchetara1066 5 лет назад
Cam SB said : "For people using the newest version of bootstrap, the classes to color the cards are 'bg-primary' , 'bg-success', and 'bg-danger'. They have done away with the 'card-success', etc. variants of the background classes." Also for card-block use card-body !
@medhamohanty5270
@medhamohanty5270 3 года назад
Great informative video. Very helpful.
@kaktotak547
@kaktotak547 5 лет назад
Your videos are great!
@bryanbolanos6557
@bryanbolanos6557 7 лет назад
Awesome tutorial!!
@joydas1685
@joydas1685 7 лет назад
Good video ;) got some knowledge regarding bootstrap and javascript
@randombiketrips3296
@randombiketrips3296 7 лет назад
Is there a reason why you use Atom as opposed to VSC or Sublime? I really like the way you teach because it's really clear and simple, btw.
@azizatawfiq828
@azizatawfiq828 4 года назад
very nice tutorial ..thanks alot
@CreatingAlong
@CreatingAlong 4 года назад
I thought I might mention "e.target.value" returns an error, had to change it to "event.target.value" to get an output.
@galbalazs87
@galbalazs87 7 лет назад
Awesome, as always! Thanks!! :)
@brokiama
@brokiama 7 лет назад
Will you make a JS crash course? Didnt see it in your channel, you're a great teacher BTW.
@TraversyMedia
@TraversyMedia 7 лет назад
I have a JavaScript Fundamentals video but I will be doing an updated one soon
@mrgreggles998
@mrgreggles998 7 лет назад
This is great; interesting to see you use Bootstrap 4. Hopefully it'll be operational in the foreseeable future. Brad, any specific reasons why you use Atom over Visual Studio Code?
@TraversyMedia
@TraversyMedia 7 лет назад
Honestly Gregg, I love both and I am torn. What I have been doing lately is using Atom for frontend html/css/vanilla ES5. And vscode for anything I use the terminal with. I LOVE the integrated terminal with Git Bash. I am thinking about moving completely away from Atom
@PoetrifidSoul
@PoetrifidSoul 4 года назад
Thanks a lot gentleman :)
@samshanmukh
@samshanmukh 7 лет назад
nice idea of giving homework for community.
@moycs777
@moycs777 7 лет назад
Very good exampleee, thanx!
@spongebobspongebob24
@spongebobspongebob24 7 лет назад
wow. Your new intro looks nice.
@matteolinux9467
@matteolinux9467 7 лет назад
very clear and nice video! thanks
@TraversyMedia
@TraversyMedia 7 лет назад
Thank you :)
@pasqualecannavacciuolo61
@pasqualecannavacciuolo61 5 лет назад
Clear and simple
@nagahumanbeingzooofparticl8836
Thank you so Much Brad..🥇🥇🥇
@vinsentchitekwe6106
@vinsentchitekwe6106 7 лет назад
Awesome!
@joe86569
@joe86569 6 лет назад
brad you are awesome :)
@inponderland
@inponderland 6 лет назад
Emmet is awesome.
@swathivenkatesh465
@swathivenkatesh465 2 года назад
Thank you!!
@RABWA333
@RABWA333 7 лет назад
Thanks, nice video , informative 👍
@fcandann
@fcandann 7 лет назад
Nice Tutorial
@ghnanax
@ghnanax 7 лет назад
Hello Brad. Would you recommend windows over mac? I know Mac is the most sort after due to Linux etc. However, since you are knowledgeable in a number of languages what's your take on this? Thank you.
@tendies
@tendies 7 лет назад
Thank you sir!
@saurabhvavekar4394
@saurabhvavekar4394 5 лет назад
Please add series of small pure javascript projects
@faisalahammad
@faisalahammad 6 лет назад
You're awesome man
@duke4279
@duke4279 4 года назад
thank you sir this is awesome content :)
@uimonk
@uimonk 5 лет назад
U did great
@siddheshdhuri
@siddheshdhuri 7 лет назад
Hey Brad, please make video on Ajax and object oriented javascript.
@zxcvxcvify
@zxcvxcvify 6 лет назад
thank you broooo amazing video
@syedmuhammaddanish4325
@syedmuhammaddanish4325 4 года назад
amazing man
@arunkaiser
@arunkaiser 7 лет назад
Awesome bro
@MayankSingh-lg5wx
@MayankSingh-lg5wx 7 лет назад
thankx brad nice tutorial .... can you please make a video on milliseconds to... year|month|day|hour|day|min|seconds.... conversion in js :)
@rcan9184
@rcan9184 7 лет назад
You could just copy the code/write it yourself from this tutorial and change the math :)
@MayankSingh-lg5wx
@MayankSingh-lg5wx 7 лет назад
rcan ya man i hv done that just a while ago :)
@MayankSingh-lg5wx
@MayankSingh-lg5wx 7 лет назад
rcan bro ... i hv used Math.floor() function of javascript to get values without decimal and converted milisec values into year..... sec
@vishnugajulapalli5305
@vishnugajulapalli5305 4 года назад
The card-block class is now, card-body
@adamklepacz6322
@adamklepacz6322 7 лет назад
BOOTSTRAP 4 UPDATE: For those who are watching after August 2017: change bootstrap card-block class to card-body class
@MLievens
@MLievens 5 лет назад
bg- primary bg-success- bg-danger and instead of card-block: card-header
@blakeyeboah393
@blakeyeboah393 7 лет назад
Nice video!
@Elon40k
@Elon40k 3 года назад
"one pound equals sixteen ounces, most of us know that." me thinks DJ Traversy used to sell weed in a former life.
@SAIRAM-du7gb
@SAIRAM-du7gb 6 лет назад
CAN YOU DO A VIDEO ON HOW TO DO A PORTFOLIO FOR BEGINNERS?
Далее
JavaScript Higher Order Functions & Arrays
34:56
Просмотров 985 тыс.
Build A Filterable List With Vanilla JavaScript
17:46
Просмотров 203 тыс.
Китайка нашла Метиорит😂😆
00:21
Учёные из Тринидад и Тобаго
00:23
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
Animate Your Font Awesome Icons With JavaScript
18:52
Please stop using px for font-size.
15:18
Просмотров 174 тыс.
Star Ratings With JavaScript & Font Awesome
33:59
Просмотров 105 тыс.
Build A Speed Typing Game In JavaScript
32:37
Просмотров 101 тыс.
JavaScript Zipcode App Using Fetch & Bulma CSS
35:00
Просмотров 28 тыс.
javascript length converter
14:21
Просмотров 30 тыс.
Using CSS custom properties like this is a waste
16:12
Просмотров 173 тыс.
Drag & Drop With Vanilla JS
19:00
Просмотров 252 тыс.
Weight Converter | Javascript Beginner Project Tutorial
15:21