This file contains hidden or 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
| //้ๅ ๅ ฌๅ ฑๅๆฐ | |
| $http.global("token","abcd321"); | |
| $http.use("/api", function (res) { | |
| if (res.success) { | |
| return true; | |
| } | |
| var err = res.error; | |
| if (err.code === 1001) { | |
| location.href = "/login.html"; | |
| } else { |
This file contains hidden or 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
| /*! | |
| * Grunt | |
| * $ npm install grunt-contrib-uglify grunt-autoprefixer grunt-contrib-cssmin grunt-contrib-imagemin grunt-contrib-sass grunt-contrib-watch grunt-contrib-concat grunt-contrib-clean grunt-contrib-jshint grunt-notify --save-dev | |
| */ | |
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| // Sass |
This file contains hidden or 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
| /*=tags | |
| -----------------------------*/ | |
| ol.tags { | |
| width: 25%; | |
| } | |
| ol.tags li a { | |
| display: block; | |
| padding: 4px 8px; | |
| } | |
| ol.tags li a span.meta { |
This file contains hidden or 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
| /** | |
| * img list | |
| */ | |
| ol.slats li { | |
| margin: 0 0 10px 0; | |
| padding: 0 0 10px 0; | |
| border-bottom: 1px solid #eee; | |
| } | |
| ol.slats li:last-child { | |
| margin: 0; |