paulc avatar paulc committed 47dc372

Move html to tests directory

Comments (0)

Files changed (8)

array.html

-<html>
-<head>
-    <title>directio.nl</title>
-    <script src="lib/cq.js" type="text/javascript"></script>
-    <script src="lib/model.js" type="text/javascript"></script>
-    <script src="lib/page.js" type="text/javascript"></script>
-    <script type="text/javascript">
-        var $ = window.cq;
-        var Counter = window.Counter;
-        var v1;
-        $.ready(function() { 
-                v1 = (new Counter())._bind();
-        });
-    </script>
-</head>
-<body>
-
-<div id="top">
-    <button data-bind="click: this.things.push(99)">Push</button>
-    <div data-bind="text: this.adder.a">adder</div>
-    <div data-bind="text: name">name</div>
-    <div data-bind="text: this.name.length">name.length</div>
-    <div data-bind="text: things">things</div>
-    <div data-bind="text: this.things.length">things.length</div>
-    <div data-bind="text: function (o) { var x = []; for (k in o) { x.push(k) }; return x }(this.options._value)">list</div>
-    <div data-bind="text: function (o) { var x = []; for (k in o) { x.push(o[k]) }; return x }(this.options._value)">list</div>
-    <div data-bind="text: name">name</div>
-</div>
-
-</body>
-</html>

cq.html

-<html>
-<head>
-    <title>directio.nl</title>
-    <script src="lib/cq.js" type="text/javascript"></script>
-</head>
-<body>
-
-<div id="top">
-<div class="test" id="aa">11111</div>
-<div class="test" id="bb">22222</div>
-</div>
-<div id="bottom">
-<div class="test" id="cc">33333</div>
-<div class="test" id="dd">44444</div>
-<div class="test" id="aa">11111</div>
-<!-- This is a comment 
-
-<p>You shouldnt see this</p>
-
--->
-</div>
-
-
-<form>
-    <input name='text_a'><br/>
-    <input name='text_b'><br/>
-    <input name='text_c'><br/>
-    <select name="select_one">
-        <option value="1">1</option>
-        <option value="2">2</option>
-        <option value="3">3</option>
-        <option value="4">4</option>
-    </select><br/>
-    <select name="select_multiple" multiple>
-        <option value="a">1</option>
-        <option value="b">2</option>
-        <option value="c">3</option>
-        <option value="d">4</option>
-    </select><br/>
-    <textarea name="textarea">Hello</textarea><br/>
-    <input type="radio" name="radio" value="a">1
-    <input type="radio" name="radio" value="b">2
-    <input type="radio" name="radio" value="c">3<br/>
-    <input type="checkbox" name="check" value="a">check1
-    <input type="checkbox" name="check2" value="a">check2
-    <input name="hidden" type="hidden" value="hidden">
-    <input type='submit'>
-</form>
-
-</body>
-</html>

model.html

-<html>
-<head>
-    <title>directio.nl</title>
-    <script src="lib/cq.js" type="text/javascript"></script>
-    <script src="lib/model.js" type="text/javascript"></script>
-    <script src="lib/page.js" type="text/javascript"></script>
-    <script type="text/javascript">
-        var $ = window.cq;
-        var Counter = window.Counter;
-        var v1,v2;
-        $.ready(function() { 
-                v1 = (new Counter())._bind($('#top'));
-                v2 = (new Counter())._bind($('#bottom'));
-        });
-    </script>
-    <style type="text/css">
-        .red { color: red; }
-        .green { color: green; }
-        .big { font-size: large; }
-    </style>
-</head>
-<body>
-
-<div id="top">
-    <div data-bind="text: things">things</div>
-    <div data-bind="text: this.things.length">things.length</div>
-    <div data-bind="text: function (o) { var x = []; for (k in o) { x.push(k) }; return x }(this.options._value)">list</div>
-    <select name="option" data-bind="select: option">
-        <option value="1">a</option>
-        <option value="2">b</option>
-        <option value="3">c</option>
-        <option value="4">d</option>
-    </select>
-    <span data-bind="text: option">The Value</span>
-    <input data-bind="nvalue: x, enable: this.x > 0" name="x" type="text">
-    <input data-bind="nvalue: x" name="radio1" type="radio" value="1">
-    <input data-bind="nvalue: x" name="radio1" type="radio" value="2">
-    <input data-bind="nvalue: x" name="radio1" type="radio" value="3">
-    <button data-bind="click: incr">Increment</button>
-    <div data-bind="text: x">0</div>
-    <div data-bind="text: this.x">0</div>
-    <div data-bind="text: y">0</div>
-    <div data-bind="text: this.x * 3">0</div>
-    <div data-bind="visible: this.x > 10">x is more than 10 !!</div>
-    <div data-bind="fade: this.x === 5">x is 5 !!</div>
-    <a href="http://www.google.com" data-bind="click: --this.x">Click Me</a>
-    <p data-bind="fade: this.x === 3">
-        This is going to appear when x is 3.
-        <br/>
-        x is <span data-bind="text: x"></span>
-        <br/>
-        y is <span data-bind="text: y"></span>
-    </p>
-    <div data-bind="visible: this.x > 5, style: { color: this.x > 10 ? 'red' : 'green' }">This is red when x &gt; 10</div>
-</div>
-
-<div id="bottom">
-    <input data-bind="value: x" name="x" type="text">
-    <button data-bind="click: incr">Increment</button>
-    <div data-bind="text: x">0</div>
-    <div data-bind="text: this.x">0</div>
-    <div data-bind="text: y">0</div>
-    <div data-bind="text: this.x * 3">0</div>
-    <div data-bind="visible: this.x > 10">More than 10</div>
-</div>
-
-</body>
-</html>

