]> source.dussan.org Git - jquery-ui.git/commitdiff
Effects toggle demo: Coding standards.
authorScott González <scott.gonzalez@gmail.com>
Mon, 21 May 2012 14:08:28 +0000 (10:08 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 21 May 2012 14:08:28 +0000 (10:08 -0400)
demos/toggle/default.html

index 469674b705bcbcf5d856af86f086ee082969b7fe..5dcd5eff86827e23c2cf64f10984f3a6b42fef2f 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!doctype html>
 <html lang="en">
 <head>
        <meta charset="utf-8">
        <script src="../../ui/jquery.effects.slide.js"></script>
        <link rel="stylesheet" href="../demos.css">
        <style>
-       .toggler { width: 500px; height: 200px; }
-       #button { padding: .5em 1em; text-decoration: none; }
-       #effect { width: 240px; height: 135px; padding: 0.4em; position: relative; }
-       #effect h3 { margin: 0; padding: 0.4em; text-align: center; }
+       .toggler {
+               width: 500px;
+               height: 200px;
+       }
+       #button {
+               padding: .5em 1em;
+               text-decoration: none;
+       }
+       #effect {
+               position: relative;
+               width: 240px;
+               height: 135px;
+               padding: 0.4em;
+       }
+       #effect h3 {
+               margin: 0;
+               padding: 0.4em;
+               text-align: center;
+       }
        </style>
        <script>
        $(function() {
                // run the currently selected effect
                function runEffect() {
-                       // get effect type from 
+                       // get effect type from
                        var selectedEffect = $( "#effectTypes" ).val();
-                       
+
                        // most effect types need no options passed by default
                        var options = {};
                        // some effects have required parameters
                        } else if ( selectedEffect === "size" ) {
                                options = { to: { width: 200, height: 60 } };
                        }
-                       
+
                        // run the effect
                        $( "#effect" ).toggle( selectedEffect, options, 500 );
                };
-               
+
                // set effect from select menu value
                $( "#button" ).click(function() {
                        runEffect();