PageSourceSearch

https://www.getniko.com/js/custom.js

js getniko.com collected 2026-09-30 05:29:43 UTC 2,958 bytes, 105 lines download raw bytes

1$(document).on('click', 'a.smoothScroll[href^="#"]', function (event) {
2    event.preventDefault();
3
4    $('html, body').animate({
5        scrollTop: $($.attr(this, 'href')).offset().top
6    }, 500);
7});
8$(function(){
9  $('body').tooltip({
10    selector: '[data-toggle=tooltip]'
11  });
12  $('body').on('click','[data-toggle="tooltip"]',function (e) {jQuery(this).tooltip("hide");});
13  $('body').on('click','#filterQuestions .action-filter',function (e) {
14    $("#filterQuestions").collapse('hide');});
15  $('body').on('click', '.container a',function(event) {
16    var el = event.target;
17    if ( !el.isContentEditable && el.host !== window.location.host) {
18      el.setAttribute("target", "_blank");
19    }
20  });
21});
22
23if(!window.linkifyMe)
24{
25  window.linkifyMe = function(){
26    $(".trix-content").linkify({
27      target: "_blank"
28    });
29  };
30}
31
32if (!window.scrollToAnimate) {
33  window.scrollToAnimate = function(elem) {
34    $(elem).addClass('hightlightRow');
35    $('html, body').animate({
36      scrollTop: $(elem).offset().top
37    }, 500, function(){
38      $(elem).animate({
39        backgroundColor:'#fff'
40      }, 1000, function(){
41        $(elem).removeClass('hightlightRow');
42      });
43    });
44    return;
45  };
46}
47
48$(function(){
49  var hash = window.location.hash;
50  hash && $('ul.nav a[href="' + hash + '"]').tab('show');
51  $('body').on('click','.start_link',function (e) {
52
53  hash = $(this).attr('href');
54  hash && $('ul.nav a[href="' + hash + '"]').tab('show');
55  if(hash == '#signup')
56  {
57    setTimeout(function(){$('#signup.tab-pane form input[name="name"]').focus();}, 200);
58  }else if(hash == '#signin')
59  {
60    setTimeout(function(){$('#signin.tab-pane form input[name="email"]').focus();}, 200);
61  }
62
63  // var scrollmem = $('body').scrollTop() || $('html').scrollTop();
64  window.location.hash = hash;
65  // $('html,body').scrollTop(scrollmem);
66  });
67});
68
69function chartToolTipInit(Chart){
70  Chart.Tooltip.positioners.cust = function(elements, ea) {
71    return {
72      x: ea.x,
73      y: ea.y
74    };
75  }
76}
77if (typeof Object.assign != 'function') {
78  // Must be writable: true, enumerable: false, configurable: true
79  Object.defineProperty(Object, "assign", {
80    value: function assign(target, varArgs) { // .length of function is 2
81      'use strict';
82      if (target == null) { // TypeError if undefined or null
83        throw new TypeError('Cannot convert undefined or null to object');
84      }
85
86      var to = Object(target);
87
88      for (var index = 1; index < arguments.length; index++) {
89        var nextSource = arguments[index];
90
91        if (nextSource != null) { // Skip over if undefined or null
92          for (var nextKey in nextSource) {
93            // Avoid bugs when hasOwnProperty is shadowed
94            if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
95              to[nextKey] = nextSource[nextKey];
96            }
97          }
98        }
99      }
100      return to;
101    },
102    writable: true,
103    configurable: true
104  });
105}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.