From 47bc0c4935ad3eef6f2aac5e0009c007fa1c6638 Mon Sep 17 00:00:00 2001 From: Hauke D Date: Sun, 2 Sep 2018 16:35:53 +0200 Subject: [PATCH] Prepared run_code for async calling --- web/regex_demo.html | 123 ++++++++++++++++++++++++-------------------- 1 file changed, 66 insertions(+), 57 deletions(-) diff --git a/web/regex_demo.html b/web/regex_demo.html index a3ed4a8..084686d 100644 --- a/web/regex_demo.html +++ b/web/regex_demo.html @@ -109,11 +109,13 @@ sub pp { Data::Dumper->new([@_])->Useqq(1)->Terse(1)->Pair('=>') sub sample_init { my $samp = shift; + state $samp_id = 'a'; + $samp->attr('id',"samp_".$samp_id++) unless $samp->attr('id'); my $samptxt = $samp->children(".samptxt"); my $samp_ta = $jq->('