Signin  Pricing  Examples  Support

Libraries > tinynav.min-1fb5a401747f59689d9f6afe104b4839.js

tinynav.min-1fb5a401747f59689d9f6afe104b4839.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE http://gamed.de/typo3temp/compressor/tinynav.min-1fb5a401747f59689d9f6afe104b4839.js


Libraries on gamed.de


bootstrap.min-94d16b5ff99bc64c40b8ee630ed6cf5b.js

custom-4300823890934db26fed6001a2466987.js

isotope-42f679a950c3159048b2741db5dde160.js

jcarousel-195a750efdc5b016e1f1e3b6d26b1740.js

jquery-2.0.3.min-f1c3201db09a34bce977f1001a771515.js

jquery.easing.1.3-38c550f82d6bb8f5f63a3bce6852f31a.js

jquery.flexslider-35b69e658bceeee6abacea2687185ea0.js

jquery.plugins.min-142db4703454788200fac35c407a5fc2.js

jquery.prettyPhoto-b243a5d468c891083b64426f80fd2018.js

jquery.themepunch.revolution.min-bcd9b3cb6f649c578026aa9d41224c6e.js

modernizr.custom.83588-a29905d0607d3e8b38e4438d94b84cf8.js

parsley.min-8f81be0881dbcc8db2f307f8d99bcf67.js

powermail_frontend-9fa4fd742b256e879d708844fc2c321a.js

superfish-3f27ab6f2cf85a0ff029e4c2e1138d27.js

tawk-3a9395853b3bb39578cfae8d555040e2.js

tinynav.min-1fb5a401747f59689d9f6afe104b4839.js



Explore More


charting_library.min.js

datafeed.js

core_ajax.min.js

core.min.js

tinynav.min-1fb5a401747f59689d9f6afe104b4839.js
				
/*! http://tinynav.viljamis.com v1.1 by @viljamis */
(function ($, window, i) {
  $.fn.tinyNav = function (options) {

    // Default settings
    var settings = $.extend({
      'active' : 'selected', // String: Set the "active" class
      'header' : '', // String: Specify text for "header" and show header instead of the active item
      'label'  : '' // String: sets the <label> text for the <select> (if not set, no label will be added)
    }, options);

    return this.each(function () {

      // Used for namespacing
      i++;

      var $nav = $(this),
        // Namespacing
        namespace = 'tinynav',
        namespace_i = namespace + i,
        l_namespace_i = '.l_' + namespace_i,
        $select = $('<select/>').attr("id", namespace_i).addClass(namespace + ' ' + namespace_i);

      if ($nav.is('ul,ol')) {

        if (settings.header !== '') {
          $select.append(
            $('<option/>').text(settings.header)
          );
        }

        // Build options
        var options = '';

        $nav
          .addClass('l_' + namespace_i)
          .find('a')
          .each(function () {
            options += '<option value="' + $(this).attr('href') + '">';
            var j;
            for (j = 0; j < $(this).parents('ul, ol').length - 1; j++) {
              options += '- ';
            }
            options += $(this).text() + '</option>';
          });

        // Append options into a select
        $select.append(options);

        // Select the active item
        if (!settings.header) {
          $select
            .find(':eq(' + $(l_namespace_i + ' li')
            .index($(l_namespace_i + ' li.' + settings.active)) + ')')
            .attr('selected', true);
        }

        // Change window location
        $select.change(function () {
          window.location.href = $(this).val();
        });

        // Inject select
        $(l_namespace_i).after($select);

        // Inject label
        if (settings.label) {
          $select.before(
            $("<label/>")
              .attr("for", namespace_i)
              .addClass(namespace + '_label ' + namespace_i + '_label')
              .append(settings.label)
          );
        }

      }

    });

  };
})(jQuery, this, 0);


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z