1
0
mirror of https://github.com/bitwarden/help synced 2025-12-06 00:03:30 +00:00

Added rating widget to articles

This commit is contained in:
Kyle Spearrin
2016-12-09 00:12:47 -05:00
parent a432b7bd2d
commit b4ce733385

View File

@@ -15,5 +15,39 @@ layout: default
<div class="panel-body">
{{content}}
</div>
<div class="panel-footer">
<div class="rw-ui-container"></div>
</div>
</div>
</div>
<script>
(function (d, t, e, m) {
// Async Rating-Widget initialization.
window.RW_Async_Init = function () {
RW.init({
huid: "340409",
uid: "1a448820f2de881574e56e07bffdd7e8",
source: "website",
options: {
"size": "medium",
"type": "nero",
"style": "thumbs",
"isDummy": false
}
});
RW.render();
};
// Append Rating-Widget JavaScript library.
var rw, s = d.getElementsByTagName(e)[0], id = "rw-js",
l = d.location, ck = "Y" + t.getFullYear() +
"M" + t.getMonth() + "D" + t.getDate(), p = l.protocol,
f = ((l.search.indexOf("DBG=") > -1) ? "" : ".min"),
a = ("https:" == p ? "secure." + m + "js/" : "js." + m);
if (d.getElementById(id)) return;
rw = d.createElement(e);
rw.id = id; rw.async = true; rw.type = "text/javascript";
rw.src = p + "//" + a + "external" + f + ".js?ck=" + ck;
s.parentNode.insertBefore(rw, s);
}(document, new Date(), "script", "rating-widget.com/"));
</script>