Proyectos de Subversion Moodle

Rev

Rev 322 | Rev 324 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 322 Rev 323
Línea 69... Línea 69...
69
                {{$drawercloseonresize}}1{{/drawercloseonresize}}
69
                {{$drawercloseonresize}}1{{/drawercloseonresize}}
70
                {{$closebuttontext}}{{#str}}closecourseindex, core{{/str}}{{/closebuttontext}}
70
                {{$closebuttontext}}{{#str}}closecourseindex, core{{/str}}{{/closebuttontext}}
71
            {{/ theme_universe/drawer}}
71
            {{/ theme_universe/drawer}}
72
        {{/courseindex}}
72
        {{/courseindex}}
73
        {{/hidecourseindexnav}}
73
        {{/hidecourseindexnav}}
-
 
74
        {{#hasblocks}}
-
 
75
            {{< theme_universe/drawer }}
-
 
76
                {{$id}}universe-drawers-blocks{{/id}}
-
 
77
                {{$drawerclasses}}drawer drawer-right{{#blockdraweropen}} show{{/blockdraweropen}}{{/drawerclasses}}
-
 
78
                {{$drawercontent}}
-
 
79
                    <section class="d-print-none" aria-label="{{#str}}blocks{{/str}}">
-
 
80
                        {{{ addblockbutton }}}
-
 
81
                        {{{ sidepreblocks }}}
-
 
82
                    </section>
-
 
83
                {{/drawercontent}}
-
 
84
                {{$drawerpreferencename}}drawer-open-block{{/drawerpreferencename}}
-
 
85
                {{$forceopen}}{{#forceblockdraweropen}}1{{/forceblockdraweropen}}{{/forceopen}}
-
 
86
                {{$drawerstate}}show-drawer-right{{/drawerstate}}
-
 
87
                {{$tooltipplacement}}left{{/tooltipplacement}}
-
 
88
                {{$drawercloseonresize}}1{{/drawercloseonresize}}
-
 
89
                {{$closebuttontext}}{{#str}}closeblockdrawer, core{{/str}}{{/closebuttontext}}
-
 
90
            {{/ theme_universe/drawer}}
-
 
91
        {{/hasblocks}}
Línea 74... Línea 92...
74
    
92
    
75
    {{> theme_universe/navbar }}
93
    {{> theme_universe/navbar }}
Línea 76... Línea 94...
76
    <div id="page" data-region="mainpage" data-usertour="scroller" class="drawers {{#topbarcustomhtml}}topbar--ext{{/topbarcustomhtml}} {{#courseindexopen}}show-drawer-left{{/courseindexopen}} {{#blockdraweropen}}show-hidden-drawer show-drawer-right{{/blockdraweropen}} drag-container">
94
    <div id="page" data-region="mainpage" data-usertour="scroller" class="drawers {{#topbarcustomhtml}}topbar--ext{{/topbarcustomhtml}} {{#courseindexopen}}show-drawer-left{{/courseindexopen}} {{#blockdraweropen}}show-hidden-drawer show-drawer-right{{/blockdraweropen}} drag-container">
Línea 93... Línea 111...
93
                                <span class="sr-only">{{#str}}opendrawerindex, core{{/str}}</span>
111
                                <span class="sr-only">{{#str}}opendrawerindex, core{{/str}}</span>
94
                                <svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 5.99519C2 5.44556 2.44556 5 2.99519 5H11.0048C11.5544 5 12 5.44556 12 5.99519C12 6.54482 11.5544 6.99039 11.0048 6.99039H2.99519C2.44556 6.99039 2 6.54482 2 5.99519Z" fill="currentColor" /><path d="M2 11.9998C2 11.4501 2.44556 11.0046 2.99519 11.0046H21.0048C21.5544 11.0046 22 11.4501 22 11.9998C22 12.5494 21.5544 12.9949 21.0048 12.9949H2.99519C2.44556 12.9949 2 12.5494 2 11.9998Z" fill="currentColor" /><path d="M2.99519 17.0096C2.44556 17.0096 2 17.4552 2 18.0048C2 18.5544 2.44556 19 2.99519 19H15.0048C15.5544 19 16 18.5544 16 18.0048C16 17.4552 15.5544 17.0096 15.0048 17.0096H2.99519Z" fill="currentColor" /></svg>
112
                                <svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 5.99519C2 5.44556 2.44556 5 2.99519 5H11.0048C11.5544 5 12 5.44556 12 5.99519C12 6.54482 11.5544 6.99039 11.0048 6.99039H2.99519C2.44556 6.99039 2 6.54482 2 5.99519Z" fill="currentColor" /><path d="M2 11.9998C2 11.4501 2.44556 11.0046 2.99519 11.0046H21.0048C21.5544 11.0046 22 11.4501 22 11.9998C22 12.5494 21.5544 12.9949 21.0048 12.9949H2.99519C2.44556 12.9949 2 12.5494 2 11.9998Z" fill="currentColor" /><path d="M2.99519 17.0096C2.44556 17.0096 2 17.4552 2 18.0048C2 18.5544 2.44556 19 2.99519 19H15.0048C15.5544 19 16 18.5544 16 18.0048C16 17.4552 15.5544 17.0096 15.0048 17.0096H2.99519Z" fill="currentColor" /></svg>
95
                            </button>
113
                            </button>
96
                        </div>
114
                        </div>
97
                    {{/courseindex}}
115
                    {{/courseindex}}
-
 
116
                    {{#hasblocks}}
-
 
117
                        <div id="sidepreopen-control" class="drawer-toggler drawer-right-toggle ml-auto d-print-none">
-
 
118
                            <button
-
 
119
                                class="btn border-0 icon-no-margin drawertoggle btn-close-drawer--right"
-
 
120
                                data-toggler="drawers"
-
 
121
                                data-action="toggle"
-
 
122
                                data-target="universe-drawers-blocks"
-
 
123
                                data-toggle="tooltip"
-
 
124
                                data-placement="right"
-
 
125
                                title="{{#str}}opendrawerblocks, core{{/str}}"
-
 
126
                            >
-
 
127
                                <span class="sr-only">{{#str}}opendrawerblocks, core{{/str}}</span>
-
 
128
                                <span class="dir-rtl-hide">
-
 
129
                                    <svg width="20" height="20" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;">
-
 
130
                                        <g transform="matrix(1,0,0,1,-2,0)">
98
                    
131
                                            <path d="M18.333,15L18.333,5C18.333,3.629 17.205,2.5 15.833,2.5L14.167,2.5C12.795,2.5 11.667,3.629 11.667,5L11.667,15C11.667,16.371 12.795,17.5 14.167,17.5L15.833,17.5C17.205,17.5 18.333,16.371 18.333,15Z" style="fill:none;fill-rule:nonzero;stroke:currentColor;stroke-width:1.67px;" />
-
 
132
                                        </g>
-
 
133
                                        <g transform="matrix(1,0,0,1,-2,0)">
-
 
134
                                            <path d="M11.667,10L5,10M5,10L7.5,7.5M5,10L7.5,12.5" style="fill:none;fill-rule:nonzero;stroke:currentColor;stroke-width:1.25px;stroke-linecap:round;stroke-linejoin:round;" />
-
 
135
                                        </g>
-
 
136
                                    </svg>
-
 
137
                                </span>
-
 
138
                                <span class="dir-ltr-hide">
-
 
139
                                    <svg width="20" height="20" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;">
-
 
140
                                        <g transform="matrix(1,0,0,1,-2,0)">
-
 
141
                                            <path d="M18.333,15L18.333,5C18.333,3.629 17.205,2.5 15.833,2.5L14.167,2.5C12.795,2.5 11.667,3.629 11.667,5L11.667,15C11.667,16.371 12.795,17.5 14.167,17.5L15.833,17.5C17.205,17.5 18.333,16.371 18.333,15Z" style="fill:none;fill-rule:nonzero;stroke:currentColor;stroke-width:1.67px;" />
-
 
142
                                        </g>
-
 
143
                                        <g transform="matrix(1,0,0,1,-2,0)">
-
 
144
                                            <path d="M11.667,10L5,10M5,10L7.5,7.5M5,10L7.5,12.5" style="fill:none;fill-rule:nonzero;stroke:currentColor;stroke-width:1.25px;stroke-linecap:round;stroke-linejoin:round;" />
-
 
145
                                        </g>
-
 
146
                                    </svg>                            
-
 
147
                                </span>
-
 
148
                            </button>
-
 
149
                        </div>
-
 
150
                    {{/hasblocks}}
99
                </div>
151
                </div>
Línea 100... Línea 152...
100
 
152
 
Línea 101... Línea 153...
101
                <div id="region-main-box" class="region-main-course-wrapper">
153
                <div id="region-main-box" class="region-main-course-wrapper">
102
 
-
 
103
                    <section id="region-main" aria-label="{{#str}}content{{/str}}">
-
 
104
                        <div class="wrapper-fw">
-
 
105
                            {{{ output.simple_header }}}
-
 
106
                        </div>
-
 
107
                        <div class="wrapper-fw">
-
 
-
 
154
 
108
                            {{{ output.main_content }}}
155
                <section id="region-main" aria-label="{{#str}}content{{/str}}">
109
                        </div>
156
 
110
                        <div class="rui-blocks-wrapper wrapper--with-margin wrapper-xl">
157
                    <div class="rui-blocks-wrapper wrapper--with-margin wrapper-xl">
-
 
158
                            
Línea 111... Línea 159...
111
                                
159
                            <div class="wrapper-page-withblocks">
-
 
160
                                {{{ output.breadcrumbs }}}
-
 
161
                                
-
 
162
                                {{{coursepageinformationbanners}}}
-
 
163
  
-
 
164
                                <div class="wrapper-header">    
-
 
165
                                {{#secondarymoremenu}}
-
 
166
                                    <div class="secondary-navigation d-print-none">
-
 
167
                                        {{> core/moremenu}}
-
 
168
                                    </div>
Línea -... Línea 169...
-
 
169
                                {{/secondarymoremenu}}                                
-
 
170
                                {{{ output.simple_header }}}
-
 
171
                                </div>
-
 
172
                                                            
-
 
173
                                {{#hasregionmainsettingsmenu}}
-
 
174
                                    <div class="region_main_settings_menu_proxy"></div>
-
 
175
                                {{/hasregionmainsettingsmenu}}
112
                            <div class="wrapper-page-withblocks">
176
                                {{{ output.course_content_header }}}
113
                                
177
                                {{#headercontent}}
114
                                {{{coursepageinformationbanners}}}
178
                                    {{> core/activity_header }}
115
                                                            
179
                                {{/headercontent}}
116
                                {{#overflow}}
180
                                {{#overflow}}
117
                                    <div class="tertiary-navigation d-inline-flex flex-wrap w-100">
181
                                    <div class="tertiary-navigation d-inline-flex flex-wrap w-100">
118
                                        <div class="navitem">
182
                                        <div class="navitem">
119
                                            {{> core/url_select}}
-
 
Línea 120... Línea 183...
120
                                        </div>
183
                                            {{> core/url_select}}
121
                                    </div>
-
 
122
                                {{/overflow}}  
-
 
123
 
-
 
124
                                
-
 
125
                                {{#hasblocks}}
184
                                        </div>
126
                                    
-
 
127
                                    {{< theme_universe/drawer }}
-
 
128
                                        {{$id}}universe-drawers-blocks{{/id}}
-
 
129
                                        {{$drawerclasses}}drawer drawer-right{{#blockdraweropen}} show{{/blockdraweropen}}{{/drawerclasses}}
-
 
130
                                        {{$drawercontent}}
-
 
131
                                        <div class="card text-center">
-
 
132
                                                <div class="card-header">
-
 
133
                                                    <div class="nav btn-group d-inline-flex mx-auto" id="blocks_buttons"></div>
-
 
134
                                                </div>
-
 
135
                                                <div class="card-body">
-
 
136
                                                    <section class="d-print-none" aria-label="{{#str}}blocks{{/str}}">
185
                                    </div>
137
                                                        {{{ addblockbutton }}}
-
 
138
                                                        {{{ sidepreblocks }}}
-
 
139
                                                    </section>
-
 
140
                                                </div>
-
 
141
                                        </div>
-
 
142
                                        {{/drawercontent}}
-
 
143
                                        {{$drawerpreferencename}}drawer-open-block{{/drawerpreferencename}}
-
 
144
                                        {{$forceopen}}{{#forceblockdraweropen}}1{{/forceblockdraweropen}}{{/forceopen}}
-
 
145
                                        {{$drawerstate}}show-drawer-right{{/drawerstate}}
186
                                {{/overflow}}    
146
                                        {{$tooltipplacement}}left{{/tooltipplacement}}
-
 
147
                                        {{$drawercloseonresize}}1{{/drawercloseonresize}}
187
                                
-
 
188
                                <div class="wrapper-fw">
-
 
189
                                {{{ output.main_content }}}
-
 
190
                                </div>
148
                                        {{$closebuttontext}}{{#str}}closeblockdrawer, core{{/str}}{{/closebuttontext}}
191
 
149
                                    {{/ theme_universe/drawer}}
192
                        </div>
150
                                            
193
                        
-
 
194
                        {{{ output.activity_navigation }}}
151
                                {{/hasblocks}}
195
                        {{{ output.course_content_footer }}}
152
                        </div>
-
 
153
                    </section>
196
                    </section>
154
                </div>
-
 
-
 
197
                </div>
155
            </div>
198
            </div>
Línea 156... Línea 199...
156
        </div>
199
            {{> theme_universe/footer }}
Línea 157... Línea 200...
157
        {{> theme_universe/footer }}
200
        </div>
158
    </div>
201
    </div>
159
    {{{ output.activity_navigation }}}      
202
            
160
    {{{ output.standard_after_main_region_html }}}
203
    {{{ output.standard_after_main_region_html }}}
161
    
204
    
162
</div>
205
</div>
163
 
206
 
164
</body>
-
 
165
</html>
-
 
166
{{#js}}
-
 
167
M.util.js_pending('theme_universe/loader');
-
 
168
require(['theme_universe/loader', 'theme_universe/drawer', 'jquery'], function(Loader, Drawer, $) {
-
 
169
    Drawer.init();
-
 
170
    M.util.js_complete('theme_universe/loader');
-
 
171
 
-
 
172
    function resizeVideoIframe(){
-
 
173
         // Seleccionamos el iframe
-
 
174
        const $iframe = $('iframe');
-
 
175
 
-
 
176
        // Verificamos si el iframe existe
-
 
177
        if ($iframe.length) {
-
 
178
            // Obtenemos el contenido del iframe
-
 
179
            const $iframeContents = $iframe.contents();
-
 
180
 
-
 
181
            // Seleccionamos el primer contenedor de vídeo H5P dentro del contenido del iframe
-
 
182
            const $h5pVideoWrapper = $iframeContents.find('.h5p-video').first();
-
 
183
 
-
 
184
            // Verificamos si el contenedor del vídeo H5P existe
-
 
185
            if ($h5pVideoWrapper.length) {
-
 
186
                // Seleccionamos el primer vídeo con la clase 'h5p-video' dentro del contenedor
-
 
187
                const $h5Video = $h5pVideoWrapper.find('video.h5p-video').first();
-
 
188
 
-
 
189
                // Verificamos si el vídeo existe
-
 
190
                if ($h5Video.length) {
-
 
191
                    // Aplicamos el estilo CSS al vídeo
-
 
192
                    $h5Video.css("height", "93vh");
-
 
193
                }
-
 
194
            }
-
 
195
        }
-
 
196
    }
-
 
197
 
-
 
198
    function renderBlockButtons(){
-
 
199
        const buttonsContainer = $("#blocks_buttons");
-
 
200
        const blocksContainer = $(".block-region");
-
 
201
        const blocks = blocksContainer.find("section.block").toArray();
-
 
202
 
-
 
203
        $(blocksContainer).addClass("tab-content")
-
 
204
 
-
 
205
        const blocksObjs = []
-
 
206
 
-
 
207
        $(blocks).each((index, block) => {
-
 
208
            const blckId = $(block).attr("id").trim()
-
 
209
            const blckTitle = $(block).find(".card-title").text()
-
 
210
 
-
 
211
            $(block).addClass("tab-pane fade")
-
 
212
            if(index === 0) $(block).addClass("active show")
-
 
213
 
-
 
214
            const blckObj = { id: blckId, title: blckTitle }
-
 
215
 
-
 
216
            blocksObjs.push(blckObj)
-
 
217
        })
-
 
218
 
-
 
219
        blocksObjs.forEach(({ id, title }, index)=> {
-
 
220
            const blockBtn = `
-
 
221
                <button class="btn nav-link ${index === 0 ? 'active' : ''}" data-toggle="tab" data-target="#${id}" type="button" role="tab" aria-controls="nav-home" aria-selected="true">${title}</button>
-
 
222
            ` 
-
 
223
 
207
</body>
224
            buttonsContainer.append(blockBtn)
208
</html>