Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

AaronRolston

Circle Member
  • Content Count

    3
  • Joined

  • Last visited

Posts posted by AaronRolston

  1. On 3/19/2021 at 12:08 PM, AaronRolston said:

    @stressbunny This worked perfectly for me, thanks! One question: Is there a way to pre-load this with the page somehow (Java noob here) — at the moment, my "descriptions" show for like half a second as a massive flash of code before switching to the proper line of text. Not the worst, but would be great if that code implementation could happen before scrolling down to that section. Huge thanks again!

    @tuanphan Do you have any insight on this? Would love to get this to load without code flashing on the screen before switching to the modified "description" — Thanks!

  2. On 12/22/2020 at 7:45 PM, stressbunny said:

    Did you put it in like this again?

     

    
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
    <script>
      $(document).ready(function() {
        var title = document.querySelectorAll('h3.portfolio-title');
        for (var ss = 0; ss < title.length; ++ss) {
            var item = title[ss];
            var clientName = item.innerText.slice(0, item.innerText.indexOf('#'));
            var clientDesc = item.innerText.slice(item.innerText.indexOf('#') + 1, item.innerText.length);
            var newTitle = clientName + '</br><span style="font-size: 0.8rem">' + clientDesc + '</span>';    
            item.innerHTML = item.innerText.replace(item.innerText, newTitle);
        }
    });
    </script>

     

    @stressbunny This worked perfectly for me, thanks! One question: Is there a way to pre-load this with the page somehow (Java noob here) — at the moment, my "descriptions" show for like half a second as a massive flash of code before switching to the proper line of text. Not the worst, but would be great if that code implementation could happen before scrolling down to that section. Huge thanks again!

  3. Site URL: https://chroma.agency

    So, I'm digging into Accessibility and learning about how to properly structure font headings and paragraphs — however, I quickly realized that most articles and even regulations have no mention of multiple <p> tags on a site... so where do the .sqsrte-large (P1) & .sqsrte-small (P3) tags fall in the scheme of things?

    I've always used them pretty liberally, as having more styles to work with is usually helpful. But, I certainly don't want to use them if they're negatively affecting accessibility or site crawling by search engines. Any help would be much appreciated. Cheers!

×
×
  • Create New...