Skip to content

Commit

Permalink
Ring out white spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
archisman-panigrahi committed Jan 21, 2014
1 parent 524dd12 commit 0fe96c7
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 75 deletions.
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div id="container">
<div class="border">
<div class="close">&#10005;</div>
<div class="minimize">&#150;</div>
<div class="minimize">&#150;</div>
<div class="settings"><img src="settings.svg"></div>
<div class="sync"><img src="sync.svg"></div>
</div>
Expand Down Expand Up @@ -68,7 +68,7 @@ <h3><a href="https://sites.google.com/site/typhoonweatherapp/support-1">SUPPORT<
<div class="toggleswitch speed">
<span data-type="mph">mph</span><span data-type="kph">kph</span><span data-type="ms">m/s</span>
</div>
<div class="color">
<div class="color">
<span data-color="gradient"></span>
<span data-color="575591"></span>
<span data-color="FF0097"></span>
Expand All @@ -81,11 +81,11 @@ <h3><a href="https://sites.google.com/site/typhoonweatherapp/support-1">SUPPORT<
<span data-color="FF8E83"></span>
<span data-color="339933"></span>
</div>
<br><br>
Typhoon 0.8.5<br>
<a class="btn" href="https://sites.google.com/site/typhoonweatherapp/credits">CREDITS</a>&nbsp;<a class="btn" href="https://github.com/apandada1/typhoon">CONTRIBUTE</a><br><br>
<a class="icon" href="http://apandada1.github.io/typhoon"><img src="homepage.svg" height="45" width="45" alt="Site"></a>
<a class="icon" href="http://apandada1.github.io/typhoon/update"><img src="update.svg" height="50" width="50" alt="Update"></a>
<br><br>
Typhoon 0.8.5<br>
<a class="btn" href="https://sites.google.com/site/typhoonweatherapp/credits">CREDITS</a>&nbsp;<a class="btn" href="https://github.com/apandada1/typhoon">CONTRIBUTE</a><br><br>
<a class="icon" href="http://apandada1.github.io/typhoon"><img src="homepage.svg" height="45" width="45" alt="Site"></a>
<a class="icon" href="http://apandada1.github.io/typhoon/update"><img src="update.svg" height="50" width="50" alt="Update"></a>
</div>
</div>
</body>
Expand Down
14 changes: 7 additions & 7 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $(function() {
// Get the current window
win = gui.Window.get()
win.show()
//win.showDevTools()
win.showDevTools()
document.title = "Typhoon"

//Bind Handlers
Expand Down Expand Up @@ -71,10 +71,10 @@ function generateStats(data, callback) {
//Location
weather.city = $(data).filterNode('yweather:location').attr("city")
weather.country = $(data).filterNode('yweather:location').attr("country")

//Link
weather.link = $(data).filterNode('item').children().filterNode("link").text()

//Temperature
weather.temperature = $(data).filterNode('item').children().filterNode("yweather:condition").attr("temp")
weather.temperatureUnit = $(data).filterNode('yweather:units').attr("temperature")
Expand Down Expand Up @@ -282,9 +282,9 @@ function weather_code(a){var b={0:"(",1:"z",2:"(",3:"z",4:"z",5:"e",6:"e",7:"o",
$(document).ready(function() {
//Filters Proprietary RSS Tags
jQuery.fn.filterNode = function(name){
return this.filter(function(){
return this.nodeName === name;
});
return this.filter(function(){
return this.nodeName === name;
});
};

//APP START.
Expand Down Expand Up @@ -327,7 +327,7 @@ function init_settings() {

//on keyup, start the countdown
locationInput.keyup(function(){
typingTimer = setTimeout(doneTyping, doneTypingInterval)
typingTimer = setTimeout(doneTyping, doneTypingInterval)
}).keydown(function(){
//on keydown, clear the countdown
clearTimeout(typingTimer)
Expand Down
122 changes: 61 additions & 61 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
@font-face {
font-family:'ClimaconsRegular';
src: url('fonts/climacons-webfont.eot');
src: url('fonts/climacons-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/climacons-webfont.woff') format('woff'),
url('fonts/climacons-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-family:'ClimaconsRegular';
src: url('fonts/climacons-webfont.eot');
src: url('fonts/climacons-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/climacons-webfont.woff') format('woff'),
url('fonts/climacons-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family:'Ubuntu Condensed';
src: url('fonts/ubuntu-condensed.eot');
src: url('fonts/ubuntu-condensed.woff') format('woff'),
url('fonts/ubuntu-condensed.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-family:'Ubuntu Condensed';
src: url('fonts/ubuntu-condensed.eot');
src: url('fonts/ubuntu-condensed.woff') format('woff'),
url('fonts/ubuntu-condensed.ttf') format('truetype');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family:'Anonymous';
src: url('fonts/Anonymous.eot');
src: url('fonts/Anonymous.woff') format('woff'),
url('fonts/Anonymous.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-family:'Anonymous';
src: url('fonts/Anonymous.eot');
src: url('fonts/Anonymous.woff') format('woff'),
url('fonts/Anonymous.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body {
color: #fff;
margin: 0;
padding: 0;
font-family: "Ubuntu Condensed";
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
overflow: hidden;
-webkit-app-region: drag;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
overflow: hidden;
-webkit-app-region: drag;
}
p, span, div {
cursor: default;
Expand All @@ -46,16 +46,16 @@ p, span, div {
display: inline-block;
opacity: 0;
-webkit-transition: 500ms ease opacity;
-webkit-app-region: no-drag;
-webkit-app-region: no-drag;
}
@-webkit-keyframes busy-spinning {
from {
-webkit-transform: rotate(0deg);
-webkit-transform-origin: 8px 8px;
-webkit-transform: rotate(0deg);
-webkit-transform-origin: 8px 8px;
}
to {
-webkit-transform: rotate(360deg);
-webkit-transform-origin: 8px 8px;
-webkit-transform: rotate(360deg);
-webkit-transform-origin: 8px 8px;
}
}

Expand All @@ -72,15 +72,15 @@ p, span, div {
top: 8px;
opacity: 0;
-webkit-transition: 200ms ease opacity;
-webkit-app-region: no-drag;
-webkit-app-region: no-drag;
}
.border .sync:hover, .border .settings:hover {
opacity: 1 !important;
}
.border .sync img, .border .settings img {
width: 32px;
height: 32px;
-webkit-user-drag: none;
-webkit-user-drag: none;
/* Retina Fix */
-webkit-transform: scale(0.5);
-webkit-transform-origin: 0 0;
Expand All @@ -96,7 +96,7 @@ p, span, div {
background: rgba(0,0,0,0.05);
cursor: default;
-webkit-transition: 200ms ease background;
-webkit-app-region: no-drag;
-webkit-app-region: no-drag;
}
.close:hover {
background: rgba(0,0,0,0.2);
Expand All @@ -115,7 +115,7 @@ p, span, div {
background: rgba(0,0,0,0.05);
cursor: default;
-webkit-transition: 200ms ease background;
-webkit-app-region: no-drag;
-webkit-app-region: no-drag;
}
.minimize:hover {
background: rgba(0,0,0,0.2);
Expand Down Expand Up @@ -143,17 +143,17 @@ p, span, div {
}
/* Sunny, Tornado, Moon, Mostly Cloudy*/
#code.w0, #code.w2, #code.w31, #code.w32, #code.w34, #code.w33, #code.w36 {
left: 12px;
left: 12px;
}
#code.w0, #code.w2 {
top: 40px;
top: 40px;
}
#code.w31, #code.w33 {
font-size: 300px;
top: 30px;
font-size: 300px;
top: 30px;
}
#code.w28, #code.w30 {
top: 100px;
top: 100px;
}
#city {
text-align: center;
Expand Down Expand Up @@ -245,7 +245,7 @@ p, span, div {
top: 60px;
padding: 25px;
-webkit-transform-origin: 0 0;
-webkit-app-region: drag;
-webkit-app-region: drag;
}
.btn {
border: 2px solid #222;
Expand All @@ -258,7 +258,7 @@ p, span, div {
letter-spacing: 0;
margin-top: 10px;
display: inline-block;
-webkit-app-region: no-drag;
-webkit-app-region: no-drag;
}
#locationModal {
display: none;
Expand All @@ -268,18 +268,18 @@ p, span, div {
top: 60px;
padding: 25px;
-webkit-transform-origin: 0 0;
-webkit-app-region: drag;
-webkit-app-region: drag;
}
#locationModal .icon {
opacity: 0.8;
padding: 38px;
-webkit-app-region: no-drag;
opacity: 0.8;
padding: 38px;
-webkit-app-region: no-drag;
}
#locationModal .icon:hover {
opacity: 1 !important;
opacity: 1 !important;
}
#locationModal img {
-webkit-user-drag: none;
-webkit-user-drag: none;
}
#locationModal input[type=text] {
width: 216px;
Expand All @@ -289,7 +289,7 @@ p, span, div {
font-family: "Ubuntu Condensed";
font-size: 15px;
outline: 0;
-webkit-app-region: no-drag;
-webkit-app-region: no-drag;
}
#locationModal input[type=checkbox] {
border: 2px solid #222;
Expand All @@ -301,15 +301,15 @@ p, span, div {
background-size: 90%;
background-repeat: no-repeat;
background-position: 50%;
-webkit-app-region: no-drag;
-webkit-app-region: no-drag;
}
#locationModal .measurement {
font-family: "ClimaconsRegular";
font-size: 32px;
}
#locationModal .measurement span {
padding: 0 7px 5px 10px;
-webkit-app-region: no-drag;
-webkit-app-region: no-drag;
}
#locationModal .speed span {
line-height: 35px;
Expand All @@ -318,7 +318,7 @@ p, span, div {
box-sizing: border-box;
height: 41px;
text-align: center;
-webkit-app-region: no-drag;
-webkit-app-region: no-drag;
}
.toggleswitch {
margin-top: 10px;
Expand Down Expand Up @@ -365,34 +365,34 @@ p, span, div {
#locationModal .loader.loading {
font-family: "ClimaconsRegular";
padding-right: 0;
-webkit-app-region: drag;
-webkit-app-region: drag;
}
#locationModal .loader.tick {
outline: 2px solid #333;
background: #222;
-webkit-transition: 150ms ease background;
cursor: pointer;
-webkit-app-region: no-drag;
-webkit-app-region: no-drag;
}
#locationModal .loader.tick:hover {
background: #333;
}
#locationModal a {
text-decoration: none;
color: #ffffff;
-webkit-app-region: no-drag;
-webkit-user-drag: none;
text-decoration: none;
color: #ffffff;
-webkit-app-region: no-drag;
-webkit-user-drag: none;
}
#locationModal a:not([class*="btn"]):hover {
text-decoration: underline;
text-decoration: underline;
}

.color {
font-size: 0;
margin-top: 10px;
display: inline-block;
border: 2px solid #333;
-webkit-app-region: no-drag;
-webkit-app-region: no-drag;
}
.color span {
height: 14px;
Expand Down Expand Up @@ -421,7 +421,7 @@ span[data-color=gradient] {
letter-spacing: 0;
margin-top: 10px;
display: inline-block;
-webkit-app-region: no-drag;
-webkit-app-region: no-drag;
}
.btn:hover {
background: #555;
Expand Down

0 comments on commit 0fe96c7

Please sign in to comment.