Javascript

Useful Tools, Scripts, and Resources for Front-End Developers


  

If you’re a front-end developer mostly focused on HTML, CSS, and JavaScript, then you’re probably always on the look out for ways to be more productive. In this post we’ll share some tools and other resources for front-end developers that you might find useful to include in your workflow.

Tools and Scripts and Resources, Oh My!

Font Stack Builder by Erin Lawrence

This font stack builder lets you select a font stack and will tell you, using percentages, how likely it is for the fonts to be present on users’ systems. It includes options for a number of different font category styles and summarizes how the different options size up for different operating systems (Mac, Windows, Linux). Very easy to use, and, best of all, it gives you the necessary CSS to copy and paste into your projects.

Font Stack Builder by Erin Lawrence

Browser Support by Paul D. Waite

This simple tool lets you type in the name of any CSS feature (including properties, selectors, at-rules, values, and more) and it will display a simple graphic-based chart that outlines browser support. The individual results’ pages even have links to test cases and the official specification for the selected feature.

Browser Support

CSS Hat

This looks like quite a revolutionary tool. Although it might disturb purists who prefer to code everything by hand, it certainly looks like an excellent productivity tool. In a nutshell, CSS Hat is a Photoshop plugin that converts layer styles in Photoshop to CSS3 code. The site embeds a video review and demonstration that shows the tool in action, so be sure to check that out. The plugin adds conversion support for gradients, opacity, shadows, inner/outer glow, rounded corners, and more. It’s not free, but for $19.99, if it does what they claim it does, it’s well worth it.

CSS Hat

WYSIHTML5

According to the website, “wysihtml5 is an open source rich text editor based on HTML5 technology and the progressive-enhancement approach. It uses a sophisticated security concept and aims to generate fully valid HTML5 markup by preventing unmaintainable tag soups and inline styles.” You can see the the tool in action right on the page and it has excellent browser support. In non-supporting browsers, a simple <textarea> element is displayed. Looks like an excellent choice if you want to embed a WYSIWYG editor in your HTML5 project.

WYSIHTML5

OpenWeb Icons

OpenWeb Icons is an open source icon set that’s embedded with @font-face in your CSS. What’s great about these icons is that the icons themselves are placed on the page using pseudo-elements. Using an icon is just a matter of adding the necessary class name along with the appropriate HTML tag. Also has an optional CSS file for use with Twitter’s Bootstrap.

OpenWeb Icons

Gradient Scanner by Kevin Decker

This is a unique little tool that lets you upload an image, select a portion of the image, and then the tool will spit out the CSS3 gradient syntax that produces the gradient in the selected part of the image. It seems to work really well and is quite fast. So, similar to CSS Hat, this can save you some coding time when you’re creating your gradients in Photoshop.

Gradient Scanner

Fixie by Ryhan Hassan

Fixie.js lets you easily add Lorem Ipsum text to any element in your HTML. Just include the JavaScript file at the bottom of your page, and for any element that you want Fixie to add filler text, just add a class of “fixie”. With Fixie your markup stays clean for development while letting you view the page with filler content.

Fixie

CSS3 Code Snippets by WebInterfaceLab

This is a user-contributed library of CSS3-based user interface components built with “modern HTML, CSS, and SASS”. Includes lots of different components — drop-down menus, form elements, animated progress bars, and much more.

CSS3 Code Snippets

site44

This service is touted as “absurdly simple web hosting”, and it seems to live up to its name. The site44 service lets you host files by connecting to a Dropbox account and hosting your static web pages in a Dropbox folder. You can use a custom domain name as well as a custom subdomain based on site44.com. The biggest drawback here seems to be that you can only serve static HTML files (no PHP, for example). But this certainly looks like a viable option for showing demos to clients or for doing simple hosting.

site44

Em Calculator by Piotr Petrus

If you’re accustomed to building your web page elements using pixels, this tool can help you convert pixels to ems so you can build sites that are “scalable and accessible”. Looks like a nice little tool to use for responsive designs. It lets you visually build your HTML’s tree structure, and then you can calculate your ems accordingly. This is useful, because ems are calculated based on inheritance.

Em Calculator

Symbol Set

Symbol Set is an OpenType-based “semantic symbol font”. The icons in Symbol Set are touted as “accessible” because you’re including them using unicode values in pseudo-elements that are applied to elements containing keywords. For example, the word “alert” displays an alert icon, the word “twitter” displays a Twitter icon, and so forth. Not a free option, but certainly a unique font to consider if you’re concerned about accessibility and clean markup.

Symbol Set

Microjs by Thomas Fuchs

