Le conseil de Zadz : En vous inscrivant, vous aurez beaucoup moins de publicités et un accès à tous les tutoriels!

Combiner deux WIDGETS sur springboard

Problèmes liés à la décoration de votre iPhone

Modérateur: Mode&Rateurs

Règles du forum
[!] Si vous considérez votre problème comme réglé, merci de le signaler, un modérateur indiquera par une coche verte Image que votre problème est résolu.

Combiner deux WIDGETS sur springboard

Messagepar ellenador57 » Mer 03 Août 2011 22:36

Bonsoir à tous et à toutes,

Je possède un Iphone 4 ios 4.3.3 jailbreaké avec jailbreakme 3.0. J'ai installé un thème prestige HD puis le widget "PrestigeWidget-WTD SB.theme". Celui-ci comprend la météo le calendrier l'heure. J'aimerais rajouter en plus de ce widget le Widget "PrestigeMeteo2". Il y aurait donc deux météos sur le springboard, ce que je veux.
Cependant j'active ses deux thèmes dans winterboard mais c'est toujours le thème "PrestigeWidget-WTD SB.theme"qui prend le pas sur l'autre.
N'y-a-t'il pas moyens de combiner les deux?
Merci!
Iphone 4 Firmware 4.3.3 jailbreakme 3.0 Th??me PRESTIGE HD
ellenador57
 
Message(s) : 8
Inscrit(e) le : Mer 03 Août 2011 22:29

Re: Combiner deux WIDGETS sur springboard

Messagepar Ramses » Jeu 04 Août 2011 09:37

Si tu peux, postes tes widgets, pour voir
Image
Avatar de l’utilisateur
Ramses
 
Message(s) : 322
Inscrit(e) le : Sam 03 Mai 2008 12:37

Re: Combiner deux WIDGETS sur springboard

Messagepar ellenador57 » Jeu 04 Août 2011 20:16

Merci pour la réponse voici le premier HTML:
Code : Tout sélectionner
<?xml version="1.0" encoding="UTF-8"?>



<html><head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<meta http-equiv="refresh" content="900; url=Wallpaper.html"/>

</head>



<!---------------------------------------------------------------------------------------------------------------->

<!-- Option menu -->

<script>

   var EnableClock    =   false;

   var EnableCalendar   =   false;

   var EnableWeather   =   true;

</script>



<!---------------------------------------------------------------------------------------------------------------->

<!-- Style section -->

<style>

#Layer{width: 322px; height: 482px; position: absolute; top: -1px; right: 0px; down: 0px; left: -1px;}

.stretch {width:100%; height:100%;}



body {

   background-color: none;

   margin: 0;

   height: 481px;

   width: 320px;

}



td#Backgrounds

{

   margin-top: -1px;

   position: absolute; top: 0px; right: 0px; down: 0px; left: -1px;

}



SPAN#clock

{

   font-family: Helvetica;

   font-weight: lighter;

   color: #999999;

   font-size: 30px;

   // text-shadow: -1px -1px #666, 1px 1px #fff;

   opacity: 1;

}



SPAN#ampm

{

   font-family: Helvetica;

   font-weight: bold;

   display: normal;

   color: #ad913b;

   text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.7);

   /*text-shadow: #FFFFFF 0px 1px 0px;*/

   font-size: 16px;

   text-align: right;

   display:none;

}



TD#date

{

   font-family: Helvetica;

   font-weight: 900;

   text-align: center;

   color:#ad913b;

   text-shadow: 1px 1px 1px #000;

   font-size: 18px;

   display:none;

}



TD#vmonth

{

   float:top;

   font-family: Helvetica;

   font-weight: bold;

   text-align: center;

   color:#999999;

   font-size: 20px;

   text-transform: uppercase;

   // text-shadow: -1px -1px #666, 1px 1px #FFF;

   opacity: 1;

}



TD#vweek

{

   float:top;

   font-family: Helvetica;

   font-weight: 400;

   text-align: center;

   color:#silver;

   text-shadow: 1px 1px 1px #000;

   font-size: 14px;

   display:none;

}



TD#vyear

{

   float:top;

   font-family: Helvetica;

   font-weight: 400;

   text-align: center;

   color:#silver;

   text-shadow: 1px 1px 1px #000;

   font-size: 15px;

   display:none;

}



#WeatherContainer{

    background-color: rgba(0,0,0,0);

}



#TextContainer{

    font-size:18px;

    font-family: Helvetica;

    font-weight: bold;

    color:black;

}



#city{

   position: absolute; top: 280px; right: 0px; down: 0px; left: -110px; width: 320px; height: 461px;

   text-align: center;

   font-family: Helvetica;

   font-size: 14px;

   font-weight: 400;

   color: #999999; display: none;

   // text-shadow: 1px 1px 1px #000;

}



#temp{

   position: absolute; top: 30px; right: 0px; down: 0px; left: -3px; width: 320px; height: 461px;

   text-align: right;

   font-family: Helvetica;

   font-size: 19px;

   font-weight: 900;

   color: #999999; display: none;

   // text-shadow: 1px 1px 1px #000;

   text-transform: uppercase;

}



#desc{

   position: absolute; top: 434px; right: 0px; down: 0px; left: 14px; width: 320px; height: 461px;

   text-align: left;

   font-family: Helvetica;

   font-weight: normal;

   font-size: 14px;

   color: transparent;

   text-shadow: none;

}



#TextContainer p{

   margin:0;

}



#weatherIcon{

   position: absolute; top: 0px; right: 0px; down: 0px; left: 0px; width: 115px; height: 461px;

   height:130;

   width:130;

}



</style>

<!---------------------------------------------------------------------------------------------------------------->

<!-- Display Wallpaper and Overlay here -->

<div id="Layer"><img src="Wallpaper.png" class="stretch"/></div>

<!---------------------------------------------------------------------------------------------------------------->

<!-- Direct the script to the general folder where the weather icons are located -->

<base href="Weather/"/>

<!---------------------------------------------------------------------------------------------------------------->

<!-- Clock and Date Script -->

<script type="text/javascript">



function init ( )

{

   timeDisplay = document.createTextNode ( "" );

   document.getElementById("clock").appendChild ( timeDisplay );

}



function updateClock ( )

{

    var currentHours_name_array = new Array ("00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "00")

   var currentMinutes_name_array = new Array ("00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28","29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "00")

   var currentTime = new Date ( );

   var currentHours = currentTime.getHours ( );

   var currentMinutes = currentTime.getMinutes ( );

   var currentSeconds = currentTime.getSeconds ( );



<!-- Pad the minutes and seconds with leading zeros, if required -->

    currentHours = ( currentHours < 0 ) ? currentHours + 24 : currentHours;

    currentMinutes = ( currentMinutes < 0 ) ? currentMinutes + 60 : currentMinutes;

    currentSeconds = ( currentSeconds < 0 ) ? currentSeconds + 60 : currentSeconds;



<!-- Defines either "AM" or "PM" as appropriate -->

   var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";



<!-- Convert hours component of "12" to "24" -->

    // currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;



<!-- Convert hours component from "0" to "12 at Midnight-->

   // currentHours = ( currentHours == 0 ) ? 12 : currentHours;



<!-- Compose the string for display-->

     var currentTimeString = currentHours_name_array[currentHours] + ":" + currentMinutes_name_array[currentMinutes];



   <!-- Update the time display-->

     if (EnableClock == true){

     document.getElementById("clock").firstChild.nodeValue = currentTimeString;

      }

}



function init2 ( )

{

   timeDisplay = document.createTextNode ( "" );

   document.getElementById("ampm").appendChild ( timeDisplay );

}



function amPm ( )

{

   var currentTime = new Date ( );

   var currentHours = currentTime.getHours ( );



<!-- Defines either "AM" or "PM" as appropriate -->

   var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";



<!-- Convert hours component of "12" to "24" -->

   currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;



<!-- Convert hours component from "0" to "12 at Midnight-->

   currentHours = ( currentHours == 0 ) ? 12 : currentHours;



<!-- Compose the string for display-->

   var currentTimeString = timeOfDay;



<!-- Update the string for display of AM/PM-->

    if (EnableClock == true){

   document.getElementById("ampm").firstChild.nodeValue = currentTimeString;

    }

}



function calendarDate ( )

{

   var this_weekday_name_array = new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi")

   var this_month_name_array = new Array("Janvier","Fevrier","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novembre","Decembre")

   var this_date_timestamp = new Date()

   var this_weekday = this_date_timestamp.getDay()

   var this_date = this_date_timestamp.getDate()

   var this_month = this_date_timestamp.getMonth()

   var this_year = this_date_timestamp.getYear()



   if (this_year < 1000)

      this_year+= 1900;

   if (this_year==101)

      this_year=2001;



   var month = this_date_timestamp.getMonth();



   if (EnableCalendar == true){

      document.getElementById("calendar").firstChild.nodeValue = this_date

      document.getElementById("vmonth").firstChild.nodeValue = this_weekday_name_array[this_weekday] + " " + this_date + " " + this_month_name_array[this_month] + " " + this_year

      document.getElementById("vweek").firstChild.nodeValue = this_weekday_name_array[this_weekday]

      document.getElementById("vyear").firstChild.nodeValue = this_year

   }

}



<!---------------------------------------------------------------------------------------------------------------->

<!-- Weather Script -->



   var locale = "FRXX0064"

   var isCelsius = true

   var useRealFeel = false

   var enableWallpaper = true;

   var enableLockScreen = true;

   var stylesheetWall = 'mini'

   var stylesheetLock = 'mini'

   var stylesheet = 'mini'

   var iconSetWall = 'stardock'

   var iconExtWall = ".png"

   var iconSetLock = 'stardock'

   var iconExtLock = '.png'

   var source = 'yahooWeather'

   var updateInterval = 30

   var postal;

   var demoMode = false;

   var enabled;



if (location.href.indexOf("LockBackground")  == -1){



   stylesheet = stylesheetWall;

   iconSet = iconSetWall;

   iconExt = iconExtWall;

   enabled = enableWallpaper;

}else{

   stylesheet = stylesheetLock;

   iconSet = iconSetLock;

   iconExt = iconExtLock;

   enabled = enableLockScreen;

}





if(enabled == true){

   if(iconSet == null || iconSet == 'null' || iconSet == ""){

      var iconSet = stylesheet;

}



var headID = document.getElementsByTagName("head")[0];

var styleNode = document.createElement('link');

styleNode.type = 'text/css';

styleNode.rel = 'stylesheet';

styleNode.href = 'Stylesheets/'+stylesheet+'.css';

headID.appendChild(styleNode);



var scriptNode = document.createElement('script');

scriptNode.type = 'text/javascript';

scriptNode.src = 'Sources/'+source+'.js';

headID.appendChild(scriptNode);

}



function onLoad(){

   if (EnableWeather == true){

   if (demoMode == true){

      document.getElementById("weatherIcon").src="Icon Sets/"+iconSet+"/"+"cloudy1"+iconExt;

      document.getElementById("city").innerText="Somewhere";

      document.getElementById("desc").innerText="Partly Cloudy";

      document.getElementById("temp").innerText="100º";

   }else{

      document.getElementById("weatherIcon").src="Icon Sets/"+iconSet+"/"+"dunno"+iconExt;

      validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal)

   }

   }else{

      document.getElementById("weatherIcon").src="Icon Sets/"+iconSet+"/"+"blank"+iconExt;

      document.getElementById("city").innerText="";

      document.getElementById("desc").innerText="";

      document.getElementById("temp").innerText="";



   }

}





function convertTemp(num)

{

   if (isCelsius == true)

      return Math.round ((num - 32) * 5 / 9);

   else

      return num;

}





function setPostal(obj){

   if (obj.error == false){

      if(obj.cities.length > 0){

         postal = escape(obj.cities[0].zip).replace(/^%u/g, "%")

         document.getElementById("WeatherContainer").className = "";

         weatherRefresherTemp();

      }else{

         document.getElementById("city").innerText="Not Found";

         document.getElementById("WeatherContainer").className = "errorLocaleNotFound";

      }

   }else{

      document.getElementById("city").innerText=obj.errorString;

      document.getElementById("WeatherContainer").className = "errorLocaleValidate";

      setTimeout('validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal)', Math.round(1000*60*5));

   }

}





function dealWithWeather(obj){

   if (obj.error == false){

      document.getElementById("city").innerText=obj.city;

      document.getElementById("desc").innerText=obj.description.toLowerCase();

      if(useRealFeel == true){

         tempValue = convertTemp(obj.realFeel);

      }else{

         tempValue = convertTemp(obj.temp)

      }

      document.getElementById("temp").innerHTML=tempValue+ "&#176;";

      document.getElementById("weatherIcon").src="Icon Sets/"+iconSet+"/"+MiniIcons[obj.icon]+iconExt;

      document.getElementById("WeatherContainer").className = "";

   }else{

      document.getElementById("WeatherContainer").className = "errorWeatherDataFetch";

   }

}





function weatherRefresherTemp(){

   fetchWeatherData(dealWithWeather,postal);

   setTimeout(weatherRefresherTemp, 60*1000*updateInterval);

}





var MiniIcons =

[

   "0",             //0   tornado

   "1",             //1   tropical storm

   "2",             //2   hurricane

   "3",             //3   severe thunderstorms

   "4",             //4   thunderstorms

   "5",             //5   mixed rain and snow

   "6",             //6   mixed rain and sleet

   "7",             //7   mixed snow and sleet

   "8",             //8   freezing drizzle

   "9",             //9   drizzle

   "10",             //10   freezing rain

   "11",             //11   showers

   "12",             //12   showers

   "13",             //13   snow flurries

   "14",             //14   light snow showers

   "15",             //15   blowing snow

   "16",             //16   snow

   "17",             //17   hail

   "18",             //18   sleet

   "19",             //19   dust

   "20",             //20   foggy

   "21",             //21   haze

   "22",             //22   smoky

   "23",             //23   blustery

   "24",             //24   windy

   "25",             //25   cold

   "26",             //26   cloudy

   "27",            //27   mostly cloudy (night)

   "28",             //28   mostly cloudy (day)

   "29",            //29   partly cloudy (night)

   "30",             //30   partly cloudy (day)

   "31",            //31   clear (night)

   "32",             //32   sunny

   "33",             //33   fair (night)

   "34",             //34   fair (day)

   "35",             //35   mixed rain and hail

   "36",             //36   hot

   "37",             //37   isolated thunderstorms

   "38",             //38   scattered thunderstorms

   "39",             //39   scattered thunderstorms

   "40",             //40   scattered showers

   "41",             //41   heavy snow

   "42",             //42   scattered snow showers

   "43",             //43   heavy snow

   "44",             //44   partly cloudy

   "45",             //45   thundershowers

   "46",             //46   snow showers

   "47",             //47   isolated thundershowers

   "dunno",      //3200 not available

]





function constructError (string)

{

   return {error:true, errorString:string};

}





function findChild (element, nodeName)

{

   var child;

   for (child = element.firstChild; child != null; child = child.nextSibling)

   {

      if (child.nodeName == nodeName)

         return child;

   }

   return null;

}





function fetchWeatherData (callback, zip)

{

   url="http://weather.yahooapis.com/forecastrss?u=f&p=" //u=Farenheit, because accuWeather sucks

   var xml_request = new XMLHttpRequest();

   xml_request.onload = function(e) {xml_loaded(e, xml_request, callback);}

   xml_request.overrideMimeType("text/xml");

   xml_request.open("GET", url+zip);

   xml_request.setRequestHeader("Cache-Control", "no-cache");

   xml_request.send(null);

   return xml_request;

}





function xml_loaded (event, request, callback)

{

   if (request.responseXML)

   {

      var obj = {error:false, errorString:null};

      var effectiveRoot = findChild(findChild(request.responseXML, "rss"), "channel");

      obj.city = findChild(effectiveRoot, "yweather:location").getAttribute("city");

      obj.realFeel = findChild(effectiveRoot, "yweather:wind").getAttribute("chill");//Only accounts for windChill

      conditionTag = findChild(findChild(effectiveRoot, "item"), "yweather:condition");

      obj.temp = conditionTag.getAttribute("temp");

      obj.icon = conditionTag.getAttribute("code");

      obj.description = conditionTag.getAttribute("text");

      callback (obj);

   }else{

      callback ({error:true, errorString:"XML request failed. no responseXML"});

   }

}



function validateWeatherLocation (location, callback)

{

   var obj = {error:false, errorString:null, cities: new Array};

   obj.cities[0] = {zip: location}; //Not very clever, are we?

   callback (obj);

}



</script>





<!---------------------------------------------------------------------------------------------------------------->

<!-- Display All - Weather-Clock-Date  -->

<body bgcolor="Transparent" onload="onLoad()">

<div>



<div id="WeatherContainer"> <div id="TextContainer"> <p id="city">ZooStation</p> <p id="temp">32&#176;</p> <p id="desc">cloudy</p> </div>

<img id="weatherIcon" src=""/> </div>



<table style="position: absolute;top: 30px; left: 0px; width: 320px; height: 461px;">

<tr align="center" valign="top"  border="0" cellpadding="0">

    <td height="12" valign="top" margin-left="20">

    <span id="clock">

   <script language="JavaScript">updateClock(); setInterval('updateClock()', 1000 )</script></span>

    </td>

</tr>

</table>



<table style="position: absolute;top: 130px; left: -25px; width: 150px; height: 461px;">

<tr align="center" valign="top"  border="0" cellpadding="0">

    <td height="12" valign="top" margin-left="20" >

<span id="ampm">

   <script language="JavaScript">amPm(); setInterval('amPm()', 1000 )</script>

    </span>

    </td>

</tr></table>



<table style="position: absolute;top: 175px; left: -110px; width: 320px; height: 480px;">

<td id="vweek" width="254" height="12" align="center" valign="top" margin-left="20">

<span id="vdate" valign="top">

<script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script></font>

</span>

</td>

</tr>

</table>



<table style="position: absolute; top: 195px; left: -110px; width: 320px; height: 480px;">

<tr>

<td id=date valign="top" TD STYLE="text-align: center" valign="top" border="0" cellpadding="0">

<span id="calendar">

<script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script>

</span>

</tr>

</table>



<table style="position: absolute;top: 105px; left: 0px; width: 320px; height: 480px;">

<td id="vmonth" width="254" height="12" align="center" valign="top" margin-left="20">

<span id="vdate" valign="top">

<script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script></font>

</span>

</td>

</tr>

</table>



<table style="position: absolute;top: 235px; left: -110px; width: 320px; height: 480px;">

<td id="vyear" width="254" height="12" align="center" valign="top" margin-left="20">

<span id="vdate" valign="top">

<script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script></font>

</span>

</td>

</tr>

</table>

</div>



</body>

</html>
Iphone 4 Firmware 4.3.3 jailbreakme 3.0 Th??me PRESTIGE HD
ellenador57
 
Message(s) : 8
Inscrit(e) le : Mer 03 Août 2011 22:29

Re: Combiner deux WIDGETS sur springboard

Messagepar ellenador57 » Jeu 04 Août 2011 20:18

pour le deuxième thème j'ai le HTML là:
Code : Tout sélectionner
<html>
<head>
<title>weather</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" href="UserOptions/UserStyles.css" type="text/css">
<script src="UserOptions/UserConfig.js" type="text/javascript" charset="utf-8"></script>
<Script Language='Javascript'>
<!-- No stealing code ;) -->
<!--
document.write(unescape('%3C%73%74%79%6C%65%20%74%79%70%65%3D%22%74%65%78%74%2F%63%73%73%22%20%6D%65%64%69%61%3D%22%73%63%72%65%65%6E%22%3E%0A%2A%20%7B%6D%61%72%67%69%6E%3A%30%3B%70%61%64%64%69%6E%67%3A%30%3B%7D%0A%62%6F%64%79%20%7B%66%6F%6E%74%2D%66%61%6D%69%6C%79%3A%20%48%65%6C%76%65%74%69%63%61%3B%20%66%6F%6E%74%2D%73%69%7A%65%3A%20%31%32%70%78%3B%20%63%6F%6C%6F%72%3A%20%23%39%36%39%34%38%41%3B%20%74%65%78%74%2D%73%68%61%64%6F%77%3A%20%30%20%2D%32%70%78%20%31%70%78%20%72%67%62%61%28%32%31%2C%32%30%2C%31%38%2C%30%2E%36%29%3B%7D%0A%23%63%6F%6E%74%61%69%6E%65%72%20%7B%77%69%64%74%68%3A%20%33%32%30%70%78%3B%68%65%69%67%68%74%3A%20%34%38%30%70%78%3B%62%61%63%6B%67%72%6F%75%6E%64%2D%73%69%7A%65%3A%20%33%32%30%70%78%20%34%38%30%70%78%3B%2D%77%65%62%6B%69%74%2D%70%65%72%73%70%65%63%74%69%76%65%3A%20%35%30%30%3B%2D%77%65%62%6B%69%74%2D%70%65%72%73%70%65%63%74%69%76%65%2D%6F%72%69%67%69%6E%3A%20%35%30%25%20%32%34%30%70%78%3B%7D%0A%23%73%74%61%67%65%20%7B%77%69%64%74%68%3A%31%30%30%25%3B%68%65%69%67%68%74%3A%31%30%30%25%3B%62%61%63%6B%67%72%6F%75%6E%64%2D%69%6D%61%67%65%3A%20%75%72%6C%28%50%72%69%76%61%74%65%2F%57%61%6C%6C%70%61%70%65%72%2D%48%44%2E%70%6E%67%29%3B%62%61%63%6B%67%72%6F%75%6E%64%2D%73%69%7A%65%3A%33%32%30%70%78%20%34%38%30%70%78%3B%62%61%63%6B%67%72%6F%75%6E%64%2D%72%65%70%65%61%74%3A%6E%6F%2D%72%65%70%65%61%74%3B%7D%0A%3C%2F%73%74%79%6C%65%3E%0A%3C%2F%68%65%61%64%3E%0A%3C%2F%73%63%72%69%70%74%3E%0A%3C%73%63%72%69%70%74%20%74%79%70%65%3D%22%74%65%78%74%2F%6A%61%76%61%73%63%72%69%70%74%22%3E%0A%76%61%72%20%73%6F%75%72%63%65%20%3D%20%27%79%61%68%6F%6F%57%65%61%74%68%65%72%27%0A%76%61%72%09%65%6E%61%62%6C%65%64%20%3D%20%74%72%75%65%3B%0A%76%61%72%20%70%6F%73%74%61%6C%3B%0A%76%61%72%20%65%6E%61%62%6C%65%64%3B%0A%0A%66%75%6E%63%74%69%6F%6E%20%6F%6E%4C%6F%61%64%28%29%7B%0A%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%63%6C%6F%63%6B%22%29%2E%73%74%79%6C%65%2E%64%69%73%70%6C%61%79%20%3D%20%22%62%6C%6F%63%6B%22%3B%0A%09%75%70%64%61%74%65%43%6C%6F%63%6B%28%29%3B%0A%09%75%70%64%61%74%65%43%61%6C%65%6E%64%61%72%42%61%72%28%29%3B%0A%09%73%65%74%49%6E%74%65%72%76%61%6C%28%22%75%70%64%61%74%65%43%6C%6F%63%6B%28%29%3B%20%75%70%64%61%74%65%43%61%6C%65%6E%64%61%72%42%61%72%28%29%3B%22%2C%20%22%31%30%30%30%22%29%3B%0A%09%69%66%20%28%65%6E%61%62%6C%65%64%20%3D%3D%20%74%72%75%65%29%7B%20%0A%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%77%65%61%74%68%65%72%49%63%6F%6E%22%29%2E%73%72%63%3D%22%50%72%69%76%61%74%65%2F%57%65%61%74%68%65%72%49%63%6F%6E%73%2F%22%2B%22%64%75%6E%6E%6F%22%2B%22%2E%70%6E%67%22%3B%0A%09%76%61%6C%69%64%61%74%65%57%65%61%74%68%65%72%4C%6F%63%61%74%69%6F%6E%28%65%73%63%61%70%65%28%6C%6F%63%61%6C%65%29%2E%72%65%70%6C%61%63%65%28%2F%5E%25%75%2F%67%2C%20%22%25%22%29%2C%20%73%65%74%50%6F%73%74%61%6C%29%0A%09%7D%65%6C%73%65%7B%0A%09%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%73%42%79%54%61%67%4E%61%6D%65%28%22%62%6F%64%79%22%29%5B%30%5D%2E%69%6E%6E%65%72%54%65%78%74%3D%27%27%3B%0A%09%7D%0A%7D%0A%0A%66%75%6E%63%74%69%6F%6E%20%75%70%64%61%74%65%43%6C%6F%63%6B%28%29%20%7B%0A%09%09%09%76%61%72%20%74%68%65%44%61%74%65%20%3D%20%6E%65%77%20%44%61%74%65%28%29%3B%0A%09%09%09%76%61%72%20%63%75%72%72%65%6E%74%48%6F%75%72%73%20%3D%20%74%68%65%44%61%74%65%2E%67%65%74%48%6F%75%72%73%28%29%3B%0A%09%09%09%69%66%20%28%74%77%65%6E%74%79%46%6F%75%72%48%6F%75%72%54%69%6D%65%20%3D%3D%20%66%61%6C%73%65%29%20%7B%0A%09%09%09%09%69%66%20%28%63%75%72%72%65%6E%74%48%6F%75%72%73%20%3E%20%31%32%29%20%7B%63%75%72%72%65%6E%74%48%6F%75%72%73%20%3D%20%63%75%72%72%65%6E%74%48%6F%75%72%73%20%2D%20%31%32%7D%3B%0A%09%09%09%09%69%66%20%28%63%75%72%72%65%6E%74%48%6F%75%72%73%20%3D%3D%20%22%30%22%29%20%7B%0A%09%09%09%09%09%63%75%72%72%65%6E%74%48%6F%75%72%73%20%3D%20%22%31%32%22%3B%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09%76%61%72%20%63%75%72%72%65%6E%74%4D%69%6E%75%74%65%73%20%3D%20%74%68%65%44%61%74%65%2E%67%65%74%4D%69%6E%75%74%65%73%28%29%3B%0A%09%09%09%69%66%20%28%63%75%72%72%65%6E%74%48%6F%75%72%73%20%3C%20%31%30%29%20%7B%63%75%72%72%65%6E%74%48%6F%75%72%73%20%3D%20%22%30%22%20%2B%20%63%75%72%72%65%6E%74%48%6F%75%72%73%7D%3B%0A%09%09%09%69%66%20%28%63%75%72%72%65%6E%74%4D%69%6E%75%74%65%73%20%3C%20%31%30%29%20%7B%63%75%72%72%65%6E%74%4D%69%6E%75%74%65%73%20%3D%20%22%30%22%20%2B%20%63%75%72%72%65%6E%74%4D%69%6E%75%74%65%73%7D%3B%0A%09%09%09%76%61%72%20%66%6F%72%6D%61%74%74%65%64%4D%69%6E%75%74%65%73%20%3D%20%53%74%72%69%6E%67%28%63%75%72%72%65%6E%74%4D%69%6E%75%74%65%73%29%3B%0A%09%09%09%76%61%72%20%66%6F%72%6D%61%74%74%65%64%48%6F%75%72%73%20%3D%20%53%74%72%69%6E%67%28%63%75%72%72%65%6E%74%48%6F%75%72%73%29%3B%0A%09%09%09%66%6F%72%6D%61%74%74%65%64%4D%69%6E%75%74%65%73%20%3D%20%66%6F%72%6D%61%74%74%65%64%4D%69%6E%75%74%65%73%2E%73%70%6C%69%74%28%22%22%29%3B%0A%09%09%09%66%6F%72%6D%61%74%74%65%64%48%6F%75%72%73%20%3D%20%66%6F%72%6D%61%74%74%65%64%48%6F%75%72%73%2E%73%70%6C%69%74%28%22%22%29%3B%0A%09%09%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%68%6F%75%72%73%22%29%2E%69%6E%6E%65%72%48%54%4D%4C%20%3D%20%22%3C%73%70%61%6E%3E%3C%2F%73%70%61%6E%3E%22%20%2B%20%66%6F%72%6D%61%74%74%65%64%48%6F%75%72%73%5B%30%5D%20%2B%20%22%20%22%20%2B%20%66%6F%72%6D%61%74%74%65%64%48%6F%75%72%73%5B%31%5D%3B%0A%09%09%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%6D%69%6E%75%74%65%73%22%29%2E%69%6E%6E%65%72%48%54%4D%4C%20%3D%20%22%3C%73%70%61%6E%3E%3C%2F%73%70%61%6E%3E%22%20%2B%20%66%6F%72%6D%61%74%74%65%64%4D%69%6E%75%74%65%73%5B%30%5D%20%2B%20%22%20%22%20%2B%20%66%6F%72%6D%61%74%74%65%64%4D%69%6E%75%74%65%73%5B%31%5D%3B%09%0A%7D%0A%0A%66%75%6E%63%74%69%6F%6E%20%63%6F%6E%76%65%72%74%54%65%6D%70%28%6E%75%6D%29%0A%7B%0A%09%69%66%20%28%69%73%43%65%6C%73%69%75%73%20%3D%3D%20%74%72%75%65%29%0A%09%09%72%65%74%75%72%6E%20%4D%61%74%68%2E%72%6F%75%6E%64%20%28%28%6E%75%6D%20%2D%20%33%32%29%20%2A%20%35%20%2F%20%39%29%3B%0A%09%65%6C%73%65%0A%09%09%72%65%74%75%72%6E%20%6E%75%6D%3B%0A%7D%0A%66%75%6E%63%74%69%6F%6E%20%73%65%74%50%6F%73%74%61%6C%28%6F%62%6A%29%7B%0A%09%69%66%20%28%6F%62%6A%2E%65%72%72%6F%72%20%3D%3D%20%66%61%6C%73%65%29%7B%0A%09%09%69%66%28%6F%62%6A%2E%63%69%74%69%65%73%2E%6C%65%6E%67%74%68%20%3E%20%30%29%7B%0A%09%09%09%70%6F%73%74%61%6C%20%3D%20%65%73%63%61%70%65%28%6F%62%6A%2E%63%69%74%69%65%73%5B%30%5D%2E%7A%69%70%29%2E%72%65%70%6C%61%63%65%28%2F%5E%25%75%2F%67%2C%20%22%25%22%29%0A%09%09%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%57%65%61%74%68%65%72%43%6F%6E%74%61%69%6E%65%72%22%29%2E%63%6C%61%73%73%4E%61%6D%65%20%3D%20%22%22%3B%09%0A%09%09%09%77%65%61%74%68%65%72%52%65%66%72%65%73%68%65%72%54%65%6D%70%28%29%3B%0A%09%09%7D%65%6C%73%65%7B%0A%09%09%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%63%69%74%79%22%29%2E%69%6E%6E%65%72%54%65%78%74%3D%22%4E%6F%74%20%46%6F%75%6E%64%22%3B%0A%09%09%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%57%65%61%74%68%65%72%43%6F%6E%74%61%69%6E%65%72%22%29%2E%63%6C%61%73%73%4E%61%6D%65%20%3D%20%22%65%72%72%6F%72%4C%6F%63%61%6C%65%4E%6F%74%46%6F%75%6E%64%22%3B%09%0A%09%09%7D%0A%09%7D%65%6C%73%65%7B%0A%09%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%63%69%74%79%22%29%2E%69%6E%6E%65%72%54%65%78%74%3D%6F%62%6A%2E%65%72%72%6F%72%53%74%72%69%6E%67%3B%0A%09%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%57%65%61%74%68%65%72%43%6F%6E%74%61%69%6E%65%72%22%29%2E%63%6C%61%73%73%4E%61%6D%65%20%3D%20%22%65%72%72%6F%72%4C%6F%63%61%6C%65%56%61%6C%69%64%61%74%65%22%3B%09%0A%09%09%73%65%74%54%69%6D%65%6F%75%74%28%27%76%61%6C%69%64%61%74%65%57%65%61%74%68%65%72%4C%6F%63%61%74%69%6F%6E%28%65%73%63%61%70%65%28%6C%6F%63%61%6C%65%29%2E%72%65%70%6C%61%63%65%28%2F%5E%25%75%2F%67%2C%20%22%25%22%29%2C%20%73%65%74%50%6F%73%74%61%6C%29%27%2C%20%4D%61%74%68%2E%72%6F%75%6E%64%28%31%30%30%30%2A%36%30%2A%35%29%29%3B%0A%09%7D%0A%7D%0A%66%75%6E%63%74%69%6F%6E%20%64%65%61%6C%57%69%74%68%57%65%61%74%68%65%72%28%6F%62%6A%29%7B%0A%09%69%66%20%28%6F%62%6A%2E%65%72%72%6F%72%20%3D%3D%20%66%61%6C%73%65%29%7B%0A%09%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%63%69%74%79%22%29%2E%69%6E%6E%65%72%54%65%78%74%3D%6F%62%6A%2E%63%69%74%79%3B%0A%09%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%64%65%73%63%22%29%2E%69%6E%6E%65%72%54%65%78%74%3D%6F%62%6A%2E%64%65%73%63%72%69%70%74%69%6F%6E%2E%74%6F%4C%6F%77%65%72%43%61%73%65%28%29%3B%0A%09%09%69%66%28%75%73%65%52%65%61%6C%46%65%65%6C%20%3D%3D%20%74%72%75%65%29%7B%0A%09%09%09%74%65%6D%70%56%61%6C%75%65%20%3D%20%63%6F%6E%76%65%72%74%54%65%6D%70%28%6F%62%6A%2E%72%65%61%6C%46%65%65%6C%29%3B%0A%09%09%7D%65%6C%73%65%7B%0A%09%09%09%74%65%6D%70%56%61%6C%75%65%20%3D%20%63%6F%6E%76%65%72%74%54%65%6D%70%28%6F%62%6A%2E%74%65%6D%70%29%0A%09%09%7D%0A%09%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%74%65%6D%70%22%29%2E%69%6E%6E%65%72%48%54%4D%4C%3D%74%65%6D%70%56%61%6C%75%65%2B%20%22%26%23%31%37%36%3B%22%3B%0A%09%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%77%65%61%74%68%65%72%49%63%6F%6E%22%29%2E%73%72%63%3D%22%50%72%69%76%61%74%65%2F%57%65%61%74%68%65%72%49%63%6F%6E%73%2F%22%2B%69%63%6F%6E%73%35%37%5B%6F%62%6A%2E%69%63%6F%6E%5D%2B%22%2E%70%6E%67%22%3B%0A%09%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%57%65%61%74%68%65%72%43%6F%6E%74%61%69%6E%65%72%22%29%2E%63%6C%61%73%73%4E%61%6D%65%20%3D%20%22%22%3B%09%0A%09%7D%65%6C%73%65%7B%0A%09%09%2F%2F%43%6F%75%6C%64%20%62%65%20%64%6F%77%6E%20%74%6F%20%61%6E%79%20%6E%75%6D%62%65%72%20%6F%66%20%74%68%69%6E%67%73%2C%20%77%68%69%63%68%20%69%73%20%75%6E%68%65%6C%70%66%75%6C%2E%2E%2E%0A%09%09%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%22%57%65%61%74%68%65%72%43%6F%6E%74%61%69%6E%65%72%22%29%2E%63%6C%61%73%73%4E%61%6D%65%20%3D%20%22%65%72%72%6F%72%57%65%61%74%68%65%72%44%61%74%61%46%65%74%63%68%22%3B%09%0A%09%7D%0A%7D%0A%66%75%6E%63%74%69%6F%6E%20%77%65%61%74%68%65%72%52%65%66%72%65%73%68%65%72%54%65%6D%70%28%29%7B%0A%09%66%65%74%63%68%57%65%61%74%68%65%72%44%61%74%61%28%64%65%61%6C%57%69%74%68%57%65%61%74%68%65%72%2C%70%6F%73%74%61%6C%29%3B%0A%09%73%65%74%54%69%6D%65%6F%75%74%28%77%65%61%74%68%65%72%52%65%66%72%65%73%68%65%72%54%65%6D%70%2C%20%36%30%2A%31%30%30%30%2A%75%70%64%61%74%65%49%6E%74%65%72%76%61%6C%29%3B%0A%7D%0A%76%61%72%20%69%63%6F%6E%73%35%37%20%3D%0A%5B%0A%09%22%30%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%30%09%74%6F%72%6E%61%64%6F%0A%09%22%31%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%31%09%74%72%6F%70%69%63%61%6C%20%73%74%6F%72%6D%0A%09%22%32%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%32%09%68%75%72%72%69%63%61%6E%65%0A%09%22%33%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%33%09%73%65%76%65%72%65%20%74%68%75%6E%64%65%72%73%74%6F%72%6D%73%0A%09%22%34%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%34%09%74%68%75%6E%64%65%72%73%74%6F%72%6D%73%0A%09%22%35%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%35%09%6D%69%78%65%64%20%72%61%69%6E%20%61%6E%64%20%73%6E%6F%77%0A%09%22%36%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%36%09%6D%69%78%65%64%20%72%61%69%6E%20%61%6E%64%20%73%6C%65%65%74%0A%09%22%37%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%37%09%6D%69%78%65%64%20%73%6E%6F%77%20%61%6E%64%20%73%6C%65%65%74%0A%09%22%38%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%38%09%66%72%65%65%7A%69%6E%67%20%64%72%69%7A%7A%6C%65%0A%09%22%39%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%39%09%64%72%69%7A%7A%6C%65%0A%09%22%31%30%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%31%30%09%66%72%65%65%7A%69%6E%67%20%72%61%69%6E%0A%09%22%31%31%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%31%31%09%73%68%6F%77%65%72%73%0A%09%22%31%32%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%31%32%09%73%68%6F%77%65%72%73%0A%09%22%31%33%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%31%33%09%73%6E%6F%77%20%66%6C%75%72%72%69%65%73%0A%09%22%31%34%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%31%34%09%6C%69%67%68%74%20%73%6E%6F%77%20%73%68%6F%77%65%72%73%0A%09%22%31%35%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%31%35%09%62%6C%6F%77%69%6E%67%20%73%6E%6F%77%0A%09%22%31%36%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%31%36%09%73%6E%6F%77%0A%09%22%31%37%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%31%37%09%68%61%69%6C%0A%09%22%31%38%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%31%38%09%73%6C%65%65%74%0A%09%22%31%39%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%31%39%09%64%75%73%74%0A%09%22%32%30%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%32%30%09%66%6F%67%67%79%0A%09%22%32%31%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%32%31%09%68%61%7A%65%0A%09%22%32%32%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%32%32%09%73%6D%6F%6B%79%0A%09%22%32%33%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%32%33%09%62%6C%75%73%74%65%72%79%0A%09%22%32%34%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%32%34%09%77%69%6E%64%79%0A%09%22%32%35%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%32%35%09%63%6F%6C%64%0A%09%22%32%36%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%32%36%09%63%6C%6F%75%64%79%0A%09%22%32%37%22%2C%09%09%20%20%20%20%20%20%2F%2F%32%37%09%6D%6F%73%74%6C%79%20%63%6C%6F%75%64%79%20%28%6E%69%67%68%74%29%0A%09%22%32%38%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%32%38%09%6D%6F%73%74%6C%79%20%63%6C%6F%75%64%79%20%28%64%61%79%29%0A%09%22%32%39%22%2C%09%09%20%20%20%20%20%20%2F%2F%32%39%09%70%61%72%74%6C%79%20%63%6C%6F%75%64%79%20%28%6E%69%67%68%74%29%0A%09%22%33%30%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%33%30%09%70%61%72%74%6C%79%20%63%6C%6F%75%64%79%20%28%64%61%79%29%0A%09%22%33%31%22%2C%09%09%20%20%20%20%20%20%2F%2F%33%31%09%63%6C%65%61%72%20%28%6E%69%67%68%74%29%0A%09%22%33%32%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%33%32%09%73%75%6E%6E%79%0A%09%22%33%33%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%33%33%09%66%61%69%72%20%28%6E%69%67%68%74%29%0A%09%22%33%34%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%33%34%09%66%61%69%72%20%28%64%61%79%29%0A%09%22%33%35%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%33%35%09%6D%69%78%65%64%20%72%61%69%6E%20%61%6E%64%20%68%61%69%6C%0A%09%22%33%36%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%33%36%09%68%6F%74%0A%09%22%33%37%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%33%37%09%69%73%6F%6C%61%74%65%64%20%74%68%75%6E%64%65%72%73%74%6F%72%6D%73%0A%09%22%33%38%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%33%38%09%73%63%61%74%74%65%72%65%64%20%74%68%75%6E%64%65%72%73%74%6F%72%6D%73%0A%09%22%33%39%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%33%39%09%73%63%61%74%74%65%72%65%64%20%74%68%75%6E%64%65%72%73%74%6F%72%6D%73%0A%09%22%34%30%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%34%30%09%73%63%61%74%74%65%72%65%64%20%73%68%6F%77%65%72%73%0A%09%22%34%31%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%34%31%09%68%65%61%76%79%20%73%6E%6F%77%0A%09%22%34%32%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%34%32%09%73%63%61%74%74%65%72%65%64%20%73%6E%6F%77%20%73%68%6F%77%65%72%73%0A%09%22%34%33%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%34%33%09%68%65%61%76%79%20%73%6E%6F%77%0A%09%22%34%34%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%34%34%09%70%61%72%74%6C%79%20%63%6C%6F%75%64%79%0A%09%22%34%35%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%34%35%09%74%68%75%6E%64%65%72%73%68%6F%77%65%72%73%0A%09%22%34%36%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%34%36%09%73%6E%6F%77%20%73%68%6F%77%65%72%73%0A%09%22%34%37%22%2C%09%09%20%20%20%20%20%20%20%2F%2F%34%37%09%69%73%6F%6C%61%74%65%64%20%74%68%75%6E%64%65%72%73%68%6F%77%65%72%73%0A%09%22%6E%61%22%2C%09%09%20%20%20%2F%2F%33%32%30%30%20%6E%6F%74%20%61%76%61%69%6C%61%62%6C%65%0A%5D%0A%0A%66%75%6E%63%74%69%6F%6E%20%63%6F%6E%73%74%72%75%63%74%45%72%72%6F%72%20%28%73%74%72%69%6E%67%29%0A%7B%0A%09%72%65%74%75%72%6E%20%7B%65%72%72%6F%72%3A%74%72%75%65%2C%20%65%72%72%6F%72%53%74%72%69%6E%67%3A%73%74%72%69%6E%67%7D%3B%0A%7D%0A%66%75%6E%63%74%69%6F%6E%20%66%69%6E%64%43%68%69%6C%64%20%28%65%6C%65%6D%65%6E%74%2C%20%6E%6F%64%65%4E%61%6D%65%29%0A%7B%0A%09%76%61%72%20%63%68%69%6C%64%3B%0A%09%66%6F%72%20%28%63%68%69%6C%64%20%3D%20%65%6C%65%6D%65%6E%74%2E%66%69%72%73%74%43%68%69%6C%64%3B%20%63%68%69%6C%64%20%21%3D%20%6E%75%6C%6C%3B%20%63%68%69%6C%64%20%3D%20%63%68%69%6C%64%2E%6E%65%78%74%53%69%62%6C%69%6E%67%29%0A%09%7B%0A%09%09%69%66%20%28%63%68%69%6C%64%2E%6E%6F%64%65%4E%61%6D%65%20%3D%3D%20%6E%6F%64%65%4E%61%6D%65%29%0A%09%09%09%72%65%74%75%72%6E%20%63%68%69%6C%64%3B%0A%09%7D%0A%09%72%65%74%75%72%6E%20%6E%75%6C%6C%3B%0A%7D%0A%66%75%6E%63%74%69%6F%6E%20%66%65%74%63%68%57%65%61%74%68%65%72%44%61%74%61%20%28%63%61%6C%6C%62%61%63%6B%2C%20%7A%69%70%29%0A%7B%0A%09%75%72%6C%3D%22%68%74%74%70%3A%2F%2F%77%65%61%74%68%65%72%2E%79%61%68%6F%6F%61%70%69%73%2E%63%6F%6D%2F%66%6F%72%65%63%61%73%74%72%73%73%3F%75%3D%66%26%70%3D%22%20%2F%2F%75%3D%46%61%72%65%6E%68%65%69%74%2C%20%62%65%63%61%75%73%65%20%61%63%63%75%57%65%61%74%68%65%72%20%73%75%63%6B%73%0A%09%76%61%72%20%78%6D%6C%5F%72%65%71%75%65%73%74%20%3D%20%6E%65%77%20%58%4D%4C%48%74%74%70%52%65%71%75%65%73%74%28%29%3B%0A%09%78%6D%6C%5F%72%65%71%75%65%73%74%2E%6F%6E%6C%6F%61%64%20%3D%20%66%75%6E%63%74%69%6F%6E%28%65%29%20%7B%78%6D%6C%5F%6C%6F%61%64%65%64%28%65%2C%20%78%6D%6C%5F%72%65%71%75%65%73%74%2C%20%63%61%6C%6C%62%61%63%6B%29%3B%7D%0A%09%78%6D%6C%5F%72%65%71%75%65%73%74%2E%6F%76%65%72%72%69%64%65%4D%69%6D%65%54%79%70%65%28%22%74%65%78%74%2F%78%6D%6C%22%29%3B%0A%09%78%6D%6C%5F%72%65%71%75%65%73%74%2E%6F%70%65%6E%28%22%47%45%54%22%2C%20%75%72%6C%2B%7A%69%70%29%3B%0A%09%78%6D%6C%5F%72%65%71%75%65%73%74%2E%73%65%74%52%65%71%75%65%73%74%48%65%61%64%65%72%28%22%43%61%63%68%65%2D%43%6F%6E%74%72%6F%6C%22%2C%20%22%6E%6F%2D%63%61%63%68%65%22%29%3B%0A%09%78%6D%6C%5F%72%65%71%75%65%73%74%2E%73%65%6E%64%28%6E%75%6C%6C%29%3B%20%0A%09%72%65%74%75%72%6E%20%78%6D%6C%5F%72%65%71%75%65%73%74%3B%0A%7D%0A%66%75%6E%63%74%69%6F%6E%20%78%6D%6C%5F%6C%6F%61%64%65%64%20%28%65%76%65%6E%74%2C%20%72%65%71%75%65%73%74%2C%20%63%61%6C%6C%62%61%63%6B%29%0A%7B%0A%09%69%66%20%28%72%65%71%75%65%73%74%2E%72%65%73%70%6F%6E%73%65%58%4D%4C%29%0A%09%7B%0A%09%09%76%61%72%20%6F%62%6A%20%3D%20%7B%65%72%72%6F%72%3A%66%61%6C%73%65%2C%20%65%72%72%6F%72%53%74%72%69%6E%67%3A%6E%75%6C%6C%7D%3B%0A%09%09%76%61%72%20%65%66%66%65%63%74%69%76%65%52%6F%6F%74%20%3D%20%66%69%6E%64%43%68%69%6C%64%28%66%69%6E%64%43%68%69%6C%64%28%72%65%71%75%65%73%74%2E%72%65%73%70%6F%6E%73%65%58%4D%4C%2C%20%22%72%73%73%22%29%2C%20%22%63%68%61%6E%6E%65%6C%22%29%3B%0A%09%09%6F%62%6A%2E%63%69%74%79%20%3D%20%66%69%6E%64%43%68%69%6C%64%28%65%66%66%65%63%74%69%76%65%52%6F%6F%74%2C%20%22%79%77%65%61%74%68%65%72%3A%6C%6F%63%61%74%69%6F%6E%22%29%2E%67%65%74%41%74%74%72%69%62%75%74%65%28%22%63%69%74%79%22%29%3B%0A%09%09%6F%62%6A%2E%72%65%61%6C%46%65%65%6C%20%3D%20%66%69%6E%64%43%68%69%6C%64%28%65%66%66%65%63%74%69%76%65%52%6F%6F%74%2C%20%22%79%77%65%61%74%68%65%72%3A%77%69%6E%64%22%29%2E%67%65%74%41%74%74%72%69%62%75%74%65%28%22%63%68%69%6C%6C%22%29%3B%2F%2F%4F%6E%6C%79%20%61%63%63%6F%75%6E%74%73%20%66%6F%72%20%77%69%6E%64%43%68%69%6C%6C%0A%09%09%63%6F%6E%64%69%74%69%6F%6E%54%61%67%20%3D%20%66%69%6E%64%43%68%69%6C%64%28%66%69%6E%64%43%68%69%6C%64%28%65%66%66%65%63%74%69%76%65%52%6F%6F%74%2C%20%22%69%74%65%6D%22%29%2C%20%22%79%77%65%61%74%68%65%72%3A%63%6F%6E%64%69%74%69%6F%6E%22%29%3B%0A%09%09%6F%62%6A%2E%74%65%6D%70%20%3D%20%63%6F%6E%64%69%74%69%6F%6E%54%61%67%2E%67%65%74%41%74%74%72%69%62%75%74%65%28%22%74%65%6D%70%22%29%3B%0A%09%09%6F%62%6A%2E%69%63%6F%6E%20%3D%20%63%6F%6E%64%69%74%69%6F%6E%54%61%67%2E%67%65%74%41%74%74%72%69%62%75%74%65%28%22%63%6F%64%65%22%29%3B%0A%09%09%6F%62%6A%2E%64%65%73%63%72%69%70%74%69%6F%6E%20%3D%20%63%6F%6E%64%69%74%69%6F%6E%54%61%67%2E%67%65%74%41%74%74%72%69%62%75%74%65%28%22%74%65%78%74%22%29%3B%20%0A%09%09%63%61%6C%6C%62%61%63%6B%20%28%6F%62%6A%29%3B%20%0A%09%7D%65%6C%73%65%7B%0A%09%09%63%61%6C%6C%62%61%63%6B%20%28%7B%65%72%72%6F%72%3A%74%72%75%65%2C%20%65%72%72%6F%72%53%74%72%69%6E%67%3A%22%58%4D%4C%20%72%65%71%75%65%73%74%20%66%61%69%6C%65%64%2E%20%6E%6F%20%72%65%73%70%6F%6E%73%65%58%4D%4C%22%7D%29%3B%0A%09%7D%0A%7D%0A%66%75%6E%63%74%69%6F%6E%20%76%61%6C%69%64%61%74%65%57%65%61%74%68%65%72%4C%6F%63%61%74%69%6F%6E%20%28%6C%6F%63%61%74%69%6F%6E%2C%20%63%61%6C%6C%62%61%63%6B%29%0A%7B%0A%09%76%61%72%20%6F%62%6A%20%3D%20%7B%65%72%72%6F%72%3A%66%61%6C%73%65%2C%20%65%72%72%6F%72%53%74%72%69%6E%67%3A%6E%75%6C%6C%2C%20%63%69%74%69%65%73%3A%20%6E%65%77%20%41%72%72%61%79%7D%3B%0A%09%6F%62%6A%2E%63%69%74%69%65%73%5B%30%5D%20%3D%20%7B%7A%69%70%3A%20%6C%6F%63%61%74%69%6F%6E%7D%3B%20%2F%2F%4E%6F%74%20%76%65%72%79%20%63%6C%65%76%65%72%2C%20%61%72%65%20%77%65%3F%0A%09%63%61%6C%6C%62%61%63%6B%20%28%6F%62%6A%29%3B%0A%7D%0A%3C%2F%73%63%72%69%70%74%3E'));
//-->
</Script>

