var comment_list = ""; var comment_page = 1; /* Util function that gets called to trigger animated search results */ function animResult(count) { $("#comment_container_"+count).fadeIn(350) } function commentSubmit(form) { if (form.comment.value == "") { alert("Please enter your comment."); return false; } else if (form.author.value == "") { alert("Please enter your name."); return false; } else { form.submit; } } function flagComment(id) { $("#report_abuse_form_"+id).submit(); } $(document).ready(function(){ function updatePaginationStats() { num_pages = Math.floor(comment_list.length / comment_per_page) + 1; if (comment_list.length / comment_per_page == Math.round(num_pages)) num_pages--; $text = "Page "+comment_page+" of " + num_pages; if (comment_list.length < comment_per_page) { $("#comment_prev_next_container").html(""); } else { $("#comment_prev_next_container").css("display", "block"); $("#comment_pagination_nav_container").css("display", "block"); $("#comment_pagination").html($text); } } function displaySearchResults() { $("#comment_list_container").html(""); // Iterate through array of results to build out a list var num_videos = comment_list.length; var this_url = window.location.href; var search_results = ''; num_display_videos = Math.min(comment_per_page, (num_videos - comment_offset)) // Loop through the videos and display them for (count = comment_offset; count < (num_display_videos + comment_offset); count++) { row = comment_list[count]; // Build the row var video = "
  • "; video += '
    '; if (row['author'] != "") video += row['author'] ; video += "
    " if (row['hrs_ago'] < 25) video += '
    ' + Math.round(row['hrs_ago']) + ' hrs ago
    '; else video += '
    ' + Math.round(row['hrs_ago']/24) + " days ago
    "; video += "Report Abuse "; video += '
    '; video += '
    ' + row['comment'] + "
    "; video += '
  • '; $(video).appendTo("#comment_list_container") $("#comment_container_"+count).css("display", "none"); setTimeout("animResult("+count+");" , (count-comment_offset)*100) } // Hide/Show the left right buttons depending on where you are in the list if ((comment_offset+comment_per_page) >= comment_list.length) $("#comment_right_btn").children().addClass("inactive") else $("#comment_right_btn").children().removeClass("inactive") if (comment_offset <= 0) $("#comment_left_btn").children().addClass("inactive") else $("#comment_left_btn").children().removeClass("inactive") } $("#comment_left_btn").click(function() { if (comment_offset > 0) { comment_offset = Math.max((comment_offset - comment_per_page + 1), 0); displaySearchResults(); comment_page--; updatePaginationStats(); } }); $("#comment_right_btn").click(function() { if (comment_offset < comment_list.length - comment_per_page - 1) { comment_offset = Math.min((comment_offset + comment_per_page - 1), (comment_list.length)); displaySearchResults(); comment_page++; updatePaginationStats(); } }); displaySearchResults(); updatePaginationStats(); if (comment_list.length != 0) $("#comment_list_header").css("display", "block"); }); ;var comment_per_page = 20;var comment_offset = 0;var comment_flag_abusive_webservice_url = 'http://vms.mync.com/vms/comment/flag-abuse/';var video_page_url = 'http://news.mync.com/site/news/video/2951/Linked In pkg/'; comment_list = eval([{"com_id":"199","video_id":"2951","begin":"0","timestamp":"1227364086","hrs_ago":8798,"author":"Kevin Alexander","comment":"Linked in was invaluable in my job search and I specifically worked with Martin on Linked in.\r\n\r\nKevin Alexander "},{"com_id":"179","video_id":"2951","begin":"0","timestamp":"1226760484","hrs_ago":8966,"author":"Martin Brossman","comment":"I would like to mention several RTP resources related to Linkedin: 1) Greg Hyer with linkingraleighnc.com and Chuck Hester with Linkedin Live (find Chuck on Linkedin or iContact) and my group Networking on the Web at the Capitol City Club (read more about it here at mync.com: http:\/\/tinyurl.com\/3ts2f8 \r\n\r\nIf you know of other Linkedin resources in the Raleigh area please share them. \r\n\r\nThanks\r\nMartin Brossman - My Linkedin info:\r\nhttp:\/\/www.linkedin.com\/in\/martinbrossman"},{"com_id":"177","video_id":"2951","begin":"0","timestamp":"1226719608","hrs_ago":8977,"author":"Anora McGaha","comment":"Very interesting. Spreading the word about the importance of LinkedIn for job searching. "},{"com_id":"174","video_id":"2951","begin":"0","timestamp":"1226715829","hrs_ago":8978,"author":"Greg Hyer","comment":"Thank you to WNCN for doing this editorial. (Pause the video at 1:14) If you are in the Triangle and would like to join the 2200 other members of the Linking Raleigh, NC group visit http:\/\/www.linkedin.com\/e\/gis\/81620"}]); document.write('

    Comments

    Post A Comment

    ');