PageSourceSearch

https://helpdesk.ip6net.net/satisfaction.js

js ip6net.net collected 2026-10-05 01:18:49 UTC 1,815 bytes, 63 lines download raw bytes

1;(function(window) {
2  settings = {
3    strings: {
4      goodRatings:      "Said good",
5      badRatings:       "Weren't so sure",
6      score:            "Overall happiness",
7      zendeskPlug:      'Powered by <a href="http://www.zendesk.com/">Zendesk</a>'
8    },
9    element: null,
10    ratings: {
11      good:             100,
12      bad:              0
13    }
14  }
15
16  function configure(options) {
17    var prop;
18    for (prop in options) {
19      if (options.hasOwnProperty(prop)) {
20        settings[prop] = options[prop];
21      }
22    }
23  }
24
25  function render() {
26
27    var markup =  '\
28        <div class="zd_satisfaction">\
29          <div class="zd_satisfaction_good">\
30            <p class="zd_rating_number">' + settings.ratings.good + '</p>\
31            <p class="zd_rating_string">' + settings.strings.goodRatings + '</p>\
32          </div>\
33          <div class="zd_satisfaction_bad">\
34            <p class="zd_rating_number">' + settings.ratings.bad + '</p>\
35            <p class="zd_rating_string">' + settings.strings.badRatings + '</p>\
36          </div>\
37          <div class="zd_satisfaction_score">\
38            <p class="zd_rating_number">' + settings.ratings.good + '%</p>\
39            <p class="zd_rating_string">' + settings.strings.score + '</p>\
40          </div>\
41        </div>\
42        <div class="zd_plug">' + settings.strings.zendeskPlug + '</div>\
43      ';
44
45    if (settings.element != null && document.getElementById(settings.element)) {
46        document.getElementById(settings.element).innerHTML = markup;
47    } else if (settings.element == null) {
48        document.write(markup);
49    } else {
50        return;
51    }
52  }
53
54  var Satisfaction = {
55    show: function(options) {
56      configure(options);
57      render();
58    }
59  }
60
61  window.Satisfaction = Satisfaction;
62
63}(this.window || this));

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.