Subj : fTelnet and new web v4 interface
To   : all
From : deepthaw
Date : Sun Jun 11 2017 11:53 pm

Just started working with Synchronet this week after a 20-year hiatus from
BBSes in general. Decided to cobble together a 3.17a (or similar) sever and
throw on the v4 web interface. Noticed that the present version of fTelnet
that's online doesn't work as listed. I had to make the following change:


in 000-home.xjs:

<!--Home-->
<?xjs
       if (typeof argv[0] != 'boolean' || !argv[0]) exit();
       load(settings.web_lib + 'ftelnet.js');
       var _hpl = getLanguage(settings.language_file || 'english.ini',
'page_home');


<script src="./ftelnet/ftelnet.norip.xfer.min.js" id="fTelnetScript"></script>
<div id="fTelnetContainer" style="margin-bottom:1em;clear:both;"></div>
<div class="row">
       <div class="center-block" style="width:200px;margin-bottom:1em;">
               <button id="ftelnet-connect" class="btn btn-primary">
                       <?xjs write(_hpl.button_ftelnet); ?>
               </button>
       </div>
</div>
<script type="text/javascript">
       var Options = new fTelnetOptions();

       Options.Hostname = '<?xjs write(http_request.vhost); ?>';
       Options.Port = <?xjs write(settings.websocket_telnet_port ||
webSocket.Port); ?>;
       Options.ConnectionType = 'telnet';
       Options.SplashScreen = '<?xjs write(getSplash()); ?>';
       Options.StatusBarVisible = false;
       Options.VirtualKeyboardVisible = (
               /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera
Mini/i.test(
                       navigator.userAgent
               )
       );
       var Client = new fTelnetClient('fTelnetContainer', Options);
       $('#ftelnet-connect').click(function() { fTelnet.Connect(); });
</script>