Tour Destination, Tour package, Taxi Service.

Nestled within the embrace of the mighty Himalayas, Himachal Pradesh stands as a testament to nature’s grandeur, offering an array of destinations that enchant travelers seeking adventure, tranquility, and cultural immersion. From snow-capped peaks to lush valleys and vibrant towns, each place in this northern Indian state beckons with its unique allure. Let’s embark on an exploration of the top destinations that make Himachal Pradesh a traveler’s paradise and join hands with Trip Trek Taxi Service for your taxi and tour package booking.

Shimla: Where Colonial Elegance Meets Himalayan Serenity

Shimla, the quintessential Queen of Hills, casts a spell that transcends time. Tucked amidst the majestic Himalayas, this capital city of Himachal Pradesh is a canvas painted with colonial elegance and natural beauty.

As one wanders through Shimla’s meandering streets, the colonial architecture evokes a bygone era. The Ridge, a bustling promenade, offers panoramic views and serves as the city’s cultural hub. Christ Church, a striking neo-Gothic structure, stands tall, a testament to British-era architectural splendor.

Mall Road, the pulsating heart of Shimla, is a lively thoroughfare lined with shops, eateries, and old-world charm. Here, locals and tourists converge, relishing the vibrant ambiance and panoramic vistas.

The Viceregal Lodge, an architectural marvel set amidst lush gardens, echoes the city’s colonial past. This grand structure, once the summer residence of British viceroys, now houses the Indian Institute of Advanced Study. Its majestic halls and sprawling lawns exude a regal aura.

Jakhu Temple, perched atop a hill, offers not just spiritual solace but sweeping views of the surrounding landscape. The ascent to this temple is rewarded with breathtaking vistas and encounters with mischievous monkeys.

The UNESCO-listed Kalka-Shimla Railway, a marvel of engineering, presents a journey back in time aboard a toy train. Traversing through tunnels, over bridges, and amidst verdant landscapes, this train ride is an enchanting experience.

Shimla’s allure lies not only in its architectural splendor but also in its natural bounty. The verdant landscapes, with cedar and pine forests, provide a serene escape from the bustling city life. The soothing ambiance and temperate climate make it a haven for weary souls seeking respite.

The city’s charm transcends seasons; in winter, the snow-draped peaks add a magical touch, attracting snow enthusiasts. Summer unveils a cool respite from the scorching plains, beckoning travelers seeking refuge in its pleasant climes.

In essence, Shimla is more than a mere city; it’s a living testament to history, beauty, and the seamless fusion of nature and human craftsmanship. Its colonial heritage and breathtaking landscapes form an exquisite tapestry that leaves an indelible mark on all who traverse its charming streets and immerse themselves in its timeless allure.

Manali: Adventure Haven and Scenic Marvel

Tucked away in the serene Kullu Valley, Manali stands as a testament to nature’s grandeur and adventure’s call. This picturesque town in Himachal Pradesh is a haven for travelers seeking a blend of scenic beauty and thrilling escapades.

The landscape is a symphony of snow-capped peaks, gushing rivers, and lush meadows. Rohtang Pass, a gateway to Lahaul and Spiti valleys, beckons adventurers with its breathtaking vistas and thrilling experiences. Trekking, paragliding, river rafting, and skiing in the Solang Valley provide adrenaline-pumping activities amidst stunning panoramas.

Old Manali, with its rustic charm and bohemian vibe, invites exploration through its narrow lanes dotted with cozy cafes, vibrant markets, and local handicraft shops. The Manu Temple, an ancient shrine dedicated to the sage Manu, offers a glimpse into the town’s spiritual heritage.

The Beas River meanders through the valley, offering opportunities for serene riverside walks and moments of tranquility. The lush apple orchards and pine-covered slopes create a picturesque backdrop that captivates visitors.

Hadimba Devi Temple, adorned with intricate wood carvings and set amidst deodar forests, stands as a marvel of architecture and devotion. Nearby, the Vashisht Hot Water Springs and Temple provide a therapeutic respite with their natural hot springs and spiritual sanctity.

