Giter Site home page Giter Site logo

nga_static_res's Introduction

nga_static_res

bbs.ngacn.cc使用的javascript与css等静态资源(仅公开的部分..

js debug开启方法

1 下载本项目源码到本机

2 在本机开设http服务 使源码能从http://127.0.0.1访问

3 新建一个http://127.0.0.1/js_debug.js 内容如下

;(function(){
var x = document.cookie.match(/debug=(10\.\d{1,3}\.\d{1,3}\.\d{1,3}|172\.(?:1[6-9]|2[0-9]|3[0-1])\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3});/)
if(x)
	x=location.protocol+'//'+x[1]+'/到源码的路径'  //如果debug设置了其他的ip
else
	x=location.protocol+'//127.0.0.1/到源码的路径'  //默认127.0.0.1

//修改资源列表以使用本地文件....
__SCRIPTS.commonSpec = x+'/ngabbs/nga_classic/js_default.js'
__SCRIPTS.read = x+'/common_res/js_read.js'
__SCRIPTS.message = x+'/common_res/js_message.js'
__SCRIPTS.lib = x+'/common_res/js_commonLib.js'
__SCRIPTS.common = x+'/common_res/js_commonui.js'
__SCRIPTS.forum = x+'/common_res/js_forum.js'
__SCRIPTS.ucp = x+'/common_res/js_ucp.js'
__SCRIPTS.admin = x+'/common_res/js_admin.js'
__SCRIPTS.iframeRead2 = x+'/common_res/js_iframeRead.js'
__SCRIPTS.armory = x+'/ngabbs/nga_classic/js_armory.js'
__SCRIPTS.bbscodeSpec = x+'/ngabbs/nga_classic/js_bbscode_smiles.js'
__SCRIPTS.bbscode =  x+'/common_res/js_bbscode_core.js'
__SCRIPTS.dsList =  x+'/ngabbs/nga_classic/js_dslist_default.js'
__SCRIPTS.userItem = x+'/common_res/js_userItem.js?131048'
__SCRIPTS.post =  x+'/common_res/js_postfunc_v2.js?140736'
__SCRIPTS.mainMenu =  x+'/common_res/js_mainMenu.js?140736'
__SCRIPTS.customBg =  x+'/ngabbs/nga_classic/js_customBg.js?111091'
__SCRIPTS.quoteTo =  x+'/common_res/js_quote_to.js?432460'
__SCRIPTS.notification =  x+'/common_res/js_notification.js?432460'
__SCRIPTS.dsCommon= x+'/common_res/js_dscommon.js?120438'
__SCRIPTS.imgEdit= x+'/common_res/js_imageEdit.js?120438'
//如需添加更多请参看__SCRIPTS 与 __STYLE
})();

4 py管理员给你开通debug权限

5 在 论坛菜单>设置>debug 中点开启 (如源码服务使用127.0.0.1之外的ip可填在前面)

nga_static_res's People

Contributors

zeg avatar monkeyleet avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.