1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml"><head> 3<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 4<meta name="format-detection" content="telephone=no"> 5<meta name="viewport" content="width=1000" /> 6<meta name="author" content="NEWPAGES.com.my" /> 7<title>Healthy Pork Meat Supplier Selangor, Malaysia, Fresh Pork Meat Supply Kuala Lumpur (KL) ~ Long Farm Meat Sdn Bhd</title> 8<meta name="title" content="Healthy Pork Meat Supplier Selangor, Malaysia, Fresh Pork Meat Supply Kuala Lumpur (KL) ~ Long Farm Meat Sdn Bhd" /> 9<meta name="description" content="Long Farm Meat Sdn Bhd is formed in 2008 with 1st branch opened in Bukit Tinggi, Klang, Selangor. We specialized in providing healthy pork to the neighbourhood at a reasonable price." /> 10<meta property="og:title" content="Healthy Pork Meat Supplier Selangor, Malaysia, Fresh Pork Meat Supply Kuala Lumpur (KL) ~ Long Farm Meat Sdn Bhd"/> 11<meta property="og:description" content="Long Farm Meat Sdn Bhd is formed in 2008 with 1st branch opened in Bukit Tinggi, Klang, Selangor. We specialized in providing healthy pork to the neighbourhood at a reasonable price."/> 12<meta name="keywords" content=" Supplier, Suppliers, Supply, Supplies Long Farm Meat Sdn Bhd is formed in 2008 with 1st branch opened in Bukit Tinggi, Klang, Selangor. We specialized in providing healthy pork to the neighbourhood at a reasonable price. Long Farm Meat Sdn Bhd Selangor, Malaysia, Kuala Lumpur (KL), Klang, Subang Jaya, Puchong https://www.longfarmmeat.com"> 13<meta name="google-site-verification" content="" /> 14<meta name="y_key" content=""> 15<meta name="msvalidate.01" content="" /> 16 17<link href="https://cdn1.npcdn.net/default_style/font-awesome/css/font-awesome.css" type="text/css" rel="stylesheet" /> 18<link href="https://cdn1.npcdn.net/default_style/font-extra/style.css?v=1791292582" type="text/css" rel="stylesheet" /> 19<link href="https://cdn1.npcdn.net/default_style/general_v1.css?v=1791292582" rel="stylesheet" type="text/css" media="screen" /> 20<link href="https://cdn1.npcdn.net/default_style/color_style.css?id=fcba6537741bf200fd2d7e965afd9770&v=1791292582" rel="stylesheet" type="text/css" media="screen" /> 21<link href="https://cdn1.npcdn.net/default_style/grid_system/gumby.css" rel="stylesheet"/> 22<meta property="og:image" content="https://cdn1.npcdn.net/images/1484209759long farm logo.ico"/> 23 24<link rel="shortcut icon" href="https://cdn1.npcdn.net/images/1484209759long farm logo.ico" type="image/ico"> 25 26<meta name="robots" content="all"> 27<meta http-equiv="imagetoolbar" content="no"> 28 29<link rel="stylesheet" href="https://cdn1.npcdn.net/scripts/sweetalert2/sweetalert2.min.css"> 30<link href="https://cdn1.npcdn.net/np3_longfarm/style.css?t=1597740328" rel="stylesheet" type="text/css" media="screen" /><link href="https://cdn1.npcdn.net/np3_longfarm/banner.css?t=1597740328" rel="stylesheet" type="text/css" media="screen" /> 31<style type="text/css"> 32.light, .light > a { 33 color: #000 !important; 34} 35.dark, .dark > a { 36 color: #fff !important; 37} 38.float-sub li > a{ 39 color:#333; 40} 41ul.nav-menu{ 42 /*width:1000px;*/ 43} 44.float-inner{ 45 width:1000px; 46 margin: 0 auto; 47} 48 49ul.nav-menu > li > a > span{ 50 padding: 0px 10px; 51} 52.top-message{ 53 position:relative; 54 left:inherit; 55 right:inherit; 56 font-size:16px; 57} 58#shopping-cart{ 59 position:fixed; 60} 61#header { 62 margin: 0; 63 width: 1000px; 64 height: 200px; 65} 66#allbanner { 67 margin: 0; 68 width: 1000px; 69 height: 0px; 70} 71.content { 72 width: 1000px; 73} 74 75#main { 76 width: 1000px; 77} 78#main .left { width: 980px; 79} 80 81 82</style> 83 84
85<SCRIPT LANGUAGE="JavaScript"> 86<!-- Begin 87function viewProducts(URL) { 88day = new Date(); 89id = day.getTime(); 90eval("page" + id + " = window.open(URL, '" + id + "', 'scrollbars=1,resizable=1,width=800px,height=600,left = 25,top = 25');"); 91} 92// End --> 93</script>
93 94 95 96<style type="text/css"> 97.nav ul li:hover ul{ 98 background:#ffffff; 99} 100</style> 101
102<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
vendor: 1 bytes, line 102
102
103<script src="https://code.jquery.com/jquery-migrate-3.0.0.min.js"></script>
103 104<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css"> 105<link rel="stylesheet" href="https://cdn1.npcdn.net/scripts/ui/jquery-ui.theme.min.css" /> 106 107<!--
107<script type="text/javascript" src="https://cdn1.npcdn.net/scripts/fancybox3/jquery.fancybox.js"></script>
107 108<link rel="stylesheet" type="text/css" href="https://cdn1.npcdn.net/scripts/fancybox3/jquery.fancybox.css" media="screen" />-->
109<script type="text/javascript" src="https://cdn1.npcdn.net/scripts/fancybox3/3.5.7/jquery.fancybox.js"></script>
109 110<link rel="stylesheet" type="text/css" href="https://cdn1.npcdn.net/scripts/fancybox3/3.5.7/jquery.fancybox.css" media="screen" /> 111 112<link rel="stylesheet" type="text/css" href="https://cdn1.npcdn.net/default_style/slick/slick.css"/> 113<link rel="stylesheet" type="text/css" href="https://cdn1.npcdn.net/default_style/slick/slick-theme.css"/>
114<script type="text/javascript" src="https://cdn1.npcdn.net/default_style/slick/slick.min.js"></script>
114 115<!--<link rel="stylesheet" href="https://cdn1.npcdn.net/scripts/fancybox3/jquery.fancybox-thumbs.css" type="text/css" media="screen" />
116<script type="text/javascript" src="https://cdn1.npcdn.net/scripts/fancybox3/jquery.fancybox-thumbs.js"></script>
116--> 117
118<script src="https://cdn1.npcdn.net/scripts/qrcode/jquery.qrcode-0.12.0.min.js"></script>
vendor: 1 bytes, line 118
118
119<script src="https://cdn1.npcdn.net/scripts/validate.min.js"></script>
119 120
121<script src="https://cdn1.npcdn.net/scripts/janimate.js"></script>
121 122<link rel="stylesheet" type="text/css" href="https://cdn1.npcdn.net/scripts/janimate.css"/> 123 124<link rel="stylesheet" href="https://cdn1.npcdn.net/scripts/owlcarousel2/assets/owl.carousel.min.css"> 125<link rel="stylesheet" href="https://cdn1.npcdn.net/scripts/owlcarousel2/assets/owl.theme.newpages.css">
126<script src="https://cdn1.npcdn.net/scripts/owlcarousel2/owl.carousel.js"></script>
vendor: 1 bytes, line 126
126
127<script src="https://cdn1.npcdn.net/scripts/jquery.colourbrightness.min.js"></script>
127 128<link rel="stylesheet" href="https://cdn1.npcdn.net/scripts/animate.css"> 129
130<script type="text/javascript" src="https://cdn1.npcdn.net/scripts/sweetalert2/sweetalert2.min.js"></script>
130 131 132 133<style> 134a.fancybox-nav { width:10%; } 135a.fancybox-prev{ position:fixed; left:10px; } 136a.fancybox-next{ position:fixed; right:10px; } 137</style>
138<script>
vendor: 351 bytes, lines 138-144
138 139 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 140 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 141 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 142 })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); 143 144 ga('create', '
144UA-89236670-35
vendor: 42 bytes, lines 144-146
144', 'auto'); 145 ga('send', 'pageview'); 146
147</script>
147<!-- AddToAny BEGIN --> 148<div class="a2a_kit a2a_kit_size_32 a2a_floating_style a2a_vertical_style" style="left:0px; top:150px;"> 149 <a class="a2a_button_facebook"></a> 150 <a class="a2a_button_facebook_messenger"></a> 151 <a class="a2a_button_whatsapp"></a> 152 <a class="a2a_button_wechat"></a> 153 <a class="a2a_button_email"></a> 154 <a class="a2a_dd" href="https://www.addtoany.com/share"></a> 155</div>
156<script async src="https://static.addtoany.com/menu/page.js"></script>
156 157<!-- AddToAny END --> 158</head> 159<body id="body_home" class="home white"> 160<!-- Facebook Pixel Code -->
161<script> 162 !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js'); 163 164 165 fbq('track', 'PageView'); 166 167 fbq('track', 'ViewContent', { 168 content_name: 'JOWL', 169 content_ids: [3109293], 170 content_category: 'Pork Cuts', content_type: 'product' 171 }); 172 </script>
172 173 174<noscript> 175 </noscript> 176<!-- End Facebook Pixel Code --> 177 178 179 180 181<div id="fb-root"></div>
182<script> 183 window.fbAsyncInit = function() { 184 FB.init({ 185 appId : '267868339912449', 186 autoLogAppEvents : true, 187 xfbml : true, 188 version : 'v3.2' 189 }); 190 }; 191 192 193 (function(d, s, id) { 194 var js, fjs = d.getElementsByTagName(s)[0]; 195 if (d.getElementById(id)) return; 196 js = d.createElement(s); js.id = id; 197 js.src = "https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js"; 198 fjs.parentNode.insertBefore(js, fjs); 199 }(document, 'script', 'facebook-jssdk')); 200</script>
200 201 202 203 204 <div class="content header"> 205 <div class="language"><a href="index.php" target="_self">EN</a> | <a href="index.php?lang=cn" target="_self">ÖÐÎÄ</a></div> 206 207 208 209
209<script> 210 $(document).ready(function() { 211 //$('#latest-news').trigger('click'); 212 213 $.fancybox.open({ 214 'src':"np_news_popup.php?id=fcba6537741bf200fd2d7e965afd9770", 215 'type':"iframe", 216 iframe : { 217 css : { 218 width : '620px' 219 } 220 } 221 }); 222 }); 223 </script>
223 224 225 226 <!-- HEADER START --><div class="topspace" style="width:1000px"><img border="0" height="170" src="https://cdn1.npcdn.net/img/1499232699top.png" width="1002" /></div><div class="nav"><ul class="mainmenu" style="margin:0 auto;"><li><a class="firstchild " href="index.php" target=""><span>HOME</span></a></li><li><a href="index.php?ws=pages&pages_id=8707" target=""><span>ABOUT US</span></a></li><li><a href="index.php?ws=productsbycat" target=""><span>PRODUCTS</span></a></li><li class="with-dropdown"><a href="javascript:void(0)" target=""><span>BLOG</span></a><ul class="sub"><li><a href="index.php?ws=latestnews" target="">Latest News</a></li><li><a href="index.php?ws=photoalbum" target="">Gallery</a></li><li><a href="index.php?ws=pages&pages_id=14747" target="">Notice</a></li></ul></li><li><a href="index.php?ws=pages&pages_id=9508" target=""><span>LIFESPAN</span></a></li><li><a href="index.php?ws=contactus" target=""><span>CONTACT US</span></a></li><li><a class="lastchild " href="https://www.longfarmstore.com/" target=""><span>LONG FARM STORE</span></a></li></ul></div> 227<div class="float-nav"><div class="float-inner"><ul class="nav-menu" style="margin:0 auto; float:left;"><li><a class="firstchild " href="index.php" target=""><span>HOME</span></a></li><li><a class="firstchild " href="index.php?ws=pages&pages_id=8707" target=""><span>ABOUT US</span></a></li><li><a class="firstchild " href="index.php?ws=productsbycat" target=""><span>PRODUCTS</span></a></li><li class="with-dropdown"><a class="firstchild " href="javascript:void(0)" target=""><span>BLOG</span></a><ul class="float-sub"><li><a href="index.php?ws=latestnews" target="">Latest News</a></li><li><a href="index.php?ws=photoalbum" target="">Gallery</a></li><li><a href="index.php?ws=pages&pages_id=14747" target="">Notice</a></li></ul></li><li><a class="firstchild " href="index.php?ws=pages&pages_id=9508" target=""><span>LIFESPAN</span></a></li><li><a class="firstchild " href="index.php?ws=contactus" target=""><span>CONTACT US</span></a></li><li><a class="lastchild " href="https://www.longfarmstore.com/" target=""><span>LONG FARM STORE</span></a></li></ul><ul class="float-lang"><li><a href="index.php">EN</a></li><li><a href="index.php?lang=cn">ÖÐÎÄ</a></li></ul></div></div></div>
227<script type="text/javascript" src="https://cdn1.npcdn.net/slider/scripts/jquery.nivo.slider.js"></script>
227 228<link rel="stylesheet" href="https://cdn1.npcdn.net/slider/css/themes/default/default.css" type="text/css" media="screen" /> 229<link rel="stylesheet" href="https://cdn1.npcdn.net/slider/css/nivo-slider.css" type="text/css" media="screen" /> 230<style type="text/css"> 231#header-slide{ 232 margin:0 auto; 233 max-width:1400px; 234 width:100%; 235 min-width:1000px !important;} 236</style> 237<div id="header-slide"> 238<div class="slider-wrapper theme-default"> 239 <div id="slider" class="nivoSlider"> 240 <img src="https://cdn1.npcdn.net/images/166823753373b6df0d53d5f5f9c46c5c19125c0a61.jpg" data-thumb="" alt="" /> 241<img src="https://cdn1.npcdn.net/images/166823783695fc4ec6e27f4d3f5a8bcba98c07d2c9.jpg" data-thumb="" alt="" /> 242<img src="https://cdn1.npcdn.net/images/1668237621342675af944d5aec7e4299f0c14a4c5c.jpg" data-thumb="" alt="" /> 243<img src="https://cdn1.npcdn.net/images/16682375995aafc4b9e9416adbe83b2a9372b53fd6.jpg" data-thumb="" alt="" /> 244<img src="https://cdn1.npcdn.net/images/15629074289d612ee94654cfe29d14eda77308944e.png" data-thumb="" alt="" /> 245 </div> 246 </div> 247</div>
248<script type="text/javascript"> 249$(document).ready(function(e) { 250 $('#slider').nivoSlider({ 251 effect:'random', 252 pauseTime: 4000, 253 directionNav: true, 254 controlNav: true, 255 pauseOnHover: false 256 }); 257}) 258</script>
258 259<!-- MAIN CONTENT --><div class="content page-content"><div class='homepage-content' style='width:1000px; margin:0px auto; padding:0px; '><span style="display:inline-block;vspace=3; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://cdn1.npcdn.net/imageshome/1476169188_en_hslide.png');"><img src="https://cdn1.npcdn.net/imageshome/1476169188_en_hslide.png" border=0 style="filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0); " /></span>
259<script> 260 261(function($){ 262 $.fn.viewportChecker = function(useroptions){ 263 // Define options and extend with user 264 var options = { 265 classToAdd: 'visible', 266 offset: 300, 267 callbackFunction: function(elem){} 268 }; 269 $.extend(options, useroptions); 270 271 // Cache the given element and height of the browser 272 var $elem = this, 273 windowHeight = $(window).height(); 274 275 this.checkElements = function(){ 276 // Set some vars to check with 277 var scrollElem = ((navigator.userAgent.toLowerCase().indexOf('webkit') != -1) ? 'body' : 'html'), 278 viewportTop = document.scrollingElement.scrollTop, 279 viewportBottom = (viewportTop + windowHeight); 280 281 $elem.each(function(){ 282 var $obj = $(this); 283 // If class already exists; quit 284 if ($obj.hasClass(options.classToAdd)){ 285 return; 286 } 287 288 // define the top position of the element and include the offset which makes is appear earlier or later 289 var elemTop = Math.round( $obj.offset().top ) + options.offset, 290 elemBottom = elemTop + ($obj.height()); 291 292 // Add class if in viewport 293 if ((elemTop < viewportBottom) && (elemBottom > viewportTop)){ 294 $obj.addClass(options.classToAdd); 295 296 // Do the callback function. Callback wil send the jQuery object as parameter 297 options.callbackFunction($obj); 298 } 299 }); 300 }; 301 302 // Run checkelements on load and scroll 303 $(window).scroll(this.checkElements); 304 this.checkElements(); 305 306 // On resize change the height var 307 $(window).resize(function(e){ 308 windowHeight = e.currentTarget.innerHeight; 309 }); 310 }; 311})(jQuery); 312 313 314 315 316 317 318jQuery(document).ready(function() { 319 jQuery('.post1').addClass("hidden").viewportChecker({ 320 classToAdd: 'visible animated fadeIn', 321 offset: 300 322 323}); 324 325}); 326jQuery(document).ready(function() { 327 jQuery('.post2').addClass("hidden").viewportChecker({ 328 classToAdd: 'visible animated slideleft', 329 offset: 300 330 331}); 332 333}); 334jQuery(document).ready(function() { 335 jQuery('.post3').addClass("hidden").viewportChecker({ 336 classToAdd: 'visible animated slideright', 337 offset: 300 338 }); 339}); 340 341 342</script>
342 343<style type="text/css"> 344.title1 { 345 background-image: 346 347 url("https://cdn1.npcdn.net/img/1496906349contbg.jpg"); 348 349 background-position: center top; 350 351 -webkit-background-size: cover; 352 -moz-background-size: cover; 353 -o-background-size: cover; 354 background-size: cover; 355 356 margin:-1px auto 0 auto; 357 width: 100% !important; 358 height:1071px; 359 360 361} 362.title2 { 363 364 365 366 width: 100% !important; 367 height: auto; 368 background-color:#fff; 369 370} 371 372 373.header2 { 374 display: block; 375 box-sizing:border-box; 376 width:1200px; 377 margin:0 auto; 378 379 380 381}</style> 382<div class="title1"> 383 <div class="header2"> 384 <table border="0" cellpadding="0" cellspacing="0" height="1071" width="1200"> 385 <tbody> 386 <tr> 387 <td align="center"> 388 <br /> 389 <span style="font-size:22px;">Welcome to Long Farm Meat!<br /> 390 <br /> 391 Long Farm Meat Sdn Bhd is formed in 2008 with 1st branch opened in<br /> 392 Bukit Tinggi, Klang, Selangor. We specialized in providing healthy pork<br /> 393 to the neighbourhood at a reasonable price.<br /> 394 ...</span><br /> 395 <br /> 396 <br /> 397 <br /> 398 <br /> 399 <a href="index.php?ws=pages&pages_id=8707"><img border="0" height="39" src="https://cdn1.npcdn.net/img/1496907077menu1.png" width="196" /></a><br /> 400 <br /> 401 <br /> 402 <a href="index.php?ws=video"><img border="0" height="39" src="https://cdn1.npcdn.net/img/1496907093menu2.png" width="196" /></a><br /> 403 <br /> 404 <br /> 405 <br /> 406 <br /> 407 <br /> 408 <br /> 409 <br /> 410 <br /> 411 <br /> 412 <br /> 413 <br /> 414 <br /> 415 <br /> 416 <br /> 417 <br /> 418 <br /> 419 <br /> 420 <br /> 421 <br /> 422 <br /> 423 <br /> 424 <br /> 425 <br /> 426 <br /> 427 <br /> 428 <br /> 429 <br /> 430 <br /> 431 <br /> 432 <br /> 433 <br /> 434 <br /> 435 <br /> 436 </td> 437 </tr> 438 </tbody> 439 </table> 440 </div> 441</div> 442</div><a name="openproducts"></a> 443<div style='clear:both'></div></div> 444 445 446<div class="footer-top"><div class="social-menu"><a href="https://www.facebook.com/LongFarmMeat/" target="_blank" class="social-icon icon-facebook"></a><a href="https://www.instagram.com/longfarmmeat/" target="_blank" class="social-icon icon-instagram"></a><a href="https://www.youtube.com/channel/UCxOmcrCBhEHODnLpP5JYxQg" target="_blank" class="social-icon icon-youtube"></a></div></div><div id="footer" class="footer_style3"><div class="info">© 2016 - 2026 <strong>Long Farm Meat Sdn Bhd</strong>      200701012150 (770155-W) [ <a href='np_productssitemap.php?id=fcba6537741bf200fd2d7e965afd9770&lang=' target='_blank'>Products Sitemap</a> ] [ <a href='index.php?ws=privacypolicy&lang=' target='_blank'>Privacy Policy</a> ] Visitors: 1671328 <span class="poweredby"><b>Powered by</b> <a href="https://www.newpages.com.my/v2/en/company/727799/index.html" target="_blank">NEWPAGES</a></span></div></div><div class="my-account-list" style="width: auto"> 447</div> 448 <style type="text/css"> 449 #switch-mobile{ 450 text-align:center; 451 padding:20px 0; 452 background-color:#0A5200; 453 display:none; 454 font-size:300%; 455 position:fixed; 456 bottom:0; 457 width:100%; 458 z-index:9999; 459 } 460 #switch-mobile i, 461 #switch-mobile a{ 462 color:#fff; 463 } 464 #switch-mobile img{ 465 max-height:25px; 466 } 467 468 /* Smartphones (portrait and landscape) ----------- */ 469@media only screen 470and (min-device-width : 320px) 471and (max-device-width : 480px) { 472 #switch-mobile{ 473 font-size:500%; 474 padding:30px 0; 475 } 476} 477 478 </style> 479 <div id="switch-mobile"><i class="fa fa-mobile"></i> <a href="http://m.longfarmmeat.com">Switch to Mobile Version</a></div> 480<a href="#" id="back-to-top"><i class="fa fa-arrow-circle-up"></i></a> 481<a href="https://wa.me/6122109958?text=%0A%0AClick%20from: https%3A%2F%2Fwww.longfarmmeat.com%2F" id="whatsapp-float-icon" class="contactRecordBtn" data-type="1" target="_blank"><i class="fa fa-whatsapp"></i></a> 482 483
484<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
vendor: 1 bytes, line 484
484
485<script src="https://cdn1.npcdn.net/scripts/jquery.matchHeight-min.js"></script>
vendor: 1 bytes, line 485
485
486<script src="https://cdn1.npcdn.net/scripts/jquery.dotdotdot.min.js"></script>
vendor: 1 bytes, line 486
486
487<script type="text/javascript"> 488 489 490function continue_shopping(){ 491 $(".top-message").fadeOut(300); 492} 493 494function check(){ 495 if($(window).scrollTop() > nav_pos+20){ 496 $('.float-nav').css('display','block'); 497 $('.shopping-cart-list').css({right: "10px", top: "105px"}); 498 }else{ 499 $('.float-nav').css('display','none'); 500 $('.shopping-cart-list').css({right: "10px", top: "50px"}); 501 } 502} 503$(document).mouseup(function(e) 504{ 505 var shopping_cart_list = $('.shopping-cart-list'); 506 507 // if the target of the click isn't the container nor a descendant of the container 508 if (!shopping_cart_list.is(e.target) && shopping_cart_list.has(e.target).length === 0) 509 { 510 shopping_cart_list.hide(); 511 } 512 513 var my_account_list = $('.my-account-list'); 514 515 if (!my_account_list.is(e.target) && my_account_list.has(e.target).length === 0) 516 { 517 my_account_list.hide(); 518 } 519}); 520$(document).ready(function() { 521 if($('.janimate').length > 0){ 522 $('.janimate').each(function(){ 523 $(this).addClass("hidden").viewportChecker(); 524 }); 525 } 526 527 528 $('.float-cart, .top-total-items, #topcart, .topcart').on('click',function(){ 529 530 total_cart_item = parseInt($(" > span",this).html()); 531 532 if(total_cart_item > 0){ 533 $('.shopping-cart-list').load('np_ajax_cartlist.php',function(response, status, xhr){ 534 535 if(status != 'error'){ 536 if(response.length > 0){ 537 $(this).css('display','block'); 538 }else{ 539 $(".top-total-items > span").html('0'); 540 $(".float-cart > span").html('0'); 541 $("#topcart > span, .topcart > span").html('0'); 542 } 543 } 544 }); 545 }else{ 546 window.location = 'index.php?ws=checkout'; 547 } 548 }); 549 550 $('#slider').on('contextmenu', 'img', function(e) { 551 return false; 552 }); 553 554 nav_pos = Math.ceil($(".nav").offset().top); 555 check(); 556 $(window).scroll(check); 557 558 $.get('ismobile.php?a=ajax',function(data){ 559 if(data == 'mobile'){ 560 var switchBarHeight = $("#switch-mobile").outerHeight(); 561 $("#switch-mobile").css('display','block'); 562 $("body").css('margin-bottom',switchBarHeight+'px'); 563 } 564 }); 565 566 $(".imgbtn").parent().mouseenter(function(){ 567 $(this).find('.menunormal').css("display","none"); 568 $(this).find('.menurollover').css("display","block"); 569 }); 570 $(".imgbtn").parent().mouseleave(function(){ 571 $(this).find('.menunormal').css("display","block"); 572 $(this).find('.menurollover').css("display","none"); 573 }); 574 575 /* Record Click */ 576 $('body').on("click", ".contactRecordBtn", function(){ 577 578 var type = $(this).data('type'); 579 580 $.post("np_contactlink_ajax.php",{ 581 type:type, 582 url:'https://www.longfarmmeat.com/' 583 }) 584 }); 585 586 587 /* Shopping Cart */ 588 function cart(){ 589 var action = $(this).attr('action'); 590 var withOption = $(this).attr('with-option'); 591 592 593 if(action == 'add'){ 594 var btn_w = $(this).outerWidth(); 595 var btn_h = $(this).outerHeight(); 596 var btn_offset = $(this).offset(); 597 var btn_x = btn_offset.left - $(window).scrollLeft(); 598 var btn_y = btn_offset.top - $(window).scrollTop(); 599 600 } 601 602 var pid = $(this).attr('pid'); 603 604 var oid = pid+"-0"; 605 var qty = $("#product-qty.p"+pid).val(); 606 607 if(withOption == 'true'){ 608 oid = $(".product-option[pid='"+pid+"']").val(); 609 action = 'add'; 610 } 611 612 product_id = oid; 613 614 $.post("np_add_cart.php",{ 615 lang : '', 616 product_id : product_id, 617 action : action, 618 product_qty : qty 619 },function(data,status){ 620 621 var curPage = ''; 622 var showBar = true; 623 624 var product_name = data['product_name']; 625 var product_total = data['total_items']; 626 var stock_balance = data['stock_balance']; 627 var price = data['display_price']; 628 var error_msg = data['error_msg']; 629 630 $(".top-total-items > span").html(product_total); 631 $(".float-cart > span").html(product_total); 632 $("#topcart > span, .topcart > span").html(product_total); 633 634 if(!product_name){ 635 product_name = "a product"; 636 } 637 638 if(data['error_msg']){ 639 alert(data['error_msg']); 640 }else{ 641 switch(action){ 642 case 'remove': 643 case 'update': 644 case 'clear': 645 showBar = false; 646 location.reload(); 647 break; 648 case 'add': 649 if(curPage == 'checkout'){ 650 showBar = false;
651 location.reload(); 652 } 653 //$("#in_stock").html(stock_balance); 654 //$(".stock-qty").load("np_check_stock.php",{'pid':pid}); 655 656 if (typeof check_stock == 'function') { 657 check_stock(oid,pid); 658 } 659 660 if(error_msg){ 661 alert(error_msg); 662 }else{ 663 fbq('track', 'AddToCart', { 664 content_name: product_name, 665 content_ids: [pid], 666 value:price, 667 currency:'MYR', 668 content_type: 'product' 669 }); 670 671 } 672 break; 673 } 674 } 675 676 if(product_total > 0 && showBar){ 677 msgbox = $(".top-message"); 678 679 if(msgbox.is(":hidden")){ 680 681 $("#shopping-cart").css("position","fixed"); 682 msgbox.slideDown({ 683 duration:300, 684 step:function(){ 685 h = $("#shopping-cart").outerHeight(); 686 $("body").css("background-position","center "+h+"px"); 687 if($(".top-message").is(":visible")){ 688 $("body").css("margin-top",h+"px"); 689 } 690 }, 691 complete:function(){ 692 var hash = (window.location.hash).replace('#',''); 693 694 if(window.location.hash){ 695 var pos = $("a[name*='"+hash+"']").offset(); 696 $("html,body").animate({ 697 scrollTop:pos.top - h 698 },1000); 699 } 700 } 701 }); 702 703 } 704 if(action == 'add'){ 705 $(".message").html('You just added <strong id="add-product-name">'+product_name+'</strong>.'); 706 707 if($("#topcart").length){ 708 cart_btn = $("#topcart"); 709 }else if($(".top-total-items").length){ 710 cart_btn = $(".top-total-items"); 711 }else if($(".topcart").length){ 712 cart_btn = $(".topcart"); 713 }else if($(".float-cart").length){ 714 cart_btn = $(".float-cart"); 715 }else{ 716 cart_btn = $(".top-total-items"); 717 } 718 719 var cart_w = cart_btn.outerWidth(); 720 var cart_h = cart_btn.outerHeight(); 721 var cart_offset = cart_btn.offset(); 722 var cart_x = cart_offset.left - $(window).scrollLeft(); 723 var cart_y = cart_offset.top - $(window).scrollTop(); 724 725 726 $("body").append('<div class="add-cart-box"></div>'); 727 $(".add-cart-box").width(btn_w); 728 $(".add-cart-box").height(btn_h); 729 $(".add-cart-box").css({"left":btn_x+"px","top":btn_y+"px"}); 730 $(".add-cart-box").animate({ 731 top:cart_y, 732 left:cart_x, 733 width:cart_w, 734 height:cart_h 735 },500,function(e){ 736 $(this).remove(); 737 }); 738 }else{ 739 $(".message strong").html(product_total); 740 } 741 } 742 }); 743 } 744 function numberWithCommas(x) { 745 num = x.toFixed(2); 746 return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); 747 } 748 // check shopping cart 749 cart(); 750 751 $('a.add-cart, a.update-item, a.remove-item').click(cart); 752 753 754 $("a.btn-clear").click(function(e){ 755 $.post("np_add_cart.php",{action:'clear'},function(data,status){ 756 location.reload(); 757 }); 758 }); 759 760 // prevent "enter" submit in qty fields 761 $("input[type=text]#product-qty").keypress(function(e){ 762 if(e.keyCode == '13'){ 763 e.preventDefault(); 764 var item_no = $(this).attr("class"); 765 766 $("a[class*='update-item "+item_no+"']").trigger("click"); 767 } 768 }) 769 770 // prevent number in qty fields 771 $("input[type=text]#product-qty").keydown(function(e) { 772 // Allow special chars + arrows 773 if (e.keyCode == 46 || e.keyCode == 8 || e.keyCode == 9 774 || e.keyCode == 27 || e.keyCode == 13 775 || (e.keyCode == 65 && e.ctrlKey === true) 776 || (e.keyCode >= 35 && e.keyCode <= 39)){ 777 return; 778 }else { 779 if (e.shiftKey || (e.keyCode < 48 || e.keyCode > 57) && (e.keyCode < 96 || e.keyCode > 105 )) { 780 e.preventDefault(); 781 } 782 } 783 }); 784 785 // select payment method 786 $("#payment_method").change(function(e){ 787 var payment_method = $(this).val(); 788 789 $(".payment_description").show(); 790 $(".payment-method-desc").hide(); 791 if($(".payment-method-desc").hasClass(payment_method)){ 792 $("."+payment_method).show(); 793 }else{ 794 $(".payment_description").hide(); 795 } 796 }); 797 798 // select shipping charge 799 $("#shopping_cart").on('keydown change',"#shipping_charge",function(e){ 800 var extra_shipping = $('option:selected', this).attr('price'); 801 var shipping_type = $('option:selected', this).attr('data-type'); 802
803 if(extra_shipping != 'quote'){ 804 extra_shipping = parseFloat(extra_shipping); 805 }else{ 806 extra_shipping = 0; 807 } 808 var extra_shipping_gst = parseFloat($('option:selected', this).attr('gst')); 809 var summary_amount = parseFloat($("#sub-amount").attr('data')); 810 var summary_gst = parseFloat($("#sub-gst").attr('data')); 811 var service_tax = parseFloat($("#sub-servicetax").attr('data')); 812 var sales_tax = parseFloat($("#sub-salestax").attr('data')); 813 var total_amount = parseFloat($("#total-amount").attr('data')); 814 var subtotal_amount = parseFloat($("#total-amount").attr('data-subtotal')); 815 var currency_sign = "RM"; 816 817 var shipping_id = $(this).val(); 818 819 $('[id^="sid"]').hide(); 820 $("#sid"+shipping_id).css('display','block'); 821 822 $("#sub-amount").html(currency_sign+' '+numberWithCommas(summary_amount+extra_shipping)); 823 $("#sub-gst").html(currency_sign+' '+numberWithCommas(summary_gst+extra_shipping_gst)); 824 825 total_amount = subtotal_amount+extra_shipping; 826 827 if(service_tax > 0){ 828 total_amount = total_amount + service_tax; 829 } 830 if(sales_tax > 0){ 831 total_amount = total_amount + sales_tax; 832 } 833 834 $("#shipping-charge-section").hide(); 835 836 if(shipping_type == 'quote_shipping'){ 837 $("#shipping-charge").html('Pending'); 838 $("#shipping-price").html('Pending'); 839 $("#total-amount").html(currency_sign+' '+numberWithCommas(total_amount)); 840 }else if(!extra_shipping){ 841 if($(this).val() == ''){ 842 $("#shipping-charge").html('-'); 843 $("#shipping-price").html('-'); 844 }else{ 845 $("#shipping-charge").html(currency_sign+' '+numberWithCommas(extra_shipping)); 846 $("#shipping-price").html(currency_sign+' '+numberWithCommas(extra_shipping)); 847 } 848 $("#total-amount").html(currency_sign+' '+numberWithCommas(total_amount)); 849 }else{ 850 $("#shipping-charge-section").show(); 851 $("#shipping-charge").html(currency_sign+' '+numberWithCommas(extra_shipping)); 852 $("#shipping-price").html(currency_sign+' '+numberWithCommas(extra_shipping)); 853 $("#total-amount").html(currency_sign+' '+numberWithCommas(total_amount)); 854 } 855 }); 856 /* END Shopping Cart */ 857 858 var news_content_w = $(".footer-section").width() - $(".news-list .news-img").outerWidth(true); 859 $(".news-content .news-title").width(news_content_w); 860 861 $(".news-content .news-title").dotdotdot({ 862 height : 40 863 }); 864 865 var recent_post_content_w = $(".footer-section").width() - $(".news-list .news-img").outerWidth(true); 866 $(".news-content .news-title").width(recent_post_content_w); 867 868 $(".news-content .news-title").dotdotdot({ 869 height : 40 870 }); 871 872 $("body").on('click touchstart','#popAlert',function(e){ 873 $(".btn-confirm-order").removeClass("clicked"); 874 $(this).remove(); 875 $("body").css('overflow','auto'); 876 }); 877 878 $(".video-item").matchHeight(); 879 $(".products-listing .product-name").matchHeight(); 880 $(".tag-product-body .product-name").matchHeight(); 881 $(".tag-product-body .product-short-desc").matchHeight(); 882 $(".tag-product-body .product-price-body").matchHeight(); 883 884 //$(".row .columns").matchHeight(); 885 886 $('.slider').slick(); 887 888}); 889 890 function IsEmail(email) { 891 var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; 892 return regex.test(email); 893 } 894 895 function popAlert(msg){ 896 $("body").append('<div id="popAlert"><div class="popMsg"><span class="note-warning">'+msg+'</span></div></div>'); 897 $("body").css('overflow','hidden'); 898 } 899 900</script>
vendor: 1 bytes, line 900
900
901<script> 902$(function(){ 903 $(".subscribe_newsletter").fancybox({ 904 iframe : { 905 css : { 906 margin:0, 907 padding:0, 908 scrolling:'no' 909 } 910 }, 911 animationEffect:'zoom-in-out' 912 }); 913 914 if($("a.subscribe_newsletter").length){ 915 $('a.subscribe_newsletter').colourBrightness(); 916 } 917 918 }); 919</script>
919 920<style> 921.subscribe_newsletter{ 922 position:fixed; 923 left:30px; 924 bottom:0; 925 cursor:pointer; 926 padding:5px 20px; 927 background-color:#0A5200; 928 z-index:100; 929} 930.subscribe_newsletter:hover{ 931 text-decoration:none; 932} 933</style> 934<a class="subscribe_newsletter" data-type="iframe" href="subscribe_newsletter.php?lang="><i class="fa fa-envelope-o"></i> Subscribe Newsletter</a>
935<script> 936 $(function(){ 937 938 $("#payment_method").on('change',function(){ 939 if($(this).val() == 'revpay'){ 940 $('.payment_method').show(); 941 }else{ 942 $('.payment_method').hide(); 943 } 944 }); 945 946 $("#stickysearch").on("click",function(e){ 947 if(!$("#stickysearchbar").hasClass("active")){ 948 $("#stickysearchbar").addClass("active"); 949 } 950 }); 951 $(document).mouseup(function(e) { 952 var obj = $("#stickysearchbar"); 953 954 if (!obj.is(e.target) && obj.has(e.target).length === 0){ 955 obj.removeClass("active"); 956 } 957 }); 958 function backToTop(){ 959 var $_position = -50; 960 if($(window).scrollTop() > 10){ 961 $_position = 30; 962 }else{ 963 $_position = -50; 964 } 965 $("#back-to-top").animate({'bottom':$_position},{ 966 queue:false, 967 duration:300 968 }); 969 } 970 971 backToTop(); 972 $(window).scroll(backToTop); 973 974 $('#back-to-top').click(function(){ 975 $('html, body').animate({ scrollTop: 0 }, 'slow'); 976 }); 977 }) 978</script>
978 979 980</body> 981</html>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.