SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,009
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)

    This Week in JavaScript - 21 April 2014

    Welcome to your weekly update of JavaScript news and goodies.

    Back to Basics

    Creating a Simple Style Switcher - by yours truly
    From jQuery to JavaScript - or more accurately, "From jQuery to native browser APIs"
    Seven JavaScript Quirks I Wish I’d Known About
    Closures: The 'ringers' of JavaScript - JavaScript closures for Beginners
    A JavaScript Primer For Meteor - covers a lot of basic JavaScript concepts

    Watching

    The Goodness of JavaScript - a Bill-and-Ted-style 'state of the union' JavaScript address
    The Birth and Death of JavaScript - covers JavaScript’s history, flaws and future
    Understanding Scope in JavaScript - what "this" is all about
    AngularJS and i18n
    Controlling an Arduino with Node.js and Johnny Five

    Tutorials

    How To Build A WinJS App In 10 Easy Steps
    Building 3D in the browser with Three.js
    Creating a Node Web App With Hapi and Twilio Integration
    Creating Your First Firefox OS App
    How to easily manage your JavaScript libraries in a Rails app using Bower

    Resources

    Superhero.js - A collection of the best articles, videos and presentations on creating, testing and maintaining a large JavaScript code base
    A List of Foundational JavaScript Tools - there's lots ...
    es6ify - compile JavaScript.next (ES6) to JavaScript.current (ES5) on the fly.
    YUI 3.16.0 Released - what's new
    Book of Modern frontend tooling - introducing you to the world of tooling for modern web applications


    So what are your thoughts on the latest going-ons in the world of JavaScript? Do you have any JavaScript quirks to add to the list? Have you built a Firefox OS app you'd like to tell us about?

    Please PM us if you have anything of interest for the next issue, and happy reading! - Paul & Pullo

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,863
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Most browsers can handle style switching without any JavaScript. You just need to include the alternate stylesheets in the HTM by specifying rel="alternate stylesheet".

    For those browsers that don't have the option built in you can then add a little JavaScript to make the switch
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,009
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Quote Originally Posted by felgall View Post
    Most browsers can handle style switching without any JavaScript. You just need to include the alternate stylesheets in the HTM by specifying rel="alternate stylesheet".
    That's right.
    In the article I didn't really want to concentrate on the awesomeness of style-sheet switching (although this can be useful, for example by offering a high contrast style-sheet for visually impaired users), rather I wanted to write something about how to attach event handlers unobtrusively and how to persist state between page refreshes, as these are two things that I see people keep on asking in the forums.

    Style-sheets seemed to be a convenient example that had a degree of real world value.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •