Apple iPhone Forum und Community

Normale Version: Zeigt her euren iOS 7 Home/Lockscreen!
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Theme AfterHours
Na da bekommst du ja Super Fusballwetter
Ich muss noch mal was fragen Nod_yes

Bei meinem Widegt laüft der Stunden Zeiger nicht mit. Es sieht also kurz vor 7 so aus wie kurz vor 6. um 7 springt er dann um. Kann man das so programmieren das er z.b jede Virtelstunde etwas weiter geht ?

Und wenn ja wo muss ich da suchen und wie mache ich das Ohmy

RoseRoseRose[attachment=31485]
Das wird definitiv sehr gut! Passend zum Grillen ??
Ich denke die Lösung Mus hier irgendwo sein


/* dont change anything below this line unless you know what you are doing :-) */

var d = new Date();
var hours = d.getHours();
var minutes = d.getMinutes();
var seconds = d.getSeconds();

var acc_x, acc_y;
var deg = 0;
var deg_new = 0;
var deg_set = 0;
var deg_time = 0;
var state = 'default';


function initiate() {

if (hours > 12) hours360 = hours - 12;
else hours360 = hours;

minutesDeg = 6 * minutes;
hoursDeg = 30 * hours360;
secondsDeg = 6 * (seconds + 2);

if (hours < 10) hours = '0' + hours;
if (minutes < 10) minutes = '0' + minutes;


//circles
document.getElementById("minutes-c").childNodes[1].style.webkitTransform = 'rotate(' + minutesDeg + 'deg)';
document.getElementById("hours-c").childNodes[1].style.webkitTransform = 'rotate(' + hoursDeg + 'deg)';
document.getElementById("seconds-c").childNodes[1].style.webkitTransform = 'rotate(' + secondsDeg + 'deg)';
@Oberlix wie hast du die Schrift von den icons im Dock weg bekommen?
@elron20 Bestimmt mit Springtomize 3.
@iNJ3CT3D

Jau. Das stimmt
Besten Dank euch beiden
@Obelix

hoursDeg = 30 * hours360

Da würde ich mal mit dem Wert 30 spielen. So springt er immer um 30° weiter, "von Stunde zu Stunde". Also bei 10° würde jede Stunde gedrittelt werden - falls ich die Codes richtig verstanden habe... Zwinkern
nee das wars nicht. schade, ich hab mal alles hier kopiert

/* dont change anything below this line unless you know what you are doing :-) */

var d = new Date();
var hours = d.getHours();
var minutes = d.getMinutes();
var seconds = d.getSeconds();

var acc_x, acc_y;
var deg = 0;
var deg_new = 0;
var deg_set = 0;
var deg_time = 0;
var state = 'default';


function initiate() {

if (hours > 12) hours360 = hours - 12;
else hours360 = hours;

minutesDeg = 6 * minutes;
hoursDeg = 10 * hours360;
secondsDeg = 6 * (seconds + 2);

if (hours < 10) hours = '0' + hours;
if (minutes < 10) minutes = '0' + minutes;


//circles
document.getElementById("minutes-c").childNodes[1].style.webkitTransform = 'rotate(' + minutesDeg + 'deg)';
document.getElementById("hours-c").childNodes[1].style.webkitTransform = 'rotate(' + hoursDeg + 'deg)';
document.getElementById("seconds-c").childNodes[1].style.webkitTransform = 'rotate(' + secondsDeg + 'deg)';


//center
document.getElementById("am_pm").innerHTML = hours + ':' + minutes;
document.getElementById("day").innerHTML = Day();

date = d.getDate();
month = d.getMonth() + 1;
year = new String(d.getFullYear());

if (date < 10) date = '0' + date;
if (month < 10) month = '0' + month;
year = year.substr(2, 2);

document.getElementById("date").innerHTML = date + '.' + month + '.' + year;

setTimeout(no_animation_delay, 2200); // removes animation delay and lowers current clock animations from 2 seconds to 1
}

function no_animation_delay() {
document.getElementById("main-wrapper").style.webkitTransitionDelay = '0s';
document.getElementById("main-wrapper").style.webkitTransition = 'all 1s ease-in-out';

//console.log(document.getElementById("circles").getElementsByTagName("img").style);

var circles = document.getElementById("circles").getElementsByTagName('img');
for (var i = 0; i < circles.length; i++) {
circles[i].style.webkitTransitionDelay = '0s';
circles[i].style.webkitTransition = 'all 1s ease-in-out';
}

document.getElementById("seconds-c").childNodes[1].style.webkitTransition = 'all 0.3s linear';

setTimeout(update, 500); // starts normal clock updating process
}

function update() {
d = new Date();
hours = d.getHours();
minutes = d.getMinutes();
seconds = d.getSeconds();

if (hours > 12) hours360 = hours - 12;
else hours360 = hours;

minutesDeg = 6 * minutes;
hoursDeg = 30 * hours360;
secondsDeg = 6 * seconds;

if (hours < 10) hours = '0' + hours;
if (minutes < 10) minutes = '0' + minutes;

//circles
document.getElementById("minutes-c").childNodes[1].style.webkitTransform = 'rotate(' + minutesDeg + 'deg)';
document.getElementById("hours-c").childNodes[1].style.webkitTransform = 'rotate(' + hoursDeg + 'deg)';

if (seconds == 0) {
document.getElementById("seconds-c").childNodes[1].style.webkitTransition = 'all 1s ease-in-out';
} else if (seconds == 1) {
document.getElementById("seconds-c").childNodes[1].style.webkitTransition = 'all 0.3s linear';
}

document.getElementById("seconds-c").childNodes[1].style.webkitTransform = 'rotate(' + secondsDeg + 'deg)';

//center
document.getElementById("am_pm").innerHTML = hours + ':' + minutes;
document.getElementById("day").innerHTML = Day();

date = d.getDate();
month = d.getMonth() + 1;
year = new String(d.getFullYear());

if (date < 10) date = '0' + date;
if (month < 10) month = '0' + month;
year = year.substr(2, 2);

document.getElementById("date").innerHTML = date + '.' + month + '.' + year;

//tilt
document.getElementById("main-wrapper").style.webkitTransform = 'rotate(' + rotate() + 'deg)';
//tilt


setTimeout(update, 1000);
}

function Day () {
day = new Array("DIMANCHE","LUNDI","MARDI","MERCREDI","JEUDI","VENDREDI","SAMEDI");
return day[d.getDay()];
}


function rotate (accelerationx, accelerationy) {
deg_time++;
// all the numbers down below represent the sensitivity used for rotation triggers
if (acc_y < 3 && acc_x > -7 && acc_x < 7) {
//normal
deg_new = 0;
state = 'normal';
} else if (acc_x < -6) {
//left
deg_new = 90;
state = 'left';
} else if (acc_x > 6) {
//right
deg_new = -90;
state = 'right';
} else if (acc_y > 4) {
//upside
deg_new = -180;
state = 'upside';
}

if (deg != deg_new) {
difference = deg_time - deg_set;

if (difference >= 2 || deg_set == 0) {
deg_set = deg_time;
deg = deg_new;
} else {
//animation postponed
}
}

//if decision wasnt made, default or previous deg value will be returned
//console.log(acc_y + ' ' + acc_x + ' ' + state); // used for debugging
return deg;
}
Frag doch Hell oder Oldster... Die brauchen bestimmt nur 5 Sekunden für die Lösung [emoji106][emoji106]
Die sind doch auch beschäftigt. Aber ich stelle es noch mal itheming rein.
Schon aber da sind sie immer da wenn was ist [emoji106]
@Boehse Tina

Das stimmt. Hell hat mir die Tage sehr viel geholfen,ProstProstProstProstProst
Ich hätte da noch eine Frage
Kann mir jemand sagen wie ich mit Hilfe der info.plist in meinem theme die Schrift der Dock icons verändern kann?! Irgendwie funktioniert meine seit dem Update nicht mehr
Zu meinen Problem. Meister Hell hat den Fehler gefunden und das Widget für mich umprogrammiert. Vielen dank an dieser Stelle.
@Oberlix das war mir klar ???
[attachment=31487]

Hätte unten den Kalender in Deutsch, find aber mit iFfile nix.
@Papa Maik

Pack mal in Dropbox und schick mir den Link