xeoncross / disqus Goto Github PK
View Code? Open in Web Editor NEWDisqus HTML/JavaScript helper class
Disqus HTML/JavaScript helper class
Because the Disqus comment HTML/JS is used several places around my site I found it useful to wrap the output in a class that lets me easily add the Disqus form (plus options) to any page. In the http://micromvc.com style folder stucture Released Free under the MIT License http://xeoncross.com -- disqus_developer Description: Enables developer mode, which allows testing to be done on local, protected, or otherwise inaccessible servers. Usage: Integer 1 to turn on. Integer 0 to turn off. Default: Integer 0 -- disqus_url Description: Defines the page URL associated with a comment thread. Disqus uses this URL to uniquely create and identity a comment thread. Usage: Accepts a URL string. Default: Retrieves from window.location. -- disqus_identifier Description Defines a custom identifier for Disqus to use in place of the page URL (disqus_thread). Usage: Accepts a string or integer. Default: None. -- disqus_title Description: Defines the comment thread's title. Usage: Accepts a string. Default: Uses the disqus_title is no title is set. -- disqus_message Description: Defines the page's content (article or blog post) to use as context. Usage: Accepts a string. Default: None. -- disqus_iframe_css Description: Disqus uses an iframe to do all posting, including commenting and authentication. This parameter allows the site to define an external stylesheet to use within the iframe. Usage: Accepts URL string (full path to stylesheet). Default: None. -- disqus_container_id Description: Disqus is contained within the container on the page. If the container is changed, the ID must be passed to Disqus. Usage: Accepts a string. Default: 'disqus_thread' -- disqus_def_email Description: Defines a default email address used in the comment/authentication forms in the iframes. Usage: Accepts a string. Default: None. -- disqus_def_name Description: Defines a default name used in the comment/authentication form sin the iframes. Usage: Accepts a string. Default: None. -- disqus_category_id Description: Sets the category in which the thread will belong when created. Read more about categories here. Usage: Accepts an integer. Default: null. -- disqus_skip_auth Description: When set to true, Disqus will not prompt guest commenters to login or register an account with a popup box after posting. Usage: true or false Default: false
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.