swift.man Posted January 9, 2018 Report Posted January 9, 2018 Pot rula in cmd un fisier .js cum o face un browser? Quote
Silviu Posted January 9, 2018 Report Posted January 9, 2018 11 minutes ago, swift.man said: Pot rula in cmd un fisier .js cum o face un browser? https://nodejs.org/en/ Quote
swift.man Posted January 9, 2018 Author Report Posted January 9, 2018 Am un script ceva de genu <script src="https://site.com/sts.js"></script> <script> var player = new Client.Anonymous('412898491827489178972489578934758932183091890', { }); player.start(); </script> Eu daca pun asta intr-un .html si il deschid isi face treaba. Dar vreau sa o faca fara un Browser Se poate? Sau daca stie cineva un browser care nu ocupa foarte mult si sa il pot edita Quote
Active Members dancezar Posted January 9, 2018 Active Members Report Posted January 9, 2018 http://phantomjs.org/ 1 Quote
swift.man Posted January 9, 2018 Author Report Posted January 9, 2018 (edited) 2 hours ago, dancezar said: http://phantomjs.org/ Cum se foloseste? Edited January 9, 2018 by swift.man Quote
gigiRoman Posted January 10, 2018 Report Posted January 10, 2018 Command Line Interface As the codebase is updated, we hope to keep these documents updated as well. Unless otherwise stated, this documentation currently applies to the latest PhantomJS release:PhantomJS 2.1.1 Assuming PhantomJS is built and its executable is placed somewhere in the PATH, it can be invoked as follows: phantomjs [options] somescript.js [arg1 [arg2 [...]]] The script code will be executed as if it running in a web browser with an empty page. Since PhantomJS is headless, there will not be anything visible shown up on the screen. If PhantomJS is invoked without any argument, it will enter the interactive mode (REPL). http://phantomjs.org/api/command-line.html Quote