Adding the domain as pseudo-environment variable
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1,5 +1,6 @@
 | 
				
			|||||||
### Project Specific
 | 
					### Project Specific
 | 
				
			||||||
# Files
 | 
					# Files
 | 
				
			||||||
 | 
					env.php
 | 
				
			||||||
*.zip
 | 
					*.zip
 | 
				
			||||||
*.tar*
 | 
					*.tar*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										3
									
								
								env.php.example
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								env.php.example
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$domain = '';
 | 
				
			||||||
							
								
								
									
										48
									
								
								index.php
									
									
									
									
									
								
							
							
						
						
									
										48
									
								
								index.php
									
									
									
									
									
								
							@@ -1,5 +1,7 @@
 | 
				
			|||||||
<!DOCTYPE html>
 | 
					<?php
 | 
				
			||||||
<html lang="en-US" class="no-js">
 | 
					require_once "env.php";
 | 
				
			||||||
 | 
					?><!DOCTYPE html>
 | 
				
			||||||
 | 
					<html lang="en-US">
 | 
				
			||||||
    <head>
 | 
					    <head>
 | 
				
			||||||
        <meta charset="utf-8">
 | 
					        <meta charset="utf-8">
 | 
				
			||||||
        <meta name="viewport" content="width=device-width, initial-scale=1">
 | 
					        <meta name="viewport" content="width=device-width, initial-scale=1">
 | 
				
			||||||
