|
if(glue.device.type =="pc")document.write(''); if(glue.device.type =="mobile")document.write(''); if(glue.device.type =="pad")document.write(''); requirejs.config({ paths: "jquery#1.8.1": "", "artTemplate#3.0.3" : "", "cookie_global#1.0.2" : "", "F#1.2.0": "", waitSeconds: 20, shim: {} }); require(['jquery#1.8.1'],當舖, function($) $.noConflict(true);); if (glue.device.type == "pad") { requirejs.config({ paths:"news_F_comment#1.1.5" : "", waitSeconds: 20,shim: {} }); } else if (glue.device.type == "mobile") { requirejs.config({ paths: "news_F_comment#1.1.5" : "", waitSeconds: 20, shim: {} }); } else if (glue.device.type == "pc") { requirejs.config({ paths: "news_F_comment#1.1.5" : "", waitSeconds: 20, shim: {} }); } if (device.type === "pc") { creatTasker('auto', ["F"], function(F) { var top = F.offset(F.query("#cmtBox")).top - F.height(window); var commentLoad = false; var commentIt = function() { commentLoad = true; require(['news_F_comment#1.1.5',高雄機車借款, 'detail'],中古沖床, function(cmt, detail) { var data = 'docUrl':detail.commentUrl, 'pcUrl':detail.docUrl, 'docTitle': detail.docName, 'speUrl': detail.speUrl new cmt(glue).create('js_cmtContainer',台北市當舖, data); }); } if (F.scrollTop(window) > top) commentIt(); else { F.on(window, "scroll", function() { if (commentLoad === false) { top = F.offset(F.query("#cmtBox")).top - F.height(window); if (F.scrollTop(window) > top) commentIt(); } }); } },家事清潔, "next", "延遲加載評論-PC"); } else { creatTasker('auto', ["FM"], function(F) { var top = F.one("cmtBox").getBoundingClientRect().top + document.body.scrollTop - window.innerHeight; var commentLoad = false; var commentIt = function() { commentLoad = true; |
|