Author Topic: How to change javascript code  (Read 27872 times)

0 Members and 1 Guest are viewing this topic.

Inspirer

  • Mibew Project founder
  • Native
  • *****
  • Posts: 262
    • Mibew Messenger
How to change javascript code
« on: November 07, 2009, 11:28:45 AM »
Here is the structure of Javascript in Mibew:

js/
  163/              - minified version of javascript (folder name is Mibew version)
     .....
  source/          - original sources
     users.js       - list of awaiting visitors page
     chat.js         - chat script
     build.xml     - ant script to minify sources
     JSO.java      - js minifier
     ......
    
Change files only in js/source folder.

To create minified version of all scripts (copies your changes to the production):
1. Download Apache Ant (http://ant.apache.org/)
2. Ensure you have installed Java 2 Platform, v1.4+ (http://java.sun.com/j2se/1.5.0/download.html)
3. Go to js/source folder, run "ant" from the command-line.

-OR-

1. copy all javascript files from js/source into js/163 (Note: it will reduce the performance of your site)
« Last Edit: November 07, 2009, 11:32:08 AM by Inspirer »

atsel

  • Jr. Member
  • **
  • Posts: 2
Re: How to change javascript code
« Reply #1 on: September 11, 2012, 02:31:25 PM »
Thank you, very helpful

micro

  • Jr. Member
  • **
  • Posts: 4
Re: How to change javascript code
« Reply #2 on: January 29, 2013, 05:38:20 AM »
Man, can you make it more simple, like just edit the php source code without recompile again via apache ant?  :(

carlitosp71

  • Jr. Member
  • **
  • Posts: 2
Re: How to change javascript code
« Reply #3 on: February 28, 2013, 11:21:35 PM »
this work in mibew 1.64 too?