1/* 2 3Template: Webmin - Bootstrap 4 & Angular 5 Admin Dashboard Template 4Author: potenzaglobalsolutions.com 5Design and Developed by: potenzaglobalsolutions.com 6 7NOTE: 8 9*/ 10 11 (function($){ 12 "use strict"; 13 14 $('#sweetalert-01').click(function(e) { 15 swal('Proje kapsamındaki baÅvurular 02.01.2023 tarihine kadar durdurulmuÅtur. Bireysel analiz baÅvurusu yapabilirsiniz. İyi ÃalıÅmalar. ') 16 }); 17 18 19 $('#sweetalert-02').click(function(e) { 20 swal( 21 'The Internet?', 22 'That thing is still around?', 23 'question' 24 ) 25 }); 26 27 $('#sweetalert-03').click(function(e) { 28 swal({ 29 type: 'error', 30 title: 'Oops...', 31 text: 'Something went wrong!', 32 footer: '<a href>Why do I have this issue?</a>', 33 }) 34 }); 35 36 $('#sweetalert-04').click(function(e) { 37 swal({ 38 imageUrl: 'images/profile-avatar.jpg', 39 imageHeight: 596, 40 imageAlt: 'A tall image' 41 }) 42 }); 43 44 $('#sweetalert-05').click(function(e) { 45 swal({ 46 title: '<i>HTML</i> <u>example</u>', 47 type: 'info', 48 html: 49 'You can use <b>bold text</b>, ' + 50 '<a href="//github.com">links</a> ' + 51 'and other HTML tags', 52 showCloseButton: true, 53 showCancelButton: true, 54 focusConfirm: false, 55 confirmButtonText: 56 '<i class="fa fa-thumbs-up"></i> Great!', 57 confirmButtonAriaLabel: 'Thumbs up, great!', 58 cancelButtonText: 59 '<i class="fa fa-thumbs-down"></i>', 60 cancelButtonAriaLabel: 'Thumbs down', 61 }) 62 }); 63 64 $('#sweetalert-06').click(function(e) { 65 swal({ 66 position: 'top-end', 67 type: 'success', 68 title: 'Your work has been saved',
69 showConfirmButton: false, 70 timer: 1500 71 }) 72 }); 73 74 $('#sweetalert-07').click(function(e) { 75 swal({ 76 title: 'Custom animation with Animate.css', 77 animation: false, 78 customClass: 'animated tada' 79 }) 80 }); 81 82 $('#sweetalert-08').click(function(e) { 83 swal({ 84 title: 'Are you sure?', 85 text: "You won't be able to revert this!", 86 type: 'warning', 87 showCancelButton: true, 88 confirmButtonColor: '#3085d6', 89 cancelButtonColor: '#d33', 90 confirmButtonText: 'Yes, delete it!' 91 }).then((result) => { 92 if (result.value) { 93 swal( 94 'Deleted!', 95 'Your file has been deleted.', 96 'success' 97 ) 98 } 99 }) 100 }); 101 102 $('#sweetalert-09').click(function(e) { 103 swal({ 104 title: 'Are you sure?', 105 text: "You won't be able to revert this!", 106 type: 'warning', 107 showCancelButton: true, 108 confirmButtonColor: '#3085d6', 109 cancelButtonColor: '#d33', 110 confirmButtonText: 'Yes, delete it!', 111 cancelButtonText: 'No, cancel!', 112 confirmButtonClass: 'btn btn-success', 113 cancelButtonClass: 'btn btn-danger', 114 buttonsStyling: false, 115 reverseButtons: true 116 }).then((result) => { 117 if (result.value) { 118 swal( 119 'Deleted!', 120 'Your file has been deleted.', 121 'success' 122 ) 123 } else if ( 124 // Read more about handling dismissals 125 result.dismiss === swal.DismissReason.cancel 126 ) { 127 swal( 128 'Cancelled', 129 'Your imaginary file is safe :)', 130 'error' 131 ) 132 } 133 }) 134 }); 135 136 $('#sweetalert-10').click(function(e) { 137 swal({ 138 title: 'Sweet!', 139 text: 'Modal with a custom image.', 140 imageUrl: 'https://unsplash.it/400/200', 141 imageWidth: 400, 142 imageHeight: 200, 143 imageAlt: 'Custom image', 144 animation: false 145 }) 146 }); 147 148 $('#sweetalert-11').click(function(e) { 149 swal({ 150 title: 'Custom width, padding, background.', 151 width: 600, 152 padding: 100, 153 background: '#fff url(/images/trees.png)', 154 backdrop: ` 155 rgba(0,0,123,0.4) 156 url("/images/nyan-cat.gif") 157 center left 158 no-repeat 159 ` 160 }) 161 }); 162 163 $('#sweetalert-12').click(function (e) { 164 swal({ 165 title: 'TÃBİTAK ve BAP Kapsamında Yapılan Analiz BaÅvuruları', 166 text: '2022 Yılı Mali iÅlemler 15.12.2022 tarihinde kapanacaÄından ve 15 iÅ günü içerisinde analiz sonuçlarını teslim etme süresi olduÄundan Tübitak ve Bap kapsamında yapılan analizler için baÅvurular 02.12.2022 Cuma günü masai bitimi kapanacak olup 02.01.2023 tarihine kadar baÅvuru alınmayacaktır.', 167 timer: 15000, 168 169 onOpen: () => { 170 swal.showLoading() 171 172 } 173 174 }).then((result) => { 175 if ( 176 // Read more about handling dismissals 177 result.dismiss === swal.DismissReason.timer 178 ) { 179 console.log('I was closed by the timer') 180 } 181 }) 182 }); 183 184 185 186 $('#sweetalert-13').click(function(e) { 187 swal({ 188 title: 'ÙÙ ØªØ±ÙØ¯ Ø§ÙØ§Ø³ØªÙ رارØ', 189 confirmButtonText: 'ÙØ¹Ù ', 190 cancelButtonText: 'ÙØ§', 191 showCancelButton: true, 192 showCloseButton: true, 193 target: document.getElementById('rtl-container') 194 }) 195 }); 196 197 $('#sweetalert-14').click(function(e) { 198 swal({ 199 title: 'Submit email to run ajax request', 200 input: 'email', 201 showCancelButton: true, 202 confirmButtonText: 'Submit', 203 showLoaderOnConfirm: true, 204 preConfirm: (email) => { 205 return new Promise((resolve) => { 206 setTimeout(() => { 207 if (email === '[email protected]') { 208 swal.showValidationError( 209 'This email is already taken.' 210 ) 211 } 212 resolve() 213 }, 2000) 214 }) 215 }, 216 allowOutsideClick: () => !swal.isLoading() 217 }).then((result) => { 218 if (result.value) { 219 swal({ 220 type: 'success', 221 title: 'Ajax request finished!', 222 html: 'Submitted email: ' + result.value 223 }) 224 } 225 }) 226 }); 227 228 $('#sweetalert-15').click(function(e) { 229 swal.setDefaults({ 230 input: 'text', 231 confirmButtonText: 'Next →', 232 showCancelButton: true, 233 progressSteps: ['1', '2', '3'] 234 }) 235 236 var steps = [ 237 { 238 title: 'Question 1', 239 text: 'Chaining swal2 modals is easy' 240 }, 241 'Question 2', 242 'Question 3' 243 ] 244 245 swal.queue(steps).then((result) => { 246 swal.resetDefaults() 247 248 if (result.value) { 249 swal({ 250 title: 'All done!', 251 html: 252 'Your answers: <pre>' + 253 JSON.stringify(result.value) + 254 '</pre>', 255 confirmButtonText: 'Lovely!' 256 }) 257 } 258 }) 259 }); 260 261 $('#sweetalert-16').click(function(e) { 262 const ipAPI = 'https://api.ipify.org?format=json' 263 swal.queue([{ 264 title: 'Your public IP', 265 confirmButtonText: 'Show my public IP', 266 text: 267 'Your public IP will be received ' + 268 'via AJAX request', 269 showLoaderOnConfirm: true, 270 preConfirm: () => {
271 return fetch(ipAPI) 272 .then(response => response.json()) 273 .then(data => swal.insertQueueStep(data.ip)) 274 .catch(() => { 275 swal.insertQueueStep({ 276 type: 'error', 277 title: 'Unable to get your public IP' 278 }) 279 }) 280 } 281 }]) 282 }); 283 284 })(jQuery);
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.