/.header.lsp



   1   
<?lsp 2 3 local links={ 4 {'About.lsp','About'}, 5 {'Introduction.lsp','Introduction'}, 6 {'Lua-Types.lsp','Lua Types'}, 7 {'Lua-Control.lsp','Lua Control'}, 8 {'Lua-Functions.lsp','Lua Functions'}, 9 {'HTML-Forms.lsp','LSP &amp; HTML Forms'}, 10 {'Lua-Bindings.lsp','Lua to C Code'}, 11 {'Ajax.lsp','Ajax'}, 12 {'Sockets.lsp','Sockets'}, 13 {'WebSockets.lsp', 'WebSockets'}, 14 {'Lua-Scope.lsp','Lua Scope'}, 15 {'Lua-Coroutines.lsp','Lua Coroutines'}, 16 {'Lua-Metamethods.lsp','Lua Metamethods'}, 17 {'Dynamic-Navigation-Menu.lsp','Navigation Menu'}, 18 {'SharkSSL.lsp','SSL/TLS'}, 19 {'BAS-API-Tutorial.lsp','BAS API'}, 20 {'IoT.lsp','Internet of Things'}, 21 {'Documentation.lsp','Documentation'}, 22 {'wfs.lsp','Web File Server'}, 23 {'ide.lsp','Integrated IDE'}, 24 {'Pac-Man.lsp','Pac-Man Game'}, 25 {'certmgr.lsp','Certificate Mgr'}, 26 } 27 28 ?>
29 <!DOCTYPE html lang="en"> 30 <html> 31 <head> 32 <meta charset="utf-8" /> 33 <meta name="viewport" content="width=device-width, initial-scale=1"> 34 <title>
<?lsp=title?>
</title> 35 <link rel="stylesheet" href="style.css" /> 36 <script src="/rtl/jquery.js"></script> 37 <script src="ace/ace.js" type="text/javascript"></script> 38 <script src="examples.js" type="text/javascript"></script> 39
<?lsp if not app.noalert then ?>
40 <script> 41 $(function() { 42 $('a[target="_blank"]').click(function() { 43 jQuery.get("noalert.lsp"); 44 alert("Some links open in a separate window or browser tab. Simply close the window or tab when you are done."); 45 $('a[target="_blank"]').unbind('click'); 46 return true; 47 }); 48 }); 49 </script> 50
<?lsp end ?>
51 </head> 52 <body> 53 <div id="mainContainer"> 54 <div id="header"> 55 <img src="images/BAS-logo.png" /> 56 <div id="navbut"><div></div><div></div><div></div></div> 57 <div id="headertxt">BAS Tutorials</div> 58 </div> 59 <div id="fixleft"></div> 60 <div id="leftSidebar"> 61 <div id="nav"> 62 <ul> 63
<?lsp 64 for _,link in ipairs(links) do 65 local isactive = title == link[2] 66 response:write('<li><a href="',link[1],'"', isactive and ' class="selected"' or '','>',link[2],'</a></li>') 67 end 68 ?>
69 </ul> 70 </div> 71 </div> 72 <div id="mainContent"> 73 <div class="innertube"> 74