javascript: jquery-confirm.js

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">    
<title>jquery-confirm.js | The multipurpose alert & confirm</title>
<meta name="Description" content="geovindu"/>
<meta name="Keywords" content="geovindu"/>
<meta name="author" content="geovindu"/> 
        <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  <script  src="js/jquery-3.6.0.js"></script>
  <script src="ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>
  <link rel='stylesheet' href='bootstrap/4.6.2/css/bootstrap.min.css'>
  <link rel="stylesheet" href="css/main.css">
         <!-- Add the minified version of files from the /dist/ folder. -->
    <!-- jquery-confirm files -->
    <link rel="stylesheet"
          type="text/css"
          href="ajax/libs/jqueryconfirm/3.3.4/jquery-confirm.css"/>
    <script type="text/javascript"
            src="ajax/libs/jqueryconfirm/3.3.4/jquery-confirm.js"></script>
    <!--<script type="text/javascript"-->
    <!--src="dist/jquery-confirm.min.js"></script>-->
    <!--END jquery-confirm files-->
     
    <link rel="stylesheet"
          id="bs-stylesheet"
          href="du/libs/bs3.css">
 
    <link rel="stylesheet"
          href="du/libs/bundled.css">
    <link rel="stylesheet"
          href="du/demo.css">
 
  
</head>
 
<body data-spy="scroll"
      data-target=".navbar">
    <div class="container">
   <h2>Themes</h2>
 
                <p>jquery-confirm comes loaded with themes for all common use cases.</p>
 
                <div class="row">
                    <div class="col-md-3">
                        <button class="btn btn-info btn-block example-the-1">Modern</button>
                    </div>
                    <div class="col-md-3">
                        <button class="btn btn-info btn-block example-the-3">Material</button>
                    </div>
                    <div class="col-md-3">
                        <button class="btn btn-info btn-block example-the-4">Bootstrap</button>
                    </div>
                    <div class="col-md-3">
                        <button class="btn btn-info btn-block example-the-2">Supervan</button>
                    </div>
                </div>
    </div>
     <script type="text/javascript">
         /*Supervan风格 透明
https://github.com/craftpip/jquery-confirm
jconfirm.defaults = {
    title: 'geovindu',
    titleClass: '',
    type: 'default',
    typeAnimated: true,
    draggable: true,
    dragWindowGap: 15,
    dragWindowBorder: true,
    animateFromElement: true,
    smoothContent: true,
    content: 'Are you sure to continue?',
    buttons: {},
    defaultButtons: {
        ok: {
            action: function () {
            }
        },
        close: {
            action: function () {
            }
        },
    },
    contentLoaded: function(data, status, xhr){
    },
    icon: '',
    lazyOpen: false,
    bgOpacity: null,
    theme: 'light',
    animation: 'scale',
    closeAnimation: 'scale',
    animationSpeed: 400,
    animationBounce: 1,
    rtl: false,
    container: 'body',
    containerFluid: false,
    backgroundDismiss: false,
    backgroundDismissAnimation: 'shake',
    autoClose: false,
    closeIcon: null,
    closeIconClass: false,
    watchInterval: 100,
    columnClass: 'col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1',
    boxWidth: '50%',
    scrollToPreviousElement: true,
    scrollToPreviousElementAnimate: true,
    useBootstrap: true,
    offsetTop: 40,
    offsetBottom: 40,
    bootstrapClasses: {
        container: 'container',
        containerFluid: 'container-fluid',
        row: 'row',
    },
    onContentReady: function () {},
    onOpenBefore: function () {},
    onOpen: function () {},
    onClose: function () {},
    onDestroy: function () {},
    onAction: function () {}
};*/
         /*
         $.confirm({
    title: 'Encountered an error!',
    content: 'Something went downhill, this may be serious',
    type: 'red',
    typeAnimated: true,
    buttons: {
        tryAgain: {
            text: 'Try again',
            btnClass: 'btn-red',
            action: function(){
            }
        },
        close: function () {
        }
    }
});*/
          
          
          
                    $('.example-the-1').on('click', function(){
                        $.confirm({
                            icon: 'fa fa-smile-o',
                            theme: 'modern',
                            closeIcon: true,
                            animation: 'scale',
                            type: 'blue',
                        });
                    });
                    $('.example-the-2').on('click', function(){
                        $.confirm({
                            title: '涂聚文!',
                            content: '你好,Geovin Du',                       
                            typeAnimated: true,
                            icon: 'fa fa-question-circle-o',
                            theme: 'supervan',
                            closeIcon: true,
                            animation: 'scale',
                            type: 'orange',
                        });
                    });
                    $('.example-the-3').on('click', function(){
                        $.confirm({
                            icon: 'fa fa-question',
                            theme: 'material',
                            closeIcon: true,
                            animation: 'scale',
                            type: 'orange',
                        });
                    });
                    $('.example-the-4').on('click', function(){
                        $.confirm({
                                title: 'Encountered an error!',
                                content: 'Something went downhill, this may be serious',                       
                            typeAnimated: true,
                            icon: 'fa fa-question',
                            theme: 'bootstrap',
                            closeIcon: true,
                            animation: 'scale',
                            type: 'orange',
                        });
                    });
 
    </script>
