Línea 6: |
Línea 6: |
| | | |
| if (mw.cookie.get('buscar_tour')){ | | if (mw.cookie.get('buscar_tour')){ |
− | //return; | + | return; |
| } | | } |
| | | |
Línea 20: |
Línea 20: |
| tour.firstStep( { | | tour.firstStep( { |
| name: 'buscar', | | name: 'buscar', |
− | title: '¿Buscas algo?', | + | title: '¿Buscas algo? <br> ¡Es muy fácil encontrar material <br> en el CNB en línea!', |
− | description: '¡Es muy fácil encontrar material en el CNB en línea!',
| + | description: 'Puedes buscar contenido de dos maneras: con el buscador wiki o con el buscador de Google ubicado al final del menú lateral.', |
| position: 'topLeft', | | position: 'topLeft', |
| attachTo: '#p-search', | | attachTo: '#p-search', |
Línea 32: |
Línea 32: |
| tour.step( { | | tour.step( { |
| name: 'buscar1', | | name: 'buscar1', |
− | title: 'Prueba el buscador wiki.', | + | title: 'Prueba el buscador wiki', |
− | description: 'Escribe algo en la ventana de búsqueda y presiona <strong>Enter</strong>. <br>Cuida bien la ortografía (en especial las tildes) porque la búsqueda wiki es exacta.', | + | description: 'Escribe algo en la casilla de búsqueda y presiona la tecla <i>Enter</i>. Cuida bien la ortografía (en especial las tildes) porque la búsqueda wiki es exacta.', |
| position: 'left', | | position: 'left', |
| attachTo: '#p-search', | | attachTo: '#p-search', |
Línea 47: |
Línea 47: |
| name: 'buscar2', | | name: 'buscar2', |
| title: 'El buscador wiki encuentra páginas...', | | title: 'El buscador wiki encuentra páginas...', |
− | description: 'Te ayudará a encontrar páginas que incluyan las palabras que buscas en el título.', | + | description: 'Te ayudará a encontrar páginas que incluyan las palabras que buscas en sus títulos.', |
| attachTo: '#p-search', | | attachTo: '#p-search', |
| position: 'left', | | position: 'left', |
Línea 70: |
Línea 70: |
| tour.step( { | | tour.step( { |
| name: 'buscar3', | | name: 'buscar3', |
− | title: '... y también a encontrar contenidos.', | + | title: '... y también encuentra contenidos.', |
− | description: 'Selecciona el término abajo de "que contiene..." para ver páginas con el término en su contenido.', | + | description: 'Selecciona lo que aparece debajo de "que contiene..." para ver páginas con ese texto.', |
| attachTo: '#p-search', | | attachTo: '#p-search', |
| position: 'bottomLeft', | | position: 'bottomLeft', |
Línea 77: |
Línea 77: |
| overlay: false, | | overlay: false, |
| onShow: function () { | | onShow: function () { |
− | $( '#p-search' ).append('<div class="ve-ui-stillDot"></div><div class="ve-ui-pulsatingDot"></div>' );
| |
| var press = jQuery.Event("keypress"); | | var press = jQuery.Event("keypress"); |
| press.which = 36; | | press.which = 36; |
Línea 95: |
Línea 94: |
| tour.step( { | | tour.step( { |
| name: 'buscar4', | | name: 'buscar4', |
− | title: 'Aquí verás la lista de páginas que tienen en su título el término que buscaste...', | + | title: 'Si elegiste el contenido, entonces aquí verás la lista de páginas que tienen en su título lo que buscaste...', |
| description: '', | | description: '', |
| attachTo: 'span[id^="Resultados_por_t"]', | | attachTo: 'span[id^="Resultados_por_t"]', |
Línea 107: |
Línea 106: |
| tour.step( { | | tour.step( { |
| name: 'buscar5', | | name: 'buscar5', |
− | title: '... y aquí la lista de páginas que lo tienen en su texto.', | + | title: '... y aquí está la lista de páginas que lo incluyen en el texto.', |
| description: '', | | description: '', |
| attachTo: 'span[id^="Resultados_por_texto_de"]', | | attachTo: 'span[id^="Resultados_por_texto_de"]', |
Línea 114: |
Línea 113: |
| overlay: false | | overlay: false |
| } ) | | } ) |
− | .next( 'buscar9' ) | + | .next( 'buscar6' ) |
| .back( 'buscar4' ); | | .back( 'buscar4' ); |
| | | |
| | | |
| tour.step( { | | tour.step( { |
− | name: 'buscar9', | + | name: 'buscar6', |
− | title: 'También puedes buscar con operadores booleanos "+" y "-".', | + | title: 'También puedes hacer una búsqueda más específica con los operadores booleanos "+" y "-"', |
− | description: '¡Pruébalo! Escribe <i>criterio +evaluativo</i> o <i>criterio -evaluativo</i>, presiona <strong>Enter</strong> y observa los resultados.', | + | description: '¡Pruébalo! Escribe <i>criterio +evaluativo</i> o <i>criterio -evaluativo</i>, presiona la tecla <i>Enter</i> y observa los resultados.', |
| attachTo: '#p-search', | | attachTo: '#p-search', |
− | position: 'left', | + | position: 'bottomLeft', |
| closeOnClickOutside: false, | | closeOnClickOutside: false, |
| allowAutomaticOkay: false, | | allowAutomaticOkay: false, |
Línea 141: |
Línea 140: |
| } ) | | } ) |
| .back( 'buscar5' ) | | .back( 'buscar5' ) |
− | .next( 'buscar11' ); | + | .next( 'buscar7' ); |
− | | |
| | | |
| | | |
| tour.step( { | | tour.step( { |
− | name: 'buscar11', | + | name: 'buscar7', |
− | title: '2) También puedes usar el buscador de Google', | + | title: 'También puedes usar el buscador de Google', |
− | description: 'El buscador Google es más flexible y poderoso. Escribe algo en la ventana y presiona <strong>Enter</enter> para probarlo.', | + | description: 'Este buscador es más flexible y poderoso. Escribe algo en la casilla y presiona la tecla <i>Enter</i> para probarlo.', |
| attachTo: '#cse-search-box', | | attachTo: '#cse-search-box', |
| position: 'right', | | position: 'right', |
| closeOnClickOutside: false, | | closeOnClickOutside: false, |
| overlay: false, | | overlay: false, |
− | buttons: [ {
| + | } ) |
− | name: 'Mostrar ejemplo',
| + | .back( 'buscar6' ) |
− | onclick: function () {
| + | .next( 'buscar8' ); |
− | $('#cse-search-box input[type="text"]').focus();
| + | |
− | $('#cse-search-box input[type="text"]').val('criterio');
| |
− | $('#cse-search-box input[type="text"]').focus();
| |
| | | |
− | }
| |
− | } ],
| |
− | } )
| |
− | .back( 'buscar9' )
| |
− | .next( 'buscar12' );
| |
| tour.step( { | | tour.step( { |
− | name: 'buscar12', | + | name: 'buscar8', |
| title: '¡Usa los buscadores y no te pierdas nada en el sitio!', | | title: '¡Usa los buscadores y no te pierdas nada en el sitio!', |
| description: '', | | description: '', |
Línea 173: |
Línea 164: |
| overlay: true, | | overlay: true, |
| } ) | | } ) |
− | .back( 'buscar11' ); | + | .back( 'buscar7' ); |
| | | |
| | | |
| } ( window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ); | | } ( window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ); |