Achtung: Das Forum wird zum 31.05.2024 geschlossen. Für nähere Infos klicke hier.

dBar dragon-Contest Theme ändern

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • dBar dragon-Contest Theme ändern

      Hallo zuammen,

      ich habe mir das dBar dragon-Contest Theme heruntergeladen.

      [Blockierte Grafik: http://www.mbtheme.com/uploads/userup/1003/151353249628.jpg]

      Hier zu finden:
      mbtheme.com/Iphone_theme/dBar-dragon-Contest_32584.html

      Geschafft hab ichs, dass ich das Wetter entsprechend meinem Wohnort einstellen konnte.

      Was ich aber nicht schaffe bzw dafür keinen Code in dem Theme finde ist es die Uhrzeit welche links vom Wetter angezeigt wird auf 24h umzustellen und rechts von dem Wetter das Datum in Deutscher Schreibweise einzurichten bzw etwas einzurücken weil wenn We Jun 16 dran steht kann man die 6 fast nicht mehr lesen!

      Kann mir dabei einer weiterhelfen?

      Viele Dank schonmal!

      Gruss
      Jimmy
    • Re: dBar dragon-Contest Theme ändern

      Ich glaub ich habe den Code im Theme-Ordner gefunden.
      Weis aber trotzdem nicht wo und wie ich das Datum udn die Uhrzeit einstellen kann!

      HTML-Quellcode

      1. <?xml version="1.0" encoding="UTF-16"?>
      2. <html><head>
      3. <link rel="stylesheet" href="Widgets/SB StyleSheets/Bottom1.css">
      4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
      5. <meta http-equiv="refresh" content="900; url=Widget.html"/>
      6. <script type="text/javascript" src="Widgets/Configs/timeZone.js"/>
      7. <script type="text/javascript">
      8. <!--
      9. // -->
      10. function updateClock ( )
      11. {
      12. var currentTime = new Date ( );
      13. var currentHours = currentTime.getHours ( );
      14. var currentMinutes = currentTime.getMinutes ( );
      15. var currentSeconds = currentTime.getSeconds ( );
      16. currentMinutes = currentMinutes + tz1m;
      17. if (currentMinutes < 0){
      18. currentHours = currentHours - 1;
      19. }
      20. if (currentMinutes > 60){
      21. currentHours = currentHours + 1;
      22. }
      23. currentMinutes = ( currentMinutes < 0 ) ? currentMinutes + 60 : currentMinutes;
      24. currentMinutes = ( currentMinutes > 60 ) ? currentMinutes - 60 : currentMinutes;
      25. // Pad the minutes and seconds with leading zeros, if required
      26. currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
      27. currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
      28. // Convert an hours component of "0" to "12"
      29. currentHours = currentHours + tz1h;
      30. currentHours = ( currentHours < 0 ) ? currentHours + 24 : currentHours;
      31. // Convert the hours component to 12-hour format if needed
      32. currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
      33. // Convert an hours component of "0" to "12"
      34. currentHours = ( currentHours == 0 ) ? 12 : currentHours;
      35. // Compose the string for display
      36. var currentTimeString = currentHours + ":" + currentMinutes;
      37. // Update the time display
      38. document.getElementById("clock").firstChild.nodeValue = currentTimeString;
      39. }
      40. function amPm ( )
      41. {
      42. var currentTime = new Date ( );
      43. var currentHours = currentTime.getHours ( );
      44. // Convert an hours component of "0" to "12"
      45. //currentHours = currentHours + tz1h;
      46. currentHours = ( currentHours < 0 ) ? currentHours + 24 : currentHours;
      47. // Choose either "AM" or "PM" as appropriate
      48. var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
      49. // Compose the string for display
      50. var currentTimeString = timeOfDay;
      51. // Update the time display
      52. document.getElementById("ampm").firstChild.nodeValue = currentTimeString;
      53. }
      54. function calendarDate ( )
      55. {
      56. var this_weekday_name_array = new Array("Su","Mo","Tu","We","Th","Fr","Sa")
      57. var this_month_name_array = new Array("Jan","Feb","May","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec") //predefine month names
      58. var this_date_timestamp = new Date()
      59. var this_weekday = this_date_timestamp.getDay()
      60. var this_month = this_date_timestamp.getMonth()
      61. var this_date = this_date_timestamp.getDate()
      62. var this_year = this_date_timestamp.getYear()
      63. if (this_year < 1000)
      64. this_year+= 1900;
      65. if (this_year==101)
      66. this_year=2001;
      67. var month = this_date_timestamp.getMonth();
      68. document.getElementById("date").firstChild.nodeValue = this_weekday_name_array[this_weekday] + " " + this_month_name_array[this_month] + " " + this_date + " " //concat long date string
      69. }
      70. // -->
      71. </script>
      72. </head>
      73. <base href="Widgets/"/>
      74. <body>
      75. <table><tr>
      76. <td id="Backgrounds"> <img src="../Overlay.png"></img> </td>
      77. </tr></table>
      78. <table style="position: absolute;top: 344px; left: -40px; width: 150px; height: 461px;">
      79. <tr align="center" valign="top" border="0" cellpadding="0">
      80. <td height="12" valign="top" margin-left="20">
      81. <span id="clock">
      82. <script language="JavaScript">updateClock(); setInterval('updateClock()', 1000 )</script></span>
      83. </td>
      84. </tr>
      85. </table>
      86. <table style="position: absolute;top: 220px; left: 0px; width: 150px; height: 461px;">
      87. <tr align="right" valign="top" border="0" cellpadding="0">
      88. <td height="12" valign="top" margin-left="20" >
      89. <span id="ampm">
      90. <script language="JavaScript">amPm(); setInterval('amPm()', 1000 )</script>
      91. </span>
      92. </td>
      93. </tr></table>
      94. <table style="position: absolute;top: 349px; left: 218px; width: 320px; height: 481px;">
      95. <tr>
      96. <td id=date valign="top" TD STYLE="text-align: left">
      97. <span id="calendar">
      98. <script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script>
      99. </span>
      100. </tr>
      101. </table>
      102. </body>
      103. <base href="Widgets/"/>
      104. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
      105. <script type="text/javascript" src="Configs/SB-Config.js"/>
      106. <body>
      107. <table><tr>
      108. </tr></table>
      109. <!-- This it linking the timezone2.html for timezone2 -->
      110. <object data="timezone2.html" type="text/html" height="480" width="320"> </object>
      111. <!-- This it linking the Weather.html for the Weather -->
      112. <object data="Weather/Weather.html" type="text/html" height="480" width="320"> </object>
      113. <!-- This it linking the Weather.html for the Weather -->
      114. <object data="Weather1/Weather.html" type="text/html" height="480" width="320"> </object>
      115. <!-- This it linking the Calendar.html for the Calendar -->
      116. <object data="Calendar/Calendar.html" type="text/html" height="480" width="320"> </object>
      117. </body></html>
      Alles anzeigen
    • Re: dBar dragon-Contest Theme ändern

      24 Stunden Format: Diese Zeile auskommentieren
      currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
      d.h.: // davorsetzen

      Beim Datum müsste unter Widgets/ SB Stylesheets/ die Datei Bottom1.css zu finden sein, in der du die Position des Datums verändern kannst.
      Wegen der dt. Schreibweise müsst ich mir das Theme auch herunterladen und herumprobieren.

      edit:

      probier mal diese Zeile
      document.getElementById("date").firstChild.nodeValue = this_weekday_name_array[this_weekday] + " " + this_month_name_array[this_month] + " " + this_date + " " //concat long date string

      so abzuändern:
      document.getElementById("date").firstChild.nodeValue = this_weekday_name_array[this_weekday] + " " + this_date + " " + this_month_name_array[this_month] + " " //concat long date string


      Grüße, Titus
    • Re: dBar dragon-Contest Theme ändern

      Hab's mir mal angeschaut. Ersetz mal dein Widget.html. mit dieser:
      mediafire.com/?nnhdkxmmomj
      Müsste funktionieren.

      Du kannst dann noch unter Widgets/SB Style Sheets/Bottom1.css mit einem Editor
      hier

      TD#date
      {
      font-family: Helvetica;
      font-weight: bold;
      letter-spacing: 0.1em;
      text-align: left;
      font-variant: normal;
      color: #FFFFFF;
      text-shadow: 2px 2px 2px #000;
      font-size: 18px;
      text-transform: capitalize;

      }


      die Schriftgröße verkleinern, wenns noch immer nicht passt.


      Grüße, Titus
    • Re: dBar dragon-Contest Theme ändern

      Ändere diesen Wert im Widget.html

      <table style="position: absolute;top: 347px; left: -40px; width: 150px; 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>


      Dann müsste es passen.
      Grüße, Titus
    • Re: dBar dragon-Contest Theme ändern

      Hallo,

      Ich bins schon wieder :)

      Hab jetzt von 3.1.3 auf 4.0.1 upgedatet! An was ich nicht gedacht habe, ist es das theme zu sichern!

      Jetzt hab ich ein problem! Ich bekomme das wetter nicht mehr eingestellt! Es steht immer N.A.

      In der datei Weather-config.js sollte dies eigentlich zum einstellen gehen! Findet dort jemand einen Fehler?

      /*var locale = "GMXX1350" ITXX0042=Milan/UKXX0085=London/USNY0996=NYC/NLXX0016=The Hague/USCA0638=LA/USNV0049=Vegas/USCA0987=Frisco/FRXX0023=Cannes*/



      var stylesheetWall = "Bottom-(White)"

      var iconSetWall = "spils"

      var iconExtWall = ".png"

      var iconSetLock = "spils"

      var source = "appleAccuweatherStolen"

      var locale = "Uhldingen-Mühlhofen, Germany"

      var isCelsius = true

      var useRealFeel = false

      var updateInterval = 20


      Hat jemand ne Ahnung was ich falsch gemacht habe?