caipin hace 5 años
padre
commit
9c7abc9160
Se han modificado 2 ficheros con 16 adiciones y 37 borrados
  1. 15 12
      Gruntfile.js
  2. 1 25
      views/cloud/cloudMenu.html

+ 15 - 12
Gruntfile.js

@@ -1,23 +1,26 @@
 module.exports = function(grunt) {
 
-    //
+    //鍒濆�鍖栭厤缃甮runt浠诲姟
     grunt.initConfig({
-        pkg: grunt.file.readJSON('package.json'),
-        uglify: {
-            options: {
-                banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
+    	
+    
+    	concat: {//浠诲姟鍚嶇О
+            js: {
+                src: ['global/js/cloud/curing.js','global/js/cloud/curingFN.js','global/js/cloud/curingHtml.js'],
+                dest: 'global/js/cloud/curing.min.js'
             },
-            build: {
-                src: 'src/<%= pkg.name %>.js',
-                dest: 'build/<%= pkg.name %>.min.js'
-            }
+//            css: {
+//                src: ['css/*.css'],
+//                dest: 'build/all.css'
+//            }
         }
+
+    	
     });
 
-    // 加载包含 "uglify" 任务的插件。
-    grunt.loadNpmTasks('grunt-contrib-uglify');
+    grunt.loadNpmTasks('grunt-contrib-concat');
 
-    // 默认被执行的任务列表。
+    //娉ㄥ唽grunt榛樿�浠诲姟
     grunt.registerTask('default', ['uglify']);
 
 };

+ 1 - 25
views/cloud/cloudMenu.html

@@ -37,23 +37,11 @@ $(document).ready(function(){
 	refreshCloudMenu();
 })
 
-/*
-$(function() {
-    $('ul[menuActive]').delegate( 'li[do]','click', function(){
-    	var data = $(this).attr('data');
-    	$(this).addClass("active");
-    	localStorage.setItem('curingMenuActive', data);
-        
-    });
-})
-*/
 function refreshCloudMenu(){
-	
 	var protocol = window.location.protocol;
     var url = $('<a>', { href: protocol});
     var pathName=url.prop('pathname');
-   
-	//var curingMenuActive=localStorage.getItem('curingMenuActive');
+
 	$('ul[menuActive] li[do]').each(function(){
 		var data=$(this).attr('data');
 		if(data==pathName){
@@ -63,18 +51,6 @@ function refreshCloudMenu(){
 		}
 		
 	  });
-	
-	/*
-	if (isAccept==null||isAccept) {
-		checkBoxList.eq(cbi).attr("checked",'true');
-	}else{
-		checkBoxList.eq(cbi).removeAttr("checked");
-	}
-	
-	console.log(curingMenuActive);
-	*/
-	
-	
 }
 
 </script>