@@ -15,7 +17,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        <meta name="rating" content="General">
 | 
					        <meta name="rating" content="General">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <meta name="url" content="">
 | 
					        <meta name="url" content="<?php echo $domain; ?>/">
 | 
				
			||||||
        <meta name="subject" content="CSS color conversion tool">
 | 
					        <meta name="subject" content="CSS color conversion tool">
 | 
				
			||||||
        <meta name="description" content="Convert colors in a batch among HSL(a), RGB(a), and Hex">
 | 
					        <meta name="description" content="Convert colors in a batch among HSL(a), RGB(a), and Hex">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -25,31 +27,39 @@
 | 
				
			|||||||
        <meta name="twitter:dnt" content="on">
 | 
					        <meta name="twitter:dnt" content="on">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <!-- analytics -->
 | 
					        <!-- analytics -->
 | 
				
			||||||
        <!-- None -->
 | 
					        <!-- none -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <!-- Helps prevent duplicate content issues -->
 | 
				
			||||||
 | 
					        <link href="<?php echo $domain; ?>" rel="canonical">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <!-- Android web manifest file -->
 | 
				
			||||||
 | 
					        <!-- <link href="<?php echo $domain; ?>/.webmanifest" rel="manifest"> -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <!-- Files listing who was involved in this site and copyrights -->
 | 
					        <!-- Files listing who was involved in this site and copyrights -->
 | 
				
			||||||
        <link href="humans.txt" rel="author">
 | 
					        <link href="<?php echo $domain; ?>/humans.txt" rel="author">
 | 
				
			||||||
        <link href="gpl-3.0-standalone.html" rel="copyright">
 | 
					        <link href="<?php echo $domain; ?>/gpl-3.0-standalone.html" rel="copyright">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <!-- Favicon -->
 | 
					        <!-- Favicon -->
 | 
				
			||||||
        <link href="favicon.ico" rel="icon" sizes="16x16" type="image/icon">
 | 
					        <link href="<?php echo $domain; ?>/favicon.ico" rel="icon" sizes="16x16" type="image/icon">
 | 
				
			||||||
        <link href="favicon.svg" rel="icon" type="image/svg+xml">
 | 
					        <link href="<?php echo $domain; ?>/favicon.svg" rel="icon" type="image/svg+xml">
 | 
				
			||||||
        <link href="favicon.png" rel="icon" sizes="192x192">
 | 
					        <link href="<?php echo $domain; ?>/favicon.png" rel="icon" sizes="192x192">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <!-- Font preloads (should be done for each font file) -->
 | 
					        <!-- Font preloads (should be done for each font file) -->
 | 
				
			||||||
        <!-- Open Sans license: fonts/OpenSans/LICENSE.txt -->
 | 
					        <!-- Open Sans license: fonts/OpenSans/LICENSE.txt -->
 | 
				
			||||||
        <link href="fonts/OpenSans/OpenSans-Regular.woff2" rel="preload" as="font" type="font/woff2" crossorigin="anonymous">
 | 
					        <link href="<?php echo $domain; ?>/fonts/OpenSans/OpenSans-Regular.woff2" rel="preload" as="font" type="font/woff2" crossorigin="anonymous">
 | 
				
			||||||
        <link href="fonts/OpenSans/OpenSans-Bold.woff2" rel="preload" as="font" type="font/woff2" crossorigin="anonymous">
 | 
					        <link href="<?php echo $domain; ?>/fonts/OpenSans/OpenSans-Bold.woff2" rel="preload" as="font" type="font/woff2" crossorigin="anonymous">
 | 
				
			||||||
        <!-- Open Sans license: fonts/Ubuntu/UFL.txt -->
 | 
					        <!-- Open Sans license: fonts/Ubuntu/UFL.txt -->
 | 
				
			||||||
        <link href="fonts/Ubuntu/Ubuntu-Regular.woff2" rel="preload" as="font" type="font/woff2" crossorigin="anonymous">
 | 
					        <link href="<?php echo $domain; ?>/fonts/Ubuntu/Ubuntu-Regular.woff2" rel="preload" as="font" type="font/woff2" crossorigin="anonymous">
 | 
				
			||||||
        <link href="fonts/Ubuntu/Ubuntu-Bold.woff2" rel="preload" as="font" type="font/woff2" crossorigin="anonymous">
 | 
					        <link href="<?php echo $domain; ?>/fonts/Ubuntu/Ubuntu-Bold.woff2" rel="preload" as="font" type="font/woff2" crossorigin="anonymous">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <!-- CSS -->
 | 
					        <!-- CSS -->
 | 
				
			||||||
        <link href="css/vendor/tailwind-2.2.4.min.css" rel="stylesheet" media="screen">
 | 
					        <link href="<?php echo $domain; ?>/css/vendor/tailwind-2.2.4.min.css" rel="stylesheet" media="screen">
 | 
				
			||||||
        <link href="css/app.css" rel="stylesheet" media="screen">
 | 
					        <link href="<?php echo $domain; ?>/css/app.css" rel="stylesheet" media="screen">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <script src="js/vendor/vue-2.6.14.min.js" defer></script>
 | 
					        <!-- JS that must be executed before the document is loaded -->
 | 
				
			||||||
        <script src="js/app.js" defer></script>
 | 
					        <script src="<?php echo $domain; ?>/js/vendor/vue-2.6.14.min.js" defer></script>
 | 
				
			||||||
 | 
					        <script src="<?php echo $domain; ?>/js/app.js" defer></script>
 | 
				
			||||||
 | 
					        <!-- -->
 | 
				
			||||||
    </head>
 | 
					    </head>
 | 
				
			||||||
    <body class="font-open-sans antialiased">
 | 
					    <body class="font-open-sans antialiased">
 | 
				
			||||||
        <div id="app" class="flex flex-col items-center justify-center w-full min-h-screen">
 | 
					        <div id="app" class="flex flex-col items-center justify-center w-full min-h-screen">
 | 
				
			||||||
@@ -92,5 +102,9 @@
 | 
				
			|||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
 | 
					        <div class="absolute bottom-0 p-8 text-center w-full">
 | 
				
			||||||
 | 
					            You can take a look at <a href="https://git.ditoforge.com/brian/batch-color-converter" title="Source code for this page">this terrible code over on my git server</a>.
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
    </body>
 | 
					    </body>
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
 | 
					<!-- END OF LINE. -->
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user