</body>
</html>

  

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">    
<title>jquery-confirm.js | The multipurpose alert & confirm</title>
<meta name="Description" content="geovindu"/>
<meta name="Keywords" content="geovindu"/>
<meta name="author" content="geovindu"/> 
        <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  <script  src="js/jquery-3.6.0.js"></script>
  <script src="ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>
  <link rel='stylesheet' href='bootstrap/4.6.2/css/bootstrap.min.css'>
  <link rel="stylesheet" href="css/main.css">
         <!-- Add the minified version of files from the /dist/ folder. -->
    <!-- jquery-confirm files -->
    <link rel="stylesheet"
          type="text/css"
          href="ajax/libs/jqueryconfirm/3.3.4/jquery-confirm.css"/>
    <script type="text/javascript"
            src="ajax/libs/jqueryconfirm/3.3.4/jquery-confirm.js"></script>
    <!--<script type="text/javascript"-->
    <!--src="dist/jquery-confirm.min.js"></script>-->
    <!--END jquery-confirm files-->
     
    <link rel="stylesheet"
          id="bs-stylesheet"
          href="du/libs/bs3.css">
 
    <link rel="stylesheet"
          href="du/libs/bundled.css">
    <link rel="stylesheet"
          href="du/demo.css">
 
 <style type="text/css">
     #geovindu{
          
         height: 400px;
         width: 200px;
     }
     
    </style>
</head>
 
