JSFiddle - React, Tailwind, and code Playground

JavaScript

function byturl(url)
	{
	
		var encodedUrl = encodeURIComponent(url);
		var remoteAdress = "http://byturl.se/?api&url=";
		
		$.ajax({
			type: "GET",
			url: remoteAdress + encodedUrl,
			success: function(data) { alert(data) },
			error: function(data) { alert(data.'#') },
			dataType: "jsonp"
			});
	}

byturl("http://www.sweclockers.se");