Question:
Tell me about on page SEO?
khushi
2010-08-08 21:43:03 UTC
Tell me about on page SEO. Like in off page SEO we do article submission, blog submission, blog commenting, bookmarking etc. etc. Tell me What comes in ON Page SEO??? Please reply me soon.. as soon as possible..
Twelve answers:
anonymous
2010-08-12 16:41:50 UTC
On page SEO is just



title

page order

h1

h2

picture tags, attributes

link attributes

page tags

meta description



create a checklist for every page and within 30 or so building pages it will become second nature



also don't forget about on site SEO not just page.....
Kartik
2016-02-09 04:28:32 UTC
On page SEO is what you do on your own website or blog in order to enhance the traffic. It is the first thing that every webmaster should look into. On page optimization needs constant revision of the site in order to improve and maintain the ranking. In this technique, the role of keywords or key phrases that the user might type has a prominent position. It includes headings, page titles, domain names and images. But all these elements have to be search-engine friendly. The size of the site should not be too large or too small. It should have genuine, interesting and relevant content. The main components involved in on-page optimization are listed below:



- Headings

- Title of the page

- Meta description and tags

- Image and pictures

- URL structure and domain information

- User-friendly navigation and quick loading

- Fresh and quality content

- Optimized external and internal links

http://sjainventures.com/
Sam
2010-08-10 00:42:46 UTC
On-Page Ranking Factors



Keywords in the Tag <br /><br />Keywords in the Page URL <br /><br />Keywords in the Page Copy <br /><br />Keywords in the <meta> Description Tag <br /><br />Keywords in the Heading Tags <br /><br />Keyword Proximity <br /><br />Keyword Prominence <br /><br />Keywords in the Link Anchor Text <br /><br />Quality Outbound Links <br /><br />Keywords in outbound links <br /><br />Web Page Age <br /><br />Web Page Size <br /><br />Size or Quantity of Content <br /><br />Internal link architecture <br /><br />URL canonicalization <br /><br />Freshness of Pages <br /><br />Depending on the site, your ratio of new to old pages could play a role in how search <br /><br />engines rank your site </div> </div> <!--</div>--> </div> <div class="qa_answer " > <!--<div class="qa_post_head_div">--> <div class="qa_post_head"> <div class="post" id="post3"> <div class="post_header"> <div class="ya_post_header_poster"> anonymous </div> <div class="post_header_date"> <span class="timeago" title="2010-08-09T00:51:13-05:00">2010-08-09 05:51:13 UTC</span> </div> </div> </div> </div> <!--</div>--> <!--<div class="qa_post_content_div">--> <!--<div class="qa_post_content_left"> </div>--> <div class="qa_post_content_body"> <div class="post_body parsed"> <div class="post_actions"> <!--<a href="https://narkive.com/J8ey6FXQ.00000" style="border: 0;" class="post_actions_bit" rel="nofollow">switch to english</a>--> </div> Some of the main things you need to do with on page SEO are as follows: <br /><br /> <br /><br />You need good title tags. This is actually one of the tougher SEO jobs, but one of the most important. <br /><br /> <br /><br />You need good content for on page SEO. Good content for SEO is absolutely necessary; it's not just all about keywords. <br /><br /> <br /><br />You need good structure. If the search engine spiders are not able to creep from page to page, then your on page SEO will be very limited, so you need to make sure that all of your web pages can be indexed by search engines. <br /><br /> <br /><br />Make sure that your meta-tags are arranged correctly. Your page title tags and description tags should describe the content of your web pages. <br /><br /> <br /><br />Always label the different headers on your web pages using the H tags. <br /><br /> <br /><br />You need to make sure that you use descriptive URLs for your images, label all of your images with descriptive alt attributes for good on page SEO. <br /><br /> <br /><br />Use good anchor text links within your content. If you have a page about Dogs and Cats for example, use the phrase Dogs and Cats in the text that links to it. <br /><br /> <br /><br />Do yourself a favor and make sure that your page code is valid, in some instances a bad page code can lead to search engines unfortunately not being able to read your page properly, so always use the W3C validator to check your page markup for good on page SEO. </div> </div> <!--</div>--> </div> <div class="qa_answer " > <!--<div class="qa_post_head_div">--> <div class="qa_post_head"> <div class="post" id="post4"> <div class="post_header"> <div class="ya_post_header_poster"> Rakesh </div> <div class="post_header_date"> <span class="timeago" title="2015-09-17T21:47:46-05:00">2015-09-18 02:47:46 UTC</span> </div> </div> </div> </div> <!--</div>--> <!--<div class="qa_post_content_div">--> <!--<div class="qa_post_content_left"> </div>--> <div class="qa_post_content_body"> <div class="post_body parsed"> <div class="post_actions"> <!--<a href="https://narkive.com/J8ey6FXQ.00000" style="border: 0;" class="post_actions_bit" rel="nofollow">switch to english</a>--> </div> on page search engine optimization is done directly on websites that means all modifications are done on websites. on page seo techniques are as follows-<br /><br />1. page title- create unique page titles for every web page of your site.<br /><br />2. meta description - meta description helps to search engine's to know the relevancy of your web content.<br /><br />3. meta tags<br /><br />4. url structures - always choose simple url so that user easily write or remember this.<br /><br />5. keywords - using keywords always helps.<br /><br />6. quality content- every web page should carry quality content.<br /><br />7. alt key attribute - use this key attribute with images it helps when images can not download on system than particular description shows instead of images. </div> </div> <!--</div>--> </div> <div class="qa_answer " > <!--<div class="qa_post_head_div">--> <div class="qa_post_head"> <div class="post" id="post5"> <div class="post_header"> <div class="ya_post_header_poster"> Maria Sizer </div> <div class="post_header_date"> <span class="timeago" title="2010-08-10T17:53:42-05:00">2010-08-10 22:53:42 UTC</span> </div> </div> </div> </div> <!--</div>--> <!--<div class="qa_post_content_div">--> <!--<div class="qa_post_content_left"> </div>--> <div class="qa_post_content_body"> <div class="post_body parsed"> <div class="post_actions"> <!--<a href="https://narkive.com/J8ey6FXQ.00000" style="border: 0;" class="post_actions_bit" rel="nofollow">switch to english</a>--> </div> There are so many factors in On Page SEO <br /><br />1) Meta Tags <br /><br />2) Content Optimization <br /><br />3) Image Optimization <br /><br />4) Anchor Tags <br /><br />5) Inter linking <br /><br />6) H1 Tag <br /><br />7) Canonical Issue </div> </div> <!--</div>--> </div> <div class="qa_answer " > <!--<div class="qa_post_head_div">--> <div class="qa_post_head"> <div class="post" id="post6"> <div class="post_header"> <div class="ya_post_header_poster"> totobaylon </div> <div class="post_header_date"> <span class="timeago" title="2010-08-09T23:04:02-05:00">2010-08-10 04:04:02 UTC</span> </div> </div> </div> </div> <!--</div>--> <!--<div class="qa_post_content_div">--> <!--<div class="qa_post_content_left"> </div>--> <div class="qa_post_content_body"> <div class="post_body parsed"> <div class="post_actions"> <!--<a href="https://narkive.com/J8ey6FXQ.00000" style="border: 0;" class="post_actions_bit" rel="nofollow">switch to english</a>--> </div> On page SEO concerns in making your website relavant to certain keywords/keyphrases. Google has several on-page factors that it uses in scoring a web page. <br /><br /> <br /><br />Here are some of the factors: <br /><br />1. Relevancy of Title <br /><br />2. Relevancy of Meta Description text <br /><br />3. Relevancy of Body text <br /><br />4. Relevancy of <IMG> Alt text <br /><br />5. Relevancy of HTML coments <br /><br />6. Proximity of keywords to top of page <br /><br />7. Page loading time <br /><br />8. Density of keywords <br /><br />9. Number of outbound links <br /><br />10. In-linking between pages <br /><br /> <br /><br />You have the option to hire an SEO expert if you have the budget. SEO requires analysis and web savvy skills. </div> </div> <!--</div>--> </div> <div class="qa_answer " > <!--<div class="qa_post_head_div">--> <div class="qa_post_head"> <div class="post" id="post7"> <div class="post_header"> <div class="ya_post_header_poster"> Jared Carrizales </div> <div class="post_header_date"> <span class="timeago" title="2010-08-09T07:04:50-05:00">2010-08-09 12:04:50 UTC</span> </div> </div> </div> </div> <!--</div>--> <!--<div class="qa_post_content_div">--> <!--<div class="qa_post_content_left"> </div>--> <div class="qa_post_content_body"> <div class="post_body parsed"> <div class="post_actions"> <!--<a href="https://narkive.com/J8ey6FXQ.00000" style="border: 0;" class="post_actions_bit" rel="nofollow">switch to english</a>--> </div> Title <br /><br />Description <br /><br />Headline <br /><br />Good Keywords <br /><br />Alt Tags <br /><br />Great Content(very important to search engines) <br /><br /> <br /><br />1) Keywords <br /><br />Your keywords are SOOOO important. It's how Google finds your page in the first place. Your keywords, title, and description is whats going to tell Google whether or not to recommend your page the person searching. http://www.website-help-from-ebooks.com/good_keywords.html <br /><br /> <br /><br />It's recommended that your keyword should make up of 2% of your content. It's a delicate balance. Too much and the spiders might look at it like spam. Too little and it might have trouble determining what your page is about. <br /><br /> <br /><br />Your keyword(s) should be included in the description, title, and the headline. <br /><br /> <br /><br />You can search for the correct supply/demand keywords on various websites - http://www.wordtracker.com <br /><br />http://www.adwords.google.com/select/Key… <br /><br /> <br /><br />These websites will help you decide keyword profitably, supply/demand, CPC (cost-per-click) and much more. <br /><br /> <br /><br />2) Content <br /><br />The SEs LOVE fresh, new, juicy content. By updating content on a regular basis you're telling the spiders that you're helping your visitors by offering them frequent information. That makes the SEs look good, and makes your visitor want to return. http://www.website-help-from-ebooks.com/website_content_ebooks.html <br /><br /> <br /><br />Great content is a big reason why websites and blogs become so viral. By having a unique voice, your visitors are going to trust you and the valuable information that you're offering. <br /><br /> <br /><br />Hope this has helped, good luck. </div> </div> <!--</div>--> </div> <div class="qa_answer " > <!--<div class="qa_post_head_div">--> <div class="qa_post_head"> <div class="post" id="post8"> <div class="post_header"> <div class="ya_post_header_poster"> Amy </div> <div class="post_header_date"> <span class="timeago" title="2017-01-22T01:07:23-06:00">2017-01-22 07:07:23 UTC</span> </div> </div> </div> </div> <!--</div>--> <!--<div class="qa_post_content_div">--> <!--<div class="qa_post_content_left"> </div>--> <div class="qa_post_content_body"> <div class="post_body parsed"> <div class="post_actions"> <!--<a href="https://narkive.com/J8ey6FXQ.00000" style="border: 0;" class="post_actions_bit" rel="nofollow">switch to english</a>--> </div> In search engine optimization, on-page optimization refers to factors that have an effect on your Web site or Web page listing in natural search results. These factors are controlled by you or by coding on your page. Examples of on-page optimization include actual HTML code, meta tags, keyword placement and keyword density. </div> </div> <!--</div>--> </div> <div class="qa_answer " > <!--<div class="qa_post_head_div">--> <div class="qa_post_head"> <div class="post" id="post9"> <div class="post_header"> <div class="ya_post_header_poster"> anonymous </div> <div class="post_header_date"> <span class="timeago" title="2014-07-04T12:19:23-05:00">2014-07-04 17:19:23 UTC</span> </div> </div> </div> </div> <!--</div>--> <!--<div class="qa_post_content_div">--> <!--<div class="qa_post_content_left"> </div>--> <div class="qa_post_content_body"> <div class="post_body parsed"> <div class="post_actions"> <!--<a href="https://narkive.com/J8ey6FXQ.00000" style="border: 0;" class="post_actions_bit" rel="nofollow">switch to english</a>--> </div> For greatest WEB OPTIMIZATION results I highly recommend employing Google Search Bot: http://is.gd/gsbsoftware Employing that computer software We've rated our site to very first page of Google on a quite high competitive key word. </div> </div> <!--</div>--> </div> <div class="qa_answer " > <!--<div class="qa_post_head_div">--> <div class="qa_post_head"> <div class="post" id="post10"> <div class="post_header"> <div class="ya_post_header_poster"> Esferasoft </div> <div class="post_header_date"> <span class="timeago" title="2014-06-06T18:28:24-05:00">2014-06-06 23:28:24 UTC</span> </div> </div> </div> </div> <!--</div>--> <!--<div class="qa_post_content_div">--> <!--<div class="qa_post_content_left"> </div>--> <div class="qa_post_content_body"> <div class="post_body parsed"> <div class="post_actions"> <!--<a href="https://narkive.com/J8ey6FXQ.00000" style="border: 0;" class="post_actions_bit" rel="nofollow">switch to english</a>--> </div> hey..<br /><br />On page seo factors are like-<br /><br />Heading tags<br /><br />keywords in heading tags<br /><br />keywords prominency<br /><br />internal links<br /><br />title tags<br /><br />meta description tags<br /><br />meta keywords tag<br /><br />alt tags for images<br /><br />sitemap should be there<br /><br />properly including analytics and verification code </div> </div> <!--</div>--> </div> <div class="qa_answer " > <!--<div class="qa_post_head_div">--> <div class="qa_post_head"> <div class="post" id="post11"> <div class="post_header"> <div class="ya_post_header_poster"> Emin </div> <div class="post_header_date"> <span class="timeago" title="2014-04-01T07:15:38-05:00">2014-04-01 12:15:38 UTC</span> </div> </div> </div> </div> <!--</div>--> <!--<div class="qa_post_content_div">--> <!--<div class="qa_post_content_left"> </div>--> <div class="qa_post_content_body"> <div class="post_body parsed"> <div class="post_actions"> <!--<a href="https://narkive.com/J8ey6FXQ.00000" style="border: 0;" class="post_actions_bit" rel="nofollow">switch to english</a>--> </div> On page SEO is not just <br /><br /><br /><br />title<br /><br />page order<br /><br />h1<br /><br />h2<br /><br />picture tags, attributes<br /><br />link attributes<br /><br />page tags<br /><br />meta description...<br /><br /><br /><br />It is more...<br /><br /><br /><br />Here is an almost complete list I found online when I was doing my research. This will help you a lot. </div> </div> <!--</div>--> </div> </br ></br > <div id="se_licensing_notice"> <div id="se_licensing_notice_info"> ⓘ </div> <div id="se_licensing_notice_text"> This content was originally posted on Y! Answers, a Q&A website that shut down in 2021. </div> </div> <div class="ads_show_me_the_borders" id='div-gpt-ad-1628418734326-0' style='min-width: 250px; min-height: 30px; margin-left: 17px;'></div> <!--<script src="https://it.hobby.fai-da-te.narkive.com/ad-blocker.js?adclient=10120iask" type="text/javascript"></script>--> <script type="text/javascript"> //$(document).ready(function() { (nk = window.nk || []).session_id = '6ec19bfb3098'; if(nk.adb === undefined) nk.adb = 'enabled'; if(0) nk.adb = 'untested'; nk.threadfunction = function() { $.ajax({ url: "https://" + document.domain +"/ajax/ThreadViewCounter?hash=J8ey6FXQ&nk_session=" + nk.session_id, data: { page_version: 1, is_desktop: 1, lang: 'en', replycount: 12, views: 1, type: 'ya', simqa: 0, simsearchqa: 0, simsearch: 0, url: window.location.href, hash: 'J8ey6FXQ', cat: document.domain.replace('.narkive.', '.'), path: window.location.pathname, title: 'Tell me about on page SEO?', recency: 2962, ads_filter: 'pass', // adb: nk.adb, }, cache: true, type: "GET" }) .done(function( html ) { eval(html); }); } //}); $(document).ready(function() { if(typeof adsense_dispatcher_id === 'undefined' || adsense_dispatcher_id < 2) { // disable stats collection if you're unlikely to be a new user //nk.threadfunction(); } }); // prebid callback here as there is no command queue, in theory ThreadViewCounter works, but hey var nk_ts_PreBidConnectionTime = Date.now(); function connect_prebid_callback() { if(typeof vmpbjs !== undefined && vmpbjs.onEvent !== undefined) { vmpbjs.onEvent('bidWon', function(prebidwin) { console.log(prebidwin.bidderCode+ ' won the ad server auction for ad unit ' +prebidwin.adUnitCode+ ' at ' +prebidwin.cpm+ ' CPM'); console.log(prebidwin); var u = "https://" + document.domain +"/ajax/telemprebid?abs_sec=" + parseInt((Date.now()-nk_ts_PreBidConnectionTime) / 1000) + "&nk_session=" + nk.session_id; $.ajax({ url: u, cache: false, type: "HEAD", global: false, beforeSend: function(){}, complete: function(){}, data: { bidder: prebidwin.bidder, cpm: prebidwin.originalCpm, currency: prebidwin.originalCurrency, height: prebidwin.height, width: prebidwin.width, slotElementId: prebidwin.adserverTargeting.hb_div_id }}); console.log('callback sent'); }); } else { setTimeout(function() { connect_prebid_callback(); }, 100); } } //connect_prebid_callback(); </script> <div id="last_post_visibility_indicator"> </div> <style> .post_body.parsed { /*padding: 11px 12px;*/ color: #192527; font-family: "Segoe UI","Segoe WP","Arial","Sans-Serif"; font-size: 17px; line-height: 24px; } </style> <style> @media screen and (min-width: 770px) { .post_body.parsed { padding: 11px 12px; color: #192527; font-family: "Segoe UI","Segoe WP","Arial","Sans-Serif"; font-size: 18px; line-height: 26px; } .post_header { border-width: 1px; border-radius: 3px; } .post_wrapper { border-left: 0; padding-left: 22px; } .post_body { border: 0; } .quoted_post { font-size: 14px; line-height: 18px; } .post_header { height: 30px; line-height: 30px; font-size: 17px; } #thread_lister_ctrl_nav { font-size: 24px; line-height: 32px; } #thread_lister_subtitle { display: none; } /* smaller */ #thread_lister_ctrl_nav { font-size: 20px; line-height: 31px; } .post_header { height: 28px; line-height: 27px; font-size: 16px; } .post_body.parsed { font-family: "Segoe UI","Segoe WP","Arial","Sans-Serif"; font-size: 17px; line-height: 25px; padding-bottom: 16px; } .thread #thread_lister_ctrl { margin: 8px 4px; margin-top: 7px; margin-bottom: 4px; } #thread_lister_subtitle { display: block; } #thread_lister_subtitle { margin-bottom: -5px; } #thread_container .post_header_date .timeago { font-size: 15px; } #simthread_first_header { font-family: serif; font-size: 25px; margin-top: 30px; margin-left: 15px; background-color: #f3feff; padding: 7px 13px; color: #234244; width: fit-content; border-radius: 5px; } } </style> <style> #sidebar_banner_right { /*float: right; margin-right: 20px;*/ float: left; margin-left: 40px; margin-top: 20px; width: 22px; height: 30px; /*display: none;*/ /*border: 1px solid red;*/ /*background-color: red;*/ } @media screen and (min-width: 1500px) { #sidebar_banner_right { margin-left: 80px; } } </style> </div> <div id="sidebar_container"></div> <div id="sidebar_banner_right"><div class="sidebar_banner_placeholder_2"></div></div> <div style="clear: both"></div> </div> <script type="text/javascript"> var nav_highlighted = false, sidebar_fixed = false, sidebar_initial_top_distance = 0, sidebar_initial_left_distance = 0, sidebar_right_banner_initial_left_distance = 0, last_post_divs_distance_build = 0, post_divs_distances = Array(), sidebar_height = 0, thread_navigation_height = 0, sidebar_position_offset = 0, thread_onscroll_timeout = 0, sidebar_related_height = 0; function build_post_divs_distance() { if(new Date().getTime() - last_post_divs_distance_build < 1000) { return; } var post_divs = $('.post'); for(k in post_divs) { if(parseInt(k) != k) continue; post_divs_distances[$(post_divs[k]).position().top] = $(post_divs[k]).attr('id').replace('post', ''); } sidebar_height = $('#sidebar_container').height(); thread_navigation_height = $('#thread_navigation').height(); } function thread_onscroll() { if($(window).width() < 995 || typeof($('.sidebar_banner_placeholder_1').offset()) === 'undefined') { return; } build_post_divs_distance(); var scroll_top = $(window).scrollTop(), sidebar_offset_top = $('#sidebar_container').offset().top, windows_height = $(window).height(), sidebar_css_top = parseInt($('#sidebar_container').css('top') == 'auto' ? 0 : $('#sidebar_container').css('top')), sidebar_standard_top_distance = 20, first_visible_post = 1, scroller_margins = windows_height < 250 ? 20 : 100; highlighted_top_distance = nav_highlighted > 0 ? $('#nav_post' + nav_highlighted).position().top : windows_height/2; left_margin = parseInt($('#sidebar_container').css('margin-left')); left_margin_banner = parseInt($('#sidebar_banner_right').css('margin-left')); if(sidebar_initial_left_distance == 0) { sidebar_initial_left_distance = $('#sidebar_container').offset().left/* == 0 ? 760 : $('#sidebar_container').offset().left*/; } if(sidebar_right_banner_initial_left_distance == 0) { sidebar_right_banner_initial_left_distance = $('#sidebar_banner_right').offset().left/* == 0 ? 760 : $('#sidebar_container').offset().left*/; } if(highlighted_top_distance + scroller_margins + sidebar_position_offset + sidebar_related_height > windows_height) { sidebar_position_offset -= windows_height/2; $('#sidebar_container').css('position', 'fixed').css('top', sidebar_position_offset + 'px').css('left', (sidebar_initial_left_distance - left_margin) + 'px'); $('#sidebar_banner_right').css('position', 'fixed').css('top', sidebar_position_offset + 'px').css('left', (sidebar_right_banner_initial_left_distance - left_margin_banner) + 'px'); } else if(highlighted_top_distance + sidebar_position_offset < scroller_margins) { sidebar_position_offset += windows_height/2; $('#sidebar_container').css('position', 'fixed').css('top', sidebar_position_offset + 'px').css('left', (sidebar_initial_left_distance - left_margin) + 'px'); $('#sidebar_banner_right').css('position', 'fixed').css('top', sidebar_position_offset + 'px').css('left', (sidebar_right_banner_initial_left_distance - left_margin_banner) + 'px'); } else if(!sidebar_fixed && scroll_top + sidebar_standard_top_distance > sidebar_offset_top) { $('#sidebar_container').css('position', 'fixed').css('top', '0px').css('left', (sidebar_initial_left_distance - left_margin) + 'px'); $('#sidebar_banner_right').css('position', 'fixed').css('top', '0px').css('left', (sidebar_right_banner_initial_left_distance - left_margin_banner) + 'px'); sidebar_fixed = true; sidebar_initial_top_distance = sidebar_offset_top; } else if(sidebar_fixed && scroll_top + sidebar_standard_top_distance < sidebar_initial_top_distance) { $('#sidebar_container').css('position', 'relative').css('top', '0').css('left', '0'); $('#sidebar_banner_right').css('position', 'relative').css('top', '0').css('left', '0'); sidebar_fixed = false; } for(k in post_divs_distances) if(k < scroll_top + 100 && post_divs_distances[k] != 'selector') first_visible_post = parseInt(post_divs_distances[k]); if(first_visible_post > 0 && first_visible_post <= post_divs_distances.length + 1) { $('#nav_post' + nav_highlighted).css('opacity', ''); $('#nav_post' + first_visible_post).css('opacity', '1'); nav_highlighted = first_visible_post; } clearTimeout(thread_onscroll_timeout); thread_onscroll_timeout = setTimeout(function () {thread_onscroll();}, 200); } function init_quoted_extra() { $(".quoted_post_level_1").each(function() { if($(this).text().length < 500) return; if($(this).next('.quoted_extra_clickable').length != 0) return; $(this).css('display', 'none'); $(this).after('<div class="quoted_extra_clickable">...</div>'); }); } function quoted_extra_click(e) { $(e).css('display', 'none'); $(e).prev().css('display', 'block'); build_post_divs_distance() } $( document ).ready(function() { $(".post_censored").on('click', function(event){ event.stopPropagation(); event.stopImmediatePropagation(); var post_id = $(this).closest(".post").attr('id').replace('post', ''); console.log(post_id); censored_post = $(this).closest(".post_body"); $(this).closest(".post_body").css('opacity', '0.3'); /* $.ajax({ url: "?load_censored_post=" + post_id, type: 'GET', dataType: 'html', success: function(data){ console.log(nk.censored_post); nk.censored_post.html(data); } }); */ $.post(window.location, {'load_censored_post': post_id}, function(data) { // alert('POST was successful. Server says: ' + data); console.log(censored_post); $(censored_post).html(data); $(censored_post).css('opacity', '1'); }); }); }); function thread_selector_mouseup() { } function thread_init_selection() { if(!window.location.hash || !window.location.hash.match(/^#selection:([0-9]+)\.([0-9]+)\.([0-9]+)$/)) return; nk.is_select_ref = 1; var temp = window.location.hash.match(/^#selection:([0-9]+)\.([0-9]+)\.([0-9]+)$/); var post = temp[1], start = temp[2], end = parseInt(start) + parseInt(temp[3]), ts, tr; tr = $('#post' + post).children('.post_body').html().trim(); ts = '<div>' + $('#post' + post).children('.post_body').html().trim() + '</div>'; ts = $(ts); ts.find('.quoted_post').remove(); ts.find('.post_signature').remove(); //ts.find('#selection_url_f').remove(); ts.find('br').replaceWith(' '); ts = ts.html().trim(); var post_verified = '', c; for (var i = 0; i < ts.length; i++) { if(i < start || i >= end) continue; c = ts.charAt(i); post_verified += c; if(c != ' ') continue; if(tr.indexOf(post_verified) != -1) continue; post_verified = post_verified.slice(0, -1); if(tr.indexOf(post_verified + '<br>') != -1) { post_verified += '<br>'; continue; } break; } $('#post' + post).children('.post_body').html( $('#post' + post).children('.post_body').html().replace(post_verified, '<span id="init_selection">' + post_verified + '</span>') ); var offset = (window.innerHeight < $("#init_selection").height()) ? 30 : ((window.innerHeight - $("#init_selection").height()) / 2); $('html,body').animate({scrollTop: $("#init_selection").offset().top - offset},'fast'); ga('send', 'event', 'selection', 'load', {'nonInteraction': 1}); } function thread_init_copy() { $('#thread_container').on("mouseup", function() { var t, te, tr, ts; if($('#selection_url_c:hover').length > 0) { $('#selection_url_c input').select(); ga('send', 'event', 'selection', 'click', {'nonInteraction': 1}); if(typeof nk.push_ts_event !== 'undefined') nk.push_ts_event('selected_link_hover', 1); return; } $('#selection_url_c').remove(); $('#selection_url_f').remove(); if(window.getSelection) t = window.getSelection(); else if(document.getSelection) t = document.getSelection(); else if(document.selection) t = document.selection.createRange().text; if(typeof t === 'undefined' || t.toString().length <= 1) return; if(typeof t.anchorNode === 'undefined' || typeof t.anchorNode.parentElement === 'undefined' || typeof t.anchorNode.parentElement.parentElement === 'undefined') return; te = t.anchorNode.parentElement.parentElement; if(!te.id.match(/^post[0-9]+$/)) return; tr = t.toString().replace(/\n/g, ' ').trim(); ts = '<div>' + $(te).children('.post_body').html().trim() + '</div>'; ts = $(ts); ts.find('.quoted_post').remove(); ts.find('.post_signature').remove(); //ts.find('#selection_url_f').remove(); ts.find('br').replaceWith(' '); ts = ts.html().trim(); if(ts.indexOf(tr) == -1) return; var hash = document.location.href.match(/\.narkive\.com\/([a-zA-Z0-9]{8})/); if (typeof hash[1] === 'undefined') return; hash = hash[1]; var fix_index = 0; if(ts.indexOf('init_selection') < ts.indexOf(tr) && ts.indexOf('init_selection') != -1) fix_index = 33; //console.log(ts); //console.log(fix_index); if(typeof nk.push_ts_event !== 'undefined') nk.push_ts_event('selected_char_count', tr.length); var url = 'https://narkive.com/' + hash + ':' + te.id.replace('post', '') + '.' + (ts.indexOf(tr) - fix_index) + '.' + tr.length; setTimeout(function() { try { var range = document.createRange(); range.setStart(t.focusNode, t.focusOffset); range.insertNode($('<span id="selection_url_f"></span>').get(0)); var selection_button = $('<div style="top: ' + $('#selection_url_f').offset().top + 'px" id="selection_url_c">Selection Permalink:<input type="text" value="'+url+'"></div>').get(0); $('#thread_container').append(selection_button); //console.log(selection_button); } catch (e) {} }, 10); }); } /* function thread_similarbar(hash) { if(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) return; $.get( "https://" + document.domain + "/ajax/similarbar?hash=" + hash, function( data ) { $('#thread_navigation').after(data); }); } */ function thread_suggested_reading(hash) { if(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) return; $.get( "https://" + document.domain + "/ajax/suggestedreading?hash=" + hash, function( data ) { $('#thread_container').append(data); }); } $( window ).scroll(function () { thread_onscroll(); }); $( document ).ready(function() { init_quoted_extra(); thread_onscroll(); /*thread_check_adv();*/ thread_init_copy(); thread_init_selection(); }); </script> <script type="text/javascript"> /* thread_similarbar('J8ey6FXQ');*/ /* thread_suggested_reading('J8ey6FXQ'); */ </script> <style type="text/css"> </style> <script type="text/javascript"> $( document ).ready(function() { var targetNodes = $(".adsbygoogle"); var MutationObserver = window.MutationObserver || window.WebKitMutationObserver; var myObserver = new MutationObserver (mutationHandler); var obsConfig = { attributes: true }; targetNodes.each ( function () { myObserver.observe (this, obsConfig); } ); function mutationHandler (mutationRecords) { mutationRecords.forEach ( function (mutation) { if(mutation.type == 'attributes' && mutation.attributeName == 'data-ad-status') { var jq = $(mutation.target).attr('data-ad-status'); if(jq == 'filled') { nk.adsense_status.filled++; } if(jq == 'unfilled') { nk.adsense_status.unfilled++; } nk.ts_suggestPushEvent = 1; } } ); } var testURL = "https://" + document.domain + "/s/_adverts.js" var myInit = { method: 'HEAD', mode: 'no-cors' }; var myRequest = new Request(testURL, myInit); fetch(myRequest).then(function(response) { return response; }).then(function(response) { nk.adb = 'disabled'; nk.ts_suggestPushEvent = 1; }).catch(function(e){ nk.adb = 'enabled'; nk.ts_suggestPushEvent = 1; }); }); </script> <div style="height: 50px"></div> </div> <div id="footer_wrapper"> <div id="footer_links"> <a href="https://narkive.com/about">about</a> - <!--<a href="https://narkive.com/contact">contact</a> - <a style="cursor:pointer;" id="uservoice_button">feedback</a> - --><a href="https://narkive.com/legalese">legalese</a> </div> <!-- <div id="lang_selector"> <div id="lang_select">Contents in English</div> <div id="lang_select_cont"> <div id="lang_select_cont_in"> <a href="?set_lang=zh-cn" class="lang_select_bit">Chinese</a><a href="?set_lang=zh-tw" class="lang_select_bit">Chinese</a><a href="?set_lang=hr" class="lang_select_bit">Croatian</a><a href="?set_lang=cs" class="lang_select_bit">Czech</a><a href="?set_lang=da" class="lang_select_bit">Danish</a><a href="?set_lang=nl" class="lang_select_bit">Dutch</a><a href="?set_lang=en" class="lang_select_bit">English</a><a href="?set_lang=et" class="lang_select_bit">Estonian</a><a href="?set_lang=fi" class="lang_select_bit">Finnish</a><a href="?set_lang=fr" class="lang_select_bit">French</a><a href="?set_lang=de" class="lang_select_bit">German</a><a href="?set_lang=el" class="lang_select_bit">Greek</a><a href="?set_lang=he" class="lang_select_bit">Hebrew</a><a href="?set_lang=hi" class="lang_select_bit">Hindi</a><a href="?set_lang=hu" class="lang_select_bit">Hungarian</a><a href="?set_lang=id" class="lang_select_bit">Indonesian</a><a href="?set_lang=it" class="lang_select_bit">Italian</a><a href="?set_lang=ja" class="lang_select_bit">Japanese</a><a href="?set_lang=ko" class="lang_select_bit">Korean</a><a href="?set_lang=no" class="lang_select_bit">Norwegian</a><a href="?set_lang=pl" class="lang_select_bit">Polish</a><a href="?set_lang=pt" class="lang_select_bit">Portuguese</a><a href="?set_lang=ru" class="lang_select_bit">Russian</a><a href="?set_lang=sr" class="lang_select_bit">Serbian</a><a href="?set_lang=es" class="lang_select_bit">Spanish</a><a href="?set_lang=sv" class="lang_select_bit">Swedish</a><a href="?set_lang=th" class="lang_select_bit">Thai</a><a href="?set_lang=tr" class="lang_select_bit">Turkish</a><a href="?set_lang=vi" class="lang_select_bit" style="border-bottom: none;">Vietnamese</a> </div> <div id="lang_select_cont_end"></div> </div> </div> --> </div> <div id="ajax_loading">Loading...</div> <div id="overflow"></div> <div id="overflow_message"> <div id="overflow_message_header"> </div> <div id="overflow_message_content"> </div> <div id="overflow_message_actions"> </div> </div> <script async data-id="101477562" src="//static.getclicky.com/js"></script> </body></html>