forked from GithubMirrors/cardconjurer
		
	phyrexian
This commit is contained in:
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										21
									
								
								data/site/other/phyrexian/phyrexian.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								data/site/other/phyrexian/phyrexian.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| var randomCharacters = [/*'*',*/ 'N', 'V', 'O', 'A', 'I', 'T', '^', '>', 'M', '<', 'E', 'Q', 'G', 'J', 'L', 'K', 'F', 'H', '"', 'Z', /*'X',*/ '`', 'r', 't', /*'_',*/ 'v', 'x', 'j'] | ||||
|  | ||||
| function generatePhyrexianText() { | ||||
|     var inputText = document.getElementById('inputText').value | ||||
|     var outputText = '' | ||||
|     var paragraphs = inputText.split('\n') | ||||
|     for (var i = 0; i < paragraphs.length; i ++) { | ||||
|         var sentences = paragraphs[i].split('. ') | ||||
|         for (var j = 0; j < sentences.length; j ++) { | ||||
|             outputText += '[' | ||||
|             for (var k = 0; k < sentences[j].length - 2; k ++) { | ||||
|                 outputText += randomCharacters[Math.floor(Math.random() * randomCharacters.length)] | ||||
|             } | ||||
|             outputText += '] ' | ||||
|         } | ||||
|         if (i != paragraphs.length - 1) { | ||||
|             outputText += '\n' | ||||
|         } | ||||
|     } | ||||
|     document.getElementById('outputText').value = outputText | ||||
| } | ||||
							
								
								
									
										86
									
								
								phyrexian.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										86
									
								
								phyrexian.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,86 @@ | ||||
| <!DOCTYPE html5> | ||||
| <html> | ||||
| <head> | ||||
|     <script async src="data/scripts/cookies.js"></script> | ||||
|     <link rel="stylesheet" href="styles.css"> | ||||
|     <meta charset="UTF-8"> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||
|     <link rel="apple-touch-icon" sizes="180x180" href="data/site/favicons/apple-touch-icon.png"> | ||||
|     <link rel="icon" type="image/png" sizes="32x32" href="data/site/favicons/favicon-32x32.png"> | ||||
|     <link rel="icon" type="image/png" sizes="16x16" href="data/site/favicons/favicon-16x16.png"> | ||||
|     <link rel="manifest" href="data/site/favicons/site.webmanifest"> | ||||
| </head> | ||||
| <body> | ||||
|     <title>CC - Phyrexian</title> | ||||
|     <link rel="stylesheet" href="askScryfallStyles.css"> | ||||
|     <div> | ||||
|         <div class="title darkLayer"> | ||||
|             Random Phyrexian Translator | ||||
|         </div> | ||||
|         <div class="layer slideFromRight"> | ||||
|             <div class='splitGrid'> | ||||
|                 <div> | ||||
|                 	<textarea id='inputText' oninput='generatePhyrexianText()'></textarea> | ||||
|                 </div> | ||||
|                 <div> | ||||
|                 	<textarea id='outputText' style='font-family: "phyrexian";'></textarea> | ||||
|                 </div> | ||||
|             </div> | ||||
|         </div> | ||||
|         <div class="layer darkLayer slideFromLeft"> | ||||
|             <div class="paragraph indent"> | ||||
|                 To my understanding, the Phyrexian font and language is still not completely understood. This program will only recognize the beginning and end of sentences, but the rest of the text will be fully randomized, and is complete gibberish. | ||||
|             </div> | ||||
|         </div> | ||||
|         <div class="layer slideFromRight"> | ||||
|             <div class="paragraph indent"> | ||||
|                 All will be compleat. | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
|     <script defer src="data/site/other/phyrexian/phyrexian.js"></script> | ||||
| </body> | ||||
| <footer> | ||||
|     <div class='footer'> | ||||
|         <div> | ||||
|             <div>Theme</div> | ||||
|             <hr> | ||||
|             <div> | ||||
|                 <select id='inputColorPalette' onchange='loadScript("data/scripts/palettes/" + this.value + ".js")'> | ||||
|                     <option value='lightMode'>Light Mode</option> | ||||
|                     <option value='darkMode'>Dark Mode</option> | ||||
|                     <option value='dayRave'>Day Rave</option> | ||||
|                     <option value='nightRave'>Night Rave</option> | ||||
|                     <option value='scholarMode'>Scholar Mode</option> | ||||
|                 </select> | ||||
|             </div> | ||||
|         </div> | ||||
|         <div> | ||||
|             <div>Navigation</div> | ||||
|             <hr> | ||||
|             <div> | ||||
|                 <a href='index.html'>Card Creator</a><br> | ||||
|                 <a href='life.html'>Life Counter</a><br> | ||||
|                 <a href='askscryfall.html'>Ask Scryfall</a> | ||||
|                 <a href='phyrexian.html'>Phyrexian</a> | ||||
|             </div> | ||||
|         </div> | ||||
|         <div> | ||||
|             <div>Legal</div> | ||||
|             <hr> | ||||
|             <div> | ||||
|                 <a href='termsofuse.html'>Terms of Use</a><br> | ||||
|                 <a href='disclaimer.html'>Disclaimer</a> | ||||
|             </div> | ||||
|         </div> | ||||
|         <div> | ||||
|             <div>Contact</div> | ||||
|             <hr> | ||||
|             <div> | ||||
|                 <label class="truncate"><a href="https://mail.google.com/mail/u/0/?view=cm&fs=1&to=CardConjurerMTG@gmail.com&su=Card%20Conjurer&tf=1" target="_blank">CardConjurerMTG@gmail.com</a></label> | ||||
|             </div> | ||||
|         </div> | ||||
|         <script defer src="data/scripts/animations.js"></script> | ||||
|     </div> | ||||
| </footer> | ||||
| <html> | ||||
		Reference in New Issue
	
	Block a user
	 Kyle
					Kyle