Pagina 2 di 2 primaprima 1 2
Visualizzazione dei risultati da 11 a 12 su 12

Hybrid View

  1. #1

  2. #2
    Io non riesco proprio a capire dove sia il problema..
    Posto il js di ciò che viene impostato quando la larghezza dello schermo è inferiore ai 736px nella speranza che qualcuno possa darmi una dritta
    codice:
        /**
         * Generate an indented list of links from a nav. Meant for use with panel().
         * @return {jQuery} jQuery object.
         */
        $.fn.navList = function() {
    
    
            var    $this = $(this);
                $a = $this.find('a'),
                b = [];
    
    
            $a.each(function() {
    
    
                var    $this = $(this),
                    indent = Math.max(0, $this.parents('li').length - 1),
                    href = $this.attr('href'),
                    target = $this.attr('target');
    
    
                b.push(
                    '<a ' +
                        'class="link depth-' + indent + '"' +
                        ( (typeof target !== 'undefined' && target != '') ? ' target="' + target + '"' : '') +
                        ( (typeof href !== 'undefined' && href != '') ? ' href="' + href + '"' : '') +
                    '>' +
                        '<span class="indent-' + indent + '"></span>' +
                        $this.text() +
                    '</a>'
                );
    
    
            });
    
    
            return b.join('');
    
    
        };
    Ultima modifica di Luigi636; 06-11-2015 a 00:34

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.