Clicking tabs shows content




Code Block
<div class="tab"> <button class="tablinks" onclick="openCity(event, 'TYLER&ELLE')" id="defaultOpen">Tyler & Elle</button> <button class="tablinks" onclick="openCity(event, 'Casey M.')">Casey M.</button> <button class="tablinks" onclick="openCity(event, 'Winta')">Winta</button> </div> <div id="TYLER&ELLE" class="tabcontent"> "Nirav is a joy to work with! We admire his kindness and lovely spirit "Tyler and I (ok, just me) had the idea of doing portraits in Yosemite National Park the morning of the wedding, and Nirav was totally game for this. Even though it meant him waking up at 3 am and staying up for nearly 24 hours. We had the best morning with him shooting portraits at sunrise and stopping at multiple locations throughout the park to capture absolutely breathtaking images. He let us be us — offering helpful direction when necessary, but mostly just quietly capturing. And the results were gorgeous, authentic photos of Tyler and me, showing all the joy we were feeling that day. We adore these photos — every single one!" "We are perhaps most thankful for Nirav’s attention to detail throughout the day. The way he captured all the most important looks, gestures, and moments, you would think he’d known us for years. It was as if he could sense the most important relationships and most meaningful moments — down to the smallest detail. My sister slipping me a tissue in the middle of the ceremony, Tyler’s dad wiping his eyes, my mom holding my hand as she opened my gift to her, our flower girl eying her reflection, a single tear on my bridesmaid’s cheek. Plus, all the big, glorious moments. Nirav captured them all. And meticulously edited them. Collectively, these photos somehow capture the un-capturable — the feeling of the day. They do justice to our joy." </div> <div id="Casey M." class="tabcontent"> These photos, like Nirav, are precious treasures.My daughter and her husband have now been able to see their entire wedding day, and especially the two of them, as their guests, family, and bridal party experienced, but with much greater depth, breadth, and intimacy. These photos, like Nirav, are precious treasures. I cannot recommend Nirav more highly with absolutely NO reservation, and I want him to be part of our family. He just makes you feel that way. </div> <div id="Winta" class="tabcontent"> <h3>Tokyo</h3> <p>Tokyo is the capital of Japan.</p> </div>
Advanced Code Injection / Specific Page Injection
<script> function openCity(evt, cityName) { var i, tabcontent, tablinks; tabcontent = document.getElementsByClassName("tabcontent"); for (i = 0; i < tabcontent.length; i++) { tabcontent[i].style.display = "none"; } tablinks = document.getElementsByClassName("tablinks"); for (i = 0; i < tablinks.length; i++) { tablinks[i].className = tablinks[i].className.replace(" active", ""); } document.getElementById(cityName).style.display = "block"; evt.currentTarget.className += " active"; } // Get the element with id="defaultOpen" and click on it document.getElementById("defaultOpen").click(); </script>