dave-smith.info

Hi, Dave here, welcome to my interweb place where I occasionally share what I've being up to and save things for reference.

‘use strict’ and undeclared variables when type-checking a JavaScript object

Simply… when using the ‘use strict’ statement, undeclared variables will raise an error. I like ‘use strict’, but I need to take more care around undeclared variables, especially when using a typeOf function.

Biscuit 8

Another biscuit to chomp on over coffee.

Pageviews by Date Google Analytics Custom Report

Just wanted to get a report to show page views of a particular set of pages by date in Google Analytics. Couldn’t find anything after a quick search so here’s a bare-bones way to do it.

Back to top on fixed navbars – update

Two things: 1. I saw Google+ has the exact back to top feature I was thinking about, nice! 2. I created a little Gist for jQuery peeps wanting something to copy and paste.

JavaScript Cookies

Quirksmode’s classic cookie functions were my go-to place for cookies. Recently though I wanted a bit more control over the cookie domain and made some minor changes.

typeOf

A code snippet to determine the type of a JavaScript object.

Back to top on fixed navbars

I’ve been thinking for a little while it would great to steal a back to top idea found in Safari on iOS and using it in regular websites.

Biscuit 7

Another biscuit to chomp on over coffee.

JS, CSS and Image Feature Detection

I just completed work on version 1.0 of a bit of JavaScript that detects JS, CSS and Images in the user’s browser. It’s dead easy to use and adds classes to the HTML element per detected feature. I created it in my seamingly annual atttempt to find another way to solve the image replacement problem. […]

Biscuit 6

Tackling accessibility on the web http://blog.teamtreehouse.com/tackling-accessibility-on-the-web AccDC Technical Style Guide, to check out http://whatsock.com/tsg/ As they say “Testing for Internet Explorer just got a little easier” http://www.modern.ie/ The PHP error_log can send emails http://php.net/manual/en/function.error-log.php enquire.js http://wicky.nillia.ms/enquire.js/ Camera, Video, Audio capture via HTML and JavaScript http://dev.w3.org/2009/dap/camera/#examples HTML Emails http://www.campaignmonitor.com/guides/ http://www.email-standards.org/why/ https://litmus.com/email-testing Responsive Data Table Roundup http://css-tricks.com/responsive-data-table-roundup/ […]

Projects

  • Baseup Fluid and responsive CSS layouts made easy
  • URI.js A URI parser with two functions URI.parse and URI.stringify
  • Breakpoint Responds to screen size and applies viewport breakpoint classes to the document element

Library

Sitemap