Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
776 lars 1
var ComponentsBootstrapTouchSpin = function() {
2
 
3
    var handleDemo = function() {
4
 
5
        $("#touchspin_1").TouchSpin({
6
            min: 0,
7
            max: 100,
8
            step: 0.1,
9
            decimals: 2,
10
            boostat: 5,
11
            maxboostedstep: 10,
12
            postfix: '%'
13
        });
14
 
15
        $("#touchspin_2").TouchSpin({
16
            min: -1000000000,
17
            max: 1000000000,
18
            stepinterval: 50,
19
            maxboostedstep: 10000000,
20
            prefix: '$'
21
        });
22
 
23
        $("#touchspin_3").TouchSpin({
24
            verticalbuttons: true
25
        });
26
 
27
        $("#touchspin_4").TouchSpin({
28
            verticalbuttons: true,
29
            verticalupclass: 'glyphicon glyphicon-plus',
30
            verticaldownclass: 'glyphicon glyphicon-minus'
31
        });
32
 
33
        $("#touchspin_5").TouchSpin();
34
 
35
        $("#touchspin_6").TouchSpin({
36
            initval: 40
37
        });
38
 
39
        $("#touchspin_7").TouchSpin({
40
            initval: 40
41
        });
42
 
43
        $("#touchspin_8").TouchSpin({
44
            postfix: "a button",
45
            postfix_extraclass: "btn red"
46
        });
47
 
48
        $("#touchspin_9").TouchSpin({
49
            postfix: "a button",
50
            postfix_extraclass: "btn green"
51
        });
52
 
53
        $("#touchspin_10").TouchSpin({
54
            prefix: "pre",
55
            postfix: "post"
56
        });
57
 
58
        $("#touchspin_11").TouchSpin({
59
            buttondown_class: "btn blue",
60
            buttonup_class: "btn red"
61
        });
62
 
63
    }
64
 
65
    return {
66
        //main function to initiate the module
67
        init: function() {
68
            handleDemo();
69
        }
70
    };
71
 
72
}();
73
 
74
jQuery(document).ready(function() {
75
    ComponentsBootstrapTouchSpin.init();
76
});