Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

better code

  • Loading branch information...
commit 003e25291fd0a2d6a787f345b78736b7092fb03a 1 parent 2210540
@tokuhirom authored
Showing with 23 additions and 1 deletion.
  1. +17 −0 etc/nginx.conf
  2. +5 −1 htdocs/js/jsapi.js
  3. +1 −0  log/nginx/.gitignore
View
17 etc/nginx.conf
@@ -0,0 +1,17 @@
+server {
+ listen 80;
+ server_name jsapi.64p.org;
+ server_name_in_redirect off;
+
+ charset utf-8;
+
+ access_log /usr/local/webapp/jsapi/log/nginx/access.log main buffer=32k;
+ error_log /usr/local/webapp/jsapi/log/nginx/error.log;
+
+ location / {
+ if ( -f /usr/local/webapp/jsapi/code/maintenance) {
+ return 503;
+ }
+ alias /usr/local/webapp/jsapi/htdocs/;
+ }
+}
View
6 htdocs/js/jsapi.js
@@ -126,7 +126,11 @@ $(function () {
}
});
- $.ajax({url: 'index.json', cache: false}).success(function (dat) {
+ $.ajax({
+ url: 'index.json',
+ dataType: 'json',
+ cache: false
+ }).success(function (dat) {
view.sideLoading.remove();
var ul = JSAPI.titleContainerElem;
View
1  log/nginx/.gitignore
@@ -0,0 +1 @@
+*
Please sign in to comment.
Something went wrong with that request. Please try again.