Popular in Mizuno+Boots
Latest
-1) { img_url = /href='http://www.expopakistan.gov.pk/?([^']+)'/.exec(lines[i])[1]; temp_info[this.href] = img_url; //console.log(img_url); } } img_url = img_url.replace(/\/s[0-9]+\//, "/w200-h103-c/"); $(".inpost-link#" + index + " img").attr("src", img_url); if (post_title != "") { $(".inpost-link#" + index + " span").html(post_title); } }); } } } }); } //automatic header bar if(document.URL.indexOf(".html") > -1 | document.URL.indexOf("post-preview") > -1) { var tabs = $(".link-anchor-2"); //header bar currently not present if ($(".headerbar-2-container").not("#tabs").length == 0 && tabs.length > 0) { $(".headerbar-2-container").remove(); $(".nav-message-container").remove(); var headerbar_html = ''; $("#headerbar").after(headerbar_html + ''); addClass(document.body, "nav2-shown"); HideBarInApp(); } } //toggle class headerbar-2 $("#Header1").on("click", ".headerbar-2 > li > a", function () { $(".headerbar-2 > li > a").removeClass("highlight"); $(this).addClass("highlight"); }); if (document.getElementById("blog-pager") != null && $("#blog-pager").html().length < 10) { $("#blog-pager").remove(); } //load normal site if device isn't mobile //is mobile? (function(a){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera); if(document.URL.indexOf("m=1") >= 0){ if(!jQuery.browser.mobile) { var url = document.URL.replace("?m=1", "").replace("&m=1", "") window.location.replace(url); } } // fix paddings in KIt Overview if (document.URL.indexOf("kit-overview") > -1 && document.URL.indexOf("app=1") > -1) { $(".link-anchor-2").css("padding-top", "40px"); } function isAndroid () { return (navigator.userAgent.toLowerCase().indexOf("android") > -1); } nativeAds = [ /* { title: "Shop Now: Official Retro Apparel", image: [ "https://2.bp.blogspot.com/-1qDp8Wiww7U/W2CK9Lf2aDI/AAAAAAABpxs/xgoF_yOHBg80z-VK_k5OKYyECWMWjayBwCLcBGAs/s1600/all2.jpg", "https://3.bp.blogspot.com/-IysPT6Cmhto/W2CK9Kyu0oI/AAAAAAABpxo/nQrjmzERhZsHCzmSyfU5QignjvptAIN1QCLcBGAs/s1600/all.jpg", "https://3.bp.blogspot.com/-IysPT6Cmhto/W2CK9Kyu0oI/AAAAAAABpxo/nQrjmzERhZsHCzmSyfU5QignjvptAIN1QCLcBGAs/s1600/all.jpg" ], link: "https://www.awin1.com/cread.php?awinmid=11312&awinaffid=178859&clickref=&p=https%3A%2F%2Fwww.3retro.com%2F", content: "", origin: "3Retro" }, { title: "Shop Now: Official Chelsea Retro Apparel", image: "https://4.bp.blogspot.com/-mQvSs4OubQA/W2CK8-poipI/AAAAAAABpxk/_i4fyBYSceYbdlDgU5BQ4PDSsfFK8f3_ACLcBGAs/s1600/chelsea.jpg", link: "https://www.awin1.com/cread.php?awinmid=11312&awinaffid=178859&clickref=&p=https%3A%2F%2Fwww.3retro.com%2Fteam%2Fchelsea%2Fchelsea", content: "", origin: "3Retro" }, { title: "Shop Now: Official Juventus Retro Apparel", image: "https://3.bp.blogspot.com/-D4ikIQkycJ0/W2CK9s8uxiI/AAAAAAABpxw/LAdhLZyHyC8Lh2zvs8xv8wURIvwhjr4bACLcBGAs/s1600/juventus.jpg", link: "https://www.awin1.com/cread.php?awinmid=11312&awinaffid=178859&clickref=&p=https%3A%2F%2Fwww.3retro.com%2Fteam%2Fjuventus%2Fjuventus", content: "", origin: "3Retro" }, { title: "Shop Now: Official Liverpool Retro Apparel", image: "https://2.bp.blogspot.com/-jseKi3Wyle8/W2CK-P8tG9I/AAAAAAABpx0/V0OS5WuFyfgS5K5PQRMRpxvFywKJ1RmugCLcBGAs/s1600/liverpool.jpg", link: "https://www.awin1.com/cread.php?awinmid=11312&awinaffid=178859&clickref=&p=https%3A%2F%2Fwww.3retro.com%2Fteam%2Fliverpool%2Fliverpool%3Fsubid%3D67%26sizeid%3D%26attid%3D%26bid%3D%26colrid%3D%26minprice%3D18.00%26maxprice%3D40.00%26sortby%3Doffer%26list%3D5", content: "", origin: "3Retro" },/* { title: "Pro Boot Sale: Up to 70% Off - Lovell Soccer", image: "https://2.bp.blogspot.com/-6Jrld3no3LU/W09qEs8bszI/AAAAAAABoXo/VIW3OFdfWdQ7Mq2c6Tk0-aIPXdi8wAntwCLcBGAs/s1600/FootyHeadlines-Ad.jpg", link: "https://www.awin1.com/cread.php?awinmid=2518&awinaffid=313937&clickref=native_1607&p=https%3A%2F%2Fwww.lovellsoccer.co.uk%2Fshop%2Fcollection%2Fadidas-pro-boot-sale", content: "", origin: "Lovell Soccer", end_time: "2018-01-01", weight: 40 },/* { title: "Shop Now: Airo Sportswear World Cup Kits", image: [ "https://2.bp.blogspot.com/-p1vbicIbc08/WyPz_uH6U_I/AAAAAAABkZI/gAMT5dAdWF84_mhHOShdXPKTHtNGeZ0pgCLcBGAs/s738/2018-world-cup-concept-kits-airo-sportswear-1.jpg", "https://4.bp.blogspot.com/-YfrgCeNP5vc/WyPz_rF5FlI/AAAAAAABkZE/Ocvjnu1Uo8wi0MY8R5vbak91I9ri7__fQCLcBGAs/s1600/2018-world-cup-concept-kits-airo-sportswear-2.jpg", "https://3.bp.blogspot.com/-eTb6OkbMeVY/WyP0AG8pzII/AAAAAAABkZQ/PtSUgqq2HyAgyKXYAiQq8kZ4dBa34u1rQCLcBGAs/s1600/2018-world-cup-concept-kits-airo-sportswear-3.jpg", "https://1.bp.blogspot.com/-fJZgS7YdZ_w/WyP0Ai3CqCI/AAAAAAABkZU/T8XE6czwywgRogdkUnyFn2gNfml4E3r_QCLcBGAs/s1600/2018-world-cup-concept-kits-airo-sportswear-4.jpg", "https://1.bp.blogspot.com/-V33q7t7G0y8/WyP0AoMFGNI/AAAAAAABkZY/j5mfMIAE9t8n3QGeaaFhAlPWYs0g690kwCLcBGAs/s1600/2018-world-cup-concept-kits-airo-sportswear-5.jpg", "https://2.bp.blogspot.com/-06jzoLWEj6k/WyP0A_1RozI/AAAAAAABkZc/ZU3dJ9G3v344TNwObW97lT58IZTnsZTuQCLcBGAs/s1600/2018-world-cup-concept-kits-airo-sportswear-6.jpg", "https://4.bp.blogspot.com/-EbMGAFircbg/WyP0BIksQjI/AAAAAAABkZg/5dIcwEOG-ksB85UFsSz59NyUq0AP-_W0ACLcBGAs/s1600/2018-world-cup-concept-kits-airo-sportswear-7.jpg", "https://4.bp.blogspot.com/-H9bbKlDOP00/WyP0BH6mBfI/AAAAAAABkZk/CgQk_7AfTcYsMjE3MBEw66I9mkD7g5i9QCLcBGAs/s1600/2018-world-cup-concept-kits-airo-sportswear-8.jpg", "https://1.bp.blogspot.com/-r3dfGi2koJU/WyP0BWjxyrI/AAAAAAABkZo/F0WosoinWtACuahf7NGs6W1J_HgQz4d9QCLcBGAs/s1600/2018-world-cup-concept-kits-airo-sportswear-9.jpg", "https://2.bp.blogspot.com/-qCsbA0-C9pM/WyPz_tpEGAI/AAAAAAABkZM/hVcXFE8SHCkbQmfpCwczfAzHNJKCxHp3QCLcBGAs/s1600/2018-world-cup-concept-kits-airo-sportswear-10.jpg" ], link: "https://goo.gl/JiT94o", content: "Stunning Home & Away World Cup concept kits for all 32 teams available to buy now!", origin: "Airo Sportswear", start_time: "2018-06-16T07:10:00+02:00", end_time: "2018-07-01" weight: 15 }, { title: "Shop Now: World Cup Kits - Classics and New - Extra 10% Off with FH10", image: "https://1.bp.blogspot.com/-WTiMtEqj5yM/Wx_YLEXAOrI/AAAAAAABkR0/1a1aOhv8uqYIytBzi4qsvlhZjNxzeoQ_gCLcBGAs/s1600/cfs-world-cup.jpg", link: "http://www.pjatr.com/t/TUJGRkxHTEJGS0lKSElCRktHTEVL?sid=&url=https%3A%2F%2Fwww.classicfootballshirts.co.uk%2Fworldcup", content: "Use FH10 for an additional 10 percent off!", origin: "Classic Football Shirts", weight: 10 },*/ { title: "Nike Always Forward: In Stock Now", image: "https://2.bp.blogspot.com/-0_HPfFHEK2Q/W8cVevmwfMI/AAAAAAABt_Y/5mELD_fCJeQWpsm3cS3dTEp0M9gW55QVwCLcBGAs/s1600/nike-always-forward-boots-pack%2B%25282%2529.jpg", link: "https://redirect.viglink.com/?key=038abcf27f3cdca239ba4d5c9dc1e816&u=https%3A%2F%2Fstore.nike.com%2Fgb%2Fen_gb%2Fpw%2Fmens-football-shoes%2F7puZ896Zoi3", content: "Get it here first!", origin: "Nike", end_time: "2018-10-25T10:00:00+01:00", weight: 15 }, { title: "Shop Now: Barcelona 18-19 Jersey", image: "https://2.bp.blogspot.com/-ePBGoYSKThY/W8nWayNhPVI/AAAAAAABtTQ/tKEGMo9tcLIFk7wZOhj-z_X7u_0PW1AUwCLcBGAs/s1600/barcelona-18-19-pre-match-shirt-2.jpg", link: "http://www.pntrac.com/t/TUJGRU5MR0JGS0lKSElCRklGRUpJ?sid=native&url=https%3A%2F%2Fwww.soccer.com%2Fsearch%3Fquery%3Dbarcelona%2520pre%2520match", content: "Get the new Barcelona 18-19 Pre-match shirt, inspired by the club's Catalan roots.", origin: "Soccer.com", end_time: "2018-10-25T10:00:00+01:00", weight: 15, country: "US" }, { title: "Finally Available: Revolutionary Nike Squad Snood", image: [ "https://4.bp.blogspot.com/-Ee_Gbq8a-c4/W8jVLtIGM2I/AAAAAAABtR0/weuVyirrlfUBewfuqRJ7VCOY8mMhufEjwCLcBGAs/s1600/clothing-bb-en-update.jpg", "https://2.bp.blogspot.com/-9LdyU2tNB5Y/W8dJoLug7pI/AAAAAAABuAk/GHruUouYVyIeNEtCwcm7V24peIWgpFfIQCLcBGAs/s0/nike-snood%2B%25281%2529.jpg", "https://2.bp.blogspot.com/-9LdyU2tNB5Y/W8dJoLug7pI/AAAAAAABuAk/GHruUouYVyIeNEtCwcm7V24peIWgpFfIQCLcBGAs/s0/nike-snood%2B%25281%2529.jpg" ], link: "https://redirect.viglink.com/?key=038abcf27f3cdca239ba4d5c9dc1e816&u=https%3A%2F%2Fwww.nike.com%2Fgb%2Ft%2Fsquad-football-snood-PgPhpp%2FAQ8233-011", content: "Own the elements. Be the first to get it.", origin: "Nike", end_time: "2018-10-25T10:00:00+01:00", weight: 25 }, { title: "Shop Now: Spanish Clearance - Extra 10% Off with FH10", image: "https://4.bp.blogspot.com/-KvomJExZwwQ/W1beAXCVMaI/AAAAAAABo28/eWv0BGA83M8iXvXML50WgqRYu9el0zaygCLcBGAs/s1600/spanish-clubs.jpg", link: "https://www.classicfootballshirts.co.uk/best-of-spanish-clearance.html?ref=footyheadlines&clickref=fh_native", content: "Use FH10 for an additional 10 percent off!", origin: "Classic Football Shirts", weight: 5, start_time: "2018-08-27T23:30:00+01:00" }, { title: "Shop Now: Premier League - Extra 10% Off with FH10", image: "https://1.bp.blogspot.com/-5bzjgEor450/W1bfhLyk6NI/AAAAAAABo3Q/J0Sfhjpg7I8KJp7nuKmEO5L10Cn8_bPowCLcBGAs/s1600/Untitled-1.gif", link: "https://www.classicfootballshirts.co.uk/premiership-clubs.html?prodcat=289&ref=footyheadlines&clickref=fh_native", content: "Use FH10 for an additional 10 percent off!", origin: "Classic Football Shirts", weight: 8, start_time: "2018-08-27T23:30:00+01:00" }, { title: "Shop Now: Manchester City Player Issue - Extra 10% Off with FH10", image: "https://3.bp.blogspot.com/-P6F6abVLLRU/W1beod5tGTI/AAAAAAABo3E/3f8TmQDFDHMVfQFeq8piwy0FuSWTO6ZFQCLcBGAs/s1600/city-player-issue.jpg", link: "https://www.classicfootballshirts.co.uk/nsearch/?q=manchester%20city%20player%20issue&ref=footyheadlines&clickref=fh_native", content: "Use FH10 for an additional 10 percent off!", origin: "Classic Football Shirts", weight: 2, start_time: "2018-08-27T23:30:00+01:00" }, { title: "Shop Now: Borussia Dortmund Player Issue", image: "https://4.bp.blogspot.com/-zyUuuwkLHp8/W36NF9984wI/AAAAAAABq9Y/006d004E9Ak96RW62N_y5AGjtVg1vdI6QCLcBGAs/s1600/dortmund-pi.jpg", link: "https://www.classicfootballshirts.co.uk/european-clubs/german-clubs/dortmundkitroom.html?ref=footyheadlines&clickref=fh_native", content: "",/*Use FH10 for an additional 10 percent off!",*/ origin: "Classic Football Shirts", weight: 2 }, { title: "Boot Calendar - All Leaked and Released Football Boots", image: [ "https://4.bp.blogspot.com/-XBpM2rRP3qU/W1bW9tbP2qI/AAAAAAABo2w/bbQbKV67vDAK7Lo-Kp2kVMj2-VhaFo4CACLcBGAs/s1600/boot-cal.jpg", "https://1.bp.blogspot.com/-0wwuTMtpSYM/W1N5DUzIdhI/AAAAAAABosA/8l-wcaQWuuYzNZheqCqKwO72OQc458hJACLcBGAs/s1600/og-adidas-predator-accelerator-boots-2.jpg", "https://4.bp.blogspot.com/-z_G7sq9OIQ0/W1L3J-z9I1I/AAAAAAABomI/GJ5noUnDkFoy99P8JE91NFQiTQxd-EjGgCLcBGAs/s1600/nike-phantom-venom-2019-boots-orange-black-2.jpg", "https://4.bp.blogspot.com/-rz3vYe5LRuo/W1NMDGhBFzI/AAAAAAABorE/suIQ9F0eu4o-P2bYmVXYrf7lLTW8DObIQCLcBGAs/s1600/adidas-team-mode-pack-51.jpg", "https://4.bp.blogspot.com/-fU6rLqAhvF0/W1NKrADk4RI/AAAAAAABop0/G4jV6AplDEUR_wKix6MDSKzD2YhAJHdTgCLcBGAs/s1600/adidas-team-mode-pack-33.jpg" ], link: "http://www.expopakistan.gov.pk/?2018/05/boot-calendar.html", content: "Welcome to the brand-new Wpsoccer Boot Calendar. In order to give you an even better overview over the upcoming football boot leaks and releases, we've completely revamped the Boot Calendar. We hope you like it! Check out some of the latest updates below:", origin: "Wpsoccer", weight: 1 }, { title: "2019-20 Kit Overview: All 19-20 Kit Leaks and Info", image: "https://3.bp.blogspot.com/-RM4Z3afphb8/W7eN3m-XcnI/AAAAAAABs2o/mZrq4F_rsrAlUx90OjS_7Z1Z3-LZKCSiwCLcBGAs/s1600/19-20-kit-overview.jpg", link: "http://www.expopakistan.gov.pk/?2018/10/2019-20-kit-overview-all-19-20-kit-leaks-info.html", content: "Over the past few weeks, the first details on next season's kits have surfaced. Although it's admittedly quite early, we've decided to open our famed Kit Overview for the 2019-20 campaign.", origin: "Wpsoccer", weight: 3 }, { title: "Shop: Official Admiral England 76 & 82 Range", end_time: "2018-04-21T11:23:00+02:00", alwaysBig: true, origin: "3retro", link: "https://goo.gl/ovkZBu", content: "Shop the legendary Admiral England range and much more exclusively at 3retro.", image: "https://1.bp.blogspot.com/-2hhAt7_jdZw/WtRpsKdvGvI/AAAAAAABf58/UL6z7fjWPc8ZZYipVh7Fiqe878IGC_dwQCLcBGAs/s1600/3retro-1.jpg" },/* { title: "Shop Now: Barcelona 18-19 Home Kit", content: "Shop the brand-new FC Barcelona 2018-19 Home kit, debuted in Iniesta's last-ever match for the club.", origin: "Kitbag", link: "https://www.awin1.com/cread.php?awinmid=686&awinaffid=178859&clickref=fh_native_barcelona1819&p=http%3A%2F%2Fwww.kitbag.com%2Fstores%2Fkitbag%2Fen%2Fc%2Ffootball%2Ffootball-kits%2Feuropean-clubs%2Fla-liga-%28spain%29%2Fbarcelona", weight: 3, image: [ "https://2.bp.blogspot.com/-f00opZ1fPS8/Wv_7znMkCfI/AAAAAAABiKE/018LInASBokain_Ed8TNmzJENTGediPMwCLcBGAs/s1600/barcelona-18-19-home-kit-1.jpg", "https://3.bp.blogspot.com/-kI_RzRECaxY/Wv_7zbrj3sI/AAAAAAABiJ8/Rm6R1BNBFGg-eC4WqyKNGOQ-DftLw5jTwCLcBGAs/s1600/barcelona-18-19-home-kit-2.jpg", "https://2.bp.blogspot.com/-dmd7rP568tc/Wv_7zrfA6mI/AAAAAAABiKA/3FpbqEfTjCIDMGrMN6MFluTUAy71U0CWACLcBGAs/s1600/barcelona-18-19-home-kit-3.jpg" ] }, { title: "Shop Now: Manchester United 18-19 Third Kit", content: "Shop the brand-new Manchester United 2018-19 Third kit, inspired by the club's first European Cup win 50 years ago.", origin: "Kitbag", link: "https://www.awin1.com/cread.php?awinmid=686&awinaffid=178859&clickref=fh_native_united1819third&p=http%3A%2F%2Fwww.kitbag.com%2Fstores%2Fkitbag%2Fen%2Fc%2Ffootball%2Ffootball-kits%2Fpremier-league%2Fmanchester-united", weight: 3, image: [ "https://1.bp.blogspot.com/-sfiN0uM57pc/WvVUNDCWwCI/AAAAAAABhfQ/6YSg4C5R0M8iTeOKPcflO-apk462xMjhQCLcBGAs/s1600/manchester-untied-18-19-third-kit-1.jpg", "https://2.bp.blogspot.com/-syLruM2uETk/WwK5Nj7GXmI/AAAAAAABiR8/t-pAIXk-_RgPuTvEkdvxw7zVGkxA8dm_wCLcBGAs/s1600/united-third.jpg" ] }, { title: "Shop Now: 2018 World Cup Kit Collection", content: "Shop official kits for 30 World Cup teams incuding Argentina, Brazil, France, Germany, Portugal and Spain.", origin: "Kitbag", link: "https://www.awin1.com/cread.php?awinmid=686&awinaffid=178859&clickref=fh_native_worldcup&p=http%3A%2F%2Fwww.kitbag.com%2Fstores%2Fkitbag%2Fen%2Fc%2Ffootball%2Fworld-cup-2018", weight: 5, image: "https://1.bp.blogspot.com/-vcbxQT3QgOA/WwK8TBT1ccI/AAAAAAABiSI/JX9FvCrsEKg03XlpjaWBqdRjSO83xQXSwCLcBGAs/s1600/world-cup.jpg" },*/ /* { title: "Diego Simeone: “Messi is undoubtedly the best player in the world”", weight: 4, origin: "The Coaches' Voice", link: "https://goo.gl/3qXxwz", content: "Argentina legend Diego Simeone talks exclusively to The Coaches' Voice about national pride, the World Cup and, of course, Lionel Messi.", image: "https://4.bp.blogspot.com/-4gXtWS9SMuk/WyeH98YU4rI/AAAAAAABkjA/INND6iyw2SwZ34G-7A6ds3sCCttVQxiawCLcBGAs/s1600/Featured-16.jpg" }, { title: "Scouting report: SERBIA", origin: "The Coaches' Voice", link: "https://bit.ly/2sZASOi", content: "The Coaches’ Voice team offer in-depth analysis of leading nations ahead of the World Cup here", image: "https://1.bp.blogspot.com/-cCx6l_0oMsY/Wx6Cmpwd57I/AAAAAAABkLw/8rhleveS9dgEa6c8vVnakMn_doG8hIx2gCLcBGAs/s1600/SERBIA.jpg" }, { title: "Scouting report: CROATIA", origin: "The Coaches' Voice", link: "https://bit.ly/2y42wzA", content: "The Coaches’ Voice team offer in-depth analysis of leading nations ahead of the World Cup here", image: "https://1.bp.blogspot.com/-YtzC4J7A7bA/Wx6ClqlEDVI/AAAAAAABkLg/f66gX3mdM08s-Hlq8hy2WIUTsikGSN0IACLcBGAs/s1600/CROATIA.jpg" }, { title: "Scouting report: GERMANY", weight: 2, origin: "The Coaches' Voice", link: "https://bit.ly/2MgBXdz", content: "The Coaches’ Voice team offer in-depth analysis of leading nations ahead of the World Cup here", image: "https://4.bp.blogspot.com/-CqTZVzSs2mI/Wx6Cmd7h9pI/AAAAAAABkLs/qGZ4XMuv0MMdLHa8b489pbgA9rvgo_FWwCLcBGAs/s1600/GERMANY.jpg" }, { title: "England Coach Gareth Southgate Talks Tactics", weight: 2, origin: "The Coaches' Voice", link: "https://goo.gl/tkwy7j", content: "Watch England coach Gareth Southgate talk tactics here", image: "https://4.bp.blogspot.com/-SjRa-TqsJMk/WyJXlE5e0jI/AAAAAAABkVg/2sTh1PSYODwkdA8QmCzUTo9AALJn2p30QCLcBGAs/s1600/Southgate.jpg" }, { title: "Scouting report: ENGLAND", weight: 2, origin: "The Coaches' Voice", link: "https://goo.gl/n1r2qy", content: "The Coaches’ Voice team offer in-depth analysis of leading nations ahead of the World Cup here", image: "https://3.bp.blogspot.com/-UlJL0fogELI/WyJXlHcPpRI/AAAAAAABkVc/X5XcOWh_GJQtkmIscqVA54a0aBKNFhBgACLcBGAs/s1600/ENGLAND.jpg" }, { title: "Scouting report: BRAZIL", weight: 2, origin: "The Coaches' Voice", link: "https://bit.ly/2sM8wHY", content: "The Coaches’ Voice team offer in-depth analysis of leading nations ahead of the World Cup here", image: "https://4.bp.blogspot.com/-yyx3_FEG9ro/Wx6ClJtcFrI/AAAAAAABkLc/tD3Cs9MFuOEiyD_hGaoRJmAZ0aZOK96xgCLcBGAs/s1600/BRAZIL.jpg" }, { title: "Scouting report: SPAIN", weight: 2, origin: "The Coaches' Voice", link: "https://bit.ly/2HHrRPg", content: "The Coaches’ Voice team offer in-depth analysis of leading nations ahead of the World Cup here", image: "https://1.bp.blogspot.com/-43HPz8quHis/Wx6CmyzMT9I/AAAAAAABkL0/UcP6yGW6oYYlSCT_zwZlS-KibbygtfAdQCLcBGAs/s1600/SPAIN.jpg" }, { title: "Scouting report: ARGENTINA", weight: 2, origin: "The Coaches' Voice", link: "https://bit.ly/2sOELGy", content: "The Coaches’ Voice team offer in-depth analysis of leading nations ahead of the World Cup here", image: "https://1.bp.blogspot.com/-szNiY84eeiM/Wx6Ck4ddtnI/AAAAAAABkLY/NwHErIEfLbYT73gBEC3GYayKcWPoDFFBwCLcBGAs/s1600/ARGENTINA.jpg" }, { title: "Scouting report: BELGIUM", origin: "The Coaches' Voice", link: "https://bit.ly/2l2nYeP", content: "The Coaches’ Voice team offer in-depth analysis of leading nations ahead of the World Cup here", image: "https://3.bp.blogspot.com/-Mr1FPNCOQxA/Wx6Ck8ced4I/AAAAAAABkLU/MNPDBeqq0JUpNOu_vIYuejSefhV-RekQwCLcBGAs/s1600/BELGIUM.jpg" }, { title: "Scouting report: DENMARK", origin: "The Coaches' Voice", link: "https://bit.ly/2JpGqwC", content: "The Coaches’ Voice team offer in-depth analysis of leading nations ahead of the World Cup here", image: "https://2.bp.blogspot.com/-keJEwKsiIAA/Wx6Cl1s7gOI/AAAAAAABkLk/XXqNhYkZ8gYgRUtY4_8A_KvPYEl6muMyQCLcBGAs/s1600/DENMARK.jpg" }, { title: "Scouting report: FRANCE", weight: 2, origin: "The Coaches' Voice", link: "https://bit.ly/2JH6xOX", content: "The Coaches’ Voice team offer in-depth analysis of leading nations ahead of the World Cup here", image: "https://3.bp.blogspot.com/-mi2pqRNUdFU/Wx6CmJmkvxI/AAAAAAABkLo/VMRxU3_jtBsZt1Q-EfDEgbFPWSgDCpxngCLcBGAs/s1600/FRANCE.jpg" },*/ { title: "Job: Content Creator at Wpsoccer", content: "Full-time work-from-home position - Apply Now!", end_time: "2018-03-07", weight: 4, image: "https://2.bp.blogspot.com/-ODOqatziE08/Wp_I9JTxKKI/AAAAAAABcJc/toy-BlhiJ4UlBxmyEJjilPZHejWeIe9SgCLcBGAs/s1600/logo.png", alwaysSmall: true, link: "http://www.expopakistan.gov.pk/?p/job-content-creator-at-footy-headlines.html", origin: "Wpsoccer" }, { title: "Adidas Cyber Monday - 30% OFF", content: "Use code 'CYBER30' / 'CYBER2017' for an extra 30% off most Adidas stock, including the new World Cup jerseys!", end_time: "2017-11-28T23:59:59-06:00", weight: 20, alwaysBig: true, image: [ "https://4.bp.blogspot.com/-q7VEU1OzODg/WhwapGhO7dI/AAAAAAABXng/Ca-yyLbGbAYVzpAv-4qo_C_HmxW7nyI-wCLcBGAs/s1600/adidas-shirts-2.jpg", "https://4.bp.blogspot.com/-ELlTaderJTQ/WhwapDV4KsI/AAAAAAABXnc/0fTeH6Jv1CcbgbanqA6rWr33Wgcq1aR8gCLcBGAs/s1600/adidas-shitrs-1.jpg" ], link: "https://adidas.7eer.net/c/1129298/280609/4270?u=http%3A%2F%2Fadidas.com%2Fus%2Fmen-soccer-jerseys-apparel", origin: "Adidas.com", country: "US" }, { title: "Adidas Cyber Monday - 30% OFF", content: "Use code 'CYBER30' / 'CYBER2017' for an extra 30% off Adidas boots, kits and more!", end_time: "2017-11-28T23:59:59+01:00", weight: 10, alwaysBig: true, image: "https://3.bp.blogspot.com/-9ZD8mMndtLQ/Wh2Dwo2UdFI/AAAAAAABXqg/lU01sby7nb4nHn4AFQPb1NlA7D8SoPxcQCLcBGAs/s1600/adidas-cyber-monday.jpg", link: "https://adidas.7eer.net/c/1129298/280609/4270?u=http%3A%2F%2Fadidas.com%2Fus%2Fmen-soccer", origin: "Adidas.com", }, { title: "Cyber Monday - 25% OFF", origin: "Unisportstore.com", image: "https://3.bp.blogspot.com/-KDXhFqWudqg/WhwapMIcHoI/AAAAAAABXnk/s9w2mNbQVfwy8nyvInn6xXR9sqX8-KjRACLcBGAs/s1600/unisport.jpg", link: "http://tc.tradetracker.net/?c=20821&m=12&a=293795&r=cybermonday&u=https%3A%2F%2Fwww.unisportstore.com%2F", end_time: "2017-11-27T23:59:59+02:00", content: "Get the brand-new Predator 18 at 25% Off and many more crazy deals - ONLY TODAY", weight: 15, alwaysBig: true }, { title: "Christmas at Unisport", end_time: "2017-12-23", origin: "Unisportstore.com", image: "https://3.bp.blogspot.com/-9zQTXKU6W5E/Wh71C-4e9KI/AAAAAAABXwc/mEjOp81s0eAx8cztqjkoDqXaChmakFkwgCLcBGAs/s1600/christmas.jpg", link: "http://tc.tradetracker.net/?c=20821&m=12&a=293795&r=christmas&u=https%3A%2F%2Fwww.unisportstore.com%2Fv%2Fchristmas-gifts%2F", content: "Get the perfect gift for Christmas.", weight: 10 }, { title: "Now Available: Puma Future 18 Netfit", end_time: "2017-12-15", origin: "Unisportstore.com", image: "https://4.bp.blogspot.com/-uaMJHDJEhhg/WiAHScM4vAI/AAAAAAABXxo/TXaEVYU5ulwrw6_PYSTUtBpUawiL1u2GwCLcBGAs/s1600/future.jpg", link: "http://tc.tradetracker.net/?c=20821&m=12&a=293795&r=future&u=https%3A%2F%2Fwww.unisportstore.com%2Fv%2Fpuma-future-invent-play-limited-edition%2F", content: "The latest innovation from PUMA.", weight: 2 }, { title: "Now Available - Adidas Skystalker", end_time: "2017-12-31", origin: "Unisportstore.com", image: "https://2.bp.blogspot.com/-Ax2N1MkqrV8/Wh71Cw4tVNI/AAAAAAABXwY/KUw_-lp-QYkeUQmvwfneSq5Y0yXaBV4OwCLcBGAs/s1600/skystalker.jpg", link: "http://tc.tradetracker.net/?c=20821&m=12&a=293795&r=skystalker&u=https%3A%2F%2Fwww.unisportstore.com%2Fv%2Fadidas-skystalker%2F", content: "Get the latest boots from Adidas at the most competitive prices.", weight: 4 }, { title: "Now Available - Adidas Skystalker", end_time: "2017-12-31", origin: "Soccer.com", image: "https://1.bp.blogspot.com/-APQVcSjKgCg/Wh72YrEu6SI/AAAAAAABXwo/VO1lcBQI7nY6bYwbID5VCI85FSNP0Gv8gCLcBGAs/s1600/adidas-skystalker-soccer.jpg", link: "http://www.pntra.com/t/TUJGRU5MR0JGS0lKSElCRklGRUpJ?sid=skystalker&url=https%3A%2F%2Fwww.soccer.com%2Fsearch%3Fquery%3Dadidas%2520Skystalker%26orderBy%3D4", content: "Get the latest boots from Adidas at the most competitive prices.", weight: 4, country: "US" }, { title: "Nike Black Friday Sale - Extra 30% Off", content: "Use code 'BF30' for an extra 30% off Nike sale products until November 24.", start_time: "2017-10-20T18:00:00+01:00", end_time: "2017-11-24T23:59:59+02:00", weight: 3, alwaysBig: true, image: "https://4.bp.blogspot.com/-yjvmjhdb8is/WhXMGYXH-XI/AAAAAAABXfY/Dv--ocxGTjUhy9EJ1cMKD1vYW8k9N16LgCLcBGAs/s1600/nike-sale-black-friday-2017.jpg", link: "https://redirect.viglink.com/?key=038abcf27f3cdca239ba4d5c9dc1e816&u=https%3A%2F%2Fstore.nike.com%2Fgb%2Fen_gb%2Fpw%2Fmens-sale-football%2F47Z7puZ896", origin: "Nike.com" }, { title: "Wpsoccer App", type: "android", origin: "Wpsoccer", link: "https://play.google.com/store/apps/details?id=com.footyheadlines.footyheadlines", content: "", image: "https://1.bp.blogspot.com/-ff_9gaHuqzQ/WSlyoN7fNxI/AAAAAAABOBc/uxVHGk9AzxkuVrhNns-w8crcgLdSAMhdQCLcB/s1600/app-ad.jpg" }, { title: "Now Available: Adidas Predator 18", end_time: "2017-12-30", content: "Be the first to get your hands on the brand-new Adidas Predator 18 football boots", origin: "adidas.com", link: "https://adidas.7eer.net/c/1129298/280609/4270?u=https%3A%2F%2Fwww.adidas.com%2Fus%2Fpredator", image: "https://1.bp.blogspot.com/-81IeWHCWEOk/WhVfKCY1yPI/AAAAAAABXcw/btgwC3hLNn4CkofUfMk8Ne882i5WA0oCwCLcBGAs/s1600/buy-now-adidas-predator-18.jpg", imageSquare: "https://1.bp.blogspot.com/-2wtpq5w50Xw/WhVfIpzu3EI/AAAAAAABXcs/eFiUD6zBKRMMTAOP3FAgbW0pqaILTWoNgCLcBGAs/s1600/buy-now-adidas-predator-18-square.jpg", weight: 2 } ]; function getGeodata(){ var script=document.createElement('script'); script.src="http://www.geoplugin.net/javascript.gp"; var done=false; script.onload=script.onreadystatechange = function(){ if ( !done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete') ) { done=true; //script // filter ads by location var language = window.navigator.userLanguage || window.navigator.language; nativeAds = $.grep(nativeAds, function(e){ if (e.country) { if (language.indexOf("e.country") > -1) { return true; } return language.indexOf("e.country"); //return e.country == geoplugin_countryCode(); } else { return true; } }); //load ads AddMoreAds(); script.onload = script.onreadystatechange = null; } }; script.onerror = function() { AddMoreAds(); } document.body.appendChild(script); } //AddMoreAds(); //getGeodata(); // remove based on time var now_time = new Date().getTime(); nativeAds = $.grep(nativeAds, function(e) { if (e.start_time) { var start_time = Date.parse(e.start_time); if (start_time > now_time) { //console.log("Disabled based on start time - " + e.title); return false; } } if (e.end_time) { var end_time = Date.parse(e.end_time); if (end_time < now_time) { //console.log("Disabled based on end time - " + e.title); return false; } } return true; }); // filter ads by location var language = window.navigator.userLanguage || window.navigator.language; nativeAds = $.grep(nativeAds, function(e){ if (e.country) { return (language.indexOf(e.country) > -1); } else { return true; } }); // filter ads if (!isAndroid()) { nativeAds = $.grep(nativeAds, function(e){ return e.type != "android"; }); } $.each(nativeAds, function(index, value) { // duplicate by weight if (value.weight != null) { if (value.weight > 0) { for (var i = 0; i < value.weight; i++) { nativeAds.push(nativeAds[index]); } } } }); function getRandom(arr, n) { var result = new Array(n), len = arr.length, taken = new Array(len); if (n > len) throw new RangeError("getRandom: more elements taken than available"); while (n--) { var x = Math.floor(Math.random() * len); result[n] = arr[x in taken ? taken[x] : x]; taken[x] = --len in taken ? taken[len] : len; } return result; } function NativeAd() { if (Math.floor(Math.random() * 3) == 1) { //kitbag test var temp_native_ads = getRandom(inPostAds, 5); var url_homepage = "https://www.awin1.com/cread.php?awinmid=686&awinaffid=503539&clickref=&p=" + encodeURIComponent("http://www.kitbag.com/stores/kitbag/en"); var temp_html = "
Shop at- free worldwide delivery on all orders
"; for (var i = 0; i < temp_native_ads.length; i++) { var url = "https://www.awin1.com/cread.php?awinmid=686&awinaffid=503539&clickref=&p=" + encodeURIComponent(temp_native_ads[i].url); var temp_title = temp_native_ads[i].title; if (temp_title.length > 25) { temp_title = temp_title.substring(0,24)+"..."; } temp_html += "
" + temp_title + "
Buy now
"; } temp_html += "
"; $nativeAd = $(temp_html); return $nativeAd[0]; } else { //random create ad // random number between 0 and 20 var nativeAdIndex = Math.floor(Math.random() * nativeAds.length * 2); if (nativeAds[nativeAdIndex] != null) { $nativeAd = $("
"); var image_link = ""; if (nativeAds[nativeAdIndex].image.constructor === Array) { image_link = nativeAds[nativeAdIndex].image[Math.floor(Math.random() * nativeAds[nativeAdIndex].image.length)]; } else { image_link = nativeAds[nativeAdIndex].image; }; //sometimes bigger (1/3 of cases - only desktop) /* if (mobile == 0) { //every fourth ad is big if ((Math.floor(Math.random() * 4) == 0 || nativeAds[nativeAdIndex].alwaysBig) && !nativeAds[nativeAdIndex].alwaysSmall) { $nativeAd.removeClass("mszobr"); image_link = image_link.replace(/\/s[0-9]+\//, '/w350-h179-c/'); } else { image_link = nativeAds[nativeAdIndex].imageSquare || image_link; image_link = image_link.replace(/\/s[0-9]+\//, '/s200-c/'); } } else { image_link = image_link.replace(/\/s[0-9]+\//, '/w400-h205-c/'); } */ image_link = image_link.replace(/\/s[0-9]+\//, '/w350-h179-c/'); if ($nativeAd != null) { $nativeAd.find("a").attr("href", "/p/out.html?type=native&target=" + encodeURIComponent(nativeAds[nativeAdIndex].link) + "&label=" + encodeURIComponent(nativeAds[nativeAdIndex].origin + "http://www.expopakistan.gov.pk/images/contact/foot.asp" + nativeAds[nativeAdIndex].title + "http://www.expopakistan.gov.pk/images/contact/foot.asp" + nativeAds[nativeAdIndex].link)); //$nativeAd.find("a").attr("onClick", "_gaq.push([\"_trackEvent\", \"native\", \"click\", \"" + nativeAds[nativeAdIndex].origin + "http://www.expopakistan.gov.pk/images/contact/foot.asp" + nativeAds[nativeAdIndex].title + "http://www.expopakistan.gov.pk/images/contact/foot.asp" + nativeAds[nativeAdIndex].link + "\", 0]);"); $nativeAd.find(".post-img").attr("data-src", image_link); $nativeAd.find(".post-title > a").text(nativeAds[nativeAdIndex].title); $nativeAd.find(".post-snippet").html(createSummaryText(nativeAds[nativeAdIndex].content)); if (nativeAds[nativeAdIndex].origin != null) { $nativeAd.find("#mszobr-origin").text(nativeAds[nativeAdIndex].origin); } if (nativeAds[nativeAdIndex].origin == "Wpsoccer") { $nativeAd.find(".post-meta").remove(); } } return $nativeAd[0]; } else { return null; } } } //add native ad at "position 2" (only if page has posts) if (!noads) { //$("#main-wrap2").prepend(NativeAd()); //lazyload(); } else { $("#ad-3").css("display", "none"); $("#ad-1").css("display", "none"); $("#sidebar").css("display", "none"); } //display "no posts found" if (document.URL.indexOf("/search") > -1) { if (document.getElementById("blog-posts").innerHTML.length < 10) { $("#main-page").append($("")); } } //add more native ads function AddMoreAds() { var posts = $("#blog-posts > .post"); /* native top */ var nativeAdIndex = Math.floor(Math.random() * nativeAds.length); if (nativeAds[nativeAdIndex] != null) { var t_image_link = ""; if (nativeAds[nativeAdIndex].image.constructor === Array) { t_image_link = nativeAds[nativeAdIndex].image[Math.floor(Math.random() * nativeAds[nativeAdIndex].image.length)]; } else { t_image_link = nativeAds[nativeAdIndex].image; }; t_image_link = t_image_link.replace(/\/s[0-9]+\//, '/w350-h179-c/'); //var t_onclick = " onclick=\"_gaq.push(['_trackEvent', 'native', 'click', '" + nativeAds[nativeAdIndex].origin.replace("'", "") + "http://www.expopakistan.gov.pk/images/contact/foot.asp" + nativeAds[nativeAdIndex].title.replace("'", "") + "http://www.expopakistan.gov.pk/images/contact/foot.asp" + nativeAds[nativeAdIndex].link + "', 0]);\""; var t_link = "/p/out.html?type=native&target=" + encodeURIComponent(nativeAds[nativeAdIndex].link) + "&label=" + encodeURIComponent(nativeAds[nativeAdIndex].origin + "http://www.expopakistan.gov.pk/images/contact/foot.asp" + nativeAds[nativeAdIndex].title + "http://www.expopakistan.gov.pk/images/contact/foot.asp" + nativeAds[nativeAdIndex].link); //"/p/out.html?type=native&target=" + encodeURIComponent(nativeAds[nativeAdIndex].link) + "&label=" + encodeURIComponent(nativeAds[nativeAdIndex].origin + "http://www.expopakistan.gov.pk/images/contact/foot.asp" + nativeAds[nativeAdIndex].title + "http://www.expopakistan.gov.pk/images/contact/foot.asp" + nativeAds[nativeAdIndex].link) var html = "