This is a fantastic little tool that helps you track down a JavaScript library for virtually anything. Just type in a keyword related to the type of library you’re looking for, or just select from the options presented in the auto-complete drop-down. So if you don’t want to include an entire JavaScript library in a project, or are looking for something specific that a library doesn’t cover, this “micro-site for micro-frameworks” will help you find just what you need.

Microjs

Animate.css by Dan Eden

Animate.css is “a bunch of cool, fun, and cross-browser animations for you to use in your projects.” You can view all the animations demoed on the home page, and you have the option to do a custom build that lets you pick which animations you want and create your own mini CSS library. Although it says “cross-browser”, this is a reference to modern browsers that support CSS3 animations.

Animate.css

Redactor WYSIWYG Editor by Imperavi

Another WYSIWYG editor. This time, it’s a gorgeous jQuery-based solution that claims to be up to 9 times faster than two of the most common editors of choice. It’s supported in IE8+ and the latest releases of all other browsers, includes drag-and-drop support for file uploading, various display modes, fullscreen view, and much more. It’s free for non-commercial use and has options for commercial use starting at $19.

Redactor WYSIWYG Editor

DocHub by Rafael Garcia

DocHub is a great one-stop resource for documentation on CSS, HTML, JavaScript, jQuery, PHP and more. Type in a keyword related to the feature you’re researching, and results will load in the right pane automatically. The docs are scraped from MDN, jQuery’s documenation, and PHP.net.

DocHub

JavaScript Enlightenment by Cody Lindley

JavaScript Enlightenment is a free E-Book by Cody Lindley. In the past, the book was sold either as a print version, or as an E-Book. It’s now available as a free download. It’s not a book for JavaScript beginners, nor is it a complete reference. It’s primary purpose is “to give the reader an accurate JavaScript worldview through an examination of native JavaScript objects and supporting nuances.”

JavaScript Enlightenment

Conclusion

We hope the above resources will prove useful to some of you, helping you solve some of your front-end coding challenges. In the meantime, if you know of any other similar tools or resources that have helped you in your workflow or overall web design education, feel free to share them in the comments.

(rb)


An alternative to select elements as navigation in narrow viewports

A recurring problem when making sites fit in a narrow viewport is navigation. The most common approach on larger screens is to use a horizontal navigation for the top level items. Sometimes such menus are complicated/complemented by drop-downs listing sub-items, but I’ll leave that out of this post and focus on how to handle just the horizontal navigation bar.

Now, you could simply let the menu items wrap as they need to on small screens. In some cases that is a completely acceptable option, but often that can make the menu take up too much vertical space. One common design pattern (there are more, as evidenced by Brad Frost in Responsive Navigation Patterns) for avoiding that is to convert the navigation items into a select element on small screens. While doing so does save space and may initially feel like a smooth solution, there are a number of drawbacks, some of which Andy Clarke mentions in The select menu navigation pattern. I think there are better options.

I’ve always felt that using select elements for navigation is a bad idea, be it on the desktop, mobile, wide screens, or narrow screens. Form elements are simply not meant for navigation. So here is an alternative way of solving the problem.

Read full post

Posted in , , , .

Copyright © Roger Johansson


Safer event handling with jQuery namespaced events

You’ve heard it many times before: make sure your JavaScript plays nice with other code, especially if you package it up as a plugin and share with other developers. Perhaps the most obvious thing to think about is global variables, which you want to avoid creating since they can easily clash with other global variables.

How you apply and remove event handlers may also cause problems that can be really hard to troubleshoot. Recently I was working on a project where I had attached a function to the window.resize event. But my function simply would not run, and it took me forever to figure out why.

Read full post

Posted in .

Copyright © Roger Johansson



iOS orientation change and automatic text resizing

Most web developers who have viewed their work in an iOS device know that Safari for iOS likes to zoom in on the page and do weird things to font size when you change the device’s orientation from portrait to landscape. A too common way to prevent that is to completely disable the user’s ability to zoom, which you really do not want to do.

Luckily there is A Fix for the iOS Orientationchange Zoom Bug, a very clever one too. I’ve been using this in a few projects and have found it to work well. I have however run into a couple of issues (that in hindsight are pretty obvious) that I want to note here as a reminder to my future self.

Read full post

Posted in , , .

Copyright © Roger Johansson



End tags, semi-colons and maintainable code

In Of parser-fetishists and semi-colons, Chris Heilmann brings up the importance of code maintainability, something that I feel is overlooked a bit too often.

The main issue Chris talks about is omitting semi-colons at the end of JavaScript statements, the subject of a current JavaScript drama. Doing so is valid syntax in many cases, and browsers parse and execute the code fine. However, it does not improve code readability for humans, who are often as important to target as the browsers that run the code.

Read full post

Posted in , , .

Copyright © Roger Johansson



  •   
  • Copyright © 1996-2010 BlogmyQuery - BMQ. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress