HTML 9 framework with javascript

Posted 9th May 2012
Comments Off

Finally. It’s here.

Flipboard style, without an iPad

Posted 9th May 2012
Comments Off

This looks like serious fun.

Comments Off

Immersion Media tells you how. (Lots of web sites teach this concept, in varying ways.) And you can use jquery to perform simple validations.

Jquery slabText

Posted 13th April 2012
Comments Off

Check it out here (the download includes everything ready-to-go — css, html, js file).

Google web fonts

Posted 11th April 2012
Comments Off

See if you can get one working.

Or use the plug-in.


Quarter 3 self-evaluation

Posted 8th April 2012

Describe and evaluate your work and learning this quarter in a Google Docs form.

(Don’t fill it in, though, till we’re done with presentations.)

Chrome 18: you need it

Posted 30th March 2012
Comments Off

Full hardware acceleration (even on our MLTI laptops) and a new version of Flash. Go to chrome://gpu/ to see specs specific to your machine (older Macs and PCs don’t have the GPU horsepower to use the accelerator).

How to get it? Chrome > About Google Chrome > Update Now.

Then go to Morphing Cubes to see some sort of astonishing real-time rendering without Flash. Note that the numbers are text, not graphics — you can select them and they enlarge when you goose up the font size. Stripped of the javascript that toggles the shape, this is the whole code, all CSS3:


 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>
            Morphing Power Cubes
        </title>
