1var disqus_shortname = ''; 2var disqus_developer = 0; 3var disqus_url = ''; 4var disqus_title = ''; 5var disqus_identifier = ''; 6var disqus_config = null; 7var disqus_def_name = null; 8var disqus_def_email = null; 9 10/** 11 * Drupal Disqus behaviors. 12 */ 13Drupal.behaviors.disqus = function(context) { 14 // Process any Disqus links. 15 if (Drupal.settings.disqusCommentDomain || false) { 16 // Change the Disqus shortname. 17 disqus_shortname = Drupal.settings.disqusCommentDomain; 18 19 // Make the AJAX call to get the number of comments. 20 jQuery.ajax({ 21 type: 'GET', 22 url: 'http://' + disqus_shortname + '.disqus.com/count.js', 23 dataType: 'script', 24 cache: true 25 }); 26 } 27 28 // Process any Disqus threads. 29 if (Drupal.settings.disqus || false) { 30 // Only query if the Disqus thread exists. 31 if (jQuery("#disqus_thread").length) { 32 // Construct the settings. 33 var disqus = Drupal.settings.disqus; 34 disqus_shortname = disqus.shortname; 35 disqus_developer = disqus.developer || 0; 36 disqus_url = disqus.url; 37 disqus_title = disqus.title; 38 disqus_identifier = disqus.identifier; 39 disqus_def_name = disqus.name || null; 40 disqus_def_email = disqus.email || null; 41 42 // Language and SSO settings are passed in through disqus_config(). 43 disqus_config = function() { 44 if (disqus.language || false) { 45 this.language = disqus.language; 46 } 47 if (disqus.remote_auth_s3 || false) { 48 this.page.remote_auth_s3 = disqus.remote_auth_s3; 49 } 50 if (disqus.api_key || false) { 51 this.page.api_key = disqus.api_key; 52 } 53 if (disqus.sso || false) { 54 this.sso = disqus.sso; 55 } 56 }; 57 58 // Make the AJAX call for the comment thread. 59 jQuery.ajax({ 60 type: 'GET', 61 url: 'http://' + disqus_shortname + '.disqus.com/embed.js', 62 dataType: 'script', 63 cache: true 64 }); 65 } 66 } 67}; 68
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.