| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <title>fuzzer-count-sk demo</title> | |
| 4 <meta charset="utf-8"> | |
| 5 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| 6 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1, user-scalable=yes"> | |
| 7 <script src="/res/imp/bower_components/webcomponentsjs/webcomponents-lite.js">
</script> | |
| 8 <script src="/res/imp/sinon-server-1.17.2.js"></script> | |
| 9 <script> | |
| 10 var server = sinon.fakeServer.create(); | |
| 11 server.autoRespond = true; | |
| 12 var responses = [{ | |
| 13 "totalBadCount": 8322, | |
| 14 "totalGreyCount": 1728, | |
| 15 "thisBadCount": 180, | |
| 16 "thisGreyCount": 89 | |
| 17 }]; | |
| 18 var counter = 0; | |
| 19 | |
| 20 server.respondWith("GET", "/fuzz_count", function(request) { | |
| 21 request.respond(200, {"Content-Type":"application/json"}, | |
| 22 JSON.stringify(responses[counter%responses.length])); | |
| 23 counter++; | |
| 24 }); | |
| 25 </script> | |
| 26 <link rel="import" href="fuzzer-count-sk.html"> | |
| 27 </head> | |
| 28 <body> | |
| 29 <h1>fuzzer-count-sk demo wide</h1> | |
| 30 <fuzzer-count-sk style="max-width:400px"></fuzzer-count-sk> | |
| 31 | |
| 32 <h1>fuzzer-count-sk demo small</h1> | |
| 33 <fuzzer-count-sk style="max-width:200px"></fuzzer-count-sk> | |
| 34 </body> | |
| 35 </html> | |
| OLD | NEW |