This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# xampp\apache\conf\extra\httpd-vhosts.conf | |
<VirtualHost todo.local> | |
DocumentRoot "C:/xampp72/htdocs/todolist" | |
ServerName todo.local | |
<Directory "C:/xampp72/htdocs/todolist"> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Order allow,deny | |
Allow from all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} -d [OR] | |
RewriteCond %{REQUEST_FILENAME} -f | |
RewriteRule ^ ^$1 [N] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Khai báo jQuery trong WP, tham số $ trong function như con trỏ this | |
jQuery(function($) { | |
$("#thang").on('change', function() { | |
var thang = this.value; | |
var htmlNgay = '<option value="0" selected>----Ngày----</option>'; | |
var n = 1; | |
switch(parseInt(thang)) { | |
case 1: case 3: case 5: case 7: case 8: case 10: case 12: | |
n = 31; | |
break; |