<style type="text/css" media="screen">
    body {
      background-colorblack;
      colorwhite;
      font-family'Lucida Grande'VerdanaArial;
      font-size: 12px;
      background-image-webkit-gradient(radial,
                            50% 500, 1,
                            50% 500, 400,
                            from(rgba(255, 255, 255, 0.3)),
                            to(rgba(255, 255, 255, 0)));
     background-repeatno-repeat;
    }

    #container {
      width: 100%;
      height: 700px;
      -webkit-perspective: 800; /* For compatibility with iPhone 3.0, we leave off the units here */
      -webkit-perspective-origin: 50% 225px;
    }
    #stage {
      width: 100%;
      height: 100%;
      -webkit-transition-webkit-transform 2s;
      -webkit-transform-stylepreserve-3d;
    }
    
    #shape {
      positionrelative;
      top: 160px;
      margin: 0 auto;
      height: 200px;
      width: 200px;
      -webkit-transform-stylepreserve-3d;
    }
    
    .plane {
      positionabsolute;
      height: 200px;
      width: 200px;
      border: 1px solid white;
      -webkit-border-radius: 12px;
      -webkit-box-sizingborder-box;
      text-aligncenter;
      font-familyTimesserif;
      font-size: 124pt;
      colorblack;
      background-colorrgba(255, 255, 255, 0.6);
      -webkit-transition-webkit-transform 2sopacity 2s;
      -webkit-backface-visibilityhidden;
    }

    #shape.backfaces .plane {
      -webkit-backface-visibilityvisible;
    }
    
    #shape {
      -webkit-animationspin 8s infinite linear;
    }

    @-webkit-keyframes spin {
      from { -webkit-transformrotateY(0); }
      to   { -webkit-transformrotateY(-360deg); }
    }

    /* ---------- cube styles ------------- */
    .cube > .one {
      opacity: 0.5;
      -webkit-transformscale3d(1.2, 1.2, 1.2) rotateX(90degtranslateZ(100px);
    }

    .cube > .two {
      opacity: 0.5;
      -webkit-transformscale3d(1.2, 1.2, 1.2) translateZ(100px);
    }

    .cube > .three {
      opacity: 0.5;
      -webkit-transformscale3d(1.2, 1.2, 1.2) rotateY(90degtranslateZ(100px);
    }

    .cube > .four {
      opacity: 0.5;
      -webkit-transformscale3d(1.2, 1.2, 1.2) rotateY(180degtranslateZ(100px);
    }

    .cube > .five {
      opacity: 0.5;
      -webkit-transformscale3d(1.2, 1.2, 1.2) rotateY(-90degtranslateZ(100px);
    }

    .cube > .six {
      opacity: 0.5;
      -webkit-transformscale3d(1.2, 1.2, 1.2) rotateX(-90degtranslateZ(100pxrotate(180deg);
    }

    .cube > .seven {
      -webkit-transformscale3d(0.8, 0.8, 0.8) rotateX(90degtranslateZ(100pxrotate(180deg);
    }

    .cube > .eight {
      -webkit-transformscale3d(0.8, 0.8, 0.8) translateZ(100px);
    }

    .cube > .nine {
      -webkit-transformscale3d(0.8, 0.8, 0.8) rotateY(90degtranslateZ(100px);
    }

    .cube > .ten {
      -webkit-transformscale3d(0.8, 0.8, 0.8) rotateY(180degtranslateZ(100px);
    }

    .cube > .eleven {
      -webkit-transformscale3d(0.8, 0.8, 0.8) rotateY(-90degtranslateZ(100px);
    }

    .cube > .twelve {
      -webkit-transformscale3d(0.8, 0.8, 0.8) rotateX(-90degtranslateZ(100px);
    }

    /* ---------- ring styles ------------- */
    .ring > .one {
      -webkit-transformtranslateZ(380px);
    }

    .ring > .two {
      -webkit-transformrotateY(30degtranslateZ(380px);
    }

    .ring > .three {
      -webkit-transformrotateY(60degtranslateZ(380px);
    }

    .ring > .four {
      -webkit-transformrotateY(90degtranslateZ(380px);
    }

    .ring > .five {
      -webkit-transformrotateY(120degtranslateZ(380px);
    }

    .ring > .six {
      -webkit-transformrotateY(150degtranslateZ(380px);
    }

    .ring > .seven {
      -webkit-transformrotateY(180degtranslateZ(380px);
    }

    .ring > .eight {
      -webkit-transformrotateY(210degtranslateZ(380px);
    }

    .ring > .nine {
      -webkit-transformrotateY(-120degtranslateZ(380px);
    }

    .ring > .ten {
      -webkit-transformrotateY(-90degtranslateZ(380px);
    }

    .ring > .eleven {
      -webkit-transformrotateY(300degtranslateZ(380px);
    }

    .ring > .twelve {
      -webkit-transformrotateY(330degtranslateZ(380px);
    }

    .controls {
      width: 80%;
      margin: 0 auto;
      padding: 5px 20px;
      -webkit-border-radius: 12px;
      background-colorrgba(255, 255, 255, 0.5);
    }
    .controls > div {
      margin: 10px;
    }
  </style> 
    </head>
    <body>
        <div class="controls">
            <h1>
                AnimationsTransitions and 3D Transforms
            </h1>
            <div>
                <button onclick="toggleShape()">
                    Toggle Shape
                </button>
            </div>
            <div>
                <input type="checkbox" id="backfaces" onclick="toggleBackfaces()" checked>
                <label for="backfaces">
                    Backfaces visible</label>
            </div>
        </div>
        <div id="container">
            <div id="stage">
                <div id="shape" class="cube backfaces">
                    <div class="plane one">
                        1
                    </div>
                    <div class="plane two">
                        2
                    </div>
                    <div class="plane three">
                        3
                    </div>
                    <div class="plane four">
                        4
                    </div>
                    <div class="plane five">
                        5
                    </div>
                    <div class="plane six">
                        6
                    </div>
                    <div class="plane seven">
                        7
                    </div>
                    <div class="plane eight">
                        8
                    </div>
                    <div class="plane nine">
                        9
                    </div>
                    <div class="plane ten">
                        10
                    </div>
                    <div class="plane eleven">
                        11
                    </div>
                    <div class="plane twelve">
                        12
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>


Prototype in Keynote?

Posted 29th March 2012
Comments Off

Quickly gives you a clean, modern look.

EOQ 3

Posted 28th March 2012
Comments Off

The list for an A:

  • 000webhost-based WordPress install
  • link to this site from your WebTeam home page
  • at least 5 posts that show you know how to whip WordPress around six ways from Sunday (all sorts of formatting, images, videos, links, etc.)
  • at least 3 majorly-different themes installed, some with navbars, some without
    • for each theme, a link to the demo of each theme, so folks can see what it looked like before
  • some sort of theme switcher or a page (not a post) that has nicely-formatted Theme Test Drive links to all your themes
  • at east one theme has all major graphic elements swapped out/changed
  • page for each theme that you “diddled with” (technical term for messing around/changing stuff), describing what you did — “swapped out these graphics, changed this code in this php file, changed the css for this so that it would do this,” etc
  • a backup of your WordPress site as a Tools  >Export
  • an ftp-ed backup of your entire 000webhost world

OR, if you are pursuing a different independent goal:

  • complete and rich web-based documentation of all you have done this quarter, on your WebTeam site

 

Comments Off

Basic instructions — and a theme template — for building a WP theme from scratch. Good for those of you who are not much interested in graphics and would like to understand div-based layout.