Update www
This commit is contained in:
		
							parent
							
								
									d4bffd2c4a
								
							
						
					
					
						commit
						9ba590dd90
					
				| @ -158,8 +158,8 @@ function copyToClipboard() { | ||||
|   document.body.removeChild(el); | ||||
| } | ||||
| 
 | ||||
| function copyToClipboardSilicon() { | ||||
|   const text = document.getElementById("ghcup-command-silicon").innerText; | ||||
| function copyToClipboardPowershell() { | ||||
|   const text = document.getElementById("ghcup-command-powershell").innerText; | ||||
|   const el = document.createElement('textarea'); | ||||
|   el.value = text; | ||||
|   document.body.appendChild(el); | ||||
|  | ||||
| @ -14,13 +14,12 @@ | ||||
| 
 | ||||
|   <body id="idx"> | ||||
| 
 | ||||
|     <script id='html-content' type="text/html"> | ||||
|       <a id="platform-button" style="display: none;" href="#"> | ||||
|         click or press "n" to cycle platforms | ||||
|       </a> | ||||
| 
 | ||||
|       <p id="pitch"> | ||||
|         <em>ghcup</em> is the main installer for<br/> | ||||
|         <em>ghcup</em> is an installer for<br/> | ||||
|         the general purpose language <a href="https://www.haskell.org/">Haskell</a> | ||||
|       </p> | ||||
| 
 | ||||
| @ -32,10 +31,7 @@ | ||||
| 
 | ||||
|       <div id="platform-instructions-mac" class="instructions" style="display: none;"> | ||||
|         <p>Run the following in your terminal (as a user other than root), then follow the onscreen instructions.</p> | ||||
| 		<p>On Intel:</p> | ||||
| 		<div class="command-button"><pre><span class='ghcup-command' id="ghcup-command-normal">curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><button class="tooltip" onclick="copyToClipboard()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div> | ||||
|         <p>On Apple Silicon:</p> | ||||
| 		<div class="command-button"><pre><span class='ghcup-command' id="ghcup-command-silicon">curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | arch -x86_64 /bin/bash</span></pre><button class="tooltip" onclick="copyToClipboardSilicon()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div> | ||||
|         <p class="other-help">If you don't like curl | sh, see <a href="https://gitlab.haskell.org/haskell/ghcup-hs#manual-install">other installation methods</a>.<br/>You appear to be running macOS. If not, <a class="default-platform-button" href="#">display all supported installers</a>.</p> | ||||
|       </div> | ||||
| 
 | ||||
| @ -47,8 +43,8 @@ | ||||
| 
 | ||||
|       <div id="platform-instructions-win32" class="instructions"> | ||||
|         <p> | ||||
|           To install Haskell, follow the instructions on | ||||
|           <a class="windows-download" href="https://www.haskell.org/platform/#windows">Haskell Platform</a> | ||||
|             To install Haskell,<br/>run the following in a powershell session (as a non-admin user). | ||||
| 			<div class="command-button" id="ghcup-command-powershell"><pre><span class='ghcup-command'>Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; Invoke-WebRequest -UseBasicParsing https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 | Invoke-Expression</span></span></pre><button class="tooltip" onclick="copyToClipboardPowershell()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div> | ||||
| 		<p>If you're a Windows Subsystem 2 for Linux user run the following in your terminal, then follow the onscreen instructions to install Haskell. | ||||
| 		</p> | ||||
| 		<div class="command-button"><pre><span class='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><button class="tooltip" onclick="copyToClipboard()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div> | ||||
| @ -58,8 +54,8 @@ | ||||
| 
 | ||||
|       <div id="platform-instructions-win64" class="instructions" style="display: none;"> | ||||
|         <p> | ||||
|           To install Haskell, follow the instructions on | ||||
|           <a class="windows-download" href="https://www.haskell.org/platform/#windows">Haskell Platform</a> | ||||
|             To install Haskell,<br/>run the following in a powershell session (as a non-admin user). | ||||
| 			<div class="command-button"><pre><span class='ghcup-command'>Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; Invoke-WebRequest -UseBasicParsing https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 | Invoke-Expression</span></span></pre><button class="tooltip" onclick="copyToClipboardPowershell()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div> | ||||
|         </p> | ||||
| 		<p>If you're a Windows Subsystem 2 for Linux user run the following in your terminal, then follow the onscreen instructions to install Haskell. | ||||
| 		</p> | ||||
| @ -95,8 +91,8 @@ | ||||
| 
 | ||||
|         <div> | ||||
|           <p> | ||||
|             If you are running Windows,<br/>follow the instructions on | ||||
|             <a class="windows-download" href="https://www.haskell.org/platform/#windows">Haskell Platform</a> | ||||
|             If you are running Windows,<br/>run the following in a powershell session (as a non-admin user). | ||||
| 			<div class="command-button"><pre><span class='ghcup-command'>Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; Invoke-WebRequest -UseBasicParsing https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 | Invoke-Expression</span></span></pre><button class="tooltip" onclick="copyToClipboardPowershell()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div> | ||||
|           </p> | ||||
|         </div> | ||||
| 
 | ||||
| @ -104,11 +100,9 @@ | ||||
| 
 | ||||
|       <div id="platform-instructions-default" class="instructions"> | ||||
|         <div> | ||||
|           <p>To install Haskell, if you are running Linux, macOS (on Intel), FreeBSD or Windows Subsystem 2 for Linux, run the following | ||||
|           <p>To install Haskell, if you are running Linux, macOS, FreeBSD or Windows Subsystem 2 for Linux, run the following | ||||
|           in your terminal (as a user other than root), then follow the onscreen instructions.</p> | ||||
| 		  <div class="command-button"><pre><span class='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><button class="tooltip" onclick="copyToClipboard()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div> | ||||
|           <p>For macOS on Apple Silicon, run this instead:</p> | ||||
|           <div class="command-button"><pre><span class='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | arch -x86_64 /bin/bash</span></pre><button class="tooltip" onclick="copyToClipboardSilicon()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div> | ||||
|           <p class="other-help">If you don't like curl | sh, see <a href="https://gitlab.haskell.org/haskell/ghcup-hs#manual-install">other installation methods</a>.</p> | ||||
|         </div> | ||||
| 
 | ||||
| @ -116,8 +110,8 @@ | ||||
| 
 | ||||
|         <div> | ||||
|           <p> | ||||
|             If you are running Windows,<br/>follow the instructions on | ||||
|             <a class="windows-download" href="https://www.haskell.org/platform/#windows">Haskell Platform</a> | ||||
|             If you are running Windows,<br/>run the following in a powershell session (as a non-admin user). | ||||
| 			<div class="command-button"><pre><span class='ghcup-command'>Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; Invoke-WebRequest -UseBasicParsing https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 | Invoke-Expression</span></span></pre><button class="tooltip" onclick="copyToClipboardPowershell()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div> | ||||
|           </p> | ||||
|         </div> | ||||
| 
 | ||||
| @ -137,54 +131,7 @@ | ||||
|          ·  | ||||
|         <a href="https://github.com/rust-lang/rustup.rs/tree/master/www">web design from rustup</a> | ||||
|       </p> | ||||
|     </script> | ||||
|     <script> | ||||
|       document.write(document.getElementById("html-content").innerHTML); | ||||
|     </script> | ||||
|     <script type="text/javascript" src="ghcup.js"></script> | ||||
| 
 | ||||
|     <noscript> | ||||
|       <p id="pitch"> | ||||
|         <em>ghcup</em> is the main installer for<br/> | ||||
|         the general purpose language <a href="https://www.haskell.org/">Haskell</a> | ||||
|       </p> | ||||
| 
 | ||||
|       <div id="platform-instructions-default" class="instructions"> | ||||
|         <div> | ||||
|           <p>To install Haskell, if you are running Linux, macOS (on Intel), FreeBSD or Windows Subsystem for Linux 2, run the following | ||||
|           in your terminal (as a user other than root), then follow the onscreen instructions.</p> | ||||
| 		  <pre><span class='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre> | ||||
|           <p>For macOS on Apple Silicon, run this instead:</p> | ||||
|           <div class="command-button"><pre><span class='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | arch -x86_64 /bin/bash</span></pre><button class="tooltip" onclick="copyToClipboardSilicon()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div> | ||||
|           <p class="other-help">If you don't like curl | sh, see <a href="https://gitlab.haskell.org/haskell/ghcup-hs#manual-install">other installation methods</a>.</p> | ||||
|         </div> | ||||
| 
 | ||||
|         <hr/> | ||||
| 
 | ||||
|         <div> | ||||
|           <p> | ||||
|             If you are running Windows,<br/>follow the instructions on | ||||
|             <a class="windows-download" href="https://www.haskell.org/platform/#windows">Haskell Platform</a> | ||||
|           </p> | ||||
|         </div> | ||||
| 
 | ||||
|       </div> | ||||
| 
 | ||||
|       <p> | ||||
|         Need help? Ask on <a href="https://kiwiirc.com/nextclient/irc.libera.chat/#haskell-ghcup">#haskell-ghcup</a>, <a href="https://kiwiirc.com/nextclient/irc.libera.chat/#haskell">#haskell</a> or <a href="https://gitlab.haskell.org/haskell/ghcup-hs/issues">report a bug</a>. | ||||
|       </p> | ||||
| 
 | ||||
|       <p id="about"> | ||||
|         <img src="haskell-logo.svg" alt="" /> | ||||
|         ghcup is a haskell.org hosted project. | ||||
|         <br/> | ||||
|         <a href="https://www.haskell.org/downloads/">other installation options</a> | ||||
|          ·  | ||||
|         <a href="https://gitlab.haskell.org/haskell/ghcup-hs">about ghcup</a> | ||||
|          ·  | ||||
|         <a href="https://github.com/rust-lang/rustup.rs/tree/master/www">web design from rustup</a> | ||||
|       </p> | ||||
| 
 | ||||
|     </noscript> | ||||
|   </body> | ||||
| </html> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user