<body data-spy="scroll"
      data-target=".navbar">
    <div class="container">
   <h2>Themes</h2>
 
                <p>jquery-confirm comes loaded with themes for all common use cases.</p>
 
                <div class="row">
                    <div class="col-md-3">
                        <button class="btn btn-info btn-block example-the-1">Modern</button>
                    </div>
                    <div class="col-md-3">
                        <button class="btn btn-info btn-block example-the-3">Material</button>
                    </div>
                    <div class="col-md-3">
                        <button class="btn btn-info btn-block example-the-4">Bootstrap</button>
                    </div>
                    <div class="col-md-3">
                        <button class="btn btn-info btn-block example-the-2">Supervan</button>
                    </div>
                </div>
    </div>
     <script type="text/javascript">
         /*Supervan风格 透明
https://github.com/craftpip/jquery-confirm
jconfirm.defaults = {
    title: 'geovindu',
    titleClass: '',
    type: 'default',
    typeAnimated: true,
    draggable: true,
    dragWindowGap: 15,
    dragWindowBorder: true,
    animateFromElement: true,
    smoothContent: true,
    content: 'Are you sure to continue?',
    buttons: {},
    defaultButtons: {
        ok: {
            action: function () {
            }
        },
        close: {
            action: function () {
            }
        },
    },
    contentLoaded: function(data, status, xhr){
    },
    icon: '',
    lazyOpen: false,
    bgOpacity: null,
    theme: 'light',
    animation: 'scale',
    closeAnimation: 'scale',
    animationSpeed: 400,
    animationBounce: 1,
    rtl: false,
    container: 'body',
    containerFluid: false,
    backgroundDismiss: false,
    backgroundDismissAnimation: 'shake',
    autoClose: false,
    closeIcon: null,
    closeIconClass: false,
    watchInterval: 100,
    columnClass: 'col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1',
    boxWidth: '50%',
    scrollToPreviousElement: true,
    scrollToPreviousElementAnimate: true,
    useBootstrap: true,
    offsetTop: 40,
    offsetBottom: 40,
    bootstrapClasses: {
        container: 'container',
        containerFluid: 'container-fluid',
        row: 'row',
    },
    onContentReady: function () {},
    onOpenBefore: function () {},
    onOpen: function () {},
    onClose: function () {},
    onDestroy: function () {},
    onAction: function () {}
};*/
         /*
         $.confirm({
    title: 'Encountered an error!',
    content: 'Something went downhill, this may be serious',
    type: 'red',
    typeAnimated: true,
    buttons: {
        tryAgain: {
            text: 'Try again',
            btnClass: 'btn-red',
            action: function(){
            }
        },
        close: function () {
        }
    }
});*/
          
          
          
                    $('.example-the-1').on('click', function(){
                        $.confirm({
                            title: '涂聚文!',
                            content: '<div id="geovidnu"><img src="images/try.png"/>你好,Geovin Du<br>肚子在叫呢?</div>',  
                            icon: 'fa fa-smile-o',
                            theme: 'modern',
                            closeIcon: true,
                            draggable: true,
                            dragWindowBorder: false,
                            animation: 'scale',
                            type: 'blue',
                        });
                    });
                    $('.example-the-2').on('click', function(){
                        $.confirm({
                            title: '涂聚文!',
                            content: '<img src="images/try.png"/>你好,Geovin Du<br>肚子在叫呢?在贵干呢?以和为贵,和而不同,求同存异',                       
                            typeAnimated: true,
                            icon: 'fa fa-question-circle-o',
                            theme: 'supervan',
                           // closeIcon: true,
                            animation: 'scale',
                            type: 'orange',
                            buttons: {
                                okay: {
                                    text: '确定',
                                    btnClass: 'btn-blue'
                                }
                            }
                        });
                    });
                    $('.example-the-3').on('click', function(){
                        $.confirm({
                            icon: 'fa fa-question',
                            theme: 'material',
                            closeIcon: true,
                            animation: 'scale',
                            buttons: {
                                confirm: function () {
                                    $.alert('Confirmed!');
                                },
                                cancel: function () {
                                    //$.alert('Canceled!');
                                    window.open('http://www.dusystem.com');
                                    //return $.get('http://www.dusystem.com');
                                }
                            },
                            type: 'orange',
                        });
                    });
                    $('.example-the-4').on('click', function(){
                        $.confirm({
                                title: 'Encountered an error!',
                                content: 'Something went downhill, this may be serious',                       
                            typeAnimated: true,
                            icon: 'fa fa-question',
                            theme: 'bootstrap',
                            closeIcon: true,
                            animation: 'scale',
                            type: 'orange',
                        });
                    });
 
    </script>
</body>
</html>

  

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$.confirm({
                           title: '涂聚文!',
                           content: '<img src="images/try.png"/>你好,Geovin Du<br>肚子在叫呢?在贵干呢?以和为贵,和而不同,求同存异',                       
                           typeAnimated: true,
                           icon: 'fa fa-question-circle-o',
                           theme: 'supervan',
                           closeIcon: true,
                           animation: 'scale',
                           type: 'orange',
                           buttons: {
                               okay: {
                                   text: '确定',
                                   btnClass: 'btngeovindu',
                                   action: function () {
                                       window.open('http://www.dusystem.com');
                                   }                              
                               }//,
                               //cancel: function () {
                                  //$.alert('close!');
                               //},
                                
                           }

 

 

 

 

posted @   ®Geovin Du Dream Park™  阅读(88)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!
历史上的今天:
2013-12-02 sql: 生日三个月内有效
2009-12-02 SQL 根据汉字获取全拼
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示