Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.addEventListener("DOMContentLoaded", function() {
- // Select the parent container
- var container = document.querySelector(".tdb_single_content");
- // Check if the parent container exists
- if (container) {
- // Check if the child with the class 'tds_locker' exists within the parent container
- var lockerContent = container.querySelector(".tds_locker");
- // If the child with 'tds_locker' does not exist, add the 'display: block' style to the div with class 'tds-locked-content'
- if (!lockerContent) {
- var lockedContent = document.querySelector(".tds-locked-content");
- if (lockedContent) {
- lockedContent.style.display = "block";
- }
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment