From a, 1 Week ago, written in JavaScript.
- view diff
Embed
  1. !function () {
  2.   'use strict';
  3.   var a = window.document,
  4.   b = {
  5.     STYLES: 'https://c.disquscdn.com/next/embed/styles/lounge.2947a98de15e03c64b9251e985a1725e.css',
  6.     RTL_STYLES: 'https://c.disquscdn.com/next/embed/styles/lounge_rtl.6c7d5012e26b2410d6e803ed17439bd5.css',
  7.     'lounge/main': 'https://c.disquscdn.com/next/embed/lounge.bundle.410b7616327eac2412b39d8d8f95e898.js',
  8.     'remote/config': 'https://disqus.com/next/config.js',
  9.     'common/vendor_extensions/highlight': 'https://c.disquscdn.com/next/embed/highlight.6fbf348532f299e045c254c49c4dbedf.js'
  10.   };
  11.   window.require = {
  12.     baseUrl: 'https://c.disquscdn.com/next/current/embed/embed',
  13.     paths: [
  14.       'lounge/main',
  15.       'remote/config',
  16.       'common/vendor_extensions/highlight'
  17.     ].reduce(function (a, c) {
  18.       return a[c] = b[c].slice(0, - 3),
  19.       a
  20.     }, {
  21.     })
  22.   };
  23.   var c = a.createElement('script');
  24.   c.onload = function () {
  25.     require(['common/main'], function (a) {
  26.       a.init('lounge', b)
  27.     })
  28.   },
  29.   c.src = 'https://c.disquscdn.com/next/embed/common.bundle.d02906baeab9c3cf3d19382f618732c6.js',
  30.   a.body.appendChild(c)
  31. }();
  32.