Manali’s charm transcends seasons. In summer, it offers respite from the heat, while winter dresses it in a blanket of snow, attracting snow sports enthusiasts. The enchanting beauty of the region during monsoons, with its fresh greenery and misty landscapes, is a sight to behold.

The town’s warmth lies not just in its natural splendor but also in the hospitality of its locals. Visitors are welcomed with open arms, and the local cuisine, featuring dishes like “Sidu” and “Thenthuk,” tantalizes taste buds with its unique flavors.

In essence, Manali isn’t just a destination; it’s an experience that weaves together nature’s serenity and adrenaline-fueled adventures. Its stunning landscapes, rich cultural heritage, and welcoming ambiance beckon travelers to immerse themselves in its charm and create lasting memories amidst the Himalayan marvels.

Dharamshala and McLeod Ganj: Spiritual Abode and Cultural Melting Pot

Dharamshala and McLeod Ganj, nestled in the serene embrace of the Dhauladhar Range, beckon travelers with their spiritual aura and vibrant cultural tapestry. These twin towns in Himachal Pradesh epitomize tranquility, offering a refuge for seekers of spiritual solace and a vibrant hub for cultural immersion.

Dharamshala, often revered as the residence of the Dalai Lama, exudes a serene ambiance. The Namgyal Monastery, resonating with chants and prayers, stands as a spiritual haven, inviting visitors to experience Tibetan Buddhism’s tranquility. The Tsuglagkhang Complex, housing the Namgyal Monastery and the Dalai Lama’s residence, radiates an aura of peace and reflection.

Just a short distance away, McLeod Ganj, often referred to as “Little Lhasa,” exudes a distinct vibe with its bustling streets, vibrant markets, and a rich tapestry of Tibetan culture. The Bhagsu Waterfall cascades amidst lush greenery, offering a tranquil escape. The iconic Tsuglagkhang Temple, resonating with spiritual fervor, attracts pilgrims and tourists alike.

The region’s allure extends beyond its spiritual sanctuaries. McLeod Ganj’s quaint cafes serve as meeting points for travelers from around the world, fostering cultural exchanges and discussions. The Tibetan Institute of Performing Arts presents glimpses of Tibet’s rich heritage through captivating performances.

The Triund trek, a popular trail starting from McLeod Ganj, weaves through oak and rhododendron forests, rewarding trekkers with panoramic views of the Himalayas. The trek serves as an introspective journey amidst nature’s grandeur.

Dharamshala and McLeod Ganj remain welcoming oases throughout the year. Summer unveils a cool respite from the plains, while winter casts a serene veil with occasional snowfall. Monsoons grace the region with verdant landscapes and misty vistas.

The warmth of the locals enhances the region’s allure. Visitors are greeted with smiles, and the local cuisine, offering dishes like “Thenthuk” and “Momos,” tantalizes taste buds with its flavors.

In essence, Dharamshala and McLeod Ganj are not just geographical locations; they’re sanctuaries that nurture the soul and celebrate cultural diversity. Their spiritual sanctuaries, vibrant streets, and breathtaking landscapes create a harmonious blend that invites travelers to delve into introspection, cultural exchange, and spiritual awakening amidst the Himalayan serenity.

Spiti Valley: A Land of Mystique and Raw Beauty

Nestled high in the rugged terrain of the Himalayas, Spiti Valley stands as an epitome of raw, untouched beauty. This high-altitude desert, situated in Himachal Pradesh, is a mystical land that enthralls adventurers and nature enthusiasts alike. The landscape of Spiti Valley is stark yet breathtaking. High mountain passes, barren cliffs, and ancient monasteries, like Key Monastery and Tabo Monastery, dot the terrain, narrating tales of a bygone era. Each monastery carries the weight of centuries, echoing the unique Spitian culture and spirituality. The valley’s pristine lakes, such as Chandratal and Dhankar Lake, shimmer like jewels amidst the rugged terrain, adding a touch of serenity to the raw landscape. These azure bodies of water are cradled by towering peaks, creating a surreal juxtaposition of nature’s elements. Spiti Valley’s rugged terrain beckons adventurers with challenging treks, including the Pin Parvati Pass trek and treks to remote villages like Langza and Komic. These trails offer not just physical challenges but also panoramic vistas that leave an indelible mark on the soul. The region’s climate and isolation lend it an ethereal charm. Accessible only during certain months due to harsh winters, Spiti Valley maintains its pristine allure, away from the bustle of modernity. Its unspoiled landscapes and tranquil ambiance make it a haven for those seeking solace amidst nature’s grandeur. In essence, Spiti Valley isn’t just a destination; it’s an experience that immerses travelers in a world of mystique and unparalleled beauty. Its raw landscapes, ancient monasteries, and serene lakes form a tapestry that speaks of the valley’s unique allure, inviting explorers to embrace the untamed wilderness and discover the profound tranquility hidden within its rugged embrace.

Kullu Valley: Nature’s Canvas and Cultural Extravaganza

Nestled within Himachal Pradesh, the Kullu Valley epitomizes nature’s unmatched beauty. Its landscape, a masterpiece of lush greenery, snow-capped peaks, and a vibrant cultural tapestry, enchants visitors seeking solace amidst nature’s embrace. Rolling hills adorned with forests, the Beas River’s crystal-clear waters, and snow-draped peaks create a captivating panorama.

The valley’s centerpiece, the Great Himalayan National Park, designated a UNESCO World Heritage Site, shelters diverse flora and fauna. Towering deodars and spruces house a rich wildlife spectrum, including Himalayan tahr and snow leopards. Trails within the park offer glimpses of untouched natural grandeur, beckoning adventurers and nature lovers alike.

Beyond nature’s bounty, the valley boasts a rich cultural heritage. Traditional Himachali villages with slate-roofed houses showcase intricate wood carvings, preserving age-old customs. Locals, warm and hospitable, embrace vibrant traditions celebrated through colorful festivals and age-old rituals.

The annual Dussehra festival is a vibrant testament to local culture and mythology. Elaborately decorated deities from various temples across the valley parade through the streets, accompanied by drumbeats, folk songs, and the aroma of local delicacies. It’s a spectacle encapsulating traditions and fervor.

For adventurers, Kullu Valley offers trekking trails like Chandrakhani Pass and Malana Village, each unveiling hidden marvels. These trails narrate stories of forests, meadows, and quaint villages, inviting exploration and panoramic views.

The valley’s hospitality matches its natural splendor. Locals welcome travelers with warmth, offering tastes of traditional Himachali cuisine like “Sidu,” “Thukpa,” and the festival specialty, “Dham.” These culinary delights unravel the region’s culinary heritage.

In essence, the Kullu Valley is not just a geographic wonder but a tapestry woven with nature’s finest threads and cultural gems. Its beauty transcends panoramic landscapes, embracing tranquility, vibrant culture, and immersive experiences. This valley, blending natural splendor with cultural richness, epitomizes Himachal Pradesh’s captivating essence, inviting travelers to immerse themselves in its embrace and craft indelible memories amidst nature’s grandeur.

Kasol and Tosh: Tranquil Getaways and Gateway to Adventures

Tucked away in the Parvati Valley, Kasol and Tosh stand as tranquil havens amidst the majestic Himalayas. These serene hamlets in Himachal Pradesh lure travelers seeking both tranquility and adventure in equal measure.

Kasol, often termed the “Mini Israel of India,” boasts a laid-back atmosphere that draws backpackers and nature lovers. Its riverside cafes, nestled alongside the Parvati River, offer a serene ambiance to unwind. The village serves as a gateway to enthralling treks like Kheerganga, inviting adventurers to traverse through pine forests and natural hot springs, rewarding them with panoramic vistas.

Nearby Tosh, perched on a hill, mesmerizes visitors with its postcard-perfect views of the Parvati Valley. This quaint village offers a serene escape, where time seems to slow down. Tosh serves as a starting point for the challenging Pin Parvati Pass trek, captivating trekkers with its rugged beauty and unexplored trails.

