The Greatest in Science Information and Superb Breakthroughs

0) || (navigator.msMaxTouchPoints > 0)); } jQuery(doc).prepared(operate($) { /*Proper column advertisements*/ $(“.right-column-ads”).top($( doc ).top()); var right_ads_num=$(‘.right_ads_num’).val(); $(‘[class^=”sticky_right_ads_wrapper”]’).top($(“.right-column-ads”).top()/right_ads_num); new $.Zebra_Pin($(‘#sticky_right_ads1’), {include: true}); new $.Zebra_Pin($(‘#sticky_right_ads2’), {include: true}); new $.Zebra_Pin($(‘#sticky_right_ads3′), {}); /* Begin HP 28/01/2017 */ var swidth = $(window).width(); if (swidth > 1091) swidth = 0.5*swidth; var sheight = $(window).top(); $(“#search_dialog”).dialog({ width:swidth, top:sheight, autoOpen: false, modal: true, dialogClass:’titlebar-dialog’, shut:operate(){ $(‘physique’).removeClass(‘stop-scrolling’); } }); $(‘.searchbutton’).on(“click on”, operate () { $(“.nav-text-dropdown”).cover(); //HP 28//08/2018 cover menu when looking $(“.nav-dropdown”).cover(); $(“#search_dialog” ).dialog(‘open’); $(“.ui-dialog-titlebar”).present(); $(‘physique’).addClass(‘stop-scrolling’); }); /* finish HP 28/01/2017 */ $(“#dialog”).dialog({ autoOpen: false, modal: true, buttons: { Shut: operate() { $( this ).dialog( “shut” ); } } }); $(“.load-more”).click on(operate() { if ($(‘.loadmore_icon:accommodates(“LOAD MORE”)’).size > 0) //HP 23 April 2017 loadMoreContent(); }); $(‘.addthis_sharing_toolbox’).click on(operate() { $(“#dialog”).dialog(‘shut’); }); $(‘.count-and-like’).click on(operate() { var shareurl=$(this).discover(‘.shareurl’).val(); var title=$(this).discover(‘#article_title’).val(); $(‘#dialog’).discover(‘#dialog_title’).html(title); $(‘#dialog’).discover(‘.addthis_sharing_toolbox’).attr(‘data-url’,shareurl); $(‘#dialog’).discover(‘.addthis_sharing_toolbox’).attr(‘data-title’,title); window.addthis.replace(‘share’, ‘url’, shareurl); window.addthis.replace(‘share’, ‘title’, title); $(“#dialog” ).dialog(‘open’); $(“.ui-dialog-titlebar”).cover(); }); operate loadMoreContent() { var begin=$(‘.listlayout:final’).discover(‘.articlestart:final’).val(); if (begin == null) return; //HP 12/03/2019 $(‘.loadmore_icon’).html(‘  LOADING …]]>’); var currentsection=$(‘.currentsection:final’).val(); var cat_title=$(‘.cat_title’).val(); var loadurl= “index.php?choice=com_sciencealertfrontpage&view=latestarticles&begin=”+begin+”&cat_title=”+cat_title+”&tmpl=part”; var perpetual = getQueryVariable(‘perpetual’); if (perpetual == ‘sure’) loadurl+=”&perpetual=sure&limitstart=1″; operate getQueryVariable(variable) { var question = window.location.search.substring(1) var vars = question.cut up(“&”); for (var i=0;i  LOAD MORE

Source

Leave a Reply

Your email address will not be published. Required fields are marked *