observable.html

-<html>
-<head>
-    <title>directio.nl</title>
-    <script src="lib/cq.js" type="text/javascript"></script>
-    <script src="lib/model.js" type="text/javascript"></script>
-    <script src="lib/observable.js" type="text/javascript"></script>
-    <script type="text/javascript">
-        var $ = window.cq;
-        var v1;
-        $.ready(function() { 
-                v1 = (new window.ObservableTest())._bind($('#top'));
-                //v2 = (new window.ObservableTest())._bind($('#bottom'));
-        });
-    </script>
-</head>
-<body>
-
-<div id="top">
-    <div data-bind="text: this.adder.a">adder</div>
-    <button data-bind="click: this.adder.add()">Increment</button>
-</div>
-<!--
-<div id="bottom">
-    <div data-bind="text: this.adder.a">adder</div>
-    <button data-bind="click: add">Increment</button>
-</div>
--->
-
-</body>
-</html>
+<html>
+<head>
+    <title>directio.nl</title>
+    <script src="lib/cq.js" type="text/javascript"></script>
+    <script src="lib/model.js" type="text/javascript"></script>
+    <script src="lib/page.js" type="text/javascript"></script>
+    <script type="text/javascript">
+        var $ = window.cq;
+        var Counter = window.Counter;
+        var v1;
+        $.ready(function() { 
+                v1 = (new Counter())._bind();
+        });
+    </script>
+</head>
+<body>
+
+<div id="top">
+    <button data-bind="click: this.things.push(99)">Push</button>
+    <div data-bind="text: this.adder.a">adder</div>
+    <div data-bind="text: name">name</div>
+    <div data-bind="text: this.name.length">name.length</div>
+    <div data-bind="text: things">things</div>
+    <div data-bind="text: this.things.length">things.length</div>
+    <div data-bind="text: function (o) { var x = []; for (k in o) { x.push(k) }; return x }(this.options._value)">list</div>
+    <div data-bind="text: function (o) { var x = []; for (k in o) { x.push(o[k]) }; return x }(this.options._value)">list</div>
+    <div data-bind="text: name">name</div>
+</div>
+
+</body>
+</html>
+<html>
+<head>
+    <title>directio.nl</title>
+    <script src="lib/cq.js" type="text/javascript"></script>
+</head>
+<body>
+
+<div id="top">
+<div class="test" id="aa">11111</div>
+<div class="test" id="bb">22222</div>
+</div>
+<div id="bottom">
+<div class="test" id="cc">33333</div>
+<div class="test" id="dd">44444</div>
+<div class="test" id="aa">11111</div>
+<!-- This is a comment 
+
+<p>You shouldnt see this</p>
+
+-->
+</div>
+
+
+<form>
+    <input name='text_a'><br/>
+    <input name='text_b'><br/>
+    <input name='text_c'><br/>
+    <select name="select_one">
+        <option value="1">1</option>
+        <option value="2">2</option>
+        <option value="3">3</option>
+        <option value="4">4</option>
+    </select><br/>
+    <select name="select_multiple" multiple>
+        <option value="a">1</option>
+        <option value="b">2</option>
+        <option value="c">3</option>
+        <option value="d">4</option>
+    </select><br/>
+    <textarea name="textarea">Hello</textarea><br/>
+    <input type="radio" name="radio" value="a">1
+    <input type="radio" name="radio" value="b">2
+    <input type="radio" name="radio" value="c">3<br/>
+    <input type="checkbox" name="check" value="a">check1
+    <input type="checkbox" name="check2" value="a">check2
+    <input name="hidden" type="hidden" value="hidden">
+    <input type='submit'>
+</form>
+
+</body>
+</html>
+<html>
+<head>
+    <title>directio.nl</title>
+    <script src="lib/cq.js" type="text/javascript"></script>
+    <script src="lib/model.js" type="text/javascript"></script>
+    <script src="lib/page.js" type="text/javascript"></script>
+    <script type="text/javascript">
+        var $ = window.cq;
+        var Counter = window.Counter;
+        var v1,v2;
+        $.ready(function() { 
+                v1 = (new Counter())._bind($('#top'));
+                v2 = (new Counter())._bind($('#bottom'));
+        });
+    </script>
+    <style type="text/css">
+        .red { color: red; }
+        .green { color: green; }
+        .big { font-size: large; }
+    </style>
+</head>
+<body>
+
+<div id="top">
+    <div data-bind="text: things">things</div>
+    <div data-bind="text: this.things.length">things.length</div>
+    <div data-bind="text: function (o) { var x = []; for (k in o) { x.push(k) }; return x }(this.options._value)">list</div>
+    <select name="option" data-bind="select: option">
+        <option value="1">a</option>
+        <option value="2">b</option>
+        <option value="3">c</option>
+        <option value="4">d</option>
+    </select>
+    <span data-bind="text: option">The Value</span>
+    <input data-bind="nvalue: x, enable: this.x > 0" name="x" type="text">
+    <input data-bind="nvalue: x" name="radio1" type="radio" value="1">
+    <input data-bind="nvalue: x" name="radio1" type="radio" value="2">
+    <input data-bind="nvalue: x" name="radio1" type="radio" value="3">
+    <button data-bind="click: incr">Increment</button>
+    <div data-bind="text: x">0</div>
+    <div data-bind="text: this.x">0</div>
+    <div data-bind="text: y">0</div>
+    <div data-bind="text: this.x * 3">0</div>
+    <div data-bind="visible: this.x > 10">x is more than 10 !!</div>
+    <div data-bind="fade: this.x === 5">x is 5 !!</div>
+    <a href="http://www.google.com" data-bind="click: --this.x">Click Me</a>
+    <p data-bind="fade: this.x === 3">
+        This is going to appear when x is 3.
+        <br/>
+        x is <span data-bind="text: x"></span>
+        <br/>
+        y is <span data-bind="text: y"></span>
+    </p>
+    <div data-bind="visible: this.x > 5, style: { color: this.x > 10 ? 'red' : 'green' }">This is red when x &gt; 10</div>
+</div>
+
+<div id="bottom">
+    <input data-bind="value: x" name="x" type="text">
+    <button data-bind="click: incr">Increment</button>
+    <div data-bind="text: x">0</div>
+    <div data-bind="text: this.x">0</div>
+    <div data-bind="text: y">0</div>
+    <div data-bind="text: this.x * 3">0</div>
+    <div data-bind="visible: this.x > 10">More than 10</div>
+</div>
+
+</body>
+</html>

test/observable.html

+<html>
+<head>
+    <title>directio.nl</title>
+    <script src="lib/cq.js" type="text/javascript"></script>
+    <script src="lib/model.js" type="text/javascript"></script>
+    <script src="lib/observable.js" type="text/javascript"></script>
+    <script type="text/javascript">
+        var $ = window.cq;
+        var v1;
+        $.ready(function() { 
+                v1 = (new window.ObservableTest())._bind($('#top'));
+                //v2 = (new window.ObservableTest())._bind($('#bottom'));
+        });
+    </script>
+</head>
+<body>
+
+<div id="top">
+    <div data-bind="text: this.adder.a">adder</div>
+    <button data-bind="click: this.adder.add()">Increment</button>
+</div>
+<!--
+<div id="bottom">
+    <div data-bind="text: this.adder.a">adder</div>
+    <button data-bind="click: add">Increment</button>
+</div>
+-->
+
+</body>
+</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.