background preloader

Javascript

Facebook Twitter

Bootstrap

AngularJS. A Review of JavaScript Error Monitoring Services - Telerik Developer Network. If you’re like me, then you’ve been diligent about writing the best JavaScript code you can. You lint. You write tests (both for the code and the UI). You check out your site in multiple different browsers, locales, time zones, and dimensions. You do a good job. Of course, even the best of us can’t test every possible scenario. For all of us who want a deeper look at how well our sites’ code is working, there are now services you can use to help monitor and report on JavaScript issues on your site. TrackJS I was first introducted to TrackJS when I had the good fortune of sitting next to one of their developers at FluentConf this year. TrackJS provides a free trial with signup, and no credit card is required. Daily Reports For my testing, I dropped this into the template for my blog and then promptly forgot about it. The bottom of that screen shot is cut off a bit, but the “Top Browsers” report is the last part of the email.

Dashboard So how about the web site? Timeline Trends Pricing Activity. Bootstrap. Bootstrap CSS from Twitter. Bootstrap Toolbox - Tools, Utilities, Generators and Templates. Ever since it was initially released, Bootstrap has taken the internet by a storm. It keeps growing in popularity with each passing day — and why shouldn’t it be popular? After all, where else do you find a responsive framework with such an extensive library of pre-styled components, and a community that offers many, many extras and addons? In this collection, we have put together some of the best Bootstrap resources. Nay! We have tried to create the ultimate Bootstrap toolbox page: utilities, generators, templates… and much more! So go ahead, check ’em out, and have fun creating miracles with Bootstrap!

Boostrap Tools & Utilities Bootstrap wysihtml5 Bootstrap-wysihtml5 is a Javascript plugin that makes it easy to create simple, beautiful wysiwyg editors. Bootstrap wysihtml5 → Bootpag – Dynamic Pagination The Bootpag jQuery plugin helps you create dynamic pagination with Bootstrap (or any other HTML page for that matter). Bootpag → Bootstrap Modal Bootstrap Modal → Bootbox.js Bootbox.js → Tocify → Bundling and Minification.

Bundling and minification are two techniques you can use in ASP.NET 4.5 to improve request load time. Bundling and minification improves load time by reducing the number of requests to the server and reducing the size of requested assets (such as CSS and JavaScript.) Most of the current major browsers limit the number of simultaneous connections per each hostname to six. That means that while six requests are being processed, additional requests for assets on a host will be queued by the browser.

In the image below, the IE F12 developer tools network tabs shows the timing for assets required by the About view of a sample application. The gray bars show the time the request is queued by the browser waiting on the six connection limit. The yellow bar is the request time to first byte, that is, the time taken to send the request and receive the first response from the server. Bundling Minification After minification, the function is reduced to the following: Impact of Bundling and Minification.

Code Guide by @mdo. CountUp.js. Creating a Visualization App Using the Google Charts API and AngularJS Archives. Dynamically Building JSON Tree For Use In Javascript Components Using C# Introduction These days, many JavaScript components use JSON when it comes to working with data, the reason is obvious enough, but some components that build some kind of tree structure like this one, are going to need a JSON tree. Building a static JSON tree is easy, but how do you build a dynamic JSON tree and pass them to the components like the one mentioned?

That's what this post is all about. First Step: Building The Representation Of A Tree As A Type The first step we need to take, is to build a tree in C#, and then convert that tree into a JSON tree. But we probably have a tree structure somewhere in the database, the structure I saw most of the time to represent tree in a database is a record with an Id and a ParentId, so I'm going to use that as the representation of my tree in the database, but since we don't have any database, an In memory collection can serve our purpose, our collection is something like this: Hide Copy Code Second Step: Filling The Tree With Data. Eloquent JavaScript. Es6 cheatsheet at DuckDuckGo. How SVG Line Animation Works. I bet all of you have seen that little trick where an SVG path is animated to look like it's drawing itself.

It's super cool. Jake Archibald pioneered the technique and has a super good interactive blog post on how it works. Brian Suda wrote about it on 24 Ways. Polygon used it to great effect on a custom designed article and wrote about it. Codrops has some neat examples. I have very little to add, except my brain just kinda figured it out, so I thought I would explain it one more time the way it clicked for me. 1. 2. 3. We could do that from Illustrator, but we can also do it programatically. That gives us dashes of 20px in length. 4. 5. Watch as we animate the offset of those long strokes: That was a simple as: 6. Nothing really to see, it looks just like the complete shape if it wasn't dashed at all. 7.

It will look like the shape isn't there at all. 8. Tada! Live Example So why all the JavaScript? Most of the examples you see of SVG line animations use JavaScript. Share On. JS: The Right Way. JSbooks - free javascript books. Planetary.js: Awesome interactive globes for the web. Targeting Menu Elements with Submenus in a Navigation Bar. The following is a guest post by Ray Messina. Ray was interested in sharing this technique as a way to pay forward things he's learned from this site in the past, which is awesome. You might be aware of the jQuery .has method, which allows you to select an element if it has any of another selector as a descendant. There is sadly no such selector in CSS yet. But if you know a little something about the HTML structure, you can use a combination of positional selectors to mimic it. Ray will explain. Recently, I was working on a dropdown navigation bar and wanted to differentiate the menu items which contained sub menus from those that didn't.

The Need for Navigational Hints As you probably know, menus are lists of links and, as such, it is standard practice to mark them up as <ul>s. Many designers are satisfied with leaving as that. Another way, assuming that upper level items are not coded as links, is to use that difference in tags as leverage. Doing It Automatically!

A better way The CSS. Trial.js - Mouse Monitoring & Prediction. Simple library could monitor mouse position and predict user input * No dependency * ~1kb gzipped * Auto extends methods for jQuery and Zepto APIs Usage Examples Usage: Examples: Dynamically changing styles based on the distance between pointer and element Pre-fetching data before receiving user input when mouse enter the red circle, pre-fetching details before user click the button. Twitter Bootstrap Tutorial. Twitter Bootstrap Tutorial has average rating 7 out of 10. Total 2151 users rated. <<PreviousNext>> Objective The most popular of the front end frameworks, Twitter Bootstrap, has come to it's third version (v3.0.0).

You will also see how to customize the out of the box features of the framework, using grids to create layout, creating navigation with nav, creating dropdowns, using carousal, adding third party staff like embedding social plugins and Google Map and more. What is twitter bootstrap Twitter Bootstrap is a front end framework to develop web apps and sites fast. Moreover, since the entire framework is module based, you can customize it with your own bit of CSS or even go for a complete overhaul after getting started. It is based on the several best practices and we believe it is a very good point to start learning modern day web development with HTML, and JavaScript/Jquery once you know the basics.

Why do you use Twitter Bootstrap in your projects? $ bower install bootstrap <! <!