From 5e3fe52b11bb7bc8909324b06bd8ea65768d1339 Mon Sep 17 00:00:00 2001 From: Nigel Kukard <nkukard@lbsd.net> Date: Sat, 2 May 2009 14:51:55 +0000 Subject: [PATCH] * Addes small javascript library for webui --- webui/includes/header.php | 1 + webui/library.js | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 webui/library.js diff --git a/webui/includes/header.php b/webui/includes/header.php index 97a85430..cb6f023e 100644 --- a/webui/includes/header.php +++ b/webui/includes/header.php @@ -46,6 +46,7 @@ function printHeader($params = NULL) <title>SMRadiusd Web Administration</title> <link rel="stylesheet" type="text/css" href="stylesheet.css" /> + <script type="text/javascript" src="library.js"></script> <script type="text/javascript" src="tooltips/BubbleTooltips.js"></script> <script type="text/javascript"> window.onload=function(){enableTooltips(null,"img")}; diff --git a/webui/library.js b/webui/library.js new file mode 100644 index 00000000..a7d445c1 --- /dev/null +++ b/webui/library.js @@ -0,0 +1,6 @@ + +function rand ( n ) +{ + return ( Math.floor ( Math.random ( ) * n + 1 ) ); +} + -- GitLab