Both Kasol and Tosh share a tranquil charm, fostering an atmosphere conducive to introspection and relaxation. The surrounding landscapes, with their lush greenery and pristine air, create an ambiance perfect for rejuvenation.

These hamlets encapsulate a spirit of adventure and tranquility, making them ideal destinations for those seeking a break from the mundane. Kasol and Tosh, with their serene vistas and access to thrilling adventures, stand as testaments to the Himalayan allure, inviting travelers to unwind in nature’s lap or embark on adrenaline-pumping escapades amidst the breathtaking scenery.

Chamba and Dalhousie: Echoes of Colonial Heritage and Natural Beauty

Nestled amidst the lush landscapes of Himachal Pradesh, Chamba and Dalhousie echo with the charm of a bygone colonial era while embracing the unspoiled beauty of the Himalayas. Chamba, steeped in history, showcases a rich cultural heritage through its ancient temples and architectural marvels. The Laxmi Narayan Temple, adorned with intricate carvings, narrates tales of the region’s artistic prowess. The Bhuri Singh Museum preserves a treasure trove of artifacts, paintings, and sculptures, offering glimpses into Chamba’s royal legacy. Dalhousie, spread across five hills, retains its colonial allure with charming cottages and Scottish-style architecture. The town’s essence lies in its leisurely ambiance, inviting visitors to stroll through oak and pine forests, soaking in panoramic views of the Pir Panjal Range. Both towns serve as gateways to serene trails and picturesque vistas. Dalhousie offers tranquil walks along the Bakrota Hills and Dainkund Peak, promising rejuvenation amidst nature’s tranquility. Meanwhile, Chamba’s backdrop of the River Ravi and its surrounding verdant valleys presents a serene escape. The colonial legacy is palpable in these towns, evident in the churches, schools, and libraries that harken back to a different era. Yet, amidst this historical charm, the towns harmoniously blend with the natural beauty that defines the Himalayan landscape. Chamba and Dalhousie stand as living remnants of a colonial past, offering travelers a glimpse into an era gone by while surrounded by the unspoiled grandeur of the Himalayas. Their fusion of colonial heritage and breathtaking natural beauty creates an ambiance that captivates visitors, inviting them to explore the region’s rich history and revel in the tranquility of the mountains.

Tour Package, Taxi Service, and Booking.

Trip Trek Taxi Service

Discover Himachal Pradesh’s wonders hassle-free with our tailored tour packages and reliable taxi services. Whether exploring Shimla’s colonial charm, trekking in Manali’s serene landscapes, or delving into Dharamshala’s spiritual sanctuaries, our packages Trip Trek Holiday

Our expertly curated itineraries ensure a seamless experience, encompassing accommodation, sightseeing, and adventure activities. From budget-friendly options to luxurious getaways, we tailor packages to suit every traveler’s needs.

Navigating the picturesque terrain is effortless with our trusted taxi services. Experienced drivers familiar with the region’s routes and nuances ensure safe and comfortable journeys. Enjoy the scenic vistas while we take care of your transportation needs, allowing you to savor every moment of your Himachal adventure.