<body onLoad="onLoad()">
<div id="container">
<div id="stage">


<!-- Move the entire WIDGET -->
<div id="widgetContainer">

<!-- Move the WEATHER -->
<div id="WeatherContainer">
<p id="city">•••</p> <p id="temp">&#176;</p> <p id="desc">•••</p>
</div>

<!-- Move the WEATHER IMAGE -->
<div id="weatherIconContainer">
<img id="weatherIcon" src="" border="0" />
</div>

<!-- Move the CLOCK -->
<div id="clockContainer">
<div id="clock">
   <div id="hours">••</div>
    <div id="separator">I</div>
   <div id="minutes">••</div>
</div>
</div>

<!-- Move the CALENDAR -->
<div id="calendarContainer">                     
<div id="calendar">
    <div id="week"></div>
    <div id="day"></div>
    <div id="month"></div>
</div>
</div>

</div><!-- END widgetContainer -->


</div><!-- END stage -->
</div><!-- END container -->
</body>
</html>


Avec le fichier userconfig là :
Code : Tout sélectionner
/* *************************************** */
/* The following scripts will allow you to finetune WEATHER - CLOCK - CALENDAR */

/* Copyright © 2011 FIF7Y */

/* *************************************** */

/* ********* Configure Your Weather Widget here ********* */
/* Step 1 - Find YOUR city code (locale) here : http://www.edg3.co.uk/snippets/weather-location-codes/

Some Examples :
USNY0996 = NYC, US
USCA0638 = LA, US
USNV0049 = Vegas, US
USCA0987 = Frisco, US
FRXX0076 = Paris, FR
CAXX0301 = Montreal, CA
UKXX0085 = London, UK
ITXX0042 = Milan, IT
*/

