Diferencia entre revisiones de «MediaWiki:Guidedtour-tour-mallahipertexto.js»

De CNB
Ir a la navegación Ir a la búsqueda
Busca en cnbGuatemala con Google

 
(No se muestran 15 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
( function (window, document, $, mw, gt) {
+
( function (window, document, $, mw, gt) {  
  
 +
    tour = new gt.TourBuilder({
 +
        name: 'mallahipertexto'
 +
    });
  
 
     if (mw.cookie.get('mallahipertexto_tour')) {
 
     if (mw.cookie.get('mallahipertexto_tour')) {
         //return;
+
         return;
 
     }
 
     }
  
     mw.cookie.set('mallahipertexto_tour', 'done');
+
     mw.cookie.set('mallahipertexto_tour', 'done');  
  
 
+
    var recursosUrl = window.location.toString();
     tour = new gt.TourBuilder({
+
     recursosUrl = recursosUrl .replace("title=", 'title=Recursos:');
        name: 'mallahipertexto'
+
    recursosUrl = recursosUrl .replace("&tour=mallahipertexto", '&tour=mallahipertextorecursos');
     });
+
     $("#ca-Recursos span a").prop("href", recursosUrl );
  
 
     tour.firstStep({
 
     tour.firstStep({
Línea 64: Línea 67:
 
                 var url = window.location.toString();
 
                 var url = window.location.toString();
 
                 url = url.replace("title=", 'title=Recursos:');  
 
                 url = url.replace("title=", 'title=Recursos:');  
                 url = url.replace("&tour=mallahipertexto", '');
+
                 url = url.replace("&tour=mallahipertexto", '&tour=mallahipertextorecursos');                        
                url = url + '?tour=mallahipertextorecursos';        
 
 
                 window.location = url ;
 
                 window.location = url ;
 
                 //mw.libs.guiders.next();
 
                 //mw.libs.guiders.next();

Revisión actual del 01:44 5 ago 2017

( function (window, document, $, mw, gt) {   

    tour = new gt.TourBuilder({
        name: 'mallahipertexto'
    });

    if (mw.cookie.get('mallahipertexto_tour')) {
        return;
    }

    mw.cookie.set('mallahipertexto_tour', 'done');    

    var recursosUrl = window.location.toString();
    recursosUrl = recursosUrl .replace("title=", 'title=Recursos:'); 
    recursosUrl = recursosUrl .replace("&tour=mallahipertexto", '&tour=mallahipertextorecursos'); 
    $("#ca-Recursos span a").prop("href", recursosUrl );

    tour.firstStep({
        name: 'mallahipertexto',
        title: '¡Esta malla curricular tiene recursos educativos alineados!',
        description: 'Esto significa que hay recursos educativos vinculados a las competencias y los saberes (contenidos).',
        position: 'topLeft',
        closeOnClickOutside: false,
        overlay: true
    })

        .next('mallahipertexto1');

    tour.step({
        name: 'mallahipertexto1',
        title: 'Además de identificar los aprendizajes deseados, podrás encontrar materiales que te ayudarán a lograrlos.',
        description: '',
        attachTo: 'table.wikitable',
        position: 'top',
        closeOnClickOutside: false,
        overlay: false
    })
        .next('mallahipertexto2')
        .back('mallahipertexto');

    tour.step({
        name: 'mallahipertexto2',
        title: 'Observa los colores del texto. Todo lo que está en azul es un hipervínculo.',
        description: '',
        attachTo: 'table.wikitable th:first-child',
        position: 'topRight',
        closeOnClickOutside: false,
        overlay: false
    })
        .next('mallahipertexto3')
        .back('mallahipertexto1');

    tour.step({
        name: 'mallahipertexto3',
        title: 'También puedes ver todos los recursos asociados a la malla desde la pestaña "Recursos".',
        description: 'Pruébalo ahora y ¡aprovéchalos! Hay videos, animaciones y sitios web informativos.',
        attachTo: '#ca-Recursos',
        position: 'bottomRight',
        closeOnClickOutside: false,
        overlay: false,

        buttons: [{
            name: 'Muéstrame cómo',
            onclick: function () {
                //mw.guidedTour.launcher.launchTour('mallahipertexto','gt-mallahipertexto-4');
                //mw.guidedTour.launcher.launchTour('mallahipertexto');
                var url = window.location.toString();
                url = url.replace("title=", 'title=Recursos:'); 
                url = url.replace("&tour=mallahipertexto", '&tour=mallahipertextorecursos');                         
                window.location = url ;
                //mw.libs.guiders.next();
            }
        }],

    })        
        .back('mallahipertexto2');

}(window, document, jQuery, mediaWiki, mediaWiki.guidedTour) );

Término introducido por Le Boterf, entendido como los conocimientos, procedimientos y actitudes que es preciso emplear para resolver una situación. Unos son recursos internos, que posee la persona, tales como conocimientos, procedimientos y actitudes