panpsychist Posted February 24, 2014 Share Posted February 24, 2014 This is probably a silly question for all you seasoned expert coders. But, for us newbies, how do I view the source code for flaymmo? When I view source in the browser, I can't locate any .js file to view. Has something weird happened to the universe? What magic is this? Quote Link to comment Share on other sites More sharing options...
drhayes Posted February 25, 2014 Share Posted February 25, 2014 When I view the source for flapmmo.com I can see a main.js file in the lower part of the page. Here it is. But it's minified, so pulling it apart would be a bit challenging. Quote Link to comment Share on other sites More sharing options...
ruddles Posted February 25, 2014 Share Posted February 25, 2014 It's minified so you're not really going to be able to read it. It's called main.js and it's loaded on line 82 of the source for the main page. Or click here: http://flapmmo.com/main.js As a side note, in chrome to view the js files loaded you can hit F12 on a page to bring up the dev tools, then either: go to the Sources tab and click on the "show navigator" button on the left or Go to the Resource tab, expand "Frames" then the node for the domain (in this case flapmmo.com/) and finally the scripts node. Quote Link to comment Share on other sites More sharing options...
panpsychist Posted February 26, 2014 Author Share Posted February 26, 2014 When I view the source for flapmmo.com I can see a main.js file in the lower part of the page. Here it is. But it's minified, so pulling it apart would be a bit challenging.Surely someone must have written a un minifier by now? Quote Link to comment Share on other sites More sharing options...
panpsychist Posted February 26, 2014 Author Share Posted February 26, 2014 Surely someone must have written a un minifier by now?Here's one. http://www.centralinternet.com.br/javascript-beautifier Quote Link to comment Share on other sites More sharing options...
george Posted February 26, 2014 Share Posted February 26, 2014 With Google Chrome you can use the pretty print option built in. When viewing a JS file in the Source Tab you have a pair of curly braces in the lower left corner. cannap and OadT 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.