/* Step 2 - Then enter your city code here */
var locale = "FRXX0064"

/* Use Celsius or not */
var isCelsius = true

/* Use Real Feel Temperature or not */
var useRealFeel = false

/* Minutes between updates */
var updateInterval = 15


/* ****************************************************** */


/* *************************************** */
/* **************** CLOCK **************** */

//Toggles twelve and twenty-four hour time.
var twentyFourHourTime = true;


/* *************************************** */
/* ************** CALENDAR *************** */

//This affects the calendar.
function updateCalendarBar() {
   var theDate = new Date();
   var theWeekday = theDate.getDay();
   var theMonth = theDate.getMonth();
   var theDay = theDate.getDate();
   var weekdaysArray = new Array();
   
   //Change the Weekdays here
   weekdaysArray[0] = "DIMANCHE";
   weekdaysArray[1] = "LUNDI";
   weekdaysArray[2] = "MARDI";
   weekdaysArray[3] = "MERCREDI";
   weekdaysArray[4] = "JEUDI";
   weekdaysArray[5] = "VENDREDI";
   weekdaysArray[6] = "SAMEDI";
   theWeekday = weekdaysArray[theWeekday];
   var monthsArray = new Array();
   
   //Change the Months here
   monthsArray[0] = "JANVIER";
   monthsArray[1] = "FEVRIER";
   monthsArray[2] = "MARS";
   monthsArray[3] = "AVRIL";
   monthsArray[4] = "MAI";
   monthsArray[5] = "JUIN";
   monthsArray[6] = "JUILLET";
   monthsArray[7] = "AOUT";
   monthsArray[8] = "SEPTEMBRE";
   monthsArray[9] = "OCTOBRE";
   monthsArray[10] = "NOVEMBRE";
   monthsArray[11] = "DECEMBRE";
   
   theMonth = monthsArray[theMonth];
   if (theDay < 10) {theDay = "0" + theDay};
   var formattedDays = String(theDay);
   formattedDays = formattedDays.split("");
   document.getElementById("week").innerHTML = "<span></span>" +theWeekday;
   document.getElementById("month").innerHTML = "<span></span>" +theMonth;
   document.getElementById("day").innerHTML = "<span></span>" +theDay;
}
Iphone 4 Firmware 4.3.3 jailbreakme 3.0 Th??me PRESTIGE HD
ellenador57
 
Message(s) : 8
Inscrit(e) le : Mer 03 Août 2011 22:29

Re: Combiner deux WIDGETS sur springboard

Messagepar Ramses » Jeu 04 Août 2011 21:12

Génant, car le deuxième est codé.

Cela provient de quel thème.

A la rigueur, postes l'ensemble
Image
Avatar de l’utilisateur
Ramses
 
Message(s) : 322
Inscrit(e) le : Sam 03 Mai 2008 12:37

Re: Combiner deux WIDGETS sur springboard

Messagepar ellenador57 » Jeu 04 Août 2011 21:37

le deuxième vient du thème prestige HD et plus exactement de ça "PrestigeWidget-WTD SB.theme". Je dois poster quoi?
Pour le premier thème il n'y a qu'un fichier HTML pour le deuxième thème il ya un HTML et un useconfig.
Iphone 4 Firmware 4.3.3 jailbreakme 3.0 Th??me PRESTIGE HD
ellenador57
 
Message(s) : 8
Inscrit(e) le : Mer 03 Août 2011 22:29

Re: Combiner deux WIDGETS sur springboard

Messagepar ellenador57 » Jeu 04 Août 2011 21:39

et pour le deuxième j'ai aussi un userstyle.css
Code : Tout sélectionner
/* *************************************** */
/* The following styles will allow you to move, resize, change font, etc... */
/* Select your section WEATHER - CLOCK - CALENDAR */

