diff --git a/comixngn.js b/comixngn.js index 77b693b..b897490 100644 --- a/comixngn.js +++ b/comixngn.js @@ -1,4 +1,4 @@ -/** @preserve comix-ngn v1.0.5 | (c) 2015 Oluwaseun Ogedengbe| ogewan.github.io/comix-ngn/ |License: MIT| +/** @preserve comix-ngn v1.0.6 | (c) 2015 Oluwaseun Ogedengbe| ogewan.github.io/comix-ngn/ |License: MIT| embeds domReady: github.com/ded/domready (MIT) (c) 2013 Dustin Diaz, pegasus: typicode.github.io/pegasus (MIT) (c) 2014 typicode, pathjs (MIT) (c) 2011 Mike Trpcic, direction.js*/ var cG = cG||{};/*if(void 0===cG) var cG = {};*//*check if cG is already is instantiated*/ @@ -9,10 +9,10 @@ cG.N =function(){return 0};/*null function*/ if(void 0===cG.$GPC){cG.$GPC=0;} cG.root = ''; cG.cPanel = cG.cPanel||{}; -cG.info = {vix: "1.0.5",vwr: "0.5.0",vpr: "0.1.0"}; +cG.info = {vix: "1.0.6",vwr: "0.5.0",vpr: "0.1.0"}; cG.dis = cG.dis||{}; cG.recyclebin = cG.recyclebin||{}; -cG.queue = cG.queue||[]; +cG.queue = cG.queue||{}; cG.comicID = cG.comicID||window.location.host; cG.prePage = cG.prePage||-1; !function(){ diff --git a/comixngn.min.js b/comixngn.min.js index 85b9b7b..b4a0e78 100644 --- a/comixngn.min.js +++ b/comixngn.min.js @@ -1,7 +1,7 @@ /* - comix-ngn v1.0.5 | (c) 2015 Oluwaseun Ogedengbe| ogewan.github.io/comix-ngn/ |License: MIT| + comix-ngn v1.0.6 | (c) 2015 Oluwaseun Ogedengbe| ogewan.github.io/comix-ngn/ |License: MIT| embeds domReady: github.com/ded/domready (MIT) (c) 2013 Dustin Diaz, pegasus: typicode.github.io/pegasus (MIT) (c) 2014 typicode, pathjs (MIT) (c) 2011 Mike Trpcic, direction.js*/ -var cG=cG||{};cG.N=function(){return 0};void 0===cG.$GPC&&(cG.$GPC=0);cG.root="";cG.cPanel=cG.cPanel||{};cG.info={vix:"1.0.5",vwr:"0.5.0",vpr:"0.1.0"};cG.dis=cG.dis||{};cG.recyclebin=cG.recyclebin||{};cG.queue=cG.queue||[];cG.comicID=cG.comicID||window.location.host;cG.prePage=cG.prePage||-1; +var cG=cG||{};cG.N=function(){return 0};void 0===cG.$GPC&&(cG.$GPC=0);cG.root="";cG.cPanel=cG.cPanel||{};cG.info={vix:"1.0.6",vwr:"0.5.0",vpr:"0.1.0"};cG.dis=cG.dis||{};cG.recyclebin=cG.recyclebin||{};cG.queue=cG.queue||{};cG.comicID=cG.comicID||window.location.host;cG.prePage=cG.prePage||-1; !function(){var a=document.getElementsByTagName("SCRIPT");if(void 0!==a||null!==a){for(var c=0;c=d&&console.log([].concat(c).join(" "))}); if(1!=cG.dis.rollbar){var _rollbarConfig=_rollbarConfig||{accessToken:"3e8e8ecb63a04b5798e1d02adf2608cb",ignoredMessages:["CNG Plug-in:","status:"],captureUncaught:!0,payload:{environment:"development",client:{javascript:{source_map_enabled:!0,code_version:cG.info.vix,guess_uncaught_frames:!0}}}};!function(a){function c(f){if(d[f])return d[f].exports;var h=d[f]={exports:{},id:f,loaded:!1};return a[f].call(h.exports,h,h.exports,c),h.loaded=!0,h.exports}var d={};return c.m=a,c.c=d,c.p="",c(0)}([function(a, diff --git a/diskus.html b/diskus.html new file mode 100644 index 0000000..e729859 --- /dev/null +++ b/diskus.html @@ -0,0 +1,4 @@ +Diskus + +
+
\ No newline at end of file diff --git a/plugins/diskus.cng.js b/plugins/diskus.cng.js index cd6ef59..83cd022 100644 --- a/plugins/diskus.cng.js +++ b/plugins/diskus.cng.js @@ -8,7 +8,8 @@ Order: after comixngn.js if(cG.$GPC === void 0) cG.$GPC = 1;/*Global Plug in count*/ else cG.$GPC++; var slfScr = document.getElementsByTagName("SCRIPT"); - if(void 0!==slfScr||slfScr!==null||void 0!==cG.disqus.shortname||cG.disqus.shortname!==null){ + //console.log(cG.disqus); + if((void 0!==slfScr||slfScr!==null)&&(void 0===cG.disqus.shortname||cG.disqus.shortname===null)){ for(var q = 0;q=0){ cG.disqus = {shortname:slfScr[q]}; @@ -17,7 +18,8 @@ Order: after comixngn.js } return console.error("CNG Plug-in: Diskus requires a disqus_shortname"); } - domReady(function(){/*runs once the DOM is ready*/ + var ready = function(){/*runs once the DOM is ready*/ + //console.log("diskus ready running"); var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + cG.disqus.shortname + '.disqus.com/embed.js'; @@ -25,9 +27,9 @@ Order: after comixngn.js //cG.disqus.disqus_identifier = ''; //cG.disqus.disqus_title = ''; //cG.disqus.disqus_url = ''; - cG.disqus.reset = function(a,b){ - }; - if(cG.queue.stageChange!==void 0) cG.queue.stageChange.push(function(a,c){ + cG.queue=cG.queue||{}; + cG.queue.stageChange=cG.queue.stageChange||[]; + cG.queue.stageChange.push(function(a,c){ if(c){ } @@ -47,7 +49,9 @@ Order: after comixngn.js /*cG.queue=cG.queue||[]; cG.queue.stageInjection=cG.queue.stageInjection||[]; cG.queue.stageInjection.push("disqus");*/ - }); + } + window.addEventListener?window.addEventListener("load",ready,!1):window.attachEvent?window.attachEvent("onload",ready):window.onload=ready; + ready(); } else console.error("CNG Plug-in: Diskus must be loaded after comixngn.js"); /*If you can, minify the plug-in.