Statistics
| Branch: | Revision:

blinker / firefox.plugin / data / performancetest / performancetest.js @ master

History | View | Annotate | Download (398 Bytes)

1 76dd22bd KevinTaron
var starttime;
2
3
4
jQuery(document).ready(function($) {
5
        console.log("PerformanceTest opened");
6
7
        prevendSubmit();
8
        starttime = new Date();
9
});
10
11
12
function prevendSubmit() {
13
        jQuery('form button').click(function(event) {
14
15
                var endtime = new Date();
16
                var timespend = (endtime - starttime) / 1000;
17
                jQuery('form').attr('action', 'performancetest-end.html?time=' + timespend);
18
        });
19
}