PageSourceSearch

https://gowy.fr/wp-content/plugins/simple-discography/includes/js/input_number.js?ver=6.9.9

js gowy.fr collected 2026-09-26 18:05:22 UTC 1,348 bytes, 44 lines download raw bytes

1/**
2 * Created by sebastien on 16/08/2014.
3 */
4jQuery(document).ready(function ($) {
5    var number= $('number')
6    $(document).on('keydown', 'input[type=number]',function(e){
7        var k=e.key,t=this;
8        var p = e.which ? e.which : e.keyCode ;
9        if (p === 8 // backspace
10            || p === 46 // delete
11            || (p >= 35 && p <= 40) // end, home, arrows
12        // TODO: shift, ctrl, alt, caps-lock, etc
13            )
14           return;
15
16        if (k.match(/[^0-9\-]/g) != null) {
17            e.preventDefault();
18        }else{
19            if(k=='-' && t.value.length >0)
20                e.preventDefault();
21        }
22    }).on('keyup change', 'input[type=number]',function(e){
23        var p = e.which ? e.which : e.keyCode ;
24        if (p === 8 // backspace
25            || p === 46 // delete
26            || (p >= 35 && p <= 40) // end, home, arrows
27        // TODO: shift, ctrl, alt, caps-lock, etc
28            )
29            return;
30
31        var s = $(this),
32            a = parseInt(s.attr('max')),
33            i = parseInt(s.attr('min')),
34            s = this,
35            v= parseInt(s.value);
36        if(s.value !==''){
37            if((typeof a!=='undefined'&&v>a)||(typeof i!=='undefined'&&v<i)){
38                v = v.toString();
39                s.value = v.slice(0, v.length -1);
40            }
41        }
42    });
43
44});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.