Skip to content

Instantly share code, notes, and snippets.

View devded's full-sized avatar
🎯
Focusing

Dedar Alam devded

🎯
Focusing
  • Dhaka, Bagladesh
View GitHub Profile
@devded
devded / Copy From TextField
Last active May 31, 2020 09:41
Copy From Text Field Useing Javascript
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Copy From TextFIeld</title>
</head>
<body>
<input id="name" type="text" />
<button id="copy">Copy</button>
</body>
@devded
devded / Check Website Support on Network
Created May 12, 2020 12:56
FTP website didn't support all ISP network. This Script help to find the website support on network or not sending a fetch request.
async function check(url){
let cors = "https://cors-anywhere.herokuapp.com/"; //This API enables cross-origin requests to anywhere.
let checkUrl= cors+url; //Merge cors and checking website url to avoid the cross-origin requests error
let response = await fetch(checkUrl); //JavaScript can send network requests to the server
if (response.ok) {
alert("Website Support On Your Network"); // if HTTP-status is 200-299
} else {
alert("Website Not Support On Your Network");