Winter Bills: 6 Things You Should Use Less to Lower
6 Things You Should Use Less to Lower Your Winter Bills <img height="1" width="1" alt="" src="https://ct.pinterest.com/v3/?event=init&tid=2613868169729&pd[em]=&noscript=1″ /> { o.unobserve(e.target); if (e.intersectionRatio > 0) { ex();o.disconnect();}else{ i++;if(fb.length>i){o.observe(fb[i])}} }) }); if (fb.length) { o.observe(fb[i]) } } })]]> { let email = localStorage.getItem(‘userEmail’); return email; }; //////////// const setWidget = (data) => { let qs = ”; const Notifications = data.filter((item) => { return item.category === ‘Notifications’; }); Notifications.forEach((element) => { try { kw_push_notification(element); } catch (e) { console.log(e); } }); data.forEach((element) => { console.log(element); try { let funcname = window[element.anchorFunction]; try { funcname(element); } catch (e) { console.log(e); } } catch (error) { return error; } }); }; const body = document.getElementsByTagName(‘body’)[0]; const head = document.getElementsByTagName(‘head’)[0]; const stylecdn = `https://qacdn.kapitalwise.com/v1.0/kw_widget.css`; const fontawsomecdn = “https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.0/css/all.min.css” let styleLink = document.createElement(‘link’); let styleLink2 = document.createElement(‘link’); styleLink.rel = ‘stylesheet’; styleLink.href = stylecdn; styleLink2.rel = ‘stylesheet’; styleLink2.href = fontawsomecdn; head.appendChild(styleLink); head.appendChild(styleLink2); function isDesktop() { const userAgent = navigator.userAgent.toLowerCase(); const isMobile = /mobile|android|iphone|ipad|tablet/.test(userAgent); return !isMobile; } console.log(“My device is Desktop => “, isDesktop()); window.kw_widget = (config) => { // console.log(“Config Properties => dispActive:”, config.dispActive); if (typeof (config.dispActive) == “undefined”) { config.dispActive = “true”; } if (isDesktop()) { config.dispActive = “true”; } if (config.type == ‘sidebar’) { config.anchorFunction = ‘__kw_widget_2’ } else { config.anchorFunction = ‘__kw_widget’ } let dep = document.createElement(“script”); dep.src = “https://cdnjs.cloudflare.com/ajax/libs/ClientJS/0.2.0/client.min.js”; dep.type = “text/javascript”; dep.async = false; dep.defer = false; document.getElementsByTagName(“head”)[0].appendChild(dep); dep.addEventListener(“load”, () => { //Function to insert notifications window.removeNotification = (id) => { let notification_bar = document.getElementById(id); notification_bar.remove(notification_bar); } window.kw_push_notification = (notificationObj) => { let appendDiv = document.getElementById(‘kw_notification_bar_container’) let notification_bar = document.createElement(‘div’); notification_bar.classList.add(‘kw_notification_bar’); notification_bar.id = notificationObj.id; notification_bar.innerHTML = `
${notificationObj.message} `; appendDiv.prepend(notification_bar); } //Funtion to insert Widget window.removeBubbleMessage = (e) => { e.stopPropagation(); let widgetdiv = document.getElementsByClassName(‘widget__message-bubble’)[0]; widgetdiv.remove(widgetdiv); } window.__kw_widget_2 = (obj) => { //window.addEventListener(‘load’, () => { const body = document.getElementsByTagName(‘body’)[0]; const head = document.getElementsByTagName(‘head’)[0]; let widgetdiv = document.createElement(‘div’); widgetdiv.id = ‘kw_widget_2’; widgetdiv.innerHTML = ` ${obj.name}
${obj.name}
a’, function(e) { e.preventDefault(); $(this).parent().children(‘.sub-menu’).slideToggle(); }) })(jQuery);]]> { const lazyloadBackgrounds = document.querySelectorAll( `.e-con.e-parent:not(.e-lazyloaded)` ); const lazyloadBackgroundObserver = new IntersectionObserver( ( entries ) => { entries.forEach( ( entry ) => { if ( entry.isIntersecting ) { let lazyloadBackground = entry.target; if( lazyloadBackground ) { lazyloadBackground.classList.add( ‘e-lazyloaded’ ); } lazyloadBackgroundObserver.unobserve( entry.target ); } }); }, { rootMargin: ‘200px 0px 200px 0px’ } ); lazyloadBackgrounds.forEach( ( lazyloadBackground ) => { lazyloadBackgroundObserver.observe( lazyloadBackground ); } ); }; const events = [ ‘DOMContentLoaded’, ‘elementor/lazyload/observe’, ]; events.forEach( ( event ) => { document.addEventListener( event, lazyloadRunObserver ); } );]]> *:empty’).remove(); jQuery(window).scroll(function() { var scrolled = jQuery(window).scrollTop(); var content_pos = jQuery(‘.entry-content’).offset().top; if (scrolled >= content_pos) { jQuery(‘.custom-share’).addClass(‘cfixed’); } else { jQuery(‘.custom-share’).removeClass(‘cfixed’); } }); // jQuery(‘.ym__slider’).slick({ // slidesToShow: 4, // variableWidth: true, // slidesToScroll: 1, // autoplay: true, // autoplaySpeed: 3000, // pauseOnHover: false, // arrows: false, // dots: false // }) }); var done = false; var getting_comments = false; jQuery(window).scroll(function() { console.log(150308); if (jQuery(window).scrollTop() + jQuery(window).height() > jQuery(document).height() – 300 && !done && !getting_comments) { //alert(“Near bottom!”); getting_comments = true; jQuery(‘.ccomments’).append(‘Loading comments…’); jQuery.ajax({ url: ‘https://www.savingadvice.com/wp-admin/admin-ajax.php’, data: { ‘action’: ‘genesis_do_comments2′, //’page’: page, ‘post_id’: 150308 }, success: function(data) { // This outputs the result of the ajax request console.log(‘new data’, data); //const comments = JSON.parse(data); jQuery(‘.ccomments .comment-list’).append(data) // console.log(‘comments’, comments); // comments.map((c, index) => { // jQuery(‘.ccomments ol’).append(renderComment(c, 1)) // const child_comments = Object.entries(c?.child_comments); // if (child_comments.length > 0) { // console.log(‘comment has children’, `cc-${c?.comment_ID}`); // jQuery(`.cc-${c?.comment_ID}`).append(‘
- ‘); // child_comments.map((child, childIndex) => { // jQuery(`.cc-${c?.comment_ID} .children`).append(renderComment(child[1], 2)); // }) // } // }) // page++; // fetching = false; done = true; getting_comments = false; jQuery(‘.comments-loader’).remove(); }, error: function(errorThrown) { console.log(errorThrown); getting_comments = false; jQuery(‘.comments-loader’).remove(); } }); } }); /** * Youtube embed formatter */ function render_yt_html(video_id) { return `Loading Video`; } function render_yt_iframe(video_id) { return “ } //load html jQuery(‘amp-youtube’).each(function(){ //thumbnail URL API: https://img.youtube.com/vi//0.jpg const ytvid = jQuery(this) const video_id = ytvid.attr(‘data-videoid’) ytvid.after(render_yt_html(video_id)).remove(); }) //load iframe setTimeout(function() { jQuery(‘.vid-embed’).each(function(){ //thumbnail URL API: https://img.youtube.com/vi//0.jpg const ytvid = jQuery(this) const video_id = ytvid.attr(‘data-videoid’) ytvid.append(render_yt_iframe(video_id)) }) }, 15000);]]>