1// Get related news 2(function($) { 3 $.Lazy('getCategorySpecificNews', function(element, response) { 4 5 var news_id = element.data('news-id'); 6 7 $.ajax({ 8 type : "POST", 9 url : "/processes/pcs_get_category_specific_news.php", 10 data : {NEWS_ID : news_id}, 11 success: function(data) { 12 13 element.html(data); 14 15 } 16 }); 17 18 response(true); 19 }); 20})(window.jQuery); 21 22// Get CPD news 23(function($) { 24 $.Lazy('getCPDNews', function(element, response) { 25 26 var cate_id = element.data('cate-id'); 27 28 $.ajax({ 29 type : "POST", 30 url : "/processes/pcs_get_cpd_news.php", 31 success: function(data) { 32 33 element.html(data); 34 35 } 36 }); 37 38 response(true); 39 }); 40})(window.jQuery); 41 42// Get top 6 CPD 43(function($) { 44 $.Lazy('getCPDNews6', function(element, response) { 45 46 $.ajax({ 47 type : "POST", 48 url : "/processes/pcs_get_cpd_news_6.php", 49 success: function(data) { 50 element.html(data); 51 } 52 }); 53 54 response(true); 55 }); 56})(window.jQuery); 57 58// Get top 6 CPD 59// (function($) { 60// $.Lazy('getCPDFilter', function(element, response) { 61 62// $.ajax({ 63// type : "POST", 64// url : "/processes/pcs_get_cpd_news_filter.php", 65// success: function(data) { 66// element.html(data); 67// } 68// }); 69 70// response(true); 71// }); 72// })(window.jQuery); 73 74// Get related news 75(function($) { 76 $.Lazy('getRelatedNews', function(element, response) { 77 78 var news_id = element.data('news-id'); 79 80 $.ajax({ 81 type : "POST", 82 url : "/processes/pcs_get_related_news.php", 83 data : {NEWS_ID : news_id}, 84 success: function(data) { 85 86 element.html(data); 87 88 var controls = element.parents('.pst-box').find('.js-pst-navs'); 89 90 element.slick({ 91 slidesToShow: 1, 92 appendArrows: controls, 93 prevArrow: '<span><i class="fa fa-angle-left"></i></span>', 94 nextArrow: '<span><i class="fa fa-angle-right"></i></span>', 95 responsive: [{ 96 breakpoint: 1229, 97 settings: { 98 slidesToShow: 1, 99 slidesToScroll: 1, 100 } 101 }, { 102 breakpoint: 1077, 103 settings: { 104 slidesToShow: 1, 105 slidesToScroll: 1 106 } 107 }, { 108 breakpoint: 639, 109 settings: { 110 slidesToShow: 1, 111 slidesToScroll: 1 112 } 113 }] 114 }); 115 } 116 }); 117 118 response(true); 119 }); 120})(window.jQuery); 121 122// Get recent news 123(function($) { 124 $.Lazy('getRecentNews', function(element, response) { 125 126 $.ajax({ 127 type : "POST", 128 url : "/processes/pcs_get_recent_news.php", 129 success: function(data) { 130 131 element.html(data); 132 133 pagg = element.parents('.pst-block').find('.js-sbr-pagination'); 134 135 element.slick({ 136 fade: true, 137 speed: 1000, 138 dots: true, 139 arrows: false, 140 appendDots: pagg, 141 dotsClass: 'sbr-dots', 142 adaptiveHeight: true, 143 customPaging : function(element, i) { 144 return '<span></span>'; 145 } 146 }); 147 148 } 149 }); 150 151 response(true); 152 }); 153})(window.jQuery); 154 155// Get CPD Articles 156(function($) { 157 $.Lazy('getRecentCPD', function(element, response) { 158 159 $.ajax({ 160 type : "POST", 161 url : "/processes/pcs_get_recent_cpd.php", 162 success: function(data) { 163 164 element.html(data); 165 166 pagg = element.parents('.pst-block').find('.js-sbr-pagination'); 167 168 element.slick({ 169 fade: true, 170 speed: 1000, 171 dots: true, 172 arrows: false, 173 appendDots: pagg, 174 dotsClass: 'sbr-dots', 175 adaptiveHeight: true, 176 customPaging : function(element, i) { 177 return '<span></span>'; 178 } 179 }); 180 181 } 182 }); 183 184 response(true); 185 }); 186})(window.jQuery); 187 188// Get top 3 most popular 189(function($) { 190 $.Lazy('getMostPopular3', function(element, response) { 191 192 $.ajax({ 193 type : "POST", 194 url : "/processes/pcs_get_most_popular_3.php", 195 success: function(data) { 196 element.html(data); 197 } 198 }); 199 200 response(true); 201 }); 202})(window.jQuery); 203 204// Get top 6 most popular 205(function($) { 206 $.Lazy('getMostPopular6', function(element, response) { 207 208 $.ajax({
209 type : "POST", 210 url : "/processes/pcs_get_most_popular_6.php", 211 success: function(data) { 212 element.html(data); 213 } 214 }); 215 216 response(true); 217 }); 218})(window.jQuery); 219 220// Get latest special features widget 221(function($) { 222 $.Lazy('getLatestSpecialFeatures', function(element, response) { 223 224 var cid = element.data('cid'); 225 226 $.ajax({ 227 type : "POST", 228 data : {CATE_ID : cid}, 229 url : "/processes/pcs_get_latest_special_features.php", 230 success: function(data) { 231 element.html(data); 232 } 233 }); 234 235 response(true); 236 }); 237})(window.jQuery); 238 239// Get latest from Money Careers 240(function($) { 241 $.Lazy('getNextRoadshow', function(element, response) { 242 243 $.ajax({ 244 type : "POST", 245 url : "/processes/pcs_get_next_event.php", 246 success: function(data) { 247 if(data == "") { 248 //$('#nextRoadshow').hide() 249 } else { 250 251 element.html(data); 252 253// var pagination = element.parents('.pst-box').find('.js-ole-pagination'); 254 var controls = element.parents('.pst-box').find('.js-ole-navs'); 255 256 element.slick({ 257 animation : "slide", 258 controlNav : false, 259 animationLoop : true, 260 slideshow : true, 261 fade: true, 262 speed: 1000, 263 autoplay: true, 264 autoplaySpeed: 3000, 265 arrows: true, 266 appendArrows: controls, 267 prevArrow: '<span><i class="fa fa-angle-left"></i></span>', 268 nextArrow: '<span><i class="fa fa-angle-right"></i></span>', 269 dots: true, 270// appendDots: pagination, 271 dotsClass: 'sbr-dots', 272 customPaging : function(element, i) { 273 return '<span></span>'; 274 } 275 }); 276 } 277 } 278 }); 279 280 response(true); 281 }); 282})(window.jQuery); 283 284// Get latest from Money Careers 285(function($) { 286 $.Lazy('getMoneyCareersXML', function(element, response) { 287 288 var url = element.data('url'); 289 290 $.ajax({ 291 type : "POST", 292 url : "/processes/pcs_money_careers_xml.php", 293 data : {MC_URL : url}, 294 success: function(data) { 295 296 element.html(data); 297 298 } 299 }); 300 301 response(true); 302 }); 303})(window.jQuery); 304 305// Get Latest from other Pubs 306(function($) { 307 $.Lazy('getOtherPubPosts', function(element, response) { 308 309 var url = element.data('url'); 310 311 $.ajax({ 312 type : "POST", 313 url : "/processes/pcs_pub_xml.php", 314 data : {PUB_URL : url}, 315 success: function(data) { 316 element.html(data); 317 } 318 }); 319 320 response(true); 321 }); 322})(window.jQuery); 323 324// Get user/author most recently read posts 325(function($) { 326 $.Lazy('getLatestRead', function(element, response) { 327 328 var user_id = element.data('user'); 329 330 jQuery.ajax({ 331 type : 'POST', 332 url : '/processes/pcs_get_user_articles_read.php', 333 data : {UID : user_id}, 334 success : function(data) { 335 element.html(data); 336 } 337 }); 338 339 response(true); 340 }); 341})(window.jQuery); 342 343// Get Latest posts from authors 344(function($) { 345 $.Lazy('getLatestAuthorPosts', function(element, response) { 346 347 var user_id = element.data('user'); 348 349 jQuery.ajax({ 350 type : 'POST', 351 url : '/processes/pcs_get_user_articles_recent.php', 352 data : { UID : user_id }, 353 success : function(data) { 354 element.html(data); 355 } 356 }); 357 358 response(true); 359 }); 360})(window.jQuery); 361 362 363 364// Get user specific comments 365(function($) { 366 $.Lazy('getUserComments', function(element, response) { 367 368 var user_id = element.data('user'); 369 370 jQuery.ajax({ 371 type : 'POST', 372 url : '/processes/pcs_get_user_comments.php', 373 data : { 374 UID : user_id 375 }, 376 success: function(data) { 377 378 element.html(data); 379 380 } 381 }); 382 383 response(true); 384 }); 385})(window.jQuery); 386 387 388 389// Comments 390(function($) { 391 $.Lazy('getComments', function(element, response) { 392 393 var news_id = element.data('news'); 394 395 jQuery.ajax({ 396 type : 'POST', 397 url : '/processes/pcs_get_comments.php', 398 data : { 399 NID : news_id 400 }, 401 success: function(data) { 402 403 var dataArrayStrings = JSON.parse(data); 404 405 if (dataArrayStrings[0] > 0) { 406 jQuery('.commentCount').append('|<div class="ptp-1-comments"><a href="#allComments"><i class="fa fa-comment-o" aria-hidden="true"></i><span>'+dataArrayStrings[0]+'</span></a></div>'); 407 jQuery('.commentList').html(dataArrayStrings[1]); 408 } else { 409 jQuery('#allComments').hide(); 410 } 411 412 var popups = $('.ajax-popup-comment'); 413 popups.magnificPopup({ 414 type: 'ajax', 415 midClick: true,
416 fixedContentPos: false, 417 closeMarkup: '<span class="popup-close-ic mfp-close"></span>', 418 removalDelay: 300, 419 mainClass: 'mfp-fade-top' 420 }); 421 422 var trigger = $('.delete'); 423 424 trigger.on('click', function() { 425 426 var extras = [ 427 $(this).attr('data-row-id'), 428 $(this).attr('data-table') 429 ]; 430 431 mfpConfirmDialog ( 432 "Are you sure you want to delete this?", 433 "Alert!", 434 "Delete", 435 extras, 436 function (row_array) { 437 438 439 $.ajax({ 440 type : "POST", 441 url : "/processes/pcs_delete.php", 442 data : { 443 RowID : row_array[0], 444 Table : row_array[1] 445 }, 446 success: function(data) { 447 $('#row-' + row_array[0]).remove(); 448 return false; 449 } 450 451 }); 452 } 453 ); 454 455 }); 456 457 } 458 }); 459 460 response(true); 461 }); 462})(window.jQuery);
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.