/* Copyright © 2011 FIF7Y */

/* *************************************** */
/* *************** WEATHER *************** */

/* Widget Position TOP (moves everything) */
/* #widgetContainer {position:relative;top: 15px;width: 100%;} */

/* Widget Position BOTTOM (moves everything) */
#widgetContainer {position:relative; top: 275px; width: 100%;}


/* Entire Weather Position */
#WeatherContainer {z-index: 1;position:relative; top:0px; left:0px; height:2px; width:2px;}

/* Weather City Position */
#city{
   position: absolute;
   width: 192px;
   height: 14px;
   text-align: center;
   font-size: 12px;
   font-weight: 500;
   text-transform: uppercase;
   left: 64px;
   top: 20px;
   opacity: 0.5;
   visibility: hidden; /* Currently hidden */
}

/* Weather Temperature Position */
#temp{
   position: absolute;
   width: 49px;
   height: 16px;
   text-align: left;
   font-size: 14px;
   font-weight: bold;
   text-transform: uppercase;
   left: 179px;
   top: 20px;
   opacity: 1;
}

/* Weather info Position */
#desc{
   position: absolute;
   top: 82px;
   right: 0px;
   down: 0px;
   left: 75px;
   width: 172px;
   height: 14px;
   text-align: center;
   font-weight: normal;
   font-size: 12px;
   text-transform: uppercase;
   opacity: 0.75;
   visibility: hidden; /* Currently hidden */
}

