App-Alice

 view release on metacpan or  search on metacpan

share/templates/index_footer.html  view on Meta::CPAN

? my ($app, @windows) = @_;
        <script type="text/javascript">
          document.observe("dom:loaded", function () {
            alice.connection.msgid = <?= $_[0]->msgid ?>;
            var orig_hash = window.location.hash;
            <? for my $window (@windows) { ?>
              alice.openWindow(
                '<?= $window->id ?>',
                '<?= $window->title ?>',
                <?= $window->{active} ? "true" : "false" ?>,
                '<?= $window->hashtag ?>'
              );
            <? } ?>
            alice.focusHash(orig_hash);
            // required due to browser weirdness with scrolltobottom on initial focus
            setTimeout(function(){alice.activeWindow().scrollToBottom(true)}, 1);
          });
        </script>
      </div>
    </div>
    <?= $_mt->render_file('help.html', $_[0]) ?>
  </body>
</html>



( run in 1.495 second using v1.01-cache-2.11-cpan-98e64b0badf )