Class ::xowiki::includelet::conference-stream (public)

 ::xowiki::IncludeletClass ::xowiki::includelet::conference-stream[i]

Defined in /var/www/openacs/packages/xowiki/tcl/conference-procs.tcl

Conference Live Stream

Testcases:
No testcase defined.
Source code:
namespace eval ::xowiki::includelet {}
::nsf::object::alloc ::xowiki::IncludeletClass ::xowiki::includelet::conference-stream {set :__default_metaclass ::xotcl::Class
   set :__default_superclass ::xotcl::Object
   set :aggregating false
   set :cacheable false
   set :localized true
   set :personalized true}
::xowiki::includelet::conference-stream instproc render {} {
    :get_parameters
    security::csp::require frame-src https://www.youtube-nocookie.com
    template::head::add_javascript -script [subst {
      window.addEventListener('load', (e) => {
        const el = new bootstrap.Modal(document.querySelector('#youtube-consent'));
        el.show();
      });
    }]
    
    template::add_event_listener  -selector {[data-bs-dismiss="modal"]:not(#youtube-consent-confirm)}  -script [subst { location.assign("/conf2024/info"); }]

    set modal [::xowiki::bootstrap::modal_dialog  -title [subst {<span><i class="bi bi-info-square"></i></span> YouTube}]  -id "youtube-consent"  -body [subst {
                        <div class="info-text">
              We've embedded content from YouTube here.<br>
              Hereby, we want to inform you that YouTube may collect personal data
              and track your viewing behaviour, however, in order to protect your
              privacy, we have enabled Privacy Enhanced Mode for the embedded YouTube
              players.<br> For further information, please visit<br>
                  <a href="https://www.youtube.com/t/privacy">https://www.youtube.com/t/privacy</a>
                    <a href="https://support.google.com/youtube/answer/171780?hl=en#zippy=%2Cturn-on-privacy-enhanced-mode">
                    https://support.google.com/youtube/answer/171780?hl=en#zippy=%2Cturn-on-privacy-enhanced-mode</a>
                      </div>}]]
   return [subst {
      <div class="mb-3">
          <h3 class="mb-3">Day 1</h3>
          <div class="mb-3" style="display:inline-block;position:relative;">
          <iframe width="1280" height="720"
            src="https://www.youtube-nocookie.com/embed/UI0jE3U-ICI"
            title="OpenACS and Tcl/Tk Conference 2024 Day 1"
            frameborder="0"
            allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
            referrerpolicy="strict-origin-when-cross-origin"
            allowfullscreen></iframe>
        </div>
      </div>
    </div>
    <a type="button" class="btn btn-primary btn-lg" href="/conf2024/info/">Home</a>
    $modal}]
  }
::xowiki::includelet::conference-stream instparametercmd __decoration
::nsf::relation::set ::xowiki::includelet::conference-stream superclass ::xowiki::Includelet

::nx::slotObj -container slot ::xowiki::includelet::conference-stream
::xowiki::includelet::conference-stream::slot eval {set :__parameter {
        {__decoration plain}
      }}

::nsf::object::alloc ::xotcl::Attribute ::xowiki::includelet::conference-stream::slot::__decoration {set :accessor public
   set :configurable true
   set :convert false
   set :default plain
   set :defaultmethods {}
   set :disposition alias
   set :domain ::xowiki::includelet::conference-stream
   set :incremental 0
   set :manager ::xowiki::includelet::conference-stream::slot::__decoration
   set :methodname __decoration
   set :multiplicity 1..1
   set :name __decoration
   set :per-object false
   set :position 0
   set :required false
   set :substdefault 0b111
   set :trace none
   : init}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: