From 3797656d7cd3de9c370a1b4d830d6cda47c7a88f Mon Sep 17 00:00:00 2001 From: hunz Date: Sat, 22 Mar 2003 09:00:36 +0000 Subject: [PATCH] added random slide effects --- parse.pl | 18 ++++++++++++++++-- wlan1/wlan1.xml | 18 +++++++++--------- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/parse.pl b/parse.pl index a06ff05..42f453f 100755 --- a/parse.pl +++ b/parse.pl @@ -50,8 +50,22 @@ foreach(@content) { # unterpunkt if(/^ \d/) { if(@slide) { - print "\n"; - print STDERR "$topics[$topic]\n"; + $action=$actions[int(rand($#actions))]; + if(length($action)>0) { + if(int(rand(2))==1) { + $action.=", blend"; + } + } + else { + if(int(rand(2))==1) { + $action.="blend"; + } + } + if(length($action)>0) { + $action=" effect=\"$action\""; + } + print "\n"; + print STDERR "$topics[$topic] $action\n"; print "
$topics[$topic]
\n\n"; foreach(@slide) { if(/^ \+ /) { diff --git a/wlan1/wlan1.xml b/wlan1/wlan1.xml index 38713ed..928e07b 100644 --- a/wlan1/wlan1.xml +++ b/wlan1/wlan1.xml @@ -3,7 +3,7 @@ face="../ttf/decker.ttf" size="15" bullet="../img/bullet.png" screen_width="1024" screen_height="768"> - +
1.1 Was ist Wireless LAN?
@@ -16,7 +16,7 @@ Reichweite 50 - 300m
- +
1.2 WaveLAN Hardware
@@ -36,7 +36,7 @@
- +
2.1 Begriffserklaerungen
@@ -49,7 +49,7 @@ 4 Keys moeglich
- +
2.2 Managed Mode
@@ -68,7 +68,7 @@ Bsp.: {Client 1} ~~~ (AP 1)---[Ethernet]---(AP 2) ~~~ {Client 2}
- +
2.3 AdHoc Mode
@@ -81,7 +81,7 @@
- +
2.4 WDS
@@ -93,7 +93,7 @@ Bsp.: [Ethernet 1]---(AP 1) ~~~ (AP 2)---[Ethernet 2]
- +
3.1 Vorraussetzungen
@@ -134,7 +134,7 @@ start/stop: /etc/init.d/pcmcia start/stop
- +
3.2 Client Setup
@@ -148,7 +148,7 @@ ifconfig eth0 192.168.1.5 up
- +
3.3 AP Setup
-- 2.20.1