Blame view

bower_components/select2/docs/_layouts/default.html 1.31 KB
f6e211e4   Administrator   finish work part 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
  <!doctype html>
  <html>
    <head>
      {% include head.html %}
    </head>
    <body>
      {% include navigation.html %}
  
      {{ content }}
  
      {% include footer.html %}
  
      <script>
        (function ($) {
          'use strict';
  
          $(function () {
            var $window = $(window);
            var $body = $(document.body);
            var $sidebar = $('.s2-docs-sidebar');
  
            $body.scrollspy({
              target: '.s2-docs-sidebar',
              offset: 40
            });
  
            $window.on('load', function () {
              $body.scrollspy('refresh');
            });
  
            $sidebar.affix({
              offset: {
                top: function () {
                  var offsetTop = $sidebar.offset().top;
                  var navOuterHeight = $('.s2-docs-nav').height();
  
                  return (this.top = offsetTop - navOuterHeight);
                },
                bottom: function () {
                  return (this.bottom = $('.s2-docs-footer').outerHeight(true));
                }
              }
            });
          });
        })(jQuery);
  
        (function () {
          'use strict';
  
          anchors.options.placement = 'left';
          anchors.add('.s2-docs-container h1, .s2-docs-container h2, .s2-docs-container h3, .s2-docs-container h4, .s2-docs-container h5');
        })();
      </script>
  
      {% include ga.html %}
    </body>
  </html>