Just a simple demo for getting JSON data from one of the biggest Ukrainian job searching sites.
Company ID was selected randomly - just for demonstration purposes.
You can play with this code in live environment at CodePen
<span class="float_right" id="clock" | |
onclick="$('#clock').datepicker('dialog', '', function () {}, {showButtonPanel: true}, [$(window).width() - 209, 27]);"> | |
</span> |
var weather = $('#weather'); | |
var city = "Kyiv"; | |
var country = "Ukraine"; | |
var temp; | |
$.ajax({ | |
type: "GET", | |
url: "http://www.webservicex.net//globalweather.asmx/GetWeather?CityName=" + city + "&CountryName=" + country + "", | |
dataType: "xml", | |
success: function (xml) { |
//Read more here: http://blog.forecast.io/forecast-embeds/ | |
<div id="dialog-message" title="Current Weather" style="display:none"> | |
<iframe id="forecast_embed" frameborder="0" height="245" style="width:100%" | |
src="http://forecast.io/embed/#lat=50.450100&lon=30.523400&name=Kyiv&units=uk"> | |
</iframe> | |
</div> | |
... |
<div id="clockW"> | |
<iframe id="clockobj" style="border:0;margin:0;padding:0;width:100px;height:100px;" | |
src="http://www.clocktag.com/html5/m121.html"></iframe> | |
<center><p>...</p></center> | |
</div> | |
... | |
<script> | |
... |
//to avoid "Uncaught SecurityError: Failed to execute 'replaceState' on 'History'" in Chrome app (local file) | |
//just comment out the following line in jQuery Mobile | |
window.history.replaceState( state, state.title || document.title, href ); | |
//that the bad and ugly solution, but it works:-) | |
//adding "-allow-file-access-from-files" as Chrome command line argument is not a case for me |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Comm</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> | |
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> |
function rot13(str) { | |
var result=""; | |
var rot=13; | |
var s=(26-rot)%26; //s=rot; if you want to encrypt! | |
for (var i=0;i<str.length;i++) | |
{ | |
var c = str.charCodeAt(i); | |
if (c>=65 && c<=90) | |
result=result+String.fromCharCode((c-65+s)%26+65); | |
else |
// ... | |
@Override | |
public void actionPerformed(ActionEvent e) { | |
// TODO implement action body | |
try { | |
URLDisplayer.getDefault().showURL(new URL("http://productivityblog.com.ua")); | |
} catch (MalformedURLException ex) { | |
JOptionPane.showMessageDialog(null, "Can't open an URL: " + ex.getMessage()); | |
} |
// Legacy Bing geocoding SOAP services were recent shut down after being replaced by the REST services | |
// so, you need to migrate your app to use the REST services. | |
// | |
// If your application uses .NET you will likely find this library useful: | |
// 'Bing Maps REST Services Toolkit' - https://github.com/Microsoft/BingMapsRESTToolkit | |
// | |
// Just install NuGet package named 'BingMapsRESTToolkit'! | |
// Don't forget to add namespace BingMapsRESTToolkit to your using block! | |
// | |
// Now you can get the coordinates of any address by calling the following method |