CINXE.COM
If - If Poem by Rudyard Kipling
<!doctype html> <html lang="en-us"> <head> <meta charset="utf-8" /> <title>If - If Poem by Rudyard Kipling</title> <link rel="canonical" href="https://www.poemhunter.com/poem/if/" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5.0" /> <meta name="description" content="Read If poem by Rudyard Kipling written. If poem is from Rudyard Kipling poems. If poem summary, analysis and comments." /> <meta name="image" content="https://www.poemhunter.com/assets/img/logo-footer.jpg" /> <meta name="keywords" content="If, Rudyard Kipling" /> <meta property="og:locale" content="en-us" /> <meta property="og:site_name" content="Poem Hunter" /> <meta property="og:title" content="If - If Poem by Rudyard Kipling" /> <meta property="og:description" content="Read If poem by Rudyard Kipling written. If poem is from Rudyard Kipling poems. If poem summary, analysis and comments." /> <meta property="og:url" content="https://www.poemhunter.com/poem/if/" /> <meta property="og:article:published_time" content="2002-12-31T16:21:00Z" /> <meta property="og:article:tag" content="If, Rudyard Kipling" /> <meta property="og:article:section" content="poem" /> <meta property="og:image" content="https://img.poemhunter.com/i/poem_image/09/15909_poem_51.jpg" /> <meta property="og:image:width" content="1280"> <meta property="og:image:height" content="1920"> <meta name="image" content="https://img.poemhunter.com/i/poem_image/09/15909_poem_51.jpg" /> <meta property="og:type" content="article" /> <meta property="fb:page_id" content="100932656641411" /> <meta property="fb:app_id" content="543237812543549" /> <meta name="twitter:site" content="@PoemHunterCom" /> <meta name="twitter:creator" content="@PoemHunterCom" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:url" content="https://www.poemhunter.com/poem/if/" /> <meta name="twitter:title" content="If - If Poem by Rudyard Kipling" /> <meta name="twitter:description" content="Read If poem by Rudyard Kipling written. If poem is from Rudyard Kipling poems. If poem summary, analysis and comments." /> <meta name="twitter:image" content="https://img.poemhunter.com/i/poem_image/09/15909_poem_51.jpg"> <meta name="twitter:image:width" content="1280"> <meta name="twitter:image:height" content="1920"> <link type="text/plain" rel="author" href="https://www.poemhunter.com/humans.txt" /> <link rel="manifest" href="https://www.poemhunter.com/manifest.json"> <link href="https://www.poemhunter.com/" rel="home"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="google-site-verification" content="-MUc-2vHu-twfj9Yvf4Q0IP8nMt-90rbuNJuFbR22ok" /> <meta name="msvalidate.01" content="C043A8E7202FBDE0AC7B60B68F77938B" /> <link rel="alternate" hreflang="x-default" href="https://www.poemhunter.com/poem/if/" /> <link rel="alternate" hreflang="fr" href="https://www.poemhunter.com/poem/si-rudyard-kipling/" /> <link rel="alternate" hreflang="ar" href="https://www.poemhunter.com/poem/if-by-rudyard-kipking/" /> <link rel="alternate" hreflang="de" href="https://www.poemhunter.com/poem/wenn-rudyard-kipling-translated/" /> <link rel="alternate" hreflang="kn" href="https://www.poemhunter.com/poem/-15452/" /> <link rel="alternate" hreflang="pl" href="https://www.poemhunter.com/poem/jeli-if-rudyard-kipling-translated/" /> <link rel="alternate" hreflang="uz" href="https://www.poemhunter.com/poem/agar-1/" /> <link rel="alternate" hreflang="uk" href="https://www.poemhunter.com/poem/translation-into-ukrainian-of-the-verse-if-by-rudyard-kipling/" /> <link rel="stylesheet" href="/assets/css/main.css"> <link rel="stylesheet" href="/assets/css/phAdd.css"> <link rel="stylesheet" href="/assets/css/phAdd2.css"> <script type="text/javascript" src="/assets/js/jquery-3.6.0.min.js"></script> <script type="text/javascript"> window.dataLayer = window.dataLayer || []; (function (w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', 'GTM-T9W9H2N'); var gtag_event = ''; var gtag_event_category = ''; var gtag_event_label = ''; $(window).on("load", function () { $.ajax({ async: true, url: "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js", dataType: "script" }); }); gtag_event = 'Video 陌zleme'; gtag_event_category = 'Videolu 艦iir Ziyaret莽i'; gtag_event_label = 'en'; function getScript(e, n, a) { var o = document.createElement("script"); "" == n && (n = document.getElementsByTagName("script")[0]), o.async = 1, n.parentNode.insertBefore(o, n), o.onload = o.onreadystatechange = function (e, n) { (n || !o.readyState || /loaded|complete/.test(o.readyState)) && (o.onload = o.onreadystatechange = null, o = void 0, n || a && a()) }, o.src = e } var page_type = 'PoemDetail'; var IsAdShow = 'True'; var cihaz_mobilmi = false; if (/ip(hone|od|ad)|blackberry|android|windows (ce|phone)|symbian|avantgo|blazer|compal|elaine|fennec|hiptop|iemobile|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo/i.test(navigator.userAgent)) { cihaz_mobilmi = true; } function GetCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } </script> <link href="/favicon.ico" rel="shortcut icon" /> <style> .phPageTop::after { content: ""; clear: both; display: table; } </style> <script type="application/ld+json"> { "@context": "http://schema.org", "@graph": [{ "@type": "CreativeWork", "@id":"https://www.poemhunter.com/poem/if/", "url":"https://www.poemhunter.com/poem/if/", "author": { "@type": "Person", "name": "Rudyard Kipling" }, "copyrightHolder": { "@type": "Person", "name": "Rudyard Kipling" }, "creator": { "@type": "Person", "name": "Rudyard Kipling" }, "description": "poem", "genre": "poetry", "inLanguage": "en", "name": "If", "image":{ "@type":"ImageObject", "height":"2282", "url": "https://img.poemhunter.com/i/poem_images/909/if.jpg", "width":"1200" }, "text": "If you can keep your head when all about you Are losing theirs and blaming it on you; If you can trust yourself when all men doubt you, But make allowance for their doubting too: If you can wait and not be tired by waiting, Or, being lied about, don't deal in lies, Or being hated don't give way to hating, And yet don't look too good, nor talk too wise; If you can dream- -and not make dreams your master; If you can think- -and not make thoughts your aim, If you can meet with Triumph and Disaster And treat those two impostors just the same:. If you can bear to hear the truth you've spoken Twisted by knaves to make a trap for fools, Or watch the things you gave your life to, broken, And stoop and build'em up with worn-out tools; If you can make one heap of all your winnings And risk it on one turn of pitch-and-toss, And lose, and start again at your beginnings, And never breathe a word about your loss: If you can force your heart and nerve and sinew To serve your turn long after they are gone, And so hold on when there is nothing in you Except the Will which says to them: 'Hold on! ' If you can talk with crowds and keep your virtue, Or walk with Kings- -nor lose the common touch, If neither foes nor loving friends can hurt you, If all men count with you, but none too much: If you can fill the unforgiving minute With sixty seconds' worth of distance run, Yours is the Earth and everything that's in it, And- -which is more- -you'll be a Man, my son!" }, { "@id": "https://www.poemhunter.com", "@type": "Organization", "image":{ "@type":"ImageObject", "height":"2282", "url": "https://img.poemhunter.com/i/poem_images/909/if.jpg", "width":"1200" }, "address": { "@type": "PostalAddress", "addressCountry": "USA", "addressRegion": "San Francisco", "postalCode": "CA 94104", "streetAddress": "548 Market St. PMB 90333" }, "contactPoint": [{ "@type": "ContactPoint", "contactType": "customer support", "telephone": "+1 (650) 488-8186" }], "description": "Poems from different poets all around the world. Thousands of poems, quotes and poets. Search for poems and poets using the Poetry Search Engine. Quotes from all famous poets.", "email": "noreply@poemhunter.com", "foundingDate": "1998", "foundingLocation": "San Francisco, USA", "logo": { "@type": "ImageObject", "height": "40", "url": "https://www.poemhunter.com/assets/img/logo-footer.jpg", "width": "294" }, "name": "Poem Hunter", "sameAs": ["https://www.facebook.com/PoemHunterCom", "https://twitter.com/PoemHunter", "https://www.instagram.com/poemhunter"], "telephone": "+1 (650) 488-8186", "url": "https://www.poemhunter.com" }, { "@id": "https://www.poemhunter.com", "@type": "Organization", "description": "Poems from different poets all around the world. Thousands of poems, quotes and poets. Search for poems and poets using the Poetry Search Engine. Quotes from all famous poets.", "name": "Poem Hunter", "url": "https://www.poemhunter.com" }, { "@type": "BreadcrumbList", "description": "Breadcrumbs list", "itemListElement": [{ "@type": "ListItem", "item": "https://www.poemhunter.com", "name": "MainPage", "position": 1 } , { "@type": "ListItem", "item": "https://www.poemhunter.com/poems/", "name": "Poems", "position": 2 } , { "@type": "ListItem", "item": "https://www.poemhunter.com/poem/if/", "name": "If", "position": 3 } ], "name": "Breadcrumbs" }, { "@type": "Place", "address": { "@type": "PostalAddress", "addressCountry": "USA", "addressRegion": "San Francisco", "postalCode": "CA 94104", "streetAddress": "548 Market St. PMB 90333" }, "image":{ "@type":"ImageObject", "height":"2282", "url": "https://img.poemhunter.com/i/poem_images/909/if.jpg", "width":"1200" }, "description": "Poems from different poets all around the world. Thousands of poems, quotes and poets. Search for poems and poets using the Poetry Search Engine. Quotes from all famous poets.", "geo": { "@type": "GeoCoordinates", "latitude": "37.79010", "longitude": "-122.40090" }, "logo": { "@type": "ImageObject", "height": "40", "url": "https://www.poemhunter.com/assets/img/logo-footer.jpg", "width": "294" }, "name": "Poem Hunter", "sameAs": ["https://www.facebook.com/PoemHunterCom", "https://twitter.com/PoemHunter", "https://www.instagram.com/poemhunter"], "telephone": "+1 (650) 488-8186", "url": "https://www.poemhunter.com" }, { "@type": "WebSite", "about":"Poems from different poets all around the world. Thousands of poems, quotes and poets. Search for poems and poets using the Poetry Search Engine. Quotes from all famous poets.", "copyrightHolder": { "@type": "Organization", "name": "Poem Hunter" }, "inLanguage": "en-us", "isFamilyFriendly": true, "sameAs": ["https://www.facebook.com/PoemHunterCom", "https://twitter.com/PoemHunter", "https://www.instagram.com/poemhunter"], "url": "https://www.poemhunter.com" }] } </script> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "VideoObject", "caption": "If", "name": "If", "transcript":"If you can keep your head when all about you Are losing theirs and blaming it on you; If you can trust yourself when all men doubt you, But make allowance for their doubting too: If you can wait and not be tired by waiting, Or, being lied about, don't deal in lies, Or being hated don't give way to hating, And yet don't look too good, nor talk too wise; If you can dream- -and not make dreams your master; If you can think- -and not make thoughts your aim, If you can meet with Triumph and Disaster And treat those two impostors just the same:. If you can bear to hear the truth you've spoken Twisted by knaves to make a trap for fools, Or watch the things you gave your life to, broken, And stoop and build'em up with worn-out tools; If you can make one heap of all your winnings And risk it on one turn of pitch-and-toss, And lose, and start again at your beginnings, And never breathe a word about your loss: If you can force your heart and nerve and sinew To serve your turn long after they are gone, And so hold on when there is nothing in you Except the Will which says to them: 'Hold on! ' If you can talk with crowds and keep your virtue, Or walk with Kings- -nor lose the common touch, If neither foes nor loving friends can hurt you, If all men count with you, but none too much: If you can fill the unforgiving minute With sixty seconds' worth of distance run, Yours is the Earth and everything that's in it, And- -which is more- -you'll be a Man, my son!", "description": "If you can keep your head when all about you Are losing theirs and blaming it on you; If you can trust yourself when all men doubt you, But make allowance for their doubting too: If you can wait and not be tired by waiting, Or, being lied about, don't deal in lies, Or being hated don't give way to hating, And yet don't look too good, nor talk too wise; If you can dream- -and not make dreams your master; If you can think- -and not make thoughts your aim, If you can meet with Triumph and Disaster And treat those two impostors just the same:. If you can bear to hear the truth you've spoken Twisted by knaves to make a trap for fools, Or watch the things you gave your life to, broken, And stoop and build'em up with worn-out tools; If you can make one heap of all your winnings And risk it on one turn of pitch-and-toss, And lose, and start again at your beginnings, And never breathe a word about your loss: If you can force your heart and nerve and sinew To serve your turn long after they are gone, And so hold on when there is nothing in you Except the Will which says to them: 'Hold on! ' If you can talk with crowds and keep your virtue, Or walk with Kings- -nor lose the common touch, If neither foes nor loving friends can hurt you, If all men count with you, but none too much: If you can fill the unforgiving minute With sixty seconds' worth of distance run, Yours is the Earth and everything that's in it, And- -which is more- -you'll be a Man, my son!", "thumbnailUrl": "https://www.poemhunter.com/assets/img/logo-footer.jpg", "duration":"PT44S", "contentURL": "https://video.poemhunter.com/909/if.mp4", "url": "https://www.poemhunter.com/poem/if/", "inLanguage": "en-us", "isFamilyFriendly": "http://schema.org/True", "requiresSubscription": "http://schema.org/False", "uploadDate": "2002-12-31T16:21:00", "dateCreated": "2002-12-31T16:21:00", "playerType": "HTML5 Flash", "width": "640", "height": "360", "publisher": { "@context":"http://schema.org", "@type":"Organization", "name":"Poemhunter.com", "url":"https://www.poemhunter.com/", "logo":{"@type":"ImageObject","url":"https://www.poemhunter.com/assets/img/logo-footer.jpg","width":"294","height":"40" } } } </script> </head> <body> <div class="phGeneralScope"> <div class="phHeader"> <div class="phContainer"> <div class="phLogo"> <div> <a href="/" title="PoemHunter.com: Poems - Poets - Poetry"> <img src="/assets/img/logo-white.png" width="194" height="22" alt="PoemHunter.com: Poems - Poets - Poetry" /> </a> </div> </div> <div class="phNavigation"> <div class="phLoginOp" id="phLoginDp" style="float:right; width: 130px;height: 53px;"> </div> <div class="phHeaderSearch"> <input type="search" id="phHeaderSearch" autocomplete="off" placeholder="Search anything" value="" /> <span class="icon-search"></span> </div> <ul class="phDropDownMenu"> <a href="/" title="PoemHunter.com: Poems - Poets - Poetry">Home</a> <li class="phddmMain poems"> <span>Poems</span> <ul> <li><a href="/poems/" title="Poems">Poems</a></li> <li><a href="/poems/best-poems/" title="Best 500 Poems">Best Poems</a></li> <li><a href="/poems/best-poems/member-poets/" title="Best Member Poems">Best Member Poems</a></li> <li><a href="/poems/best-poems/classical-poets/" title="Best Classical Poems">Best Classical Poems</a></li> <li><a href="/poems/new-poems/" title="New Poems">New Poems</a></li> <li><a href="/poems/themes/" title="Poems About">Poems About</a></li> <li><a href="/poems/best-poems/themes/" title="Best Poems By Themes">Best Poems by Themes</a></li> <li><a href="/explore/poems/" title="Explore Poems">Explore Poems</a></li> <li><a href="/poem-of-the-day/" title="Poem Of The Day">Poem Of The Day</a></li> </ul> </li> <li class="phddmMain poets"> <span>Poets</span> <ul> <li><a href="/poets/" title="Poets">Poets</a></li> <li><a href="/poets/best-poets/" title="Best 500 Poets">Best Poets</a></li> <li><a href="/poets/best-poets/member-poets/" title="Top Member Poets">Best Member Poets</a></li> <li><a href="/poets/best-poets/classic-poets/" title="Best Classical Poets">Best Classical Poets</a></li> <li><a href="/poets/new-poets/" title="New Poets">New Poets</a></li> <li><a href="/explore/poets/" title="Explore Poets">Explore Poets</a></li> </ul> </li> </ul> </div> </div> </div> <script> if (!cihaz_mobilmi) { document.write('<div id="masthead_ad" class="masthead_ad"></div>'); } </script> <script> $(document).ready(function () { $.ajax({ type: "POST", url: "/Ajax/Login/", processData: false, contentType: false, async: true, success: function (data) { $('#phLoginDp').html(data); } }); //$(".phsearch").keypress(function (e) { // if (e.keyCode == 13) { // window.location.href = "/search/?q=" + $("#phsearch").val(); // } //}); }); </script> <div id="mainPageBanner"> </div> <div class="phRow phGeneralTitleDesc"> <div class="phContainer"> <h1>If Poem by Rudyard Kipling</h1> </div> </div> <div class="phBody"> <div class="phContainer"> <div class="phContentScope"> <div id="phProfileInfoMobile"> <div class="phRow phBoxStyle phDesktopMember"> <div class="phRow " style="margin-top:-14px;"> <div class="phBoxBottom phDetailNav"> <div class="phBoxContinue txtc phDetailAnother" style="width:33%;text-align:right"> <a href="/poem/in-error/" title="Next Poem"><span class="phDetailAnotherNext">Next Poem</span> <span class="brdc"></span></a> </div> <div class="phBoxContinue txtc " style=''> 143 / 546 </div> <div class="phBoxBefore txtc phDetailAnother" style="width:120px;"> <a href="/poem/i-keep-six-honest/" title="Previous Poem"> <span class="phDetailAnotherPrev">Previous Poem</span> <span class="brdc"></span></a> </div> </div> </div> <div class="phBoxContent"> <div class="phProfileSummary"> <a href="/rudyard-kipling/" title="Rudyard Kipling"><img class="phpsImage lazyload" src="https://img.poemhunter.com/i/p/09/3109_b_2688.jpg" alt="Rudyard Kipling" /></a> <h2 class="phpsTitle"><a href="/rudyard-kipling/" title="Rudyard Kipling">Rudyard Kipling</a></h2> <div class="phpsCity"><span>Bombay</span></div> <div class="phpsFollowMessage phAjaxMessage phDynamicMemberInfo"> </div> </div> </div> </div> <div class="phRow phBoxStyle phMobileMember"> <div class="phmmTop"> <a href="/rudyard-kipling/" title="Rudyard Kipling"> <img class="phmmImage" src="https://img.poemhunter.com/i/p/09/3109_b_2688.jpg" alt="Rudyard Kipling" /> </a> <div class="phmmContent"> <div class="phmmTitle"> <a href="/rudyard-kipling/" title="Rudyard Kipling">Rudyard Kipling</a> </div> <span class="phmmSub">Bombay</span> </div> <div class="phmmRightButton phAjaxMessage"> </div> </div> <div class="phmmBottom"> <a href="/rudyard-kipling/" title="Rudyard Kipling"><span class="phmmButton">Poet's Page</span></a> <a href="/rudyard-kipling/poems/" title="Rudyard Kipling Poems"><span class="phmmButton">Poems</span></a> <span class="phmmButton phmmClickNav">More</span> <div class="phnmOpenBox"> <span class="phmmclose"><img alt="Close" src="/assets/img/menuyu_kapat.png" width="auto" height="15" /></span> <a href="/rudyard-kipling/activity/" title="Rudyard Kipling Activities"><span class="phmmlink">Activity</span></a> <a href="/rudyard-kipling/quotations/" title="Rudyard Kipling Quotations"><span class="phmmlink">Quotes</span></a> <a href="/rudyard-kipling/biography/" title="Rudyard Kipling Biography"><span class="phmmlink">Biography</span></a> <a href="/rudyard-kipling/comments/" title="Rudyard Kipling Comments"><span class="phmmlink">Comments</span></a> <a href="/rudyard-kipling/following/" title="Rudyard Kipling Followings" class="phmmlink">Following</a> <a href="/rudyard-kipling/followers/" title="Rudyard Kipling Followers" class="phmmlink">Followers</a> <a href="/rudyard-kipling/stats/" title="Rudyard Kipling Stats" class="phmmlink">Statistics</a> <a href="/member/overview/" title="My Profile" class="phmmlink">My Profile</a> <a href="/member/add-new-poem/" title="Add New Poem" class="phmmlink">Add New Poem</a> <a href="/member/add-new-quote/" title="Add New Quote" class="phmmlink">Add New Quote</a> </div> </div> <div class=""> <div class="phBoxBottom phDetailNav" style="margin-top:20px!important;"> <div class="phBoxContinue txtc " style="width:120px;text-align:right"> <a href="/poem/in-error/" title="Next Poem"><span class="phDetailAnotherNext">Next Poem</span> <span class="brdc"></span></a> </div> <div class="phBoxContinue txtc " style=''> 143 / 546 </div> <div class="phBoxBefore txtc " style="width:120px;"> <a href="/poem/i-keep-six-honest/" title="Previous Poem"> <span class="phDetailAnotherPrev">Previous Poem</span> <span class="brdc"></span></a> </div> </div> </div> </div> </div> <!-- PAGE DETAILS --> <div class="phRow phBoxStyle page-template page-details"> <div class="phPageTop"> <div class="phPageDetailsTitle"> <h2>If</h2> </div> <div class="phRate"> Rating: <span class="star">★</span><span class="rate">4.5</span> <div id="AddMyPoem" title="Add Favorites"> </div> </div> </div> <style> #phVideo { width: 100%; padding-top: 56.25%; height: 0px; position: relative; margin:10px 0; } #contentElement, #adContainer, #playButton { width: 100%; height: 100%; position: absolute; top: 0; left: 0; cursor: pointer; } .phFormElement { margin-top:10px; } .VideoContainer { width: 304px; height: 171px; position: fixed; bottom: 20px; right: 20px; z-index: 9999999999; } </style> <a id="next_link_video" href="/poem/in-error/" style="display:none;"></a> <div id="VideoContainer_clone" style="width: 100%; padding-top: 56.25%; height: 0px; position: relative; display:none;"></div> <div id="VideoContainer"> <div id="phVideo" class="phVideo"> <video onclick="if (this.paused) {this.play();} else {this.pause();}" id="contentElement" controls="" playsinline preload="none"> <source src="https://video.poemhunter.com/909/if.mp4" type="video/mp4" /> </video> <div class="playButton" id="playButton"></div> <div class="adContainer" id="adContainer"></div> <script type="text/javascript"> var d = new Date(); var n = d.getSeconds(); var width = $('#contentElement').width(); var height = $('#contentElement').height(); if (!cihaz_mobilmi) { height = height + 15; } var videoContent = document.getElementById('contentElement'); var offsetWidth = width; var offsetHeight = height; var referrer_url = document.referrer; var adsManager; var adsLoader; var adDisplayContainer; var intervalTimer; var vast_code = 'https://googleads.g.doubleclick.net/pagead/ads?client=ca-video-pub-3785345259461815&slotname=Poemhunter_Desktop_Preroll&ad_type=video_text_image&description_url=http%3A%2F%2Fwww.poemhunter.com&videoad_start_delay=0&vpmute=0&vpa=auto'; if (cihaz_mobilmi) { vast_code = 'https://googleads.g.doubleclick.net/pagead/ads?client=ca-video-pub-3785345259461815&slotname=Poemhunter_Mobile_Preroll&ad_type=video_text_image&description_url=http%3A%2F%2Fwww.poemhunter.com&max_ad_duration=60000&videoad_start_delay=0&vpmute=0&vpa=auto' } document.getElementById('adContainer').setAttribute('style', 'z-index: -1;'); document.getElementById('playButton').setAttribute('style', 'z-index: 9999999999999;'); if (referrer_url.indexOf("poemhunter.com") == -1 || referrer_url.indexOf("poemhunter.com") >= 20 || referrer_url == null || referrer_url == "") { videoContent.muted = false; } function createAdDisplayContainer() { adDisplayContainer = new google.ima.AdDisplayContainer(document.getElementById('adContainer')); } function requestAds() { videoContent.muted = false; checkAutoplaySupport(); document.getElementById('playButton').style.display = 'none'; createAdDisplayContainer(); adDisplayContainer.initialize(); adsLoader = new google.ima.AdsLoader(adDisplayContainer); adsLoader.getSettings().setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.INSECURE); adsLoader.addEventListener( google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, onAdsManagerLoaded, false); adsLoader.addEventListener( google.ima.AdErrorEvent.Type.AD_ERROR, onAdError, false); } function autoplayChecksResolved() { var adsRequest = new google.ima.AdsRequest(); adsRequest.adTagUrl = vast_code; adsRequest.linearAdSlotWidth = 640; adsRequest.linearAdSlotHeight = 360; adsRequest.nonLinearAdSlotWidth = 300; adsRequest.nonLinearAdSlotHeight = 100; adsRequest.setAdWillAutoPlay(autoplayAllowed); adsRequest.setAdWillPlayMuted(autoplayRequiresMuted); adsLoader.requestAds(adsRequest); } function checkAutoplaySupport() { var playPromise = videoContent.play(); if (playPromise !== undefined) { playPromise.then(onAutoplayWithSoundSuccess).catch(onAutoplayWithSoundFail); } } function onAutoplayWithSoundSuccess() { videoContent.pause(); autoplayAllowed = true; autoplayRequiresMuted = false; autoplayChecksResolved(); } function onAutoplayWithSoundFail() { checkMutedAutoplaySupport(); } function checkMutedAutoplaySupport() { videoContent.volume = 0; videoContent.muted = false; var playPromise = videoContent.play(); if (playPromise !== undefined) { playPromise.then(onMutedAutoplaySuccess).catch(onMutedAutoplayFail); } } function onMutedAutoplaySuccess() { videoContent.pause(); autoplayAllowed = true; autoplayRequiresMuted = false; autoplayChecksResolved(); } function onMutedAutoplayFail() { videoContent.volume = 1; videoContent.muted = false; autoplayAllowed = false; autoplayRequiresMuted = false; autoplayChecksResolved(); } function onAdsManagerLoaded(adsManagerLoadedEvent) { adsManager = adsManagerLoadedEvent.getAdsManager(videoContent); adsManager.addEventListener( google.ima.AdErrorEvent.Type.AD_ERROR, onAdError); adsManager.addEventListener( google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, onContentPauseRequested); adsManager.addEventListener( google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, onContentResumeRequested); adsManager.addEventListener( google.ima.AdEvent.Type.ALL_ADS_COMPLETED, onAdEvent); adsManager.addEventListener( google.ima.AdEvent.Type.LOADED, onAdEvent); adsManager.addEventListener( google.ima.AdEvent.Type.STARTED, onAdEvent); adsManager.addEventListener( google.ima.AdEvent.Type.COMPLETE, onAdEvent); adsManager.addEventListener( google.ima.AdEvent.Type.USER_CLOSE, onAdEvent); adsManager.addEventListener( google.ima.AdEvent.Type.SKIPPED, onAdEvent); try { adsManager.init(videoContent.offsetWidth, videoContent.offsetHeight, google.ima.ViewMode.NORMAL); adsManager.start(); } catch (adError) { videoContent.play(); } } function onAdEvent(adEvent) { var ad = adEvent.getAd(); switch (adEvent.type) { case google.ima.AdEvent.Type.LOADED: document.getElementById('contentElement').setAttribute('style', 'display:none;'); document.getElementById('adContainer').setAttribute('style', 'display:block;'); if (!ad.isLinear()) { // Position AdDisplayContainer correctly for overlay. // Use ad.width and ad.height. } break; case google.ima.AdEvent.Type.STARTED: if (ad.isLinear()) { intervalTimer = setInterval( function () { var remainingTime = adsManager.getRemainingTime(); }, 300); // every 300ms } break; case google.ima.AdEvent.Type.COMPLETE: document.getElementById('adContainer').setAttribute('style', 'display:none'); document.getElementById('contentElement').setAttribute('style', 'display:block;'); if (ad.isLinear()) { clearInterval(intervalTimer); } break; case google.ima.AdEvent.Type.USER_CLOSE: document.getElementById('adContainer').setAttribute('style', 'display:none'); document.getElementById('contentElement').setAttribute('style', 'display:block;'); videoContent.play(); break; case google.ima.AdEvent.Type.SKIPPED: document.getElementById('adContainer').setAttribute('style', 'display:none'); document.getElementById('contentElement').setAttribute('style', 'display:block;'); videoContent.play(); break; } } function onAdError(adErrorEvent) { document.getElementById('adContainer').setAttribute('style', 'display:none'); document.getElementById('contentElement').setAttribute('style', 'display:block;'); videoContent.play(); console.log(adErrorEvent.getError()); } function onContentPauseRequested() { videoContent.pause(); } function onContentResumeRequested() { videoContent.play(); } function video_load_start() { getScript("//imasdk.googleapis.com/js/sdkloader/ima3.js", '', function () { var promise = videoContent.play(); if (promise !== undefined) { promise.then(_ => { requestAds(); }).catch(error => { requestAds(); }); } else { requestAds(); } }); } if (cihaz_mobilmi) { var scrl_video = true; window.addEventListener("scroll", function () { if (scrl_video == true) { scrl_video = false; video_load_start(); } }); } else { $(window).on("load", function () { video_load_start(); }); } document.getElementById('playButton').onclick = function () { videoContent.muted = false; video_load_start(); }; //$(document).ready(function () { // $("#contentElement").on( // "timeupdate", // function (event) { // onTrackedVideoFrame(this.currentTime, this.duration); // }); //}); var midroll = true; function onTrackedVideoFrame(currentTime, duration) { if (currentTime > 20 && midroll) { document.getElementById("adContainer").innerHTML = ""; midroll = false; vast_code = 'https://googleads.g.doubleclick.net/pagead/ads?client=ca-video-pub-3785345259461815&slotname=Poemhunter_Desktop_Midroll&ad_type=video&description_url=http%3A%2F%2Fwww.poemhunter.com&max_ad_duration=30000&videoad_start_delay=0&vpmute=0&vpa=0'; requestAds(); } } </script> <script type="text/javascript"> var video_top = document.getElementById("contentElement").offsetTop + 550; var position_reset = false; window.onscroll = function () { var scroll = this.scrollY; if (cihaz_mobilmi == false) { if (scroll > video_top) { video_position("bottom"); } else { video_position("top"); } } }; function video_position(position) { if (position == "bottom") { document.getElementById("VideoContainer_clone").style.display = 'block'; document.getElementById("VideoContainer").classList.add('VideoContainer'); var c = document.getElementById("adContainer").childNodes; c[0].setAttribute("style", "width:304px; height:171px; position: absolute;"); c[0].getElementsByTagName("iframe")[0].setAttribute("style", "width:304px; height:171px; position: absolute;"); if (document.getElementById("chkAuto")) document.getElementById("chkAuto").setAttribute("style", "display:none"); } else { document.getElementById("VideoContainer_clone").style.display = 'none'; document.getElementById("VideoContainer").classList.remove('VideoContainer'); var c = document.getElementById("adContainer").childNodes; c[0].setAttribute("style", ""); c[0].getElementsByTagName("iframe")[0].setAttribute("style", ""); if (document.getElementById("chkAuto")) document.getElementById("chkAuto").setAttribute("style", "display:block"); } } </script> <div id="chkAuto" class="phFormElement"> <div class="checkbox-scope checkbox-standard" style="float:right; z-index:999999999;"> <input class="checkbox" type="checkbox" id="chkAutoNextVid" name="chkAutoNextVid" onclick="javascript:ChangeNVCookie()"> <label class="checkbox-class" for="chkAutoNextVid"> <span class="checkbox-text">Autoplay</span> </label> </div> </div> <script type="text/javascript"> function setCookieInMinutes(name, value, minutes) { var date = new Date(); date.setTime(date.getTime() + (minutes * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); document.cookie = name + "=" + value + expires; } if (GetCookie("cooAutoNextVid") == null) { setCookieInMinutes("cooAutoNextVid", "evet", 60); } function ChangeNVCookie() { if (document.getElementById("chkAutoNextVid").checked == true) { setCookieInMinutes("cooAutoNextVid", "evet", 60); } else { setCookieInMinutes("cooAutoNextVid", "hayir", 60); } } if (GetCookie("cooAutoNextVid") == "evet") { $('.checkbox-text').trigger('click'); } var aud = document.getElementById("contentElement"); aud.onended = function () { if (GetCookie("cooAutoNextVid") == "evet") { window.open(document.getElementById("next_link_video").href + "#content", "_self"); } }; </script> </div> </div> <br /><br /> <div class="phContent phcText"> <p> If you can keep your head when all about you <br/> Are losing theirs and blaming it on you; <br/>If you can trust yourself when all men doubt you, <br/> But make allowance for their doubting too: <br/>If you can wait and not be tired by waiting, <br/> Or, being lied about, don't deal in lies, <br/>Or being hated don't give way to hating, <br/> And yet don't look too good, nor talk too wise; <br/> <br/>If you can dream- -and not make dreams your master; <br/> If you can think- -and not make thoughts your aim, <br/>If you can meet with Triumph and Disaster <br/> And treat those two impostors just the same:. <br/>If you can bear to hear the truth you've spoken <br/> Twisted by knaves to make a trap for fools, <br/>Or watch the things you gave your life to, broken, <br/> And stoop and build'em up with worn-out tools; <br/> <br/>If you can make one heap of all your winnings <br/> And risk it on one turn of pitch-and-toss, <br/>And lose, and start again at your beginnings, <br/> And never breathe a word about your loss: <br/>If you can force your heart and nerve and sinew <br/> To serve your turn long after they are gone, <br/>And so hold on when there is nothing in you <br/> Except the Will which says to them: 'Hold on! ' <br/> <br/>If you can talk with crowds and keep your virtue, <br/> Or walk with Kings- -nor lose the common touch, <br/>If neither foes nor loving friends can hurt you, <br/> If all men count with you, but none too much: <br/>If you can fill the unforgiving minute <br/> With sixty seconds' worth of distance run, <br/>Yours is the Earth and everything that's in it, <br/> And- -which is more- -you'll be a Man, my son! </p> </div> <div class="phRow light-blue pd20"> <div class="phBoxImage brdc"> <img alt="If" src="https://www.poemhunter.com/i/poem_image/09/15909_poem_51.jpg" width="100%" height="auto"> </div> </div> <div class="phPageBottom"> <div class="phpdAuthor"> <a href="/rudyard-kipling/" title="Rudyard Kipling"> Rudyard Kipling</a> </div> <div class="phPageDate" style="margin-bottom:0px;"> <span class="icon-date"></span> Tuesday, December 31, 2002 </div> <div class="phKeywords"> <a href="https://www.poemhunter.com/" title="Poem" class="phKey">poem</a> <a href="https://www.poemhunter.com/poems/" title="Poems" class="phKey">poems</a> </div> <div id="AjaxRate"> </div> <div class="phPageDate" style="margin:0px;"> <span><a href="https://img.poemhunter.com/i/poem_images/909/if.jpg" target="_blank" title="If Download" class="downloadPoemImage"> Download image of this poem.</a></span> <div class="phpdReportPoem" style="margin:5px;margin-top:0px;"> <a href="/member/reportpoem/?poemUrl=if" class="phTranslateLink">Report this poem</a> </div> </div> </div> </div> <!-- NOTES ABOUT --> <div class="phRow phBoxStyle blue-purple"> <div class="phBoxBigHead"> <span class="left-line bgc"></span> <span class="phBoxTitle txtc">POET'S NOTES ABOUT THE POEM</span> </div> <div class="phContent phcText"> Poster by: www.posterama.co </div> </div> <!-- COMMENTS --> <div class="phRow phBoxStyle blue-purple"> <div id="comment_phBoxBigHead" class="phBoxBigHead"> <span class="left-line bgc"></span> <span class="phBoxTitle txtc">COMMENTS OF THE POEM</span> </div> <div class="phContent"> <div id="writeComment"> </div> <div class="phComments"> <!--Comment--> <div class="comment-scope"> <div class="comment votethis" id="vote_1842275"> <div class="comment-img lazyload" data-original="https://img.poemhunter.com/i/p/59/2177659_b_5856.png"></div> <div class="comment-text"> <div class="comment-title"> <a href="/srimayee-ganguly/" title="Srimayee Ganguly">Srimayee Ganguly</a> <span class="comment-published">16 December 2012</span> </div> <p class="comment-desc"> Such a boring poem full of ethics. Although I am devoted to poetry, this poem made me slumber in english class for the first time. </p> </div> <div class="comment-settings"> <span onclick="voteComment(1842275,1)" class="commentst comment-like phCommentsCursor" id="like_1842275">98</span> <span onclick="voteComment(1842275,0)" class="commentst comment-dislike phCommentsCursor" id="dislike_1842275">360</span> <span class="commentst comment-reply phCommentsCursor" dataId="1842275">Reply</span> </div> <div class="phSubCommentContent" id="comment_reply_1842275"> </div> </div> <div class="sub-comment"> <div class="comment votethis" id="vote_3495259"> <div class="comment-img lazyload" data-original="https://img.poemhunter.com/i/p/19/2177319_b_4233.png"></div> <div class="comment-text"> <div class="comment-title"> <a href="/samson-ogbeewi/"> samson ogbeewi </a> <span class="comment-published">10 December 2023</span> </div> <p class="comment-desc"> Try this: Samson Ogbeewi - Lost in Lust </p> </div> <div class="comment-settings"> <span href="javascipt:void(0);" onclick="voteComment(3495259,1)" class="commentst comment-like phCommentsCursor" id="like_3495259">2</span> <span href="javascipt:void(0);" onclick="voteComment(3495259,0)" class="commentst comment-dislike phCommentsCursor" id="dislike_3495259">1</span> </div> <div class="phSubCommentContent" id="comment_reply_1842275"> </div> </div> </div> </div> <!--Comment--> <div class="comment-scope"> <div class="comment votethis" id="vote_1821512"> <div class="comment-img lazyload" data-original="/assets/img/icon-user.jpg"></div> <div class="comment-text"> <div class="comment-title"> <a href="/kevin-straw/" title="Kevin Straw">Kevin Straw</a> <span class="comment-published">28 October 2012</span> </div> <p class="comment-desc"> Kipling is wrong - these attributes are valuable to a man sent out to rule an outpost of the empire, but they form only part of a man's intellectual and emotional makeup. Indeed, one has to suspect a man who cannot be hurt by his friends. There is nothing here about love, sorrow, affection, art and charity - Kipling's are pagan attributes - nothing to do with the Jesus Kipling would claim to worship. </p> </div> <div class="comment-settings"> <span onclick="voteComment(1821512,1)" class="commentst comment-like phCommentsCursor" id="like_1821512">82</span> <span onclick="voteComment(1821512,0)" class="commentst comment-dislike phCommentsCursor" id="dislike_1821512">311</span> <span class="commentst comment-reply phCommentsCursor" dataId="1821512">Reply</span> </div> <div class="phSubCommentContent" id="comment_reply_1821512"> </div> </div> <div class="sub-comment"> <div class="comment votethis" id="vote_3437885"> <div class="comment-img lazyload" data-original="/assets/img/icon-user.jpg"></div> <div class="comment-text"> <div class="comment-title"> <a href="javascript:void(0);"> Dm </a> <span class="comment-published">23 September 2022</span> </div> <p class="comment-desc"> Pompous </p> </div> <div class="comment-settings"> <span href="javascipt:void(0);" onclick="voteComment(3437885,1)" class="commentst comment-like phCommentsCursor" id="like_3437885">9</span> <span href="javascipt:void(0);" onclick="voteComment(3437885,0)" class="commentst comment-dislike phCommentsCursor" id="dislike_3437885">17</span> </div> <div class="phSubCommentContent" id="comment_reply_1821512"> </div> </div> <div class="comment votethis" id="vote_3442360"> <div class="comment-img lazyload" data-original="https://img.poemhunter.com/i/p/79/17818679_b_5564.png"></div> <div class="comment-text"> <div class="comment-title"> <a href="/christopher-okiri/"> Christopher Okiri </a> <span class="comment-published">01 November 2022</span> </div> <p class="comment-desc"> The poet may be wrong. But i don't think the author set out to write a scripture. I think this is about the art of words and the sound they make, and the imagery they conjure. Just the way i see it </p> </div> <div class="comment-settings"> <span href="javascipt:void(0);" onclick="voteComment(3442360,1)" class="commentst comment-like phCommentsCursor" id="like_3442360">19</span> <span href="javascipt:void(0);" onclick="voteComment(3442360,0)" class="commentst comment-dislike phCommentsCursor" id="dislike_3442360">2</span> </div> <div class="phSubCommentContent" id="comment_reply_1821512"> </div> </div> </div> </div> <!--Comment--> <div class="comment-scope"> <div class="comment votethis" id="vote_3492660"> <div class="comment-img lazyload" data-original="https://img.poemhunter.com/i/p/00/1871200_b_6789.png"></div> <div class="comment-text"> <div class="comment-title"> <a href="/maria-goodison/" title="Maria Goodison">Maria Goodison</a> <span class="comment-published">30 October 2023</span> </div> <p class="comment-desc"> one of my favourite ever </p> </div> <div class="comment-settings"> <span onclick="voteComment(3492660,1)" class="commentst comment-like phCommentsCursor" id="like_3492660">7</span> <span onclick="voteComment(3492660,0)" class="commentst comment-dislike phCommentsCursor" id="dislike_3492660">0</span> <span class="commentst comment-reply phCommentsCursor" dataId="3492660">Reply</span> </div> <div class="phSubCommentContent" id="comment_reply_3492660"> </div> </div> </div> <!--Comment--> <div class="comment-scope"> <div class="comment votethis" id="vote_3492232"> <div class="comment-img lazyload" data-original="/assets/img/icon-user.jpg"></div> <div class="comment-text"> <div class="comment-title"> <a href="/ekaterina-mendor/" title="Ekaterina Mendor">Ekaterina Mendor</a> <span class="comment-published">24 October 2023</span> </div> <p class="comment-desc"> It is a hymn to confidence, restraint and aristocracy. Perhaps it doesn't look so relevant now, but it's interesting for me to look into the past and understand the moral guidelines of people who lived in the last century. </p> </div> <div class="comment-settings"> <span onclick="voteComment(3492232,1)" class="commentst comment-like phCommentsCursor" id="like_3492232">7</span> <span onclick="voteComment(3492232,0)" class="commentst comment-dislike phCommentsCursor" id="dislike_3492232">0</span> <span class="commentst comment-reply phCommentsCursor" dataId="3492232">Reply</span> </div> <div class="phSubCommentContent" id="comment_reply_3492232"> </div> </div> </div> <!--Comment--> <div class="comment-scope"> <div class="comment votethis" id="vote_3488462"> <div class="comment-img lazyload" data-original="/assets/img/icon-user.jpg"></div> <div class="comment-text"> <div class="comment-title"> <a href="/jagdeep-garhwal/" title="Jagdeep Garhwal">Jagdeep Garhwal</a> <span class="comment-published">10 September 2023</span> </div> <p class="comment-desc"> Great poem, Must read for Children </p> </div> <div class="comment-settings"> <span onclick="voteComment(3488462,1)" class="commentst comment-like phCommentsCursor" id="like_3488462">5</span> <span onclick="voteComment(3488462,0)" class="commentst comment-dislike phCommentsCursor" id="dislike_3488462">0</span> <span class="commentst comment-reply phCommentsCursor" dataId="3488462">Reply</span> </div> <div class="phSubCommentContent" id="comment_reply_3488462"> </div> </div> </div> <!--Comment--> <div class="comment-scope"> <div class="comment votethis" id="vote_3479927"> <div class="comment-img lazyload" data-original="/assets/img/icon-user.jpg"></div> <div class="comment-text"> <div class="comment-title"> <a href="/mania-kumari/" title="Mania Kumari">Mania Kumari</a> <span class="comment-published">15 June 2023</span> </div> <p class="comment-desc"> Outstanding </p> </div> <div class="comment-settings"> <span onclick="voteComment(3479927,1)" class="commentst comment-like phCommentsCursor" id="like_3479927">8</span> <span onclick="voteComment(3479927,0)" class="commentst comment-dislike phCommentsCursor" id="dislike_3479927">0</span> <span class="commentst comment-reply phCommentsCursor" dataId="3479927">Reply</span> </div> <div class="phSubCommentContent" id="comment_reply_3479927"> </div> </div> </div> <!--Comment--> <div class="comment-scope"> <div class="comment votethis" id="vote_3478516"> <div class="comment-img lazyload" data-original="/assets/img/icon-user.jpg"></div> <div class="comment-text"> <div class="comment-title"> <a href="/niamh-st-john-lynch/" title="Niamh St John Lynch">Niamh St John Lynch</a> <span class="comment-published">07 June 2023</span> </div> <p class="comment-desc"> I adore this poem, the depths of it may vary depending on the readers level of happiness, joy, or despair at any given moment. </p> </div> <div class="comment-settings"> <span onclick="voteComment(3478516,1)" class="commentst comment-like phCommentsCursor" id="like_3478516">15</span> <span onclick="voteComment(3478516,0)" class="commentst comment-dislike phCommentsCursor" id="dislike_3478516">0</span> <span class="commentst comment-reply phCommentsCursor" dataId="3478516">Reply</span> </div> <div class="phSubCommentContent" id="comment_reply_3478516"> </div> </div> </div> <script> $(document).ready(function () { $('#loadMoreBtn').hide(); }); $(document).on("keypress", ".inp", function (e) { if (e.keyCode == 13) { var id = $(this).attr("id").replace('Comment_',''); $('#sendComment_' + id).trigger('click'); } }); $(document).on("click", ".comment-reply", function () { //TODO: 陌f ilke tekrar varsa eklemesin. var id = $(this).attr("dataId"); var frmComment = new FormData(); frmComment.append("Id", id); frmComment.append("Type", 'Comment'); $.ajax({ type: "POST", url: "/Ajax/AddComment/", data: frmComment, processData: false, contentType: false, success: function (data) { $('#comment_reply_' + id).append(data); } }); }); function voteComment(id, val) { if ($('#vote_' + id).hasClass("votethis")) { var frmVoteComment = new FormData(); frmVoteComment.append("Id", id); frmVoteComment.append("Vote", val); frmVoteComment.append("Type", 'Comment'); $.ajax({ type: "POST", url: "/Activity/LikeComment/", data: frmVoteComment, processData: false, contentType: false, success: function (result) { var res = "error"; if (result.data == true) { var res = "success"; if (val == 1) { var count = parseInt($("#like_" + id).html()) + 1; $("#like_" + id).html(count) } else { var count = parseInt($("#dislike_" + id).html()) + 1; $("#dislike_" + id).html(count) } } modalPopup(res, result.description); $('#vote_' + id).removeClass("votethis") } }); } else { modalPopup("error","You cannot vote right now because you have voted before.") } } </script> </div> </div> <div class="phButtonBottom center"> <a href="/poem/if/comments/" title="If Comments" id="CommentSeeAll" class="phBtn">See All Comments</a> </div> </div> <!-- OTHER LANGUAGES --> <div class="phRow phBoxStyle blue-purple"> <div class="phBoxBigHead"> <span class="left-line bgc"></span> <span class="phBoxTitle txtc">READ THIS POEM IN OTHER LANGUAGES</span> </div> <div class="phContent"> <div class="phLinks otherlanguage"> <div class="phLink"> <div class="phIconMiddle"> <a href="/poem/si-rudyard-kipling/"><span class="phlTitle">Si… (Rudyard Kipling)(fr) </span></a> <a href="/poem/si-rudyard-kipling/"><span class="phlIcon brdc"></span></a> </div> </div> <div class="phLink"> <div class="phIconMiddle"> <a href="/poem/if-by-rudyard-kipking/"><span class="phlTitle">إذا… - روديارد كيبلينغ  (&quot;If…&quot; by Rudyard Kipking)(ar) </span></a> <a href="/poem/if-by-rudyard-kipking/"><span class="phlIcon brdc"></span></a> </div> </div> <div class="phLink"> <div class="phIconMiddle"> <a href="/poem/wenn-rudyard-kipling-translated/"><span class="phlTitle">Wenn… (Rudyard Kipling)  translated(de) </span></a> <a href="/poem/wenn-rudyard-kipling-translated/"><span class="phlIcon brdc"></span></a> </div> </div> <div class="phLink"> <div class="phIconMiddle"> <a href="/poem/-15452/"><span class="phlTitle">ರೆ,(kn) </span></a> <a href="/poem/-15452/"><span class="phlIcon brdc"></span></a> </div> </div> <div class="phLink"> <div class="phIconMiddle"> <a href="/poem/jeli-if-rudyard-kipling-translated/"><span class="phlTitle">Jeśli (If)  - Rudyard Kipling - Translated(pl) </span></a> <a href="/poem/jeli-if-rudyard-kipling-translated/"><span class="phlIcon brdc"></span></a> </div> </div> <div class="phLink"> <div class="phIconMiddle"> <a href="/poem/agar-1/"><span class="phlTitle">Agar...(uz) </span></a> <a href="/poem/agar-1/"><span class="phlIcon brdc"></span></a> </div> </div> <div class="phLink"> <div class="phIconMiddle"> <a href="/poem/translation-into-ukrainian-of-the-verse-if-by-rudyard-kipling/"><span class="phlTitle">Якщо (Translation Into Ukrainian Of The Verse 'if' By Rudyard Kipling)(uk) </span></a> <a href="/poem/translation-into-ukrainian-of-the-verse-if-by-rudyard-kipling/"><span class="phlIcon brdc"></span></a> </div> </div> <a href="/member/AddNewPoem/?PoemId=15909&translate=true" class="phTranslateLink">I would like to translate this poem</a> </div> </div> </div> <div class="DestopPopularPoems"> <div class="phRow phBoxStyle dark-blue"> <span class="top-line bgc"></span> <div class="phBoxBigHead"> <span class="left-line bgc"></span> <span class="phBoxTitle txtc">Poems By Rudyard Kipling</span> </div> <div class="phLinks" style="margin-bottom:20px;"> <div class="phLink"> <a href="/poem/mother-o-mine/" title="Rudyard Kipling - Mother O' Mine"> <div class="phIconMiddle"> <span class="phlTitle">Mother O' Mine</span> <span class="phlIcon brdc"></span> </div> </a> </div> <div class="phLink"> <a href="/poem/a-servant-when-he-reigneth/" title="Rudyard Kipling - A Servant When He Reigneth"> <div class="phIconMiddle"> <span class="phlTitle">A Servant When He Reigneth</span> <span class="phlIcon brdc"></span> </div> </a> </div> <div class="phLink"> <a href="/poem/if/" title="Rudyard Kipling - If"> <div class="phIconMiddle"> <span class="phlTitle">If</span> <span class="phlIcon brdc"></span> </div> </a> </div> <div class="phLink"> <a href="/poem/gunga-din/" title="Rudyard Kipling - Gunga Din"> <div class="phIconMiddle"> <span class="phlTitle">Gunga Din</span> <span class="phlIcon brdc"></span> </div> </a> </div> <div class="phLink"> <a href="/poem/mandalay/" title="Rudyard Kipling - Mandalay"> <div class="phIconMiddle"> <span class="phlTitle">Mandalay</span> <span class="phlIcon brdc"></span> </div> </a> </div> <div class="phLink"> <div class="phButtonBottom center"> <a href="/rudyard-kipling/poems/" title="All poems of Rudyard Kipling" class="phBtn">See All Poems by Rudyard Kipling</a> </div> </div> </div> </div> </div> <div class="MobilePopularPoems"> </div> </div> <div class="phSideBar phLeft phSideBarPoemDetail"> <div id="phProfileInfoDesktop"> <div class="phRow phBoxStyle phDesktopMember"> <div class="phRow " style="margin-top:-14px;"> <div class="phBoxBottom phDetailNav"> <div class="phBoxContinue txtc phDetailAnother" style="width:33%;text-align:right"> <a href="/poem/in-error/" title="Next Poem"><span class="phDetailAnotherNext">Next Poem</span> <span class="brdc"></span></a> </div> <div class="phBoxContinue txtc " style=''> 143 / 546 </div> <div class="phBoxBefore txtc phDetailAnother" style="width:120px;"> <a href="/poem/i-keep-six-honest/" title="Previous Poem"> <span class="phDetailAnotherPrev">Previous Poem</span> <span class="brdc"></span></a> </div> </div> </div> <div class="phBoxContent"> <div class="phProfileSummary"> <a href="/rudyard-kipling/" title="Rudyard Kipling"><img class="phpsImage lazyload" src="https://img.poemhunter.com/i/p/09/3109_b_2688.jpg" alt="Rudyard Kipling" /></a> <h2 class="phpsTitle"><a href="/rudyard-kipling/" title="Rudyard Kipling">Rudyard Kipling</a></h2> <div class="phpsCity"><span>Bombay</span></div> <div class="phpsFollowMessage phAjaxMessage phDynamicMemberInfo"> </div> </div> </div> </div> <div class="phRow phBoxStyle phMobileMember"> <div class="phmmTop"> <a href="/rudyard-kipling/" title="Rudyard Kipling"> <img class="phmmImage" src="https://img.poemhunter.com/i/p/09/3109_b_2688.jpg" alt="Rudyard Kipling" /> </a> <div class="phmmContent"> <div class="phmmTitle"> <a href="/rudyard-kipling/" title="Rudyard Kipling">Rudyard Kipling</a> </div> <span class="phmmSub">Bombay</span> </div> <div class="phmmRightButton phAjaxMessage"> </div> </div> <div class="phmmBottom"> <a href="/rudyard-kipling/" title="Rudyard Kipling"><span class="phmmButton">Poet's Page</span></a> <a href="/rudyard-kipling/poems/" title="Rudyard Kipling Poems"><span class="phmmButton">Poems</span></a> <span class="phmmButton phmmClickNav">More</span> <div class="phnmOpenBox"> <span class="phmmclose"><img alt="Close" src="/assets/img/menuyu_kapat.png" width="auto" height="15" /></span> <a href="/rudyard-kipling/activity/" title="Rudyard Kipling Activities"><span class="phmmlink">Activity</span></a> <a href="/rudyard-kipling/quotations/" title="Rudyard Kipling Quotations"><span class="phmmlink">Quotes</span></a> <a href="/rudyard-kipling/biography/" title="Rudyard Kipling Biography"><span class="phmmlink">Biography</span></a> <a href="/rudyard-kipling/comments/" title="Rudyard Kipling Comments"><span class="phmmlink">Comments</span></a> <a href="/rudyard-kipling/following/" title="Rudyard Kipling Followings" class="phmmlink">Following</a> <a href="/rudyard-kipling/followers/" title="Rudyard Kipling Followers" class="phmmlink">Followers</a> <a href="/rudyard-kipling/stats/" title="Rudyard Kipling Stats" class="phmmlink">Statistics</a> <a href="/member/overview/" title="My Profile" class="phmmlink">My Profile</a> <a href="/member/add-new-poem/" title="Add New Poem" class="phmmlink">Add New Poem</a> <a href="/member/add-new-quote/" title="Add New Quote" class="phmmlink">Add New Quote</a> </div> </div> <div class=""> <div class="phBoxBottom phDetailNav" style="margin-top:20px!important;"> <div class="phBoxContinue txtc " style="width:120px;text-align:right"> <a href="/poem/in-error/" title="Next Poem"><span class="phDetailAnotherNext">Next Poem</span> <span class="brdc"></span></a> </div> <div class="phBoxContinue txtc " style=''> 143 / 546 </div> <div class="phBoxBefore txtc " style="width:120px;"> <a href="/poem/i-keep-six-honest/" title="Previous Poem"> <span class="phDetailAnotherPrev">Previous Poem</span> <span class="brdc"></span></a> </div> </div> </div> </div> <script> $(window).on("load", function () { GetPoetFollowing(); GetPoetBlock(); }); function GetPoetFollowing() { url = "/Ajax/_PoetFollowingControl"; $.ajax({ type: "get", url: url, data: { PoetMemberId: 5719123, poetId: 3109, who_send_message:'None', path:'/poem/if/'}, success: function (msg) { $(".phAjaxMessage").html(""); $(".phAjaxMessage").html(msg); }, error: function (msg) { } }) } function GetPoetBlock() { url = "/Ajax/_PoetBlockControl"; $.ajax({ type: "get", url: url, data: { PoetMemberId: 5719123, poetId: 3109, path:'/poem/if/'}, success: function (msg) { $("#blockSection").html(""); $("#blockSection").html(msg); }, error: function (msg) { } }) } </script> </div> </div> </div> </div> <div class="phFooter"> <div class="phFtTop"> <div class="phContainer"> <div class="phftLogo phshLogo"> <a href="/" title="PoemHunter.com: Poems - Poets - Poetry"><img class="lazyload" src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" data-original="/assets/img/logo-footer.jpg" height="25" width="183" alt="PoemHunter.com: Poems - Poets - Poetry" /></a> </div> <div class="phftLogo phFtMenu phshLogo"> <div class="phFtMenuItem"> <a href="/poems/" title="Poems" style="color: #484848">POEMS</a> </div> <div class="phFtMenuItem"> <a href="/poets/" title="Poets" style="color: #484848">POETS</a> </div> </div> <div class="phftSearch"> <input type="search" id="phFooterSearch" autocomplete="off" placeholder="Search anything" value="" /> <span class="icon-search"></span> </div> </div> </div> <div class="phFtBottom"> <div class="phContainer"> <div class="phRow"> <div class="phftLink newphftLink"> <a href="/" title="PoemHunter.com: Poems - Poets - Poetry"><div class="footerTitle">Poemhunter.com</div></a> <a href="/poems/best-poems/" class="phftl" title="Best Poems">Best Poems</a> <a href="/poems/best-poems/member-poets/" class="phftl" title="Best Member Poems">Best Member Poems</a> <a href="/poems/best-poems/classical-poets/" class="phftl" title="Best Classical Poems">Best Classical Poems</a> <a href="/poems/new-poems/" class="phftl" title="New Poems">New Poems</a> <a href="/poets/new-poets/" class="phftl" title="New Poets">New Poets</a> <a href="/poets/best-poets/member-poets/" class="phftl" title="Best Member Poets">Best Member Poets</a> <a href="/poets/best-poets/classic-poets/" class="phftl" title="Best Classical Poets">Best Classical Poets</a> <a href="/explore/poems/" class="phftl" title="Explore Poems">Explore Poems</a> <a href="/explore/poets/" class="phftl" title="Explore Poets">Explore Poets</a> <a href="/poem-of-the-day/" class="phftl" title="Poem Of The Day">Poem Of The Day</a> </div> <div class="phftLink newphftLink"> <a href="/poems/themes/" title="Poems About"><div class="footerTitle">Poems About</div></a> <a href="/poems/love/" class="phftl" title="Love Poems">Love Poems</a> <a href="/poems/baby/" class="phftl" title="Baby Poems">Baby Poems</a> <a href="/poems/death/" class="phftl" title="Death Poems">Death Poems</a> <a href="/poems/sad/" class="phftl" title="Sad Poems">Sad Poems</a> <a href="/poems/birthday/" class="phftl" title="Birthday Poems">Birthday Poems</a> <a href="/poems/wedding/" class="phftl" title="Wedding Poems">Wedding Poems</a> <a href="/poems/nature/" class="phftl" title="Nature Poems">Nature Poems</a> <a href="/poems/sorry/" class="phftl" title="Sorry Poems">Sorry Poems</a> <a href="/poems/hero/" class="phftl" title="Hero Poems">Hero Poems</a> <a href="/ebooks/" class="phftl" title="Poetry E-Books">Poetry E-Books</a> </div> <div class="phftLink newphftLink"> <a href="/poets/best-poets/" title="Best Poets"><div class="footerTitle">Best Poets</div></a> <a href="/robert-frost/" class="phftl" title="Robert Frost">Robert Frost</a> <a href="/maya-angelou/" class="phftl" title="Maya Angelou">Maya Angelou</a> <a href="/william-shakespeare/" class="phftl" title="William Shakespeare">William Shakespeare</a> <a href="/pablo-neruda/" class="phftl" title="Pablo Neruda">Pablo Neruda</a> <a href="/langston-hughes/" class="phftl" title="Langston Hughes">Langston Hughes</a> <a href="/emily-dickinson/" class="phftl" title="Emiliy Dickinson">Emiliy Dickinson</a> <a href="/shel-silverstein-2/" class="phftl" title="Shel Silverstein">Shel Silverstein</a> <a href="/william-blake/" class="phftl" title="William Blake">William Blake</a> <a href="/rabindranath-tagore/" class="phftl" title="Rabindranath Tagore">Rabindranath Tagore</a> <a href="/william-wordsworth/" class="phftl" title="William Wordsworth">William Wordsworth</a> </div> <div class="phftLink newphftLink"> <a href="/poems/best-poems/" title="Best Poems"><div class="footerTitle">Best Poems</div></a> <a href="/poem/phenomenal-woman/" class="phftl" title="Phenomenal Woman By Maya Angelou">Phenomenal Woman</a> <a href="/poem/still-i-rise/" class="phftl" title="Still I Rise By Maya Angelou">Still I Rise</a> <a href="/poem/the-road-not-taken/" class="phftl" title="The Road Not Taken By Robert Frost">The Road Not Taken</a> <a href="/poem/if-you-forget-me/" class="phftl" title="If You Forget Me By Pablo Neruda">If You Forget Me</a> <a href="/poem/dreams-2/" class="phftl" title="Dreams By Langston Hughes">Dreams</a> <a href="/poem/annabel-lee/" class="phftl" title="Annabel Lee By Edgar Allan Poe">Annabel Lee</a> <a href="/poem/caged-bird-21/" class="phftl" title="Caged Bird By By Maya Angelou">Caged Bird</a> <a href="/poem/if/" class="phftl" title="If By Rudyard Kipling">If</a> <a href="/poem/fire-and-ice/" class="phftl" title="Fire And Ice By Robert Frost">Fire And Ice</a> <a href="/poem/on-the-death-of-the-beloved" class="phftl" title="On The Death Of The Beloved By John O'Donohue">On The Death Of The Beloved</a> </div> </div> <div class="phRow"> <div class="phftSocial phftSocialNew"> <a href="https://apps.apple.com/us/app/poemhunter/id918149865" target="_blank" title="Poemhunter App"> <img class="lazyload" src='data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=' data-original="/assets/img/poemhunter_Store.png" width="100" height="33" alt="Poem Hunter App Store" /> </a> </div> <div class="phftSocial" style="position:relative;margin-left:10px;margin-top:5px;right:0"> <a href="https://www.facebook.com/PoemHunterCom" title="PoemHunter Facebook" target="_blank" class="phftsc"><img class="lazyload" src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" data-original="/assets/img/icon-footer-fb.svg" width="22" height="22" alt="PoemHunter Facebook" /></a> <a href="https://twitter.com/PoemHunter" title="PoemHunter Twitter" target="_blank" class="phftsc"><img class="lazyload" src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" data-original="/assets/img/icon-footer-tw.svg" width="22" height="22" alt="PoemHunter Twitter" /></a> <a href="https://www.instagram.com/poemhunter/" title="PoemHunter Instagram" target="_blank" class="phftsc"><img class="lazyload" src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" data-original="/assets/img/icon-footer-ins.svg" width="22" height="22" alt="PoemHunter Instagram" /></a> </div> </div> </div> <div class="phRow"> <div class="phContainer phBttmContent" style="margin-top:10px;"> <div class="phftsc"> <div class="phftSocial phBttmlink phftSocialResponsible"> <a href="/about-us/" title="About Us" class="phftl">About Us</a> <a href="/copyright-notice/" title="Copyright notice" class="phftl">Copyright notice</a> <a href="/cookie-policy/" title="Copyright Policy" class="phftl">Cookie Policy</a> <a href="/privacy-statement/" title="Copyright notice" class="phftl">Privacy Statement</a> <a href="/contact-us/" title="Contact Us" class="phftl">Contact Us</a> <a href="/help/" title="Help" class="phftl">Help</a> <a href="https://www.yenimedya.com.tr/tickets/?site=poemhunter&referrer=https://www.poemhunter.com/poem/if/" title="Report Error" class="phftl" rel="external nofollow">Report Error</a> <a href="/is-poemhunter-a-legit-site/" title="Is Poem Hunter a legit site?" class="phftl">Is Poem Hunter a legit site?</a> <a href="/is-poemhunter-safe/" title="Is Poem Hunter Safe?" class="phftl">Is Poem Hunter safe?</a> <a href="/comunity-rules/" title="Comunity Rules" class="phftl">Comunity Rules</a> <a href="/privacy-policy/" title="Privacy Policy" class="phftl">Privacy Policy</a> <a href="/legal-terms-of-use/" title="Legal Terms Of Use">Legal Terms Of Use</a> </div> </div> <div class="phftsc phKeltis"> <div class="phBttmKeltisLogo"> <img class="lazyload keltisImage" src='data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=' data-original="/assets/img/keltis-logo.png" width="70" height="14" alt="Keltis" /> </div> <div class="phBttmKeltis phBttmKeltisResponsible"> <p>Delivering Poems Around The World</p> <p class="phBttmKeltisInfo">Poems are the property of their respective owners. All information has been reproduced here for educational and informational purposes to benefit site visitors, and is provided at no charge...</p> </div> </div> <div class="phftsc"> <p class="phBttmKeltisInfoDate">11/27/2024 8:39:36 PM # 1.0.0</p> </div> </div> </div> </div> </div> <div class="modalPopup"> <div class="modalPopupBg"></div> <div class="modalPopupBgYesNo"></div> <div class="modalPopupContent"> <div class="modalPopupClose"><img src='data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=' data-original="/assets/img/icon-popup-close.png" class="lazyload" width="25" height="25" alt="Close" /></div> <div class="mpStatus"> <img src='data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=' data-original="/assets/img/icon-error.png" alt="Error" class="error lazyload" width="40" height="40" /> <img src='data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=' data-original="/assets/img/icon-success.png" alt="Success" class="success lazyload" width="40" height="40" /> </div> <div class="mpText"> </div> <div class="mpButton"> <input type="submit" id="yes" name="yes" class="modalYes" value="OK" /> <input type="submit" id="no" name="no" class="modalNo bgfalse" value="Cancel" /> </div> </div> </div> <input type="hidden" id="SelectAccountName" /> <div id="selectAccount"> </div> </div> <script type="text/javascript" src="/assets/js/autosize.min.js"></script> <script type="text/javascript" src="/assets/js/script.js"></script> <script type="text/javascript" src="/assets/js/main.js"></script> <!-- Google Tag Manager (noscript) --> <noscript> <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-T9W9H2N" height="0" width="0" style="display:none;visibility:hidden"></iframe> </noscript> <!-- End Google Tag Manager (noscript) --> <script type="text/javascript"> var serviceStatus = { Success: 0, Error: 1 }; $(document).ready(function () { $.ajax({ type: "POST", url: "/Ajax/SelectAccountControl/", processData: false, contentType: false, async: true, success: function (data) { if (data != null && data != '') { $('#selectAccount').html(data); modalUserPopupOpen(); } } }); }); $(document).ready(function () { GetPageBanner('top', 0, 'False' == 'True' ? 'true' : 'false',''); }); $(document).ready(function () { containerAutoHeight(); if (!cihaz_mobilmi) { $('.icon-search').click(function () { window.location.href = "/search/?q=" + $("#phHeaderSearch").val(); }); } $("#phHeaderSearch").keypress(function (e) { if (e.keyCode == 13) { window.location.href = "/search/?q=" + $("#phHeaderSearch").val(); } }); $("#phFooterSearch").keypress(function (e) { if (e.keyCode == 13) { window.location.href = "/search/?q=" + $("#phFooterSearch").val(); } }); $(".modalPopupBg, .modalPopupClose").on("click", function () { modalPopupClose(); }); $(document).on("click", ".phmmClickNav", function () { $(".phnmOpenBox").show(0); }) $(document).on("click", ".phmmclose", function () { $(".phnmOpenBox").hide(0); }) $(".modalPopupWpBg, .modalPopupWpClose").on("click", function () { modalPopupWpClose(); }); }); function toUrl(CurrentPage) { var path = $(location).attr('pathname'); path.indexOf(1); path.toLowerCase(); if (CurrentPage == "/page-1/") { window.location.href = '/' + path.split("/")[1] + '/' + path.split("/")[2] } else { window.location.href = '/' + path.split("/")[1] + '/' + path.split("/")[2] + CurrentPage + window.location.search; } } function modalPopup(mpStatus, mpContent) { $.ajax({ url: "/assets/js/jquery.lazyload.js", dataType: "script", complete: function (data) { $(".lazyload").lazyload(); } }); $(".modalPopup").show(0); $(".modalPopup .mpStatus img").css("display", "none"); $(".modalPopup .mpText").html(""); if (mpStatus == "success") { $(".modalPopup .success").css("display", "inline-block"); } else if (mpStatus == "yesno") { $(".modalPopup").addClass("yesno"); } else { $(".modalPopup .error").css("display", "inline-block"); } $(".modalPopup .mpText").html(mpContent); } $(".modalPopup input").on("click", function () { modalPopupClose(); }); function modalPopupClose() { $(".modalPopup").hide(0); $(".modalPopup").removeClass("yesno"); $(".modalPopup .mpStatus img").css("display", "none"); $(".modalPopup .mpText").html(""); } function modalPopupWp(mpWpBrowser, mpContent) { $(".modalPopupWp").show(0); var imgPerm = ""; if (mpWpBrowser == "Chrome") { imgPerm = "/assets/images/chrome_notification_popup.png"; } else if (mpWpBrowser == "Firefox") { imgPerm = "/assets/images/firefox_notification_popup.png"; } else if (mpWpBrowser == "Edge") { imgPerm = "/assets/images/edge_notification_popup.png"; } else if (mpWpBrowser == "Opera") { imgPerm = "/assets/images/opera_notification_popup.png"; } else { imgPerm = "/assets/images/chrome_notification_popup.png"; } $('.mpWpStatus').html(""); $('.mpWpStatus').prepend('<img id="imgPerm" src="' + imgPerm + '" width="330" height="auto"/>') } $(".modalPopupWp input").on("click", function () { modalPopupWpClose(); }); function modalPopupWpClose() { $(".modalPopupWp").hide(0); $(".modalPopupWp").removeClass("yesno"); $(".modalPopupWp .mpWpText").html(""); } function scrollTopPosition(number) { $(".phScrollPosition .phlNumber").each(function () { numberText = $(this).text(); if (numberText == number) { pstTop = ($(this).parent().offset().top) - 70; var body = $("html, body"); body.stop().animate({ scrollTop: pstTop }, 500); } }) } function containerAutoHeight() { phHeight = $(window).height(); phHeaderHeight = $(".phHeader").height(); phFooterHeight = $(".phFooter").height(); phGeneralPadding = 90; phGeneralHeightTotal = phHeight - (phHeaderHeight + phFooterHeight + phGeneralPadding); $(".phBody").css("min-height", phGeneralHeightTotal + "px"); if ($('.phSideBar.phLeft').height() > $('.phContentScope').height()) { $('.phContentScope').css("min-height", $('.phSideBar.phLeft').height() + 100 + "px"); } } $(document).on("click", ".sendComment", function () { var id = $(this).attr("dataId"); var type = $(this).attr("dataType"); saveComment($('#Comment_' + id).val(), $('#CommentName_' + id).val(), id, type); }); function saveComment(comment, name, id, type) { if ($.trim(name).length < 2) { modalPopup("error", "Please enter at least 2 characters in the YOUR NAME field."); } if ($.trim(name).length > 40) { modalPopup("error", "Please enter up least 40 characters in the YOUR NAME field."); } else if ($.trim(comment).length < 2) { modalPopup("error", "Please enter at least 2 characters in the YOUR COMMENT field."); } else { $('#Comment_' + id).val(''); var data = { Comment: comment, Id: id, Type: type, Name: name }; $.ajax({ url: '/Activity/SaveComment/', type: "POST", dataType: "json", data: data, success: function (result) { var res = "success"; if (result.result == serviceStatus.Error) { var res = "error"; } if (res == "error" && result.description == "Sign in") { window.location.href = "/login/"; //?Redirect=" + window.location.pathname; } else { modalPopup(res, result.description); $('.phSubCommentContent').html(''); } } }); } } $(document).on("click", ".mpUserSelectScope .mpusBox", function () { $(".mpUserSelectScope .mpusBox").removeClass("active"); $(this).addClass("active"); $(".mpUserButton").show(0); $("#SelectAccountName").val($(this).attr("data-id")); }) $(".xxxxxs").on("click", function () { modalUserPopupOpen() }) $(".xxxxxz").on("click", function () { modalUserPopupClose() }) function modalUserPopupOpen() { $(".modalPopupUser").addClass("active"); } function modalUserPopupClose() { $(".modalPopupUser").removeClass("active"); } function SetCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); var expires = "expires=" + d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } function GetPageBanner(bannerType, mainPage,isBannerShow ,country) { if (isBannerShow == 'false') { return; } var formData = new FormData(); formData.append("bannerType", bannerType); formData.append("mainPage", mainPage); formData.append("country", country); $.ajax({ type: "POST", url: "/ViewComponent/GetPageBanner/", data: formData, processData: false, contentType: false, async: true, success: function (data) { $('#mainPageBanner').append(data); } }); } function goToByScroll(id,topValue=0) { $('html,body').animate({ scrollTop: $("#" + id).offset().top - topValue }, 'slow'); } $(document).mouseup(function (e) { var container = $(".phnmOpenBox"); if (!container.is(e.target) && container.has(e.target).length === 0) { container.hide(); } }); function getQueryStringValue(paramName) { const urlParams = new URLSearchParams(window.location.search); const paramValue = urlParams.get(paramName); return paramValue; } </script> <script> $(document).ready(function () { if (cihaz_mobilmi) { $(window).scroll(function (e) { if ($('#phProfileInfoMobile').length == 1) { var sUst = $(this).scrollTop(); var link = $("#phProfileInfoMobile"); var offset = link.offset(); if (offset.top >= sUst) { $(".phMobileMember").css({ position: "relative" }); $(".phMobileMember").css({ top: "0px" }); $(".phMobileMember").css({ zIndex: "10" }); $(".page-details").css({ marginTop: "0px" }); $(".phMobileMember").css({ width: "100%" }); $(".phMobileMember").css({ marginRight: "0px" }); } else { $(".phMobileMember").css({ position: "fixed" }); $(".phMobileMember").css({ top: "0px" }); $(".phMobileMember").css({ zIndex: "9999999999999" }); $(".page-details").css({ marginTop: "236px" }); $(".phMobileMember").css({ width: "auto" }); $(".phMobileMember").css({ marginRight: "10px" }); } } }); } }); function ShowMore1() { $('.ShowMore1').css("display", "block"); $('.ShowMore1Btn').css("display", "none"); $('.HideMore1').css("display", "none"); } function ShowMore3() { $('.ShowMore3').css("display", "block"); $('.ShowMore3Btn').css("display", "none"); $('.ShowMore2Btn').css("display", "block"); $('.HideMore2').css("display", "block"); $('.HideMore3').css("display", "none"); } function ShowMore2() { $('.ShowMore2').css("display", "block"); $('.ShowMore2Btn').css("display", "none"); $('.HideMore2').css("display", "none"); } function ajax_item() { var formData = new FormData(); formData.append("Id", 15909); formData.append("Type", 1); formData.append("Puan", 9.033773); formData.append("Path", '/poem/if/'); formData.append("isAllowVote", '1'); $.ajax({ type: "POST", url: "/Ajax/Rate/", data: formData, processData: false, contentType: false, async: false, success: function (data) { $('#AjaxRate').append(data); Rate(); } }); var formComment = new FormData(); formComment.append("Id", 15909); formComment.append("Type", 'Poem'); $.ajax({ type: "POST", url: "/Ajax/AddComment/", data: formComment, processData: false, contentType: false, success: function (data) { $('#writeComment').append(data); } }); var data = { poemId: 15909 }; $.ajax({ url: "/Activity/ViewPoem/", type: "POST", dataType: "json", data: data, async: true, success: function (result) { } }); } $(window).on("load", function () { var scrl_ajax_item = true; window.addEventListener("scroll", function () { if (scrl_ajax_item == true) { scrl_ajax_item = false; ajax_item(); } }); var formMyPoem = new FormData(); formMyPoem.append("Id", 15909); formMyPoem.append("PoetId", 3109); formMyPoem.append("Path", '/poem/if/'); formMyPoem.append("Type", 'Poem'); $.ajax({ type: "POST", url: "/Ajax/AddMyFavorites/", data: formMyPoem, processData: false, contentType: false, async: false, success: function (data) { $('#AddMyPoem').append(data); } }); }); $(window).on("load", function () { var formData = new FormData(); formData.append("poemId", 15909); if (35> 15) { formData.append("take", 10); } else { formData.append("take", 5); } if (546 > 1) { formData.append("poetId", 3109); } else { formData.append("poetId", 0); } }); </script> <script type="text/javascript"> $(window).on("load", function (e) { $.ajax({ url: "/assets/js/jquery.lazyload.js", dataType: "script", complete: function (data) { $(".lazyload").lazyload(); } }); }); </script> <script type="text/javascript"> document.querySelector(".phHeader .phNavigation .phHeaderSearch #phHeaderSearch").addEventListener("focus", function () { document.querySelector(".phHeader .phNavigation .phHeaderSearch").classList.add("srfcs"); document.querySelector(".phDropDownMenu").classList.add("srfcs"); }); document.querySelector(".phHeader .phNavigation .phHeaderSearch #phHeaderSearch").addEventListener("focusout", function () { document.querySelector(".phHeader .phNavigation .phHeaderSearch").classList.remove("srfcs"); document.querySelector(".phDropDownMenu").classList.remove("srfcs"); }); </script> </body> </html>