View RSS Feed

All Blog Entries

  1. The case against animated page flipping publications

    During a recent meeting I was asked to explore the possibility of presenting existing PDF newsletters in a flipping book format. You know the sort; online interactive magazine layouts presented as a 3D book where pages are navigated to and animated in a realistic flipping motion. This wasn't new ground for me as I'd already completed the exercise (and dismissed them in favour of PDF) 5 years ago, but the topic had raised its head again, and this time it was interesting to relook at things from a ...

    Updated 01-30-2017 at 04:28 PM by Beverleyh

    Categories
    PHP coding , Web Design issues , Flash related
  2. Messing with Javascript

    Hey all,
    I've been fiddling with JavaScript and decided to share a neat little thing (its completely useless).

    Finished Code
    Code:
    console.log(+[[-~[]<<~[]][+[]]+[]][+[]][++[[]][+[]]+[+[]]]); //Prints 8
    Now for the break down -

    Pre-note - I use this function while playing with variables. It outputs the value and type of a variable. (The counter is to force the developer console to display each seperately)
    Code:
    var counter = 0;
    ...
  3. CSS Animations - when performance goes bad (and how to fix it)

    Through the power of CSS3, animation of most HTML elements can nowadays be done without using JavaScript or Flash. Gone too (almost) are the days when images would be blinked on and off with an animated GIF. There are still times, however, when a kitschy garnish can be just the thing to add a bit of festive fun to a normally tasteful web page. There's a time and a place for everything and if we can't have fun at Christmas, well, when can we!?

    But let's not go overboard. Everything ...

    Updated 12-17-2016 at 05:57 AM by Beverleyh

    Categories
    CSS related , Web Design issues
  4. Change viewport metatag when matchMedia detects width

    A few months ago I was involved in a discussion on the CSS Tricks forum, where a fellow developer had built some non-responsive website applications.

    The required minimum layout width was 960px, expanding wider when more space was available, but the min-width had caused issues on iPad where the initial view was zoomed in on its 768 x 1024px screen.

    I don't have access to the actual problem site, but I recreated the issue on an old non-responsive site of mine that displays ...

    Updated 10-28-2016 at 11:59 AM by Beverleyh

    Categories
    JavaScript & Ajax , Web Design issues
  5. Adding a click event by class name or by id

    If you want a click event (computer, laptop) or a touchstart event (mobile device) to occur when an arbitrary part of your page is clicked on ('touched') but if you don't want this event to occur (or if you want other events to occur) for regions of your page having a certain id or class name, then jQuery is your friend.
    Code:
    <script>
    $(document).on("click touchstart", function (e){
    if(e.target.id=='bla'){do this} else {do that}
    if(e.target.className=='blo'){do
    ...
    Categories
    Uncategorized
Page 2 of 28 FirstFirst 123412 ... LastLast