Weather widget not working on linux client
I have moved my client from a windows based client to an ubuntu based client. Everything is working fine except for a weather widget. The widget works fine on a windows based client. I had the following code as an html embed:
-------
<html>
<head>
<style type="text/css">
/* CSS goes here */
/* #wxWrap {
width: 150px;
background: #EEE; /* Old browsers */
background: -moz-linear-
background: -webkit-
background: -webkit-
background: -o-linear-
background: -ms-linear-
filter: progid:
background: linear-
padding: 2px 13px 2px 11px;
-webkit-
-moz-
border-radius: 4px;
} */
#wxIntro {
display: inline-block;
font: 14px/20px Arial,Verdana,
color: #666;
vertical-align: top;
padding-top: 9px;
}
#wxIcon {
display: inline-block;
width: 61px;
height: 34px;
margin: 2px 0 -1px 1px;
overflow: hidden;
background: url('http://
}
#wxIcon2 {
display: inline-block;
width: 70px;
height: 50px;
margin: 0px 0px 0px 0px;
overflow: hidden;
}
#wxTemp {
display: inline-block;
font: 40px/40px Tahoma,
color: #FFF;
vertical-align: top;
padding-top: 0px;
margin-left: 0;
}
</style>
</head>
<body>
<div id="wxWrap">
<!-- <span id="wxIntro">
Currently in Manhattan, NY:
</span> -->
<span id="wxIcon2"
<span id="wxTemp"></span>
</div>
<script type="text/
<script type="text/
// javascript will go here
$(function(){
// Specify the ZIP/location code and units (f or c)
var loc = '39191'; // or e.g. SPXX0050
var u = 'f';
var query = "SELECT item.condition FROM weather.forecast WHERE location='" + loc + "' AND u='" + u + "'";
var cacheBuster = Math.floor((new Date().getTime()) / 1200 / 1000);
var url = 'http://
window[
var info = data.query.
}).attr({
title: info.text
});
};
$.ajax({
url: url,
dataType: 'jsonp',
cache: true,
});
});
</script>
</body>
</html>
-------
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Xibo Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Alex Harrington
- Solved:
- Last query:
- Last reply: