资源简介
js源代码弹出框,可是页面,可是控件!精美至极,不限制浏览器,效果胜过C/S软件效果,源代码,可自行修改升级!!!!!!!!
代码片段和文件信息
#!/usr/bin/env python
“““
Used to combine the different parts of GreyBox.
- Python 2.4 required
- Java 1.4+ required
- Dojo‘s javascript compressor (http://dojotoolkit.org/docs/compressor_system.html). Place it under compression_lib/custom_rhino.jar
“““
import os sys shutil
from compression_lib import AJS_minify
if __name__ == ‘__main__‘:
args = sys.argv
if len(args) < 2:
print “““
Usage is:
python combiner.py [full|gallery|window]
Example usage:
python combiner.py full
The files will be store in greybox_dist/* depending on the dist. type
“““
sys.exit(0)
type = args[1]
output_dir = ‘greybox‘
##
# Config file list
#
js = []
css = []
static = []
append = lambda l x: l.append(‘greybox_source/%s‘ % x)
def appendbase():
append(js ‘base/base.js‘)
append(js ‘auto_deco.js‘)
append(css ‘base/base.css‘)
append(static ‘base/indicator.gif‘)
append(static ‘base/loader_frame.html‘)
def appendSet():
append(js ‘set/set.js‘)
append(css ‘set/set.css‘)
append(static ‘set/next.gif‘)
append(static ‘set/prev.gif‘)
def appendGallery():
append(js ‘gallery/gallery.js‘)
append(css ‘gallery/gallery.css‘)
append(static ‘gallery/g_close.gif‘)
def appendWindow():
append(js ‘window/window.js‘)
append(css ‘window/window.css‘)
append(static ‘window/header_bg.gif‘)
append(static ‘window/w_close.gif‘)
appendbase()
if type == ‘full‘:
appendGallery()
appendSet()
appendWindow()
elif type == ‘gallery‘:
appendGallery()
appendSet()
elif type == ‘window‘:
appendWindow()
else:
sys.exit(‘Uknown type‘)
print ‘Follwoing styles are used:‘
for style in css:
print ‘ %s‘ % style
print ‘Follwoing javascript is used:‘
for script in js:
print ‘ %s‘ % script
##
# Copy the files
#
try:
shutil.rmtree(output_dir)
except:
pass
os.mkdir(output_dir)
def concatFiles(f_list):
data = []
for f in f_list:
data.append(open(f ‘r‘).read())
return ‘\n\n‘.join(data)
def copyFiles(f_list):
for f in f_list:
shutil.copy(f output_dir)
copyFiles(static)
fp = open(‘%s/%s‘ % (output_dir ‘gb_styles.css‘) ‘w‘)
fp.write(concatFiles(css))
fp.close()
print ‘Compressed styles in %s‘ % (‘greybox/gb_styles.css‘)
##
# Concat js
#
fp = open(‘%s/%s‘ % (output_dir ‘gb_scripts_tmp.js‘) ‘w‘)
fp.write(concatFiles(js))
fp.close()
AJS_minify.AJS_SRC = ‘greybox_source/base/AJS.js‘
AJS_minify.AJS_MINI_SRC = ‘greybox/AJS_tmp.js‘
files = [‘greybox/gb_scripts_tmp.js‘ ‘greybox_source/base/AJS_fx.js‘ ‘static_files/help.js‘]
code_analyzer = AJS_minify.ExternalCodeAnalyzer(files)
composer = AJS_minify.AjsComposer(code_
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2008-03-13 12:05 GreyBox_v5_5
文件 1511 2007-05-08 12:20 GreyBox_v5_5\about.html
目录 0 2006-11-23 01:17 GreyBox_v5_5\adobe_images
文件 165140 2006-11-23 01:16 GreyBox_v5_5\adobe_images\nav_buttons.psd
文件 4866 2006-12-27 19:12 GreyBox_v5_5\advance_usage.html
文件 3808 2007-05-08 12:43 GreyBox_v5_5\combiner.py
文件 2295 2007-05-08 12:48 GreyBox_v5_5\compressing_greybox.html
目录 0 2007-05-08 12:50 GreyBox_v5_5\compression_lib
文件 7126 2007-05-08 12:40 GreyBox_v5_5\compression_lib\AJS_minify.py
文件 2 2006-11-26 22:22 GreyBox_v5_5\compression_lib\__init__.py
文件 2920 2007-01-27 11:12 GreyBox_v5_5\examples.html
目录 0 2008-01-29 00:43 GreyBox_v5_5\greybox
文件 10652 2007-05-08 12:43 GreyBox_v5_5\greybox\AJS.js
文件 3156 2007-05-08 12:43 GreyBox_v5_5\greybox\AJS_fx.js
文件 11771 2007-05-08 12:43 GreyBox_v5_5\greybox\gb_sc
文件 2302 2007-05-08 12:43 GreyBox_v5_5\greybox\gb_st
文件 541 2007-05-08 12:43 GreyBox_v5_5\greybox\g_close.gif
文件 1188 2007-05-08 12:43 GreyBox_v5_5\greybox\header_bg.gif
文件 8238 2007-05-08 12:43 GreyBox_v5_5\greybox\indicator.gif
文件 2084 2007-05-08 12:43 GreyBox_v5_5\greybox\loader_fr
文件 528 2007-05-08 12:43 GreyBox_v5_5\greybox\next.gif
文件 525 2007-05-08 12:43 GreyBox_v5_5\greybox\prev.gif
..A.SH. 10752 2008-01-29 00:43 GreyBox_v5_5\greybox\Thumbs.db
文件 74 2007-05-08 12:43 GreyBox_v5_5\greybox\w_close.gif
目录 0 2007-01-29 20:29 GreyBox_v5_5\greybox_source
文件 2465 2006-11-28 00:18 GreyBox_v5_5\greybox_source\auto_deco.js
目录 0 2007-01-29 20:50 GreyBox_v5_5\greybox_source\ba
文件 39025 2007-01-29 14:16 GreyBox_v5_5\greybox_source\ba
文件 5317 2007-01-28 13:34 GreyBox_v5_5\greybox_source\ba
文件 473 2006-12-19 13:47 GreyBox_v5_5\greybox_source\ba
............此处省略34个文件信息
- 上一篇:nginx 10w并发优化项
- 下一篇:SPI FLASH 仿真模型
相关资源
- 学校小测试:nodejs实现简单购物车.
- 在线聊天系统ssh整合开发struts spring
- springboot+ajax
-
AjaxControlToolkit-fr
amework3.5SP1 - H5仪表盘,温度计,风向表
- spring+mybatis+springmvc+ajax简单聊天室
- django+ajaxfileupload文件上传demo
- ajax异步文件上传servlet处理
- 韩顺平Ajax技术-WEB版QQ多人聊天,带离
- 一个ajax做的联想查询文本框(脚本)
- ajaxupload.js
- ajax控制div窗口显示和隐藏
- ajax实现完美传值
- Spring Boot和ajax实现信息查询页面
- 北大青鸟ssh航班查询系统ajax异步查询
- ajaxfileupload.js
- Ajax上传文件无需表单实测可用
- 《Ajax批量上传图片》
- Ajax 实现下拉列表 感应 模糊查询
- ajax实现用户登录注册
- AjaxRequest(Ajax使用包)
- ajax帮助文档.CHM
- System.Web.Extensions.dll和System.Web.Extensi
- 2014_MLDN_Ajax视频教程链接
- ckfinder-2.3以及依赖
- 基于Jq ajax无刷新,图片上传
-
1次ajax请求(xm
lHttpRequest)上传多个 - SYS通用型商城后台管理框架模板.zip
- hadoop web项目
- 毕业设计-基于springboot框架的宿舍管理
评论
共有 条评论