Línea 1: |
Línea 1: |
| ( function ( window, document, $, mw, gt ) { | | ( function ( window, document, $, mw, gt ) { |
| | | |
− | if ( mw.config.get( 'wgPageName' ) !== 'Bienvenidos_al_Currículum_Nacional_Base' ) {
| + | if ( mw.config.get( 'wgPageName' ) !== 'Bienvenidos_al_Currículum_Nacional_Base' ) { |
− | //return;
| + | //return; |
− | }
| + | } |
| | | |
− | if (mw.cookie.get('buscar_tour')){
| + | if (mw.cookie.get('buscar_tour')){ |
− | //return;
| + | //return; |
− | }
| + | } |
− |
| |
− | mw.cookie.set('buscar_tour','done');
| |
− |
| |
− | var pageName = 'Bienvenidos_al_Currículum_Nacional_Base',
| |
− | tour;
| |
− | tour = new gt.TourBuilder( {
| |
− | name: 'buscar'
| |
− | } );
| |
| | | |
− |
| + | mw.cookie.set('buscar_tour','done'); |
− | tour.firstStep( {
| |
− | name: 'buscar',
| |
− | title: '¿Buscas algo?',
| |
− | description: '¡Es muy fácil encontrar material en el CNB en línea!',
| |
− | position: 'topLeft',
| |
− | attachTo: '#p-search',
| |
− | closeOnClickOutside: false,
| |
− | overlay: true
| |
− | } )
| |
− |
| |
− | .next( 'buscar1' );
| |
| | | |
− | tour.step( {
| + | var pageName = 'Bienvenidos_al_Currículum_Nacional_Base', |
− | name: 'buscar1',
| + | tour; |
− | title: 'Prueba el buscador wiki.',
| + | tour = new gt.TourBuilder( { |
− | description: 'Escribe <i>Comunicación</i> en la ventana de búsqueda o selecciona el botón «Enséñame cómo». <br>Cuida bien la ortografía (en especial las tildes) porque la búsqueda wiki es exacta.',
| + | name: 'buscar' |
− | attachTo: '#Inicial-y-Preprimaria-main',
| + | } ); |
− | position: 'left',
| |
− | attachTo: '#p-search',
| |
− | overlay: false,
| |
− | closeOnClickOutside: false,
| |
− | allowAutomaticOkay: false,
| |
− | buttons: [ {
| |
− | name: 'Enséñame cómo',
| |
− | onclick: function () {
| |
− | mw.libs.guiders.next();
| |
− | $('#searchInput').focus();
| |
− | $('#searchInput').val('Comunicación');
| |
− | $('#searchInput').focus();
| |
− | var press = jQuery.Event("keypress");
| |
− | press.which = 40;
| |
− | $("#searchInput").trigger(press);
| |
− | $('#searchInput').focus();
| |
− | }
| |
− | } ],
| |
− | } )
| |
− | .next( 'buscar2' )
| |
− | .back( 'buscar' );
| |
| | | |
− |
| |
− | tour.step( {
| |
− | name: 'buscar2',
| |
− | title: 'El buscador wiki te ayuda a encontrar títulos de páginas...',
| |
− | description: 'El buscador te sugerirá nombres de páginas que incluyen tu búsqueda en el título',
| |
− | attachTo: '#p-search',
| |
− | position: 'left',
| |
− | closeOnClickOutside: false,
| |
− | overlay: false,
| |
− | buttons: [ {
| |
− | name: 'Muéstrame la lista de nuevo',
| |
− | onclick: function () {
| |
− | $('#searchInput').focus();
| |
− | $('#searchInput').val('Comunicación');
| |
− | $('#searchInput').focus();
| |
− | var press = jQuery.Event("keypress");
| |
− | press.which = 40;
| |
− | $("#searchInput").trigger(press);
| |
− | $('#searchInput').focus();
| |
− | }
| |
− | } ],
| |
− | } )
| |
− | .next( 'buscar3' )
| |
− | .back( 'buscar1' );
| |
| | | |
− | tour.step( {
| + | tour.firstStep( { |
− | name: 'buscar3',
| + | name: 'buscar', |
− | title: '... y también a encontrar contenidos.',
| + | title: '¿Buscas algo?', |
− | description: 'Selecciona el término abajo de "que contiene..." para ver páginas con el término en su contenido ',
| + | description: '¡Es muy fácil encontrar material en el CNB en línea!', |
− | attachTo: '#p-search',
| + | position: 'topLeft', |
− | position: 'bottom',
| + | attachTo: '#p-search', |
− | closeOnClickOutside false,
| + | closeOnClickOutside: false, |
− | overlay: false,
| + | overlay: true |
− | buttons: [ {
| + | } ) |
− | name: 'Enséñame cómo',
| |
− | onclick: function () {
| |
− | $('#searchInput').focus();
| |
− | mw.libs.guiders.next();
| |
− | window.location.href = "http://cnbguatemala.org/index.php?search=Comunicación&title=Special:Search&fulltext=1";
| |
− | }
| |
− | } ],
| |
| | | |
− | } )
| + | .next( 'buscar1' ); |
− | .next( 'buscar4' )
| |
− | .back( 'buscar2' );
| |
| | | |
− | tour.step( {
| + | tour.step( { |
− | name: 'buscar4',
| + | name: 'buscar1', |
− | title: 'Aquí verás la lista de páginas que contienen en su título el término que buscaste...',
| + | title: 'Prueba el buscador wiki.', |
− | description: '',
| + | description: 'Escribe <i>Comunicación</i> en la ventana de búsqueda o selecciona el botón «Enséñame cómo». <br>Cuida bien la ortografía (en especial las tildes) porque la búsqueda wiki es exacta.', |
− | attachTo: '.mw-search-createlink',
| + | attachTo: '#Inicial-y-Preprimaria-main', |
− | position: 'topLeft',
| + | position: 'left', |
− | closeOnClickOutside: false,
| + | attachTo: '#p-search', |
− | overlay: false
| + | overlay: false, |
− | } )
| + | closeOnClickOutside: false, |
− | .next( 'buscar5' )
| + | allowAutomaticOkay: false, |
− | .back( 'buscar3' );
| + | buttons: [ { |
| + | name: 'Enséñame cómo', |
| + | onclick: function () { |
| + | mw.libs.guiders.next(); |
| + | $('#searchInput').focus(); |
| + | $('#searchInput').val('Comunicación'); |
| + | $('#searchInput').focus(); |
| + | var press = jQuery.Event("keypress"); |
| + | press.which = 40; |
| + | $("#searchInput").trigger(press); |
| + | $('#searchInput').focus(); |
| + | } |
| + | } ], |
| + | } ) |
| + | .next( 'buscar2' ) |
| + | .back( 'buscar' ); |
| | | |
− | tour.step( {
| |
− | name: 'buscar5',
| |
− | title: 'Aquí verás la lista de páginas que contienen en su texto el término que buscaste...',
| |
− | description: '',
| |
− | attachTo: 'span[id^="Resultados_por_texto_de"]',
| |
− | position: 'topLeft',
| |
− | closeOnClickOutside: false,
| |
− | overlay: false
| |
− | } )
| |
− | .next( 'buscar6' )
| |
− | .back( 'buscar4' );
| |
| | | |
− | tour.step( {
| + | tour.step( { |
− | name: 'buscar6',
| + | name: 'buscar2', |
− | title: '... y aquí puedes crear una página nueva usando el término como título.',
| + | title: 'El buscador wiki te ayuda a encontrar títulos de páginas...', |
− | description: '',
| + | description: 'El buscador te sugerirá nombres de páginas que incluyen tu búsqueda en el título', |
− | attachTo: '.mw-search-createlink a',
| + | attachTo: '#p-search', |
− | position: 'topLeft',
| + | position: 'left', |
− | closeOnClickOutside: false,
| + | closeOnClickOutside: false, |
− | overlay: false
| + | overlay: false, |
− | } )
| + | buttons: [ { |
− | .next( 'buscar7' )
| + | name: 'Muéstrame la lista de nuevo', |
− | .back( 'buscar5' );
| + | onclick: function () { |
| + | $('#searchInput').focus(); |
| + | $('#searchInput').val('Comunicación'); |
| + | $('#searchInput').focus(); |
| + | var press = jQuery.Event("keypress"); |
| + | press.which = 40; |
| + | $("#searchInput").trigger(press); |
| + | $('#searchInput').focus(); |
| + | } |
| + | } ], |
| + | } ) |
| + | .next( 'buscar3' ) |
| + | .back( 'buscar1' ); |
| | | |
− |
| + | tour.step( { |
− | tour.step( {
| + | name: 'buscar3', |
− | name: 'buscar7',
| + | title: '... y también a encontrar contenidos.', |
− | title: 'Usa las comillas para precisar más tu búsqueda.',
| + | description: 'Selecciona el término abajo de "que contiene..." para ver páginas con el término en su contenido ', |
− | description: '¡Pruébalo! Escribe <i>"criterio evaluativo"</i> en la búsqueda wiki.',
| + | attachTo: '#p-search', |
− | attachTo: '#cse-search-box',
| + | position: 'bottom', |
− | position: 'right',
| + | closeOnClickOutside: false, |
− | closeOnClickOutside: false,
| + | overlay: false, |
− | overlay: false,
| + | buttons: [ |
− | buttons: [ {
| + | { name: 'show list', |
− | name: 'Enséñame cómo',
| + | onclick: function () { |
− | onclick: function () {
| + | $('#searchInput').focus(); |
− | $('#searchInput').focus();
| + | $('#searchInput').val('Comunicación'); |
− | $('#searchInput').val('"criterio evaluativo"');
| + | $('#searchInput').focus(); |
− | $('#searchInput').focus();
| + | var press = jQuery.Event("keypress"); |
− | $('form#searchform').submit();
| + | press.which = 40; |
− | mw.libs.guiders.next();
| + | $("#searchInput").trigger(press); |
− | }
| + | $('#searchInput').focus(); |
− | } ],
| + | } |
− | } )
| + | },{ |
− | .next( 'buscar8' )
| + | name: 'Enséñame cómo', |
− | .back( 'buscar6' );
| + | onclick: function () { |
| + | $('#searchInput').focus(); |
| + | mw.libs.guiders.next(); |
| + | window.location.href = "http://cnbguatemala.org/index.php?search=Comunicación&title=Special:Search&fulltext=1"; |
| + | } |
| + | } ], |
| | | |
− | tour.step( {
| + | } ) |
− | name: 'buscar8',
| + | .next( 'buscar4' ) |
− | title: 'Esto encuentra solo las páginas que contengan ambas palabras juntas.',
| + | .back( 'buscar2' ); |
− | description: '',
| |
− | attachTo: 'div[id^="p-Mallas_curriculares_por_nivel_"]',
| |
− | position: 'left',
| |
− | closeOnClickOutside: false,
| |
− | overlay: false
| |
− | } )
| |
− | .next( 'buscar9' )
| |
− | .back( 'buscar7' );
| |
| | | |
− | tour.step( {
| + | tour.step( { |
− | name: 'buscar9',
| + | name: 'buscar4', |
− | title: 'También puedes precisar tu búsqueda con los operadores booleanos "+" y "-".',
| + | title: 'Aquí verás la lista de páginas que contienen en su título el término que buscaste...', |
− | description: '¡Pruébalo! Escribe <i>criterio -evaluativo</i> en la búsqueda wiki',
| + | description: '', |
− | attachTo: '#cse-search-box',
| + | attachTo: '.mw-search-createlink', |
− | position: 'right',
| + | position: 'topLeft', |
− | closeOnClickOutside: false,
| + | closeOnClickOutside: false, |
− | overlay: false,
| + | overlay: false |
− | buttons: [ {
| + | } ) |
− | name: 'Enséñame cómo',
| + | .next( 'buscar5' ) |
− | onclick: function () {
| + | .back( 'buscar3' ); |
− | $('#cse-search-box input[type="text"]').focus();
| |
− | $('#cse-search-box input[type="text"]').val('criterio');
| |
− | $('#cse-search-box input[type="text"]').focus();
| |
− | $('form#cse-search-box').submit();
| |
− | mw.libs.guiders.next();
| |
− | }
| |
− | } ],
| |
− | } )
| |
− | .back( 'buscar8' )
| |
− | .next( 'buscar10' )
| |
| | | |
− | tour.step( {
| + | tour.step( { |
− | name: 'buscar10',
| + | name: 'buscar5', |
− | title: 'Esto encuentra solo las páginas que <i>no</i> contengan la palabra que pusiste después del símbolo "-".',
| + | title: 'Aquí verás la lista de páginas que contienen en su texto el término que buscaste...', |
− | description: '',
| + | description: '', |
− | attachTo: 'div[id^="p-Mallas_curriculares_por_nivel_"]',
| + | attachTo: 'span[id^="Resultados_por_texto_de"]', |
− | position: 'left',
| + | position: 'topLeft', |
− | closeOnClickOutside: false,
| + | closeOnClickOutside: false, |
− | overlay: false
| + | overlay: false |
− | } )
| + | } ) |
− | .next( 'buscar11' )
| + | .next( 'buscar6' ) |
− | .back( 'buscar9' );
| + | .back( 'buscar4' ); |
| | | |
− |
| + | tour.step( { |
− | tour.step( {
| + | name: 'buscar6', |
− | name: 'buscar11',
| + | title: '... y aquí puedes crear una página nueva usando el término como título.', |
− | title: '2) También puedes usar el buscador de Google',
| + | description: '', |
− | description: 'El buscador Google es más flexible y poderoso. Encontrarás resultados aunque no utilices tildes, pero no podrás crear páginas nuevas.',
| + | attachTo: '.mw-search-createlink a', |
− | attachTo: '#cse-search-box',
| + | position: 'topLeft', |
− | position: 'right',
| + | closeOnClickOutside: false, |
− | closeOnClickOutside: false,
| + | overlay: false |
− | overlay: false,
| + | } ) |
− | buttons: [ {
| + | .next( 'buscar7' ) |
− | name: 'Make a search',
| + | .back( 'buscar5' ); |
− | onclick: function () {
| + | |
− | $('#cse-search-box input[type="text"]').focus();
| + | |
− | $('#cse-search-box input[type="text"]').val('criterio');
| + | tour.step( { |
− | $('#cse-search-box input[type="text"]').focus();
| + | name: 'buscar7', |
− |
| + | title: 'Usa las comillas para precisar más tu búsqueda.', |
− | }
| + | description: '¡Pruébalo! Escribe <i>"criterio evaluativo"</i> en la búsqueda wiki.', |
− | } ],
| + | attachTo: '#cse-search-box', |
− | } )
| + | position: 'right', |
− | .back( 'buscar10' )
| + | closeOnClickOutside: false, |
| + | overlay: false, |
| + | buttons: [ { |
| + | name: 'Enséñame cómo', |
| + | onclick: function () { |
| + | $('#searchInput').focus(); |
| + | $('#searchInput').val('"criterio evaluativo"'); |
| + | $('#searchInput').focus(); |
| + | $('form#searchform').submit(); |
| + | mw.libs.guiders.next(); |
| + | } |
| + | } ], |
| + | } ) |
| + | .next( 'buscar8' ) |
| + | .back( 'buscar6' ); |
| + | |
| + | tour.step( { |
| + | name: 'buscar8', |
| + | title: 'Esto encuentra solo las páginas que contengan ambas palabras juntas.', |
| + | description: '', |
| + | attachTo: 'div[id^="p-Mallas_curriculares_por_nivel_"]', |
| + | position: 'left', |
| + | closeOnClickOutside: false, |
| + | overlay: false |
| + | } ) |
| + | .next( 'buscar9' ) |
| + | .back( 'buscar7' ); |
| + | |
| + | tour.step( { |
| + | name: 'buscar9', |
| + | title: 'También puedes precisar tu búsqueda con los operadores booleanos "+" y "-".', |
| + | description: '¡Pruébalo! Escribe <i>criterio -evaluativo</i> en la búsqueda wiki', |
| + | attachTo: '#cse-search-box', |
| + | position: 'right', |
| + | closeOnClickOutside: false, |
| + | overlay: false, |
| + | buttons: [ { |
| + | name: 'Enséñame cómo', |
| + | onclick: function () { |
| + | $('#cse-search-box input[type="text"]').focus(); |
| + | $('#cse-search-box input[type="text"]').val('criterio'); |
| + | $('#cse-search-box input[type="text"]').focus(); |
| + | $('form#cse-search-box').submit(); |
| + | mw.libs.guiders.next(); |
| + | } |
| + | } ], |
| + | } ) |
| + | .back( 'buscar8' ) |
| + | .next( 'buscar10' ) |
| + | |
| + | tour.step( { |
| + | name: 'buscar10', |
| + | title: 'Esto encuentra solo las páginas que <i>no</i> contengan la palabra que pusiste después del símbolo "-".', |
| + | description: '', |
| + | attachTo: 'div[id^="p-Mallas_curriculares_por_nivel_"]', |
| + | position: 'left', |
| + | closeOnClickOutside: false, |
| + | overlay: false |
| + | } ) |
| + | .next( 'buscar11' ) |
| + | .back( 'buscar9' ); |
| + | |
| + | |
| + | tour.step( { |
| + | name: 'buscar11', |
| + | title: '2) También puedes usar el buscador de Google', |
| + | description: 'El buscador Google es más flexible y poderoso. Encontrarás resultados aunque no utilices tildes, pero no podrás crear páginas nuevas.', |
| + | attachTo: '#cse-search-box', |
| + | position: 'right', |
| + | closeOnClickOutside: false, |
| + | overlay: false, |
| + | buttons: [ { |
| + | name: 'Make a search', |
| + | onclick: function () { |
| + | $('#cse-search-box input[type="text"]').focus(); |
| + | $('#cse-search-box input[type="text"]').val('criterio'); |
| + | $('#cse-search-box input[type="text"]').focus(); |
| + | |
| + | } |
| + | } ], |
| + | } ) |
| + | .back( 'buscar10' ) |
| .next( 'buscar12' ) | | .next( 'buscar12' ) |
− | tour.step( {
| + | tour.step( { |
− | name: 'buscar12',
| + | name: 'buscar12', |
− | title: '',
| + | title: '', |
− | description: '¡Usa los buscadores y no te pierdas nada en el sitio!',
| + | description: '¡Usa los buscadores y no te pierdas nada en el sitio!', |
− | position: 'center',
| + | position: 'center', |
− | closeOnClickOutside: false,
| + | closeOnClickOutside: false, |
− | overlay: true,
| + | overlay: true, |
− | } )
| + | } ) |
− | .back( 'buscar11' );
| + | .back( 'buscar11' ); |
| + | |
| | | |
− |
| |
| } ( window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ); | | } ( window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ); |