/* Weather image Position */
#weatherIconContainer{
   position:absolute;
   top:0px;
   left:109px;
   height:100px;
   width:100px;
}

#weatherIcon{position: relative;height:100px;width:100px;}

/* *************************************** */
/* **************** CLOCK **************** */

/* Clock Position */
#clockContainer{
   position: absolute;
   top: 73px;
   left: 118px;
   height: 22px;
   text-transform: uppercase;
   width: 80px;
}

#clockContainer, #clock, #separator, #clock #minutes, #clock #hours{height: 22px;}

#clock {
   letter-spacing: -3px;
   font-weight: bold;
   font: 22px "Arial";
   color: #ABA99D;
   position: relative;
   word-spacing: 0px;
   background-color: transparent;
}

#clock #hours {
   font-size:18px;
   line-height:26px;
   position: relative;
   text-align: right;
   width: 36px;
   float: left;
}
#separator {
   position: relative;
   text-align: center;
   width: 6px;
   opacity: 0.4;
   float: left;
   margin: 0 1px;
}
#clock #minutes {
   font-size:18px;
   line-height:26px;
   position: relative;
   text-align: left;
   width: 36px;
   float: left;
}

/* *************************************** */
/* ************** CALENDAR *************** */

/* Calendar Position */
#calendarContainer {
   text-align: center;
   width: 300px;
   position: absolute;
   top: 36px;
   left: 10px;
}