" + nativeAds[nativeAdIndex].title + "

"; if (nativeAds[nativeAdIndex].origin != "Wpsoccer") { html += "
Ad " + nativeAds[nativeAdIndex].origin + "
"; } html += "
"; if (windowWidth > 450 && windowWidth <= 1100) { } else { var t_index = getRandomInt(0, 3); if (t_index < 2) { $("#top-block-side > div:eq(" + t_index + ")").before($(html)); } else if (t_index == 2) { $("#top-block-side > div:eq(1)").after($(html)); } } } var temp_index = getRandomInt(0, 2); while (temp_index < posts.length) { $(posts[temp_index]).before(NativeAd()); temp_index += getRandomInt(3,5); } /* var ad_temp_index = 0; while (ad_temp_index < posts.length) { //$(posts[ad_temp_index]).after("
"); $(posts[ad_temp_index]).after("
"); (adsbygoogle = window.adsbygoogle || []).push({}); ad_temp_index += 6; } */ $("#content-rec").before(NativeAd()); //lazy load images lazyload(); } AddMoreAds(); // load blogger basic css /* var cssId = 'myCss'; // you could encode the css path itself to generate id.. if (!document.getElementById(cssId)) { var head = document.getElementsByTagName('head')[0]; var link = document.createElement('link'); link.id = cssId; link.rel = 'stylesheet'; link.type = 'text/css'; link.href = 'https://www.blogger.com/static/v1/widgets/3332739511-widget_css_bundle.css'; link.media = 'all'; head.appendChild(link); } */ /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var disqus_shortname = 'footyheadlines'; // required: replace example with your forum shortname //loading more posts at bottom (function(a) { function h() { load = false; g || (g = !0, d ? (b.find("a").hide(), b.find("img").show(), a.ajax(d, { dataType: "html" }).done(function(c) { var c = a("
").append(c.replace(j, "")), e = c.find("a.blog-pager-older-link"); e ? d = e.attr("href") : (d = "", b.hide()); var c_temp = c.find(i); c = c.find(i).children(".post"); var tempPostCount = c.length; //remove pager on first scroll if (count == 0) { /* $("#PopularPosts2").appendTo(a(main)); $("#PopularPosts3").appendTo(a(main)); $("#social-buttons").appendTo(a(main)); */ $("#disqus-container").appendTo(a(main)); var blogPager = document.getElementById("blog-pager"); //blogPager.parentNode.removeChild(blogPager); if (blogPager != null) blogPager.style.display = "none"; } count++; $(".post-comment-link").each(function(index) { $(this).removeClass("post-comment-link"); }); /* facebook like box */ /* if (count > 1 | document.URL.indexOf("html") < 0) { if (Math.floor(Math.random() * 100) < 50) { $("#main-wrap2").append($('')); } } */ /* ads */ var index_ad = getRandomInt(1, 3); if (count == 1) { index_ad = getRandomInt(3, 5); } var ad_count = 0; while (index_ad < c.length) { c.splice(index_ad, 0, $("
")[0]); ad_count++; //a(main).append($("
TEST
")); index_ad += getRandomInt(4, 7); } console.log(ad_count); /* native ad */ var index = getRandomInt(0, 2); while (index < c.length) { $nativeAd = NativeAd(); //console.log($nativeAd); if ($nativeAd != null) { c.splice(index, 0, $nativeAd); //console.log(c); } index+= getRandomInt(3, 5); } if (count == 1 && document.URL.indexOf("html") > 0) { //console.log("2140105194"); //$("#col-main-1").append($("
Latest
")); $("#col-main-1").append(c); } else if (tempPostCount > 0) { $("#main-page").append($("
")); ad_count++; $("#main-page").append($("
")); ad_count++; $("#col-main-" + count).append(c); } /* // realigning posts if (count == 1 & document.URL.indexOf("html") > 0) { var topPosts = c.filter(".top"); var normalPosts = c.not(".top"); a(main).append(topPosts); a(main).append(normalPosts); //console.log(topPosts); //console.log(normalPosts); } else { a(main).append(c); } */ //load ads into containers for (var counter = 0; counter < ad_count; counter++) { (adsbygoogle = window.adsbygoogle || []).push({}); } // lazy load images lazyload(); /* end realigning posts */ //c.insert(1,div); // remove small post if same as opened post $(".post.index").each(function(index) { if (!$(this).hasClass("checked")) { $(this).addClass("checked"); if (current.indexOf($(this).children(".post-link").attr("href")) > -1 | current.indexOf($(this).children(".post-info").children(".post-link").attr("href")) > -1) { $(this).remove(); } } }); if (document.URL.indexOf("html") > 0 && count == 1) { var social_buttons = c_temp.children("#social-buttons"); var story_text = c_temp.children("#story-text"); var nf_button = c_temp.children("#nf-text"); var fhes_button = c_temp.children("#fhes-text"); var fbdb_embed = c_temp.children("#fbdb-embed"); $("#main-wrap2").find(".post.index").eq(1).after($('')); $("#main-wrap2").find(".post.index").eq(1).after(fbdb_embed); iFrameResize({}, '#fbdb-iframe'); $("#main-wrap2").find(".post.index").eq(2).after(social_buttons); $("#main-wrap2").find(".post.index").eq(2).after(nf_button); $("#main-wrap2").find(".post.index").eq(3).after(story_text); /* var div = $("
"); var div2 = $("
"); a(main).find(".post.index").eq(2).after(div); if (a(main).find(".post.index").length > 4) { a(main).find(".post.index").eq(4).after(div2); } else { a(main).append(div2); } UnimportantPostsFetcher(); */ } /* if ((count > 1 | document.URL.indexOf("html") < 0) & (document.URL.indexOf("search") < 0)) { a(main).append($("
")); var script = document.createElement('script'); script.src = "http://www.expopakistan.gov.pk/?feeds/posts/summary/-/ZZZ?published&alt=json&max-results=6&start-index=" + (unimportantPostsCount + 1) + "&callback=UnimportantPosts2"; document.body.appendChild(script); } */ //window._gaq && window._gaq.push(["_trackPageview", d]); window.gapi && window.gapi.plusone && window.gapi.plusone.go && window.gapi.plusone.go(); window.disqus_shortname && a.("https://" + window.disqus_shortname + ".disqus.com/blogger_index.js"); window.FB && window.FB.XFBML && window.FB.XFBML.parse && window.FB.XFBML.parse(); window.twttr && window.twttr.widgets && window.twttr.widgets.load && window.twttr.widgets.load(); b.find("img").hide(); b.find("a").show(); g = !1 })) : b.hide()) load = true; } function k() { if (!menu_open) { var a = Math.max(f.height(), l.height(), document.documentElement.clientHeight), b = f.scrollTop() + f.height(); threshold > a - b && h() } } var d = "", load = true, b = null, i = "div.blog-posts", //main = "div#main-wrap2", main = "#blog-posts", g = !1, f = a(window), l = a(document), threshold = 1000, count = 0, j = /[^<]*(?:(?!<\/ad>)<[^<]*)*<\/ad>/gi, current = document.URL; if (document.location.href.indexOf('m=1') > -1) { threshold = 700; } /*a(document).ready(function () {*/ if ((d = a("a.blog-pager-older-link").attr("href")) && !menu_open && load) { var c = a('Load more posts'); c.click(h); //var e = a(''); f.scroll(k); b = a('
'); /* b.append(c); */ //b.append(e); //b.insertBefore(a("#blog-pager")); } /*})*/ })(jQuery); function comparisonImageResizer() { var $width=$(".post-body").width(); var $curHeight=window.comparisonImageHeight;//$("#comparison").height(); if ($width<738) { $("#comparison").css({"width":$width+"px","height":$width/738*$curHeight+"px"}); } } delta = 350; var lastScrollTop = 0; if ($("#tabs").length > 0 & document.URL.indexOf("html") > 0) { $(window).scroll(function(event) { var st = $(this).scrollTop(); if (st > lastScrollTop && st > delta) { // downscroll code $("body").addClass("tabs-hidden"); } else { // upscroll code $("body").removeClass("tabs-hidden"); } lastScrollTop = st; }); } if($("#comparison").length != 0) { moveDivisor(); window.comparisonImageHeight=$("#comparison").height(); comparisonImageResizer(); console.log("Comparison found."); } $(window).resize(function() { if($("#comparison").length != 0) { comparisonImageResizer(); } }); //mobile $("#open-search-mobile").click(function () { $(".google-search").toggleClass("google-search-visible"); $("#open-search-mobile").css("display","none"); $("#cancel-search").css("display","block"); $(".search-box").focus(); }); $("#cancel-search").click(function () { $(".google-search").toggleClass("google-search-visible"); $("#open-search-mobile").removeAttr("style"); $("#cancel-search").removeAttr("style"); }); var menu_open = false; function toggleMenu() { if ($(document.body).hasClass("visible")) { var scrollTop = document.getElementById("outer-wrapper").scrollTop; //var scrollTop = document.body.scrollTop; //console.log(scrollTop); $(document.body).removeClass("visible"); window.scrollTo(0,scrollTop); menu_open = false; } else { var scrollTop = window.pageYOffset; $(document.body).addClass("visible"); //document.body.scrollTop = scrollTop; document.getElementById("outer-wrapper").scrollTop = scrollTop; menu_open = true; } } $("#menu-icon").click(function () { toggleMenu(); }); $("#black-overlay").click(function () { toggleMenu(); }); function toggleSearch() { if (windowWidth <= 850) { $("#headerbar").toggleClass("search-open"); if ($("#headerbar").hasClass("search-open")) { $("#search-box").focus(); } } } $(".search-icon").click(function () { toggleSearch(); }); $("#search-box").blur(function () { toggleSearch(); }); $(".close-search").click(function () { toggleSearch(); }); $( ".post-shares" ).each(function(index) { var obj_shares = $(this); var url = obj_shares.attr("data-href"); var count = 0; var count_comm = 0; var count_site = ""; $.getJSON("https://api.facebook.com/method/fql.query?query=select%20total_count%20from%20link_stat%20where%20url=%27" + url + "%27&format=json", function(json,$obj) { var count_fb = json[0].total_count; count = count + count_fb; count_site = count; if (count>1000) { count_site=(Math.floor(count/100)/10).toFixed(1)+'k'; count_site=count_site.replace('.0',''); } if (count == 1) {obj_shares.text(count_site + " Share"); } else {obj_shares.text(count_site + " Shares"); } }); /* $.getJSON("http://urls.api.twitter.com/1/urls/count.json?callback=?&url=" + url, function(json,$obj) { var count_tw = json.count; count = count + count_tw; count_site = count; if (count>1000) { count_site=(Math.floor(count/100)/10).toFixed(1)+'k'; count_site=count_site.replace('.0',''); } if (count == 1) {obj_shares.text(count_site + " Share"); } else {obj_shares.text(count_site + " Shares"); } }); */ }); $("#show-more").click(function(){ $("#hidden-boot-calendar").toggle(); $("#show-more").toggle(); }); //function tablet function is_touch_device() { return (('ontouchstart' in window) || (navigator.MaxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0)); } if (is_touch_device()) { $('.nav').toggleClass('tablet'); $('.nav').removeClass('normal'); $("ul.nav > li > a").click(function () { if($(this).parent().children().size() > 1) { $(this).parent().toggleClass('tablet-open').siblings().removeClass('tablet-open'); return false; } }); } $('.load-delay').each(function () { $(this).attr('src', $(this).attr('delayedsrc')); }); /* //load feed var script2 = document.createElement('script'); //script2.src = "http://ajax.googleapis.com/ajax/services/feed/load?q=http%3A%2F%2Fwww.footyheadlines.com%2Ffeeds%2Fposts%2Fdefault&num=5&output=json&v=1.0&callback=showrecentposts"; script2.src="http://www.expopakistan.gov.pk/?feeds/posts/default?max-results=5&alt=json&callback=showrecentposts"; document.body.appendChild(script2); //boot watch sidebar var script6 = document.createElement('script'); script6.src = "http://www.expopakistan.gov.pk/?feeds/posts/default/-/Boot%20Watch?alt=json&max-results=3&callback=BootWatchSidebar"; document.body.appendChild(script6); */ if(document.URL.indexOf("html") < 0){ //UnimportantPostsFetcher(); } function inView(elem) { var docViewTop = $(window).scrollTop(); var docViewBottom = docViewTop + $(window).height(); var elemTop = $(elem).offset().top; var elemBottom = elemTop + $(elem).outerHeight(); return (elemBottom <= docViewTop); } $el = $(".headerbar-2-container"); if( $el.length & $("#item-post")) { $(document).scroll(function() { if (inView($("#item-post")) && !$el.hasClass("closed")) { $el.addClass("closed"); } else if (!inView($("#item-post")) && $el.hasClass("closed")) { $el.removeClass("closed"); } }); } //disqus var disqusloaded = false; if(document.URL.indexOf(".html") >= 0){ var el = document.getElementById("button-disqus"); function LoadDisqus() { el.remove(); var bloggerjs = document.createElement('script'); bloggerjs.type = 'text/javascript'; bloggerjs.async = true; bloggerjs.src = 'https://'+disqus_shortname+'.disqus.com/blogger_item.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(bloggerjs); disqusloaded = true; } if (document.URL.indexOf("comment") >= 0) { LoadDisqus(); } if (el != null) { el.onclick=function(){ LoadDisqus(); } } } /* * * DON'T EDIT BELOW THIS LINE * * */ (function () { var s = document.createElement('script'); s.async = true; s.type = 'text/javascript'; s.src = 'https://' + disqus_shortname + '.disqus.com/count.js'; (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); }()); /* slideshow */ function ChangeSlideText(wrapper) { $currentSlide = wrapper.find(".slide.active img"); $descriptionWrapper = wrapper.find(".description"); if ($currentSlide.attr("alt") != null){ $descriptionWrapper.css("display", "block"); $descriptionWrapper.text($currentSlide.attr("alt")); } else { $descriptionWrapper.css("display", "none"); $descriptionWrapper.text(""); } } $currentValue = 0; function ChangeSlide(type, wrapper) { $currentSlideshow = wrapper.find(".slideshow"); $currentSlide = wrapper.find(".slide.active"); $arrowRight = wrapper.find(".slideshow-arrow.right"); $arrowLeft = wrapper.find(".slideshow-arrow.left"); $currentValue = $currentSlideshow.attr("data-transform"); if ($currentValue == null) { $currentValue = 0; } $maxValue = $currentSlideshow.attr("data-count"); $previousValue = $currentValue; if (type == "right") { $currentValue = parseInt($currentValue) - 1; $arrowLeft.css("display", "block"); wrapper.find(".image-count").css("display","none"); } else if (type == "left") { $currentValue = parseInt($currentValue) + 1; $arrowRight.css("display", "block"); } $currentSlideshow.addClass("transition"); if ($currentValue <= 0 & ($currentValue * (-1)) <= ($maxValue - 1)) { $currentSlideshow.css("transform", "translateX(" + ($currentValue * $currentSlideshow.width()) + "px)"); $currentSlideshow.attr("data-transform", $currentValue); } else { $currentSlideshow.css("transform", "translateX(" + ($previousValue * $currentSlideshow.width()) + "px)"); } if ($currentValue == 0) { $arrowLeft.css("display", "none"); } else if (($currentValue * (-1)) == ($maxValue - 1)) { $arrowRight.css("display", "none"); } } $(".slideshow-arrow").click(function() { $slideshowWrapper = $(this).parent().parent(); if ($(this).hasClass("right")) { ChangeSlide("right", $slideshowWrapper); } else if ($(this).hasClass("left")) { ChangeSlide("left", $slideshowWrapper); } }); $(".slideshow-wrapper").on("touchstart", touchstart); $(".slideshow-wrapper").on("touchmove", touchmove); $(".slideshow-wrapper").on("touchend", touchend); var touchStart = 0; var currentImage = null; function touchstart(e) { touchStart = e.originalEvent.touches[0].pageX; touchStartY = e.originalEvent.touches[0].clientY; currentImage = $(e.currentTarget).find(".slideshow"); currentImage.removeClass("transition"); } function touchmove(e) { var touch = e.originalEvent.touches[0].pageX; var difference = touch - touchStart; $currentValue = currentImage.attr("data-transform"); if ($currentValue == null) $currentValue = 0; currentImage.css("transform", "translateX(" + (($currentValue * currentImage.width()) + difference) + "px)"); } function touchend(e) { var touchEnd = e.originalEvent.changedTouches[0].pageX; var touchEndY = e.originalEvent.changedTouches[0].clientY; //currentImage.css("transform", ""); var difference = touchEnd - touchStart; var differenceY = Math.abs(touchEndY - touchStartY); if (differenceY < Math.abs(difference)) { if (difference > 5) { ChangeSlide("left", $(e.currentTarget)); } else if (difference < -5) { ChangeSlide("right", $(e.currentTarget)); } } else { currentImage.addClass("transition"); currentImage.css("transform", "translateX(" + (currentImage.attr("data-transform") * currentImage.width()) + "px)"); } } $(".slideshow").each(function(index){ $(this).find("li").first().addClass("active"); /* Add image count indicator */ $image_count = $(this).find("li").length; $(this).attr("data-count", $image_count); $(this).attr("data-transform", 0); $(this).parent().find(".slideshow-controls").append("
+" + ($image_count-1) + "
"); //console.log($(this).find(".slideshow-controls")); }); $(".slideshow-wrapper").each(function(index) { ChangeSlideText($(this)); }); script.onload = script.onreadystatechange = null; } }; document.body.appendChild(script); } (); /* if (window.addEventListener) window.addEventListener("load", ); else if (window.attachEvent) window.attachEvent("onload", ); else window.onload = ; */ //]]>