direct message me this is probably a bad idea
This commit is contained in:
		
							parent
							
								
									11f20bdeab
								
							
						
					
					
						commit
						276c2dbedf
					
				| @ -9,6 +9,7 @@ timezone,/oneshot/timezone | |||||||
| coding bibble,/oneshot/codingbible | coding bibble,/oneshot/codingbible | ||||||
| footgun,/oneshot/footgun | footgun,/oneshot/footgun | ||||||
| guestbook,http://users3.smartgb.com/g/g.php?a=s&i=g36-36498-b6 | guestbook,http://users3.smartgb.com/g/g.php?a=s&i=g36-36498-b6 | ||||||
|  | direct message me,/personal/qa | ||||||
| thanks page,/thanks | thanks page,/thanks | ||||||
| goomyshrine,/personal/goomyshrine | goomyshrine,/personal/goomyshrine | ||||||
| github repo,https://github.com/etherware-novice/comicsite,/assets/images/blinkers/cooltext462925409710685.gif | github repo,https://github.com/etherware-novice/comicsite,/assets/images/blinkers/cooltext462925409710685.gif | ||||||
|  | |||||||
| 
 | 
							
								
								
									
										39
									
								
								personal/qa.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								personal/qa.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,39 @@ | |||||||
|  | --- | ||||||
|  | title: question candy | ||||||
|  | --- | ||||||
|  | 
 | ||||||
|  | <h2>Send your comments and questions directly to me, and I'll put them here if they're funny</h2><br> | ||||||
|  | 
 | ||||||
|  | <textarea cols="50" id="username" placeholder="give me ur name"></textarea> | ||||||
|  | <textarea cols="50" id="question" placeholder="say something funny or you'll regret it"></textarea> | ||||||
|  | <br> | ||||||
|  | <button id="send">send</button> | ||||||
|  | 
 | ||||||
|  | <script> | ||||||
|  | 	async function sendQuestion() { | ||||||
|  | 		var questionfield = document.getElementById("question"); | ||||||
|  | 		var userfield = document.getElementById("username"); | ||||||
|  | 
 | ||||||
|  | 		let tohook = await fetch("https://discord.com/api/webhooks/1299830086165332040/85jxFM4ZtRYKRzGw7QQRyDldrV38f4iaDtuERF9CASJkokFX1skF4kFC84WvuNeqUbbu", { | ||||||
|  | 			method: "POST", | ||||||
|  | 			headers: { "Content-Type": "application/json" }, | ||||||
|  | 			body: JSON.stringify({ | ||||||
|  | 					username: userfield.value, | ||||||
|  | 					content: "<@661044029110091776>\n" + questionfield.value, | ||||||
|  | 				}) | ||||||
|  | 		}) | ||||||
|  | 
 | ||||||
|  | 		console.log(tohook.status); | ||||||
|  | 		if(!tohook.ok) | ||||||
|  | 		{ | ||||||
|  | 			alert(`HTTP error: ${tohook.status}`); | ||||||
|  | 		} | ||||||
|  | 		else | ||||||
|  | 		{ | ||||||
|  | 			questionfield.value = ""; | ||||||
|  | 			userfield.value = ""; | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	document.getElementById('send').onclick = sendQuestion; | ||||||
|  | </script> | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user