MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/.trash/dist.1/bootstrap-datetimepicker-master/test/screen-capture/index.js
var fs = require('fs');
['top','bottom'].forEach(function(v){
    ['left','right'].forEach(function(h){
        ['1','2','3','4','5'].forEach(function(t){
            var inFile = 'out/'+ t +v.charAt(0) + h.charAt(0) + '.html';
            var outFile = 'pic/'+ t + v.charAt(0) + h.charAt(0) + '.png';
            var path = 'file://' + fs.absolute(inFile)
            var page = require('webpage').create();
            page.viewportSize = {
                width: 1000,
                height: 800
            };;
            page.open(path, function(status) {
                window.setTimeout(function () {
                console.log(status);
                page.render(outFile);
                setTimeout(function(){
                    phantom.exit();
                }, 0);
                },2000);
            });
        });
    });
});