Share this post :
Facebook
Twitter
LinkedIn
Pinterest
jQuery( function ( $ ) { var mshotRemovalTimer = null; var mshotRetryTimer = null; var mshotTries = 0; var mshotRetryInterval = 1000; var mshotEnabledLinkSelector = 'a[id^="author_comment_url"], tr.pingback td.column-author a:first-of-type, td.comment p a'; var preloadedMshotURLs = []; $('.akismet-status').each(function () { var thisId = $(this).attr('commentid'); $(this).prependTo('#comment-' + thisId + ' .column-comment'); }); $('.akismet-user-comment-count').each(function () { var thisId = $(this).attr('commentid'); $(this).insertAfter('#comment-' + thisId + ' .author strong:first').show(); }); akismet_enable_comment_author_url_removal(); $( '#the-comment-list' ).on( 'click', '.akismet_remove_url', function () { var thisId = $(this).attr('commentid'); var data = { action: 'comment_author_deurl', _wpnonce: WPAkismet.comment_author_url_nonce, id: thisId }; $.ajax({ url: ajaxurl, type: 'POST', data: data, beforeSend: function () { // Removes "x" link $("a[commentid='"+ thisId +"']").hide(); // Show temp status $("#author_comment_url_"+ thisId).html( $( '' ).text( WPAkismet.strings['Removing...'] ) ); }, success: function (response) { if (response) { // Show status/undo link $("#author_comment_url_"+ thisId) .attr('cid', thisId) .addClass('akismet_undo_link_removal') .html( $( '' ).text( WPAkismet.strings['URL removed'] ) ) .append( ' ' ) .append( $( '' ) .text( WPAkismet.strings['(undo)'] ) .addClass( 'akismet-span-link' ) ); } } }); return false; }).on( 'click', '.akismet_undo_link_removal', function () { var thisId = $(this).attr('cid'); var thisUrl = $(this).attr('href'); var data = { action: 'comment_author_reurl', _wpnonce: WPAkismet.comment_author_url_nonce, id: thisId, url: thisUrl }; $.ajax({ url: ajaxurl, type: 'POST', data: data, beforeSend: function () { // Show temp status $("#author_comment_url_"+ thisId).html( $( '' ).text( WPAkismet.strings['Re-adding...'] ) ); }, success: function (response) { if (response) { // Add "x" link $("a[commentid='"+ thisId +"']").show(); // Show link. Core strips leading http://, so let's do that too. $("#author_comment_url_"+ thisId).removeClass('akismet_undo_link_removal').text( thisUrl.replace( /^http:\/\/(www\.)?/ig, '' ) ); } } }); return false; }); // Show a preview image of the hovered URL. Applies to author URLs and URLs inside the comments. if ( "enable_mshots" in WPAkismet && WPAkismet.enable_mshots ) { $( '#the-comment-list' ).on( 'mouseover', mshotEnabledLinkSelector, function () { clearTimeout( mshotRemovalTimer ); if ( $( '.akismet-mshot' ).length > 0 ) { if ( $( '.akismet-mshot:first' ).data( 'link' ) == this ) { // The preview is already showing for this link. return; } else { // A new link is being hovered, so remove the old preview. $( '.akismet-mshot' ).remove(); } } clearTimeout( mshotRetryTimer ); var linkUrl = $( this ).attr( 'href' ); if ( preloadedMshotURLs.indexOf( linkUrl ) !== -1 ) { // This preview image was already preloaded, so begin with a retry URL so the user doesn't see the placeholder image for the first second. mshotTries = 2; } else { mshotTries = 1; } var mShot = $( '
' ); mShot.data( 'link', this ); mShot.data( 'url', linkUrl ); mShot.find( 'img' ).on( 'load', function () { $( '.akismet-mshot' ).data( 'pending-request', false ); } ); var offset = $( this ).offset(); mShot.offset( { left : Math.min( $( window ).width() - 475, offset.left + $( this ).width() + 10 ), // Keep it on the screen if the link is near the edge of the window. top: offset.top + ( $( this ).height() / 2 ) - 101 // 101 = top offset of the arrow plus the top border thickness } ); $( 'body' ).append( mShot ); mshotRetryTimer = setTimeout( retryMshotUntilLoaded, mshotRetryInterval ); } ).on( 'mouseout', 'a[id^="author_comment_url"], tr.pingback td.column-author a:first-of-type, td.comment p a', function () { mshotRemovalTimer = setTimeout( function () { clearTimeout( mshotRetryTimer ); $( '.akismet-mshot' ).remove(); }, 200 ); } ); var preloadDelayTimer = null; $( window ).on( 'scroll resize', function () { clearTimeout( preloadDelayTimer ); preloadDelayTimer = setTimeout( preloadMshotsInViewport, 500 ); } ); preloadMshotsInViewport(); } /** * The way mShots works is if there was no screenshot already recently generated for the URL, * it returns a "loading..." image for the first request. Then, some subsequent request will * receive the actual screenshot, but it's unknown how long it will take. So, what we do here * is continually re-request the mShot, waiting a second after every response until we get the * actual screenshot. */ function retryMshotUntilLoaded() { clearTimeout( mshotRetryTimer ); var imageWidth = $( '.akismet-mshot img' ).get(0).naturalWidth; if ( imageWidth == 0 ) { // It hasn't finished loading yet the first time. Check again shortly. setTimeout( retryMshotUntilLoaded, mshotRetryInterval ); } else if ( imageWidth == 400 ) { // It loaded the preview image. if ( mshotTries == 20 ) { // Give up if we've requested the mShot 20 times already. return; } if ( ! $( '.akismet-mshot' ).data( 'pending-request' ) ) { $( '.akismet-mshot' ).data( 'pending-request', true ); mshotTries++; $( '.akismet-mshot .mshot-image' ).attr( 'src', akismet_mshot_url( $( '.akismet-mshot' ).data( 'url' ), mshotTries ) ); } mshotRetryTimer = setTimeout( retryMshotUntilLoaded, mshotRetryInterval ); } else { // All done. } } function preloadMshotsInViewport() { var windowWidth = $( window ).width(); var windowHeight = $( window ).height(); $( '#the-comment-list' ).find( mshotEnabledLinkSelector ).each( function ( index, element ) { var linkUrl = $( this ).attr( 'href' ); // Don't attempt to preload an mshot for a single link twice. if ( preloadedMshotURLs.indexOf( linkUrl ) !== -1 ) { // The URL is already preloaded. return true; } if ( typeof element.getBoundingClientRect !== 'function' ) { // The browser is too old. Return false to stop this preloading entirely. return false; } var rect = element.getBoundingClientRect(); if ( rect.top >= 0 && rect.left >= 0 && rect.bottom <= windowHeight && rect.right <= windowWidth ) { akismet_preload_mshot( linkUrl ); $( this ).data( 'akismet-mshot-preloaded', true ); } } ); } $( '.checkforspam.enable-on-load' ).on( 'click', function( e ) { if ( $( this ).hasClass( 'ajax-disabled' ) ) { // Akismet hasn't been configured yet. Allow the user to proceed to the button's link. return; } e.preventDefault(); if ( $( this ).hasClass( 'button-disabled' ) ) { window.location.href = $( this ).data( 'success-url' ).replace( '__recheck_count__', 0 ).replace( '__spam_count__', 0 ); return; } $('.checkforspam').addClass('button-disabled').addClass( 'checking' ); $('.checkforspam-spinner').addClass( 'spinner' ).addClass( 'is-active' ); akismet_check_for_spam(0, 100); }).removeClass( 'button-disabled' ); var spam_count = 0; var recheck_count = 0; function akismet_check_for_spam(offset, limit) { var check_for_spam_buttons = $( '.checkforspam' ); var nonce = check_for_spam_buttons.data( 'nonce' ); // We show the percentage complete down to one decimal point so even queues with 100k // pending comments will show some progress pretty quickly. var percentage_complete = Math.round( ( recheck_count / check_for_spam_buttons.data( 'pending-comment-count' ) ) * 1000 ) / 10; // Update the progress counter on the "Check for Spam" button. $( '.checkforspam' ).text( check_for_spam_buttons.data( 'progress-label' ).replace( '%1$s', percentage_complete ) ); $.post( ajaxurl, { 'action': 'akismet_recheck_queue', 'offset': offset, 'limit': limit, 'nonce': nonce }, function(result) { if ( 'error' in result ) { // An error is only returned in the case of a missing nonce, so we don't need the actual error message. window.location.href = check_for_spam_buttons.data( 'failure-url' ); return; } recheck_count += result.counts.processed; spam_count += result.counts.spam; if (result.counts.processed < limit) { window.location.href = check_for_spam_buttons.data( 'success-url' ).replace( '__recheck_count__', recheck_count ).replace( '__spam_count__', spam_count ); } else { // Account for comments that were caught as spam and moved out of the queue. akismet_check_for_spam(offset + limit - result.counts.spam, limit); } } ); } if ( "start_recheck" in WPAkismet && WPAkismet.start_recheck ) { $( '.checkforspam' ).click(); } if ( typeof MutationObserver !== 'undefined' ) { // Dynamically add the "X" next the the author URL links when a comment is quick-edited. var comment_list_container = document.getElementById( 'the-comment-list' ); if ( comment_list_container ) { var observer = new MutationObserver( function ( mutations ) { for ( var i = 0, _len = mutations.length; i < _len; i++ ) { if ( mutations[i].addedNodes.length > 0 ) { akismet_enable_comment_author_url_removal(); // Once we know that we'll have to check for new author links, skip the rest of the mutations. break; } } } ); observer.observe( comment_list_container, { attributes: true, childList: true, characterData: true } ); } } function akismet_enable_comment_author_url_removal() { $( '#the-comment-list' ) .find( 'tr.comment, tr[id ^= "comment-"]' ) .find( '.column-author a[href^="http"]:first' ) // Ignore mailto: links, which would be the comment author's email. .each(function () { if ( $( this ).parent().find( '.akismet_remove_url' ).length > 0 ) { return; } var linkHref = $(this).attr( 'href' ); // Ignore any links to the current domain, which are diagnostic tools, like the IP address link // or any other links another plugin might add. var currentHostParts = document.location.href.split( '/' ); var currentHost = currentHostParts[0] + '//' + currentHostParts[2] + '/'; if ( linkHref.indexOf( currentHost ) != 0 ) { var thisCommentId = $(this).parents('tr:first').attr('id').split("-"); $(this) .attr("id", "author_comment_url_"+ thisCommentId[1]) .after( $( 'x' ) .attr( 'commentid', thisCommentId[1] ) .attr( 'title', WPAkismet.strings['Remove this URL'] ) ); } }); } /** * Generate an mShot URL if given a link URL. * * @param string linkUrl * @param int retry If retrying a request, the number of the retry. * @return string The mShot URL; */ function akismet_mshot_url( linkUrl, retry ) { var mshotUrl = '//s0.wp.com/mshots/v1/' + encodeURIComponent( linkUrl ) + '?w=900'; if ( retry > 1 ) { mshotUrl += '&r=' + encodeURIComponent( retry ); } mshotUrl += '&source=akismet'; return mshotUrl; } /** * Begin loading an mShot preview of a link. * * @param string linkUrl */ function akismet_preload_mshot( linkUrl ) { var img = new Image(); img.src = akismet_mshot_url( linkUrl ); preloadedMshotURLs.push( linkUrl ); } $( '.akismet-could-be-primary' ).each( function () { var form = $( this ).closest( 'form' ); form.data( 'initial-state', form.serialize() ); form.on( 'change keyup', function () { var self = $( this ); var submit_button = self.find( '.akismet-could-be-primary' ); if ( self.serialize() != self.data( 'initial-state' ) ) { submit_button.addClass( 'akismet-is-primary' ); } else { submit_button.removeClass( 'akismet-is-primary' ); } } ); } ); /** * Shows the Enter API key form */ $( '.akismet-enter-api-key-box__reveal' ).on( 'click', function ( e ) { e.preventDefault(); var div = $( '.akismet-enter-api-key-box__form-wrapper' ); div.show( 500 ); div.find( 'input[name=key]' ).focus(); $( this ).hide(); } ); /** * Hides the Connect with Jetpack form | Shows the Activate Akismet Account form */ $( 'a.toggle-ak-connect' ).on( 'click', function ( e ) { e.preventDefault(); $( '.akismet-ak-connect' ).slideToggle('slow'); $( 'a.toggle-ak-connect' ).hide(); $( '.akismet-jp-connect' ).hide(); $( 'a.toggle-jp-connect' ).show(); } ); /** * Shows the Connect with Jetpack form | Hides the Activate Akismet Account form */ $( 'a.toggle-jp-connect' ).on( 'click', function ( e ) { e.preventDefault(); $( '.akismet-jp-connect' ).slideToggle('slow'); $( 'a.toggle-jp-connect' ).hide(); $( '.akismet-ak-connect' ).hide(); $( 'a.toggle-ak-connect' ).show(); } ); });