Commit 7efcfb67 authored by Pietro Albini's avatar Pietro Albini

Cleanup the website source code

parent 9cdd3380
This diff is collapsed.
/* Start entries From planet.ubuntu.com */
body * {
font-family: Ubuntu,"Ubuntu Beta",UbuntuBeta,"Bitstream Vera Sans","DejaVu Sans",Tahoma,sans-serif !important;
}
#logo > a > span {
/*display: inline;*/
}
h1.pagetitle {
margin:0.35em 0 0.5em;
font-size:2em;
margin: 0.35em 0 0.5em;
font-size: 2em;
}
.page_info {
background: #F7F7F7 url(img/help_grey_hex.png) no-repeat right 50%;
border: 1px solid #F0F0F0;
background: #f7f7f7 url("images/help_grey_hex.png") no-repeat 98% 50%;
border: 1px solid #f0f0f0;
padding: 10px 10px 12px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
margin-bottom: 22px;
background-image:
}
.page_info, .page_info * {
......
This diff is collapsed.
/* IE 6 and below */
#page-border-left-repeat {
padding: 0 0 0 7px;
}
#page-border-right-top {
right: 3.9%;
}
#page-border-left-bottom {
bottom: 18px;
}
#page-border-right-bottom {
bottom: 18px;
right: 3.9%;
}
#page-border-bottom-repeat {
height:30px;
}
.rightheader {
margin-top: -5px;
height: 22px;
}
.rightheader img {
margin-top: 0px;
}
#sfondobarra {
padding-left:5%;
}
#pulsante {
right:-3.8%;
}
#bodyarea {
height: 270px;
}
This diff is collapsed.
// Main function for planet ubuntu-it
function localizeDate () {
var months = new Array(
'gen', 'feb', 'mar', 'apr', 'mag', 'giu',
'lug', 'ago', 'set', 'ott', 'nov', 'dic'
);
var dates = $('span.date-to-fix');
for (var i = 0 ; i < dates.length ; i++) {
var d = dates[i].innerHTML.replace('.',':');
// This add GMT offset to date, fixing localized time
var offset = - ((new Date()).getTimezoneOffset() * 60 * 1000);
var date = new Date(new Date(d).getTime() + offset);
dates[i].innerHTML = date.getDate() + " " + months[date.getMonth()] + " "
+ date.getFullYear();
if (d.indexOf(':') > 0 ) { // date contains time:
minutes = date.getMinutes();
minutes = minutes < 10 ? '0' + minutes : minutes;
dates[i].innerHTML += " alle " + date.getHours() + ":" + minutes;
}
}
}
function main() {
localizeDate ();
accessibility();
}
$(function() {
var offset = $("#contacts").offset();
var topPadding = 30;
$(window).scroll(function() {
if ($(window).scrollTop() > offset.top) {
/*
$("#contacts").stop().animate({
marginTop: $(window).scrollTop() - offset.top + topPadding
});
*/
$("#contacts").stop().addClass('fixed');
} else {
/* $("#contacts").stop().animate({ marginTop: 10 }); */
$("#contacts").stop().removeClass('fixed');
}
});
$('a[href=#top]').click(function(){
$('html, body').animate({scrollTop:0}, 'slow');
return false;
});
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment