Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How do I make this?

Featured Replies

Hello,

 

I am wanting to making something similar to the case builder (I'll link at the end). I believe it's done with Javascript I have limited experience when it comes to coding in JS. Would anyone please be able to point me in the right direction on what specifically I need to learn in order to make this as it would be a valuable resource to users for my website.

 

http://giftsforgeeks.org.uk/shop/figure-cases-foam|figure-cases-and-accessories|tabletop-tyrant-foam-and-cases/product/908254837/build-your-own-tyrant-army-figure-case/

 

I would really appreciate any and all help.

 

Thanks

This is made by making loads of different pictures of the fill and over top of that another image showing the shape. (see attached images)

 

But now adays it would be better to draw this with canvas or SVG.

post-50095-0-26183400-1406296341_thumb.png

post-50095-0-62765600-1406296349_thumb.png

post-50095-0-73842800-1406296436_thumb.png

  • Author

This is made by making loads of different pictures of the fill and over top of that another image showing the shape. (see attached images)

 

But now adays it would be better to draw this with canvas or SVG.

 

Hello,

 

I was thinking about the canvas idea and using html5canvastutorials to help with the shapes.

 

But when it comes to filling in the case:

 

Which code for the case being filled up?

Which code for the status bar?

Which code for information overlay when you hover over the different trays?

 

Thanks again

I'd personally lean more toward the SVG option if you are new to this.

 

The overlay or tooltip. when you hover has nothing to do with the canvas element, this is just done using absolute positioning and making the element visible on the css hover event, which is quite trivial when compared to the complexities of the rest of the case builder.

 

If you're struggling to understand how to make a css tooltip I'd have to say that recreating this case builder will require further study on css fundamentals as the svg stuff is more advanced than this and you'll need to know a little JavaScript too to swap out the svg images and ajax new ones in -- it's not really something suited to beginners.

Edited by rbrtsmith

  • Author

I am not an advanced html/css coder but I am always learning.

 

What I am really after (using the link as an example) would be to have different pictures of trays with dimensions coded in them so when they click on them it fills up a certain % of the case depending on the tray. Then there is a list below which shows which items they have selected and a % bar showing how much room is taken and how much is left.

 

If someone could give me a list of how it can be done and which code I need to learn I'd be happy to go off and learn it. I looked for a tutorial but couldn't find anything.

 

Thanks

I didn't intend to put you off learning buddy, were all at different levels and even the top guys are still learning!

 

I'm not aware of a tutorial for this exactly but to do the effect you're gonna have to improve your abilities in CSS, JavaScript as what you are wanting to do is pretty complex, but certainly doable. I'd recommend you follow the courses on Code School for CSS and JavaScript then you might have a good base from which to start building this. Note - It's taken me hundreds of hours of practice in CSS and JavaScript with good tutorials and I think I'd still find this pretty challenging. Don't expect to learn everything in an afternoon :)

Edited by rbrtsmith

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.