From e291bf2317ed11d2e31c81a24480415495852b13 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sat, 15 Sep 2012 12:40:24 -0400 Subject: [PATCH] added jquery and droids font to manifest --- client.js | 8 ++++---- css/style.css | 2 +- lib/server/appcache.js | 10 ++++++++++ server.js | 5 ++++- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/client.js b/client.js index 5e8c6fb4..43062504 100644 --- a/client.js +++ b/client.js @@ -1104,11 +1104,11 @@ CloudClient.baseInit = (function(){ Util.cssSet({id:'show_2panels', element:document.head, inner: - '.panel{' + - 'height:' + lHeight +'px;' + - 'width:46%;' + + '.panel{' + + 'height:' + lHeight +'px;' + + 'width:46%;' + '}' - }); + }); }); /* функция меняет ссыки на ajax-овые */ diff --git a/css/style.css b/css/style.css index 1abf9091..257b1f92 100644 --- a/css/style.css +++ b/css/style.css @@ -1,4 +1,4 @@ -/* +/*1 @import url(//fonts.googleapis.com/css?family=Droid+Sans+Mono); */ diff --git a/lib/server/appcache.js b/lib/server/appcache.js index f886ebe0..e0f445c1 100644 --- a/lib/server/appcache.js +++ b/lib/server/appcache.js @@ -16,6 +16,16 @@ var Manifest = ''; setWatachFunctions(); +/* function add file or files to manifest */ +exports.addFiles = function(pFileNames_a){ + if(pFileNames_a instanceof Array) + for(var i=0; i < pFileNames_a.Length; i++) + exports.watch(pFileNames_a[i]); + else + exports.watch(pFileNames_a); + +}; + exports.createManifest = function(){ var lAllNames = cloudRequire(process.cwd() + '/hashes'); diff --git a/server.js b/server.js index 3fb93e6a..1141d2be 100644 --- a/server.js +++ b/server.js @@ -164,8 +164,11 @@ CloudServer.init = (function(){ /* створюємо файл app cache */ var lAppCache = CloudServer.AppCache; - if(lAppCache) + if(lAppCache){ + lAppCache.addFiles( + ['./lib/jquery.js', './font/DroidSansMono.woff','./min/all.min.css']); lAppCache.createManifest(); + } });