|
“).cliquez(fonction () { $(“lien[rel=canonical]”).attr(“href”, ‘https://ashdodnet.com’ + pageUrl); item.removeClass(“post-overflow”); $(this).find(“.read-more”).hide( ); essayez { ga(‘myTracker.send’, ‘pageview’, pageUrl); } catch (e) { } }); essayez { setNextLink(); } catch (e) { } try { setArticleImageTitle(); } catch (e) { } essayez { FB.XFBML.parse($(“.facebook_container:last”)[0]); } catch (e) { } try { if ($(“.post_container:last .PictureSwitchList”).length > 0) { SetPictureSwitchSheduled2($(“.post_container:last .PictureSwitchList”), -1); } } catch (e) { } try { if ($(“.galleria”).length > 0) Galleria.run(‘.galleria:last’); } catch (e) { } try { LoadLazyScripts(); } catch (e) { } // FB.XFBML.parse(); //alerte($(“fb:comments:dernier”)[0]); // alerte(); // _gaq.push([‘_trackPageview’, pageUrl]); // OBR.extern.researchWidget(); // $(“.sticky”).stick_in_parent() // alerte(”); // CreateShare($(arrayOfNewElems).find(“.share”)); essayez {OBR.extern.researchWidget(); } attraper (e) { } } }); } }); //charger la fonction de script du compteur loadCounterDetails() { var ElectionDate = new Date(2018, 9, 30, 10, 07, 00); var countObj = calculateDays(Math.abs(new Date() – ElectionDate)); console.log(countObj.hours); console.log(countObj.days); for (var i = 0, len = countObj.days.toString().length; i 0) $(“.counter-days”).append(“
” + countObj.days.toString().charAt(i) + “
“) } for (var i = 0, len = countObj.hours.toString().length; i 0) $(“.counter-hours”).append(“
” + countObj.hours.toString().charAt(i) + “
“) } } function calculateDays