Bài đăng

1 SỐ GHI NHỚ CỦA TUI TRONG QUÁ TRÌNH CÀI ĐẶT IIS CHẠY .NET MVC TRÊN WINSERVER

Hình ảnh
1. Kiểm tra version .net framework đã cài đặt trên máy tính:  Cmd >  dir %WINDIR%\Microsoft.Net\Framework\v* 2. Cài đặt IIS  + .netFramework v4 3. 

Clearing dialog input fields

× Add Comment Value textareavalues Save changes Close $('#myModal').on('hidden.bs.modal', function () {             $('.modal-body').find('lable,input,textarea').val('');                 });

Bootstrap modal close after 4 seconds or user click

Hình ảnh
How would I set a timeout for a bootstrap modal? After getting the ajax data back that the message returned by php contains the term  success , I want to give the user the option to close the window. However, I also just want to have a 4 second count down. Currently the second the success message comes back the modal hides itself. $ ( '#forgotform' ). submit ( function ( e ) { "use strict" ; e . preventDefault (); $ ( '#forgotsubmit' ). button ( 'loading' ); var post = $ ( '#forgotform' ). serialize (); var action = $ ( '#forgotform' ). attr ( 'action' ); $ ( "#message" ). slideUp ( 350 , function () { $ ( '#message' ). hide (); $ . post ( action , post , function ( data ) { $ ( '#message' ). html ( data ); document . getElementById ( 'message' ). innerHTML = data ; $ ( '#message' )

Cài đặt Contact Form trong Wordpress

Hình ảnh
Chào các bạn, hôm nay mình hướng dẫn lại cách cài đặt Contact Form trong Wordpress: 1. Cài plugin SMTP-WP: https://wordpress.org/plugins/wp-mail-smtp/installation/ 2. Cài plugin Contact Form 7: https://wordpress.org/plugins/contact-form-7/ Hoặc bạn có thể Search Plugin trong Admin Wordpress của mình luôn cũng được: 3. Kích hoạt tài khoản Gmail cho phép gửi mail qua SMTP- wordpress: Nguyên nhân không gửi được có thể là do Google không cấp phép sử dụng username và password trên website của bạn. Bạn hãy đọc phần dưới thông báo lỗi của plugin sẽ có 1 đoạn link hỗ trợ: http://support.google.com/mail/bin/answer.py?answer=14257 Để khắc phục lỗi này, bạn chỉ cần – Đăng nhập tài khoản gmail mà bạn đang sử dụng ở phần Username – thiết lập Wp mail Smtp. – Truy cấp đường dẫn sau: https://accounts.google.com/DisplayUnlockCaptcha  – Click continue để xác nhận 4.  Quyền truy cập của ứng dụng kém an toàn   https://myaccount.google.com/lesssecureapps Hoàn thành, bạn có th

A list of Font Awesome icons and their CSS content values theo http://astronautweb.co/snippet/font-awesome/

Font Awesome  is a web font containing all the icons from the Twitter Bootstrap framework, and now many more. Whilst the implementation in Bootstrap is designed to be used with the <i>  element (Bootstrap v2), you may find yourself wanting to use these icons on other elements. To do so, you'll need to use the following CSS on the desired element, and then substitute in the content value for the relevant icon. ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 .element {      position :  relative ; }   /*replace the content value with the corresponding value from the list below*/   .element:before {      content :  "\f000" ;      font-family : FontAwesome;      font-style :  normal ;      font-weight :  normal ;      text-decoration : inherit; /*--adjust as necessary--*/      color :  #000 ;      font-size :  18px ;      padding-right :  0.5em ;      position :  absolute ;