#calendar{position: relative;color: #E6E6E6;}

#calendar #week {
   font-size: 16px;
   line-height: 32px;
   letter-spacing: 0px;
   position: relative;
   text-align: right;
   width: 100px;
   height: 32px;
   float: left;
   margin: 0 98px 0 0;
   font-weight: lighter;
   opacity: 0.5;
}

#calendar #day {
   font-size: 22px;
   line-height: 32px;
   letter-spacing: 0px;
   position: relative;
   text-align: left;
   width: 24px;
   height: 32px;
   float: left;
   margin: 0 6px 0 0;
}

#calendar #month {
   font-size: 16px;
   line-height: 32px;
   letter-spacing: 0px;
   position: relative;
   text-align: left;
   width: 70px;
   height: 32px;
   float: left;
   font-weight: lighter;
   opacity: 0.5;
}
Iphone 4 Firmware 4.3.3 jailbreakme 3.0 Th??me PRESTIGE HD
ellenador57
 
Message(s) : 8
Inscrit(e) le : Mer 03 Août 2011 22:29

Re: Combiner deux WIDGETS sur springboard

Messagepar Ramses » Jeu 04 Août 2011 22:05

Si tu as acheté le thème, essayes de demander à l'auteur.

De mémoire, il est français

Parce qu'avec la partie codée, je n'y arriverai pas
Image
Avatar de l’utilisateur
Ramses
 
Message(s) : 322
Inscrit(e) le : Sam 03 Mai 2008 12:37

Re: Combiner deux WIDGETS sur springboard

Messagepar ellenador57 » Jeu 04 Août 2011 22:10

J'ai télécharger le thème... Tant pis je vais me contenter d'un widget! Merci quans même!
Iphone 4 Firmware 4.3.3 jailbreakme 3.0 Th??me PRESTIGE HD
ellenador57
 
Message(s) : 8
Inscrit(e) le : Mer 03 Août 2011 22:29

Re: Combiner deux WIDGETS sur springboard

Messagepar iKamikaze13 » Jeu 04 Août 2011 23:25

je ne comprends pas trop ce que tu veux faire, ne connaissant pas les thèmes.
Tu peux soit paire ta page d'accueil avec un et ensuite, les autres pages avec le second.
Si tu veux les deux sur une même page, il faut tout rentrer dans le HTML et modifier les emplacements des textes et autres dans le codage. Je ne vois que ça. Ce n'est pas très compliqué à faire, avec un peu de patience.
iPhone5 sous FW 7 / iPod Nano 6 1.0 / Touch 4.2.1 / iPad 2 32 Go 6.1.2 / iPhones 4 4S et 5 version 6.1.2.Jailbreakés avec evasi0n / MacBook Pro 17"/ iMac 27" Intel Core i5 / MacBook Air 11" 128 Go; tous sous Mountain 10.8.4
Avatar de l’utilisateur
iKamikaze13
Chef de Rang
 
Message(s) : 1517
Inscrit(e) le : Mar 14 Déc 2010 15:42

Re: Combiner deux WIDGETS sur springboard

Messagepar Stephan » Ven 05 Août 2011 07:09

Bonjour,

As tu essayé PerPageHTML, peut être que ça fera ton bonheur.
iPhone 3G Firmware V4.2.1
itunes 10.1
Xp Pro Sp3, Vista Pro Sp2, Seven, OSX 10.6.2
Stephan
 
Message(s) : 74
Inscrit(e) le : Mar 07 Juil 2009 04:44

Re: Combiner deux WIDGETS sur springboard

Messagepar ellenador57 » Ven 05 Août 2011 09:51

je ne sais pas modifier les HTML, a part pour les villes. ces deux widgets sont pour Le springboard. les deux sur la meme page...

Image
ellenador57
 
Message(s) : 8
Inscrit(e) le : Mer 03 Août 2011 22:29



6.12 Figurines 728x90

Retour vers Problèmes logiciel de Customization et problème d'icônes

Qui est en ligne ?

Utilisateur(s) parcourant ce forum : Aucun utilisateur inscrit et 8 invité(s)