/.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 {'WebSockets.lsp', 'WebSockets'}, 13 {'Sockets.lsp','Sockets'}, 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','IoT'}, 21 {'MQTT.lsp','MQTT'}, 22 {'ide.lsp','Integrated IDE'}, 23 {'Documentation.lsp','Documentation'}, 24 {'wfs.lsp','Web File Server'}, 25 {'Pac-Man.lsp','Pac-Man Game'}, 26 {'certmgr.lsp','Certificate Mgr'}, 27 } 28 29 ?>
30 <!DOCTYPE html lang="en"> 31 <html> 32 <head> 33 <meta charset="utf-8" /> 34 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 35 <title>
<?lsp=title?>
</title> 36 <link rel="stylesheet" href="intro-style.css" /> 37 <script src="/rtl/jquery.js"></script> 38 <script src="ace/ace.js" type="text/javascript"></script> 39 <script src="examples.js" type="text/javascript"></script> 40
<?lsp if not app.noalert then ?>
41 <script> 42 $(function() { 43 $('a[target="_blank"]').click(function() { 44 jQuery.get("noalert.lsp"); 45 alert("Some links open in a separate window or browser tab. Simply close the window or tab when you are done."); 46 $('a[target="_blank"]').unbind('click'); 47 return true; 48 }); 49 }); 50 </script> 51
<?lsp end ?>
52 </head> 53 <body> 54 <!-- <div id="ofheader"></div> --> 55 <!-- <div id="ofleft"></div> --> 56 <div id="mainContainer"> 57 <div id="header"> 58 <img src="images/BAS-logo.png" /> 59 <div id="navbut"><div></div><div></div><div></div></div> 60 <div id="headertxt">BAS Tutorials</div> 61 </div> 62 <!-- <div id="fixleft"></div> --> 63 <div id="leftSidebar"> 64 <div id="nav"> 65 <ul> 66
<?lsp 67 for _,link in ipairs(links) do 68 local isactive = title == link[2] 69 response:write('<li><a href="',link[1],'"', isactive and ' class="selected"' or '','>',link[2],'</a></li>') 70 end 71 ?>
72 </ul> 73 </div> 74 </div> 75 <div id="mainContent"> 76 <div class="innertube"> 77