Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CSS/styling, replace obsolete attrs #31

Open
toonarmycaptain opened this issue Sep 14, 2020 · 1 comment
Open

Add CSS/styling, replace obsolete attrs #31

toonarmycaptain opened this issue Sep 14, 2020 · 1 comment

Comments

@toonarmycaptain
Copy link
Owner

toonarmycaptain commented Sep 14, 2020

Would also be good to prettify pages, and use non-depreciated styling tags.

Example align used on paragraph element in results page.

Need to run source from a generated results page through W3's validator](https://validator.w3.org/#validate_by_input) to see error.

example results page:

<!doctype html>
<title>Probable immunity - Immunity results:</title>
<link rel="stylesheet" href="/static/style.css">
<nav>
  <h1>Probable immunity</h1>

</nav>
<section class="content">
  <header>
    
    <h1>Immunity results:</h1>


  </header>
  
  
    <body>
    
        
        <p><b>Measles</b></p>
<p>
    Your probability of being immune to measles if exposed is 
                                                                0.90
                                                            .<br>
    
        This means that your probability of contracting measles, if exposed, is 10.00%.
        <br>
    

    
            
                
                <br>According to the CDC, you are likely immune to measles due to childhood exposure.

        <blockquote cite="https://www.cdc.gov/vaccines/vpd/mmr/public/index.html">
            NB: "Birth before 1957 provides only presumptive evidence for measles, mumps, and rubella.
            Before vaccines were available, nearly everyone was infected with measles, mumps, and rubella
            viruses during childhood. The majority of people born before 1957 are likely to have been infected
            naturally and therefore are presumed to be protected against measles, mumps, and rubella.
            Healthcare personnel born before 1957 without laboratory evidence of immunity or disease should
            consider getting two doses of MMR vaccine."
            <br> - <a href='https://www.cdc.gov/vaccines/vpd/mmr/public/index.html'>CDC - Measles, Mumps, and Rubella (MMR) Vaccination: What Everyone Should Know</a>
        </blockquote>
            
    
    
        <p>This presumes you haven't had the measles. If you've had measles, you are likely immune*.</p>
    
</p>

    
        
        <p><b>Mumps</b></p>
<p>
    Your probability of being immune to mumps if exposed is 
                                                                0.99
                                                            .<br>
    
        This means that your probability of contracting mumps, if exposed, is 1.00%.
        <br>
    

    
            
                
                <p>
    Previous infection with mumps carries a high probability of being immune on future exposure.
    <br>Immunity conferred by infection with mumps appears to be lifelong, in contrast to vaccine-derived immunity.
</p>
            
    
    
</p>

    
        
        <p><b>Rubella</b></p>
<p>
    Your probability of being immune to rubella if exposed is 
                                                                0.93
                                                            .<br>
    
        This means that your probability of contracting rubella, if exposed, is 7.00%.
        <br>
    

    
            
                
                <br>According to the CDC, you are likely immune to rubella due to childhood exposure.

        <blockquote cite="https://www.cdc.gov/vaccines/vpd/mmr/public/index.html">
            NB: "Birth before 1957 provides only presumptive evidence for measles, mumps, and rubella.
            Before vaccines were available, nearly everyone was infected with measles, mumps, and rubella
            viruses during childhood. The majority of people born before 1957 are likely to have been infected
            naturally and therefore are presumed to be protected against measles, mumps, and rubella.
            Healthcare personnel born before 1957 without laboratory evidence of immunity or disease should
            consider getting two doses of MMR vaccine."
            <br> - <a href='https://www.cdc.gov/vaccines/vpd/mmr/public/index.html'>CDC - Measles, Mumps, and Rubella (MMR) Vaccination: What Everyone Should Know</a>
        </blockquote>
            
    
    
        <br>This presumes you haven't had the rubella. If you've had rubella, you are likely immune.
    
</p>

    .

    <p align="right">
        <a href="/immunity/" title="Back to data entry.">Get another estimate of
            immunity.</a>
    </p>
    </body>

</section>
@toonarmycaptain toonarmycaptain changed the title Add CSS to replace obolete attrs Add CSS to replace obsolete attrs Oct 3, 2020
@ry-v1
Copy link
Contributor

ry-v1 commented Oct 4, 2020

@toonarmycaptain - I fixed this issue in pull request #41. Please review if it looks fine.

@toonarmycaptain toonarmycaptain changed the title Add CSS to replace obsolete attrs Add CSS/styling, replace obsolete attrs Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants