↑
Lighthouse and Abbey Ruins at Point Saint Mathieu

France • VR 360 • Coastlines

Gems of Northwest France

Pirates, Angels, Island Forts & Shipwrecks

⚡ The Quick Scoop

The Vibe: Rebellious pirate strongholds, miraculous island abbeys, and accidental coastal treasures.

Must See: The peaceful cloisters at Mont Saint-Michel, the echoing bells of St. Malo, and the open-air Abbey at Point Saint Mathieu!

Shauna's Rating: 💎💎💎💎💎 (5 out of 5 Diamonds!)

The northwest corner of France holds some of the most breathtaking, history-rich destinations in all of Europe. Taking our 19 and 23-year-old daughters here on our perimeter loop of France was absolutely magical.

This region is home to two massive coastal marvels: the miraculous, angel-inspired island of Mont Saint-Michel (Normandy), and the fiercely independent, pirate-built walled city of St. Malo (Brittany). Both are shaped by the powerful ocean tides, both are steeped in deep legends, and both offer incredible 360° VR adventures. Grab your headset, and let's explore!

Chapter I

Mont Saint-Michel: Built by an Angel

To me, the Abbey at Mont Saint-Michel stands as a physical testament that the Lord loves all His people, and that those willing to listen will be given direction from above. This incredible island fortress exists because St. Aubert, a bishop in 700 AD, had a vision—three times in the night—from the Archangel Michael telling him to build a church on this very rock.

As we walked out toward the island, we told our girls the incredible stories of how the Archangel Michael was believed to have appeared here. It gave us all such a reverent feeling. They were old enough to truly be curious and respectful of the sheer history radiating from the stones.

"Architects who visit here are stunned that this amazing place was built way back in 966... building a huge 3-story church on top of a pointy rock on an island... most likely had some enlightenment from above to accomplish."
Chapter II

The Galloping Tide & Hidden Dangers

The coolest part of Mont Saint-Michel's legend is its defense system: the ocean itself. Attackers who tried to seize the island would literally be washed away by the notoriously fast tide, which is said to rush in as quickly as a galloping horse! All the defenders had to do was hold the invaders off long enough for the tide to do its work.

⚠️ Beware the Quicksand

You will see tourists walking on the mudflats around the island at low tide. Do not do this without a certified local guide. On my very first visit, our guide warned us that there are quicksand pockets out there where people get into serious trouble.

While we were standing there, an ambulance literally sped out onto the flats! I assumed right then it wasn't just a scare tactic. So when we took our girls, we didn't even dare walk the sand, even though lots of people were out there doing it.

Chapter III

The Climb to the Heavens

Only about one-third of visitors to Mont Saint-Michel make it all the way to the Abbey at the top. The climb is a huge part of the experience! We explored inside the city walls from one end to the other, slipping through every secret alleyway we could find—including the famous "secret" alley that is only 12 inches wide!

🧱 A Claustrophobic Perspective!

Squeezing sideways through that 12-inch stone alley—known locally as the Ruelle des Cocus—and climbing all those hidden back stairs was a crazy experience! Most tourists stick to the main crowded street, so slipping between the ancient walls gives you a totally different, intimate view of Mont Saint-Michel. If you can handle a tiny bit of claustrophobia, it is so cool and an absolute must-do!

🏰 Jaw-Dropping Exploration

Our girls had their jaws dropped open in amazement at the massive pillars, the quaint tiny church, the cemetery, and the charming houses clinging to the rock. And the most amazing part? They didn't complain a bit about the 900 stairs! That is especially incredible considering my daughter has a very rare metabolic disorder.

As for me? I had to stop once to catch my breath, but honestly, 900 stairs is absolutely nothing compared to our usual hikes back home in Utah with 1,800 to 2,000 feet of elevation gain!

After being deep in the dark stone fortress (which also served as a brutal prison during the French Revolution), you finally emerge into the sunlight at the very top, inside the peaceful, beautiful grass cloisters. That moment of stepping into the light is the ultimate reward.

Chapter IV

St. Malo: The Pirate's Walled City

Just down the coast in Brittany lies St. Malo. It’s a beautiful, ancient city completely enclosed by massive stone walls, but its history is what truly captures the imagination.

This was a city built by pirates! For centuries, it was a wealthy, independent stronghold of "Corsairs" who would charge a hefty "toll" on any boats passing through the English Channel. The city became so powerful that the governments of France and Britain often left them alone. Walking the full loop on top of the ramparts is the best way to see the city and the surrounding tidal forts.

🏊‍♀️ The Mystery of the Wall

St. Malo has some of the highest tidal ranges in Europe. During my first visit, I noticed a strange, square wall sitting out on the sand at the beach. I wondered, "Why is there just an extra border wall out there?" When we came back years later, the tide was high, and people were swimming safely inside that walled area. It's a tidal swimming pool! Suddenly, it all made perfect sense!

Chapter V

The 10-Year Crepe Quest

My first visit to St. Malo was as a tour guide for a group of students. Todd and I were actually separated, leading different groups. I spent a magical October afternoon strolling the quiet streets. Meanwhile, Todd's group found a charming little creperie right by a quaint, grassy city park. They ordered an incredible double-layer crepe filled with peaches and caramel, topped with hazelnut ice cream. He bragged about how amazing it tasted for ten long years!

🕵️‍♂️ Todd's Seafood Stakeout

Todd is always on a mission for good food. Earlier on the trip, he saw our local tour guide take off for lunch. Curious about what the locals actually eat, he secretly followed her! He sat quietly in a corner just to watch what she ordered. Eventually, the waiter brought her this massive seafood platter piled high with quite the variety of sea creatures. Todd said it looked delicious and completely strange all at the same time!

When we returned a decade later with our girls, the very first thing on our agenda was finding those legendary crepes. We walked to where that charming park used to be, and... it was gone! In place of the grass was just cement, and the cute little restaurant had completely vanished.

Starving, we ended up at a spot up on the rampart wall. Our waitresses were dressed as pirates, which definitely gave us that fun St. Malo feel! However, my young daughter's crepe came out completely covered in strong alcohol! She looked at it like, "What is wrong with this?!" It was beautiful, but she wouldn't even touch it. Lesson learned!

🥞 From 10-Year Dreams to Clif Bars!

Honestly, you should have seen my face when we realized Todd's dream creperie was gone! After listening to him brag about those peach-caramel-hazelnut crepes for ten straight years, I was ready for flavors that made my taste buds scream, "YES, this is what I have been dying to try for a decade!" Instead, getting hit with a pure sugar bomb drenched in alcohol was such a comical low.

Because my daughter has a rare metabolic disorder, she genuinely needed real fuel right then—and that boozy pirate crepe definitely wasn't going to cut it! We ended up scrambling to order more food for her while I dug emergency Clif Bars out of my backpack. Let that be my biggest travel tip for families with dietary needs: always keep reliable backup snacks in your bag, even in the culinary capital of the world!

Chapter VI

The Magic of the Bells & A Golden Rule

After wandering the nooks and crannies of the city, the sun began to set, casting a beautiful golden hour glow on the stone buildings. We suddenly realized we were running late for our bus!

As we started walking quickly, the massive church bells suddenly began to ring. The sound was absolutely magical, echoing off the ancient walls and filling the entire city. It felt like we were being transported to another time entirely. Even though we were late, we had to stop, just for a moment, to let the sound wash over us... and then we ran like crazy!

💡 The Golden Rule: Go in October!

My first visit was during the day in October, and it was quiet, peaceful, and incredibly charming. When we returned with the girls in late July, it was CRAZY crowded. I had promised my girls they would absolutely LOVE the charm of this town, but it was so packed they couldn't even feel the magic. If I go back, I am strictly an October visitor!

Chapter VII

Concarneau: The Accidental Gem

This incredible town came about entirely by accident! We were just looking for a nice break from driving, but we soon realized Concarneau should have been on our main itinerary. It is absolutely delightful, sitting right on the sparkling ocean.

The most fascinating part of Concarneau is the Ville Close—a walled town built entirely on a small island in the center of the harbor. You walk across a stone bridge by the city clock tower, pass under a tunnel, and suddenly you are on this incredible island lined with the cutest restaurants and shops.

🛍️ High-Quality Treasures

Often, these types of tourist islands are filled with cheap souvenir shops, but not here! The shops in Concarneau are incredibly well thought out, offering high-quality goods and beautiful local crafts. We were delighted just wandering the street and browsing all the fun things they had.

Chapter VIII

Breton Charm & The Blue Nets

Concarneau is located in the Brittany (Breton) region of France. For years, this area had its own distinct language and operated almost like its own commune. Historically, this specific harbor was a massive center for shipbuilding.

🎣 The Festival of the Blue Nets

If you are lucky enough to be in this town in August, they host the Filets Bleus (Festival of the Blue Nets). It is one of the oldest and largest traditional festivals in all of Brittany, featuring traditional Celtic dress, music, and events celebrating their rich fishing heritage!

While one end of the island connects to the main town by the bridge, the other side has a small ferry that takes you across the harbor to the village of Lanriec. It’s a brilliant setup for a coastal fortress!

Chapter IX

The Edge of France: Touching the English Channel

By the time we reached the end of our perimeter loop of France, we were honestly exhausted from being in the car. I had vastly overestimated how much driving we could handle! Because of the crazy summer crowds, we decided to ditch St. Malo early and hunt for a town that was much more quaint and peaceful.

Our ultimate goal? We wanted to drive to the absolute northwest corner of the country just so we could officially say we touched the English Channel! That mission led us to the incredibly dramatic, rocky beaches of Point Saint Mathieu. As we were driving the winding coastal roads to get here, we read stories aloud in the car about the rugged people who lived on this edge of the world. It built up so much anticipation and made the drive incredibly fun!

🌬️ Whipping Winds & Wild Grass

When we finally stepped out of the car, it was SO windy! I remember my hair just whipping around wildly as I was trying to map out a 360 trail for Google Earth. You could hear the wind aggressively rustling through the tall grass. It felt truly wild, untamed, and exactly how the edge of the world should feel!

🥐 Heavenly Pastries & Charming Alleys

We absolutely hit the jackpot here. The stores in this town were amazing—each one was so clever, with products that were so enticing to buy! I wanted to inspect every single store and wander down every narrow alley just to catch a glimpse of the water.

But the real treasure? The pastries! We searched everywhere on our trip for yummy pastries, and here, they were absolute heaven. Sitting by the sea with a fresh French pastry is a memory I'll never forget.

🥐 Culinary Redemption at the Edge of the World

After the crowded streets and the crepe disaster in St. Malo, finding these quiet, windswept bakeries at Pointe Saint-Mathieu felt like pure culinary redemption! Sometimes the best travel moments happen when you ditch the famous tourist traps, follow the coast to the very edge of the map, and let a tiny village surprise you.

Chapter X

Shipwrecks & The Open-Air Abbey

Point Saint Mathieu sits on a tip that extends so far out into the ocean that it frequently caught ships unaware. In fact, the town historically made its income off the salvage from these shipwrecks! The coast here is so treacherous that they had to build not just one, but three lighthouses! It was so much fun to walk right up to the base of each one and compare the differences.

🏴‍☠️ A Hands-Off Government

I had to chuckle to myself at the irony of it all. Here was this faith-loving community with an impressive, massive church, but they were renowned for "helping" with the constant shipwrecks—and conveniently keeping the salvaged goods! The government couldn't send much money to support them out on this remote point, so they essentially turned a blind eye. I couldn't help but wonder if they were connected to St. Malo's pirate vibe! Just like the Corsairs, the French government took a very "hands-off" approach as long as they didn't cause too much trouble.

⛪ Open to the Heavens & Ancient Arches

There is an ancient Abbey right on the cliffs. By law, this Abbey was given the rights to keep a percentage of all the shipwreck salvage! There is also a protective walled area built right next to it to shield the inhabitants from invaders. I absolutely loved walking under that ancient stone archway and stepping into that fortified space.

Today, the Abbey's roof is completely gone, leaving only bare stone walls. But when you walk inside, there are chairs set up just like a working church. Sitting down in those chairs, with the walls surrounding you but the sky completely open above... there is a sort of "rightness" to it. It feels completely open to the heavens and to God.

With its dramatic lighthouses, ruined abbey, whipping winds, and history of shipwreck salvagers, this location is an absolute green-screen heaven! The charming stories and legends that could come from here are endless.

Chapter XI

Interactive VR Tours

Experience the magic of these iconic coastal destinations in 360 degrees! Click and drag on the videos or street views to look around.

🧭

The VR Scout Says:

Ready to walk the halls of an angelic island abbey, cross a medieval drawbridge, or stand on the wild cliffs of Brittany? Click and drag inside each 360° video and sphere below to look around in every direction!

Mont Saint-Michel: Walking the Abbey

Concarneau: The Walled Island Port

Step onto the bridge leading into the Ville Close!

Point Saint Mathieu: Coastline & Abbey

Explore the rocky shores and the ruins of the open-air Abbey.

':"vimeo"===g.type&&(c=''),f.addClass("owl-video-playing"),this._playing=f,d=a('
'+c+"
"),e.after(d)},d.prototype.isInFullScreen=function(){var d=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return d&&a(d).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),d&&this._fullscreen&&this._playing?!1:this._fullscreen?(this._fullscreen=!1,!1):this._playing&&this._core.state.orientation!==b.orientation?(this._core.state.orientation=b.orientation,!1):!0},d.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=d}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){this.swapping="translated"==a.type},this),"translate.owl.carousel":a.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",c)),f&&e.addClass("animated owl-animated-in").addClass(f).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",c))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c){var d=function(b){this.core=b,this.core.options=a.extend({},d.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":a.proxy(function(){this.autoplay() },this),"play.owl.autoplay":a.proxy(function(a,b,c){this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};d.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},d.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(b.clearInterval(this.interval),this.interval=b.setInterval(a.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):b.clearInterval(this.interval)},d.prototype.play=function(){return c.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void b.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},d.prototype.stop=function(){b.clearInterval(this.interval)},d.prototype.pause=function(){b.clearInterval(this.interval)},d.prototype.destroy=function(){var a,c;b.clearInterval(this.interval);for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=d}(window.Zepto||window.jQuery,window,document),function(a){"use strict";var b=function(c){this._core=c,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){this._core.settings.dotsData&&this._templates.push(a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":a.proxy(function(b){this._core.settings.dotsData&&this._templates.splice(b.position,0,a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":a.proxy(function(a){this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"change.owl.carousel":a.proxy(function(a){if("position"==a.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var b=this._core.current(),c=this._core.maximum(),d=this._core.minimum();a.data=a.property.value>c?b>=c?d:c:a.property.value").addClass(d.dotClass).append(a("")).prop("outerHTML")]),d.navContainer&&d.dotsContainer||(this._controls.$container=a("
").addClass(d.controlsClass).appendTo(this.$element)),this._controls.$indicators=d.dotsContainer?a(d.dotsContainer):a("
").hide().addClass(d.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",a.proxy(function(b){var c=a(b.target).parent().is(this._controls.$indicators)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(c,d.dotsSpeed)},this)),b=d.navContainer?a(d.navContainer):a("
").addClass(d.navContainerClass).prependTo(this._controls.$container),this._controls.$next=a("<"+d.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(d.navClass[0]).html(d.navText[0]).hide().prependTo(b).on("click",a.proxy(function(){this.prev(d.navSpeed)},this)),this._controls.$next.addClass(d.navClass[1]).html(d.navText[1]).hide().appendTo(b).on("click",a.proxy(function(){this.next(d.navSpeed)},this));for(c in this._overrides)this._core[c]=a.proxy(this[c],this)},b.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},b.prototype.update=function(){var a,b,c,d=this._core.settings,e=this._core.clones().length/2,f=e+this._core.items().length,g=d.center||d.autoWidth||d.dotData?1:d.dotsEach||d.items;if("page"!==d.slideBy&&(d.slideBy=Math.min(d.slideBy,d.items)),d.dots||"page"==d.slideBy)for(this._pages=[],a=e,b=0,c=0;f>a;a++)(b>=g||0===b)&&(this._pages.push({start:a-e,end:a-e+g-1}),b=0,++c),b+=this._core.mergers(this._core.relative(a))},b.prototype.draw=function(){var b,c,d="",e=this._core.settings,f=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!e.nav||e.loop||e.navRewind||(this._controls.$previous.toggleClass("disabled",0>=f),this._controls.$next.toggleClass("disabled",f>=this._core.maximum())),this._controls.$previous.toggle(e.nav),this._controls.$next.toggle(e.nav),e.dots){if(b=this._pages.length-this._controls.$indicators.children().length,e.dotData&&0!==b){for(c=0;c0?(d=new Array(b+1).join(this._templates[0]),this._controls.$indicators.append(d)):0>b&&this._controls.$indicators.children().slice(b).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(a.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(e.dots)},b.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotData?1:c.dotsEach||c.items)}},b.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,function(a){return a.start<=b&&a.end>=b}).pop()},b.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},b.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},b.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},b.prototype.to=function(b,c,d){var e;d?a.proxy(this._overrides.to,this._core)(b,c):(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c))},a.fn.owlCarousel.Constructor.Plugins.Navigation=b}(window.Zepto||window.jQuery,window,document),function(a,b){"use strict";var c=function(d){this._core=d,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(){"URLHash"==this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){var c=a(b.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[c]=b.content},this)},this._core.options=a.extend({},c.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(){var a=b.location.hash.substring(1),c=this._core.$stage.children(),d=this._hashes[a]&&c.index(this._hashes[a])||0;return a?void this._core.to(d,!1,!0):!1},this))};c.Defaults={URLhashListener:!1},c.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=c}(window.Zepto||window.jQuery,window,document); /*! Theia Sticky Sidebar | v1.7.0 - https://github.com/WeCodePixels/theia-sticky-sidebar */ (function($){$.fn.theiaStickySidebar=function(options){var defaults={'containerSelector':'','additionalMarginTop':0,'additionalMarginBottom':0,'updateSidebarHeight':true,'minWidth':0,'disableOnResponsiveLayouts':true,'sidebarBehavior':'modern','defaultPosition':'relative','namespace':'TSS'};options=$.extend(defaults,options);options.additionalMarginTop=parseInt(options.additionalMarginTop)||0;options.additionalMarginBottom=parseInt(options.additionalMarginBottom)||0;tryInitOrHookIntoEvents(options,this);function tryInitOrHookIntoEvents(options,$that){var success=tryInit(options,$that);if(!success){console.log('TSS: Body width smaller than options.minWidth. Init is delayed.');$(document).on('scroll.'+options.namespace,function(options,$that){return function(evt){var success=tryInit(options,$that);if(success){$(this).unbind(evt)}}}(options,$that));$(window).on('resize.'+options.namespace,function(options,$that){return function(evt){var success=tryInit(options,$that);if(success){$(this).unbind(evt)}}}(options,$that))}}function tryInit(options,$that){if(options.initialized===true){return true}if($('body').width().theiaStickySidebar:after {content: ""; display: table; clear: both;}'))}$that.each(function(){var o={};o.sidebar=$(this);o.options=options||{};o.container=$(o.options.containerSelector);if(o.container.length==0){o.container=o.sidebar.parent()}o.sidebar.parents().css('-webkit-transform','none');o.sidebar.css({'position':o.options.defaultPosition,'overflow':'visible','-webkit-box-sizing':'border-box','-moz-box-sizing':'border-box','box-sizing':'border-box'});o.stickySidebar=o.sidebar.find('.theiaStickySidebar');if(o.stickySidebar.length==0){var javaScriptMIMETypes=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;o.sidebar.find('script').filter(function(index,script){return script.type.length===0||script.type.match(javaScriptMIMETypes)}).remove();o.stickySidebar=$('
').addClass('theiaStickySidebar').append(o.sidebar.children());o.sidebar.append(o.stickySidebar)}o.marginBottom=parseInt(o.sidebar.css('margin-bottom'));o.paddingTop=parseInt(o.sidebar.css('padding-top'));o.paddingBottom=parseInt(o.sidebar.css('padding-bottom'));var collapsedTopHeight=o.stickySidebar.offset().top;var collapsedBottomHeight=o.stickySidebar.outerHeight();o.stickySidebar.css('padding-top',1);o.stickySidebar.css('padding-bottom',1);collapsedTopHeight-=o.stickySidebar.offset().top;collapsedBottomHeight=o.stickySidebar.outerHeight()-collapsedBottomHeight-collapsedTopHeight;if(collapsedTopHeight==0){o.stickySidebar.css('padding-top',0);o.stickySidebarPaddingTop=0}else{o.stickySidebarPaddingTop=1}if(collapsedBottomHeight==0){o.stickySidebar.css('padding-bottom',0);o.stickySidebarPaddingBottom=0}else{o.stickySidebarPaddingBottom=1}o.previousScrollTop=null;o.fixedScrollTop=0;resetSidebar();o.onScroll=function(o){if(!o.stickySidebar.is(":visible")){return}if($('body').width()o.container.width()){resetSidebar();return}}var scrollTop=$(document).scrollTop();var position='static';if(scrollTop>=o.sidebar.offset().top+(o.paddingTop-o.options.additionalMarginTop)){var offsetTop=o.paddingTop+options.additionalMarginTop;var offsetBottom=o.paddingBottom+o.marginBottom+options.additionalMarginBottom;var containerTop=o.sidebar.offset().top;var containerBottom=o.sidebar.offset().top+getClearedHeight(o.container);var windowOffsetTop=0+options.additionalMarginTop;var windowOffsetBottom;var sidebarSmallerThanWindow=(o.stickySidebar.outerHeight()+offsetTop+offsetBottom)<$(window).height();if(sidebarSmallerThanWindow){windowOffsetBottom=windowOffsetTop+o.stickySidebar.outerHeight()}else{windowOffsetBottom=$(window).height()-o.marginBottom-o.paddingBottom-options.additionalMarginBottom}var staticLimitTop=containerTop-scrollTop+o.paddingTop;var staticLimitBottom=containerBottom-scrollTop-o.paddingBottom-o.marginBottom;var top=o.stickySidebar.offset().top-scrollTop;var scrollTopDiff=o.previousScrollTop-scrollTop;if(o.stickySidebar.css('position')=='fixed'){if(o.options.sidebarBehavior=='modern'){top+=scrollTopDiff}}if(o.options.sidebarBehavior=='stick-to-top'){top=options.additionalMarginTop}if(o.options.sidebarBehavior=='stick-to-bottom'){top=windowOffsetBottom-o.stickySidebar.outerHeight()}if(scrollTopDiff>0){top=Math.min(top,windowOffsetTop)}else{top=Math.max(top,windowOffsetBottom-o.stickySidebar.outerHeight())}top=Math.max(top,staticLimitTop);top=Math.min(top,staticLimitBottom-o.stickySidebar.outerHeight());var sidebarSameHeightAsContainer=o.container.height()==o.stickySidebar.outerHeight();if(!sidebarSameHeightAsContainer&&top==windowOffsetTop){position='fixed'}else if(!sidebarSameHeightAsContainer&&top==windowOffsetBottom-o.stickySidebar.outerHeight()){position='fixed'}else if(scrollTop+top-o.sidebar.offset().top-o.paddingTop<=options.additionalMarginTop){position='static'}else{position='absolute'}}if(position=='fixed'){var scrollLeft=$(document).scrollLeft();o.stickySidebar.css({'position':'fixed','width':getWidthForObject(o.stickySidebar)+'px','transform':'translateY('+top+'px)','left':(o.sidebar.offset().left+parseInt(o.sidebar.css('padding-left'))-scrollLeft)+'px','top':'0px'})}else if(position=='absolute'){var css={};if(o.stickySidebar.css('position')!='absolute'){css.position='absolute';css.transform='translateY('+(scrollTop+top-o.sidebar.offset().top-o.stickySidebarPaddingTop-o.stickySidebarPaddingBottom)+'px)';css.top='0px'}css.width=getWidthForObject(o.stickySidebar)+'px';css.left='';o.stickySidebar.css(css)}else if(position=='static'){resetSidebar()}if(position!='static'){if(o.options.updateSidebarHeight==true){o.sidebar.css({'min-height':o.stickySidebar.outerHeight()+o.stickySidebar.offset().top-o.sidebar.offset().top+o.paddingBottom})}}o.previousScrollTop=scrollTop};o.onScroll(o);$(document).on('scroll.'+o.options.namespace,function(o){return function(){o.onScroll(o)}}(o));$(window).on('resize.'+o.options.namespace,function(o){return function(){o.stickySidebar.css({'position':'static'});o.onScroll(o)}}(o));if(typeof ResizeSensor!=='undefined'){new ResizeSensor(o.stickySidebar[0],function(o){return function(){o.onScroll(o)}}(o))}function resetSidebar(){o.fixedScrollTop=0;o.sidebar.css({'min-height':'1px'});o.stickySidebar.css({'position':'static','width':'','transform':'none'})}function getClearedHeight(e){var height=e.height();e.children().each(function(){height=Math.max(height,$(this).height())});return height}})}function getWidthForObject(object){var width;try{width=object[0].getBoundingClientRect().width}catch(err){}if(typeof width==="undefined"){width=object.width()}return width}return this}})(jQuery); // jquery replacetext plugin https://github.com/cowboy/jquery-replacetext (function(e){e.fn.replaceText=function(t,n,r){return this.each(function(){var i=this.firstChild,s,o,u=[];if(i){do{if(i.nodeType===3){s=i.nodeValue;o=s.replace(t,n);if(o!==s){if(!r&&/d){var a=c[0].children("li:last")[0];a&&c.unshift(t("<"+r+"/>").appendTo(a))}else c.splice(0,Math.min(d-e,Math.max(c.length-1,0)));t("
  • ").appendTo(c[0]).append(t("").text(n.text()).attr("href","#"+n.attr("id"))),d=e})})},e=t.fn.toc;t.fn.toc=n,t.fn.toc.noConflict=function(){return t.fn.toc=e,this},t(function(){n.call(t("[data-toc]"))})}(window.jQuery); //]]>