Book of Mormon Translation

by Oliver_Cowdery

HTML

<script src="https://cdn.rawgit.com/alexgibson/shake.js/master/shake.js"></script>
<link rel="shortcut icon" sizes="196x196" href="https://imgur.com/ghrkMZ0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">

<div id="backing">
     <div id="rockContainer">
        <div id="center1">
            <div id="center2">
                <div id="center3">  
                    <div id="revelation" class="text">        
                         <div id="reformed_egyptian"></div>               
                        <div id="englishText"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>     
</div>

CSS

#backing {
    position: fixed;
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: black;
    color: red;
}

#rockContainer {                
    width: 100%;
    height: 100%;
    background: url('https://i.imgur.com/fxPVKTj.png') no-repeat;
    background-size: 75%;
    background-position: center;        
}

#center1 { 
    display:table;
    width: 100%;
    height: 80%;    /* hack */
}

#center2 {  
    display:table-cell;
    vertical-align:middle;          
}

#center3 {  
    margin-left:auto;
    margin-right:auto;
    text-align:center;    
    width: 60%;        
    
}

#revelation {
    color: red;
    display:block;   
    width: 100%;   
    font: 4.0vw arial, sans-serif;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #ff2d95, 0 0 30px #ff2d95, 0 0 40px #ff2d95, 0 0 50px #ff2d95, 0 0 75px #ff2d95;
    color:#f00; 
    
}



#reformed_egyptian {
    left: 0px;
    width: 100px;
    height: 100px;
    margin-left:auto;
    margin-right:auto;
    text-align:center;  
    background: url('https://i.imgur.com/HoiKQEB.png') 100px 100px no-repeat;
    /* background-color:rgba(255, 255, 0, 0.0); */
}


#stone {
    height: 0px;
    /* hide stone */
}
#centerContainer {
    clear:both
    color: red;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    width: 100%;
    height: 100%;
    background: url('https://i.imgur.com/fxPVKTj.png') no-repeat;
    background-size: 85%;
    background-position: center;
}

JavaScript

// 2 Nephi 7-8  (Deutero-Isaiah)
var scripture = "yea for thus saith the Lord have I put thee away or have I cast thee off forever for thus saith the Lord where is the bill of your mother’s divorcement to whom have I put thee away or to which of my creditors have I sold you yea to whom have I sold you behold for your iniquities have ye sold yourselves and for your transgressions is your mother put away wherefore when I came there was no man when I called yea there was none to answer O house of Israel is my hand shortened at all that it cannot redeem or have I no power to deliver behold at my rebuke I dry up the sea I make their rivers a wilderness and their fish to stink because the waters are dried up and they die because of thirst I clothe the heavens with blackness and I make sackcloth their covering the Lord God hath given me the tongue of the learned that I should know how to speak a word in season unto thee O house of Israel when ye are weary he waketh morning by morning He waketh mine ear to hear as the learned the Lord God hath opened mine ear and I was not rebellious neither turned away back I gave my back to the smiter and my cheeks to them that plucked off the hair I hid not my face from shame and spitting for the Lord God will help me therefore shall I not be confounded therefore have I set my face like a flint and I know that I shall not be ashamed and the Lord is near and he justifieth me Who will contend with me Let us stand together Who is mine adversary Let him come near me and I will smite him with the strength of my mouth for the Lord God will help me and all they who shall condemn me behold all they shall wax old as a garment and the moth shall eat them up who is among you that feareth the Lord that obeyeth the voice of his servant that walketh in darkness and hath no light behold all ye that kindle fire that compass yourselves about with sparks walk in the light of your fire and in the sparks which ye have kindled This shall ye have of mine...