דילוג לתוכן
  • חוקי הפורום
  • פופולרי
  • לא נפתר
  • משתמשים
  • חיפוש גוגל בפורום
  • צור קשר
עיצובים
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • ברירת מחדל (ללא עיצוב (ברירת מחדל))
  • ללא עיצוב (ברירת מחדל)
כיווץ
לוגו מותג
  1. דף הבית
  2. מחשבים וטכנולוגיה
  3. רשתות
  4. שיתוף | פופאפ לזכרון בית המקדש - לבעלי אתרים

שיתוף | פופאפ לזכרון בית המקדש - לבעלי אתרים

מתוזמן נעוץ נעול הועבר רשתות
134 פוסטים 22 כותבים 4.6k צפיות 18 עוקבים
  • מהישן לחדש
  • מהחדש לישן
  • הכי הרבה הצבעות
תגובה
  • תגובה כנושא
התחברו כדי לפרסם תגובה
נושא זה נמחק. רק משתמשים עם הרשאות מתאימות יוכלו לצפות בו.
  • צ צבי דורש ציון

    פוסט זה נמחק!

    ט מנותק
    ט מנותק
    טופטופיסט
    כתב נערך לאחרונה על ידי
    #84
    פוסט זה נמחק!
    צ תגובה 1 תגובה אחרונה
    2
    • ט טופטופיסט

      פוסט זה נמחק!

      צ מנותק
      צ מנותק
      צבי דורש ציון
      כתב נערך לאחרונה על ידי
      #85
      פוסט זה נמחק!
      תגובה 1 תגובה אחרונה
      1
      • י מנותק
        י מנותק
        יוניתזון
        מורחק
        כתב נערך לאחרונה על ידי
        #86

        טוב כל אחד פה לא מבין אחד את השני, אולי תנו קצת יותר הסבר כי גם אני לא הבנתי😉 מה היה פה עכשיו

        ט תגובה 1 תגובה אחרונה
        0
        • י יוניתזון

          טוב כל אחד פה לא מבין אחד את השני, אולי תנו קצת יותר הסבר כי גם אני לא הבנתי😉 מה היה פה עכשיו

          ט מנותק
          ט מנותק
          טופטופיסט
          כתב נערך לאחרונה על ידי
          #87

          @יוניתזון
          זה לא כ"כ משנה...
          ב"א מה שיוצא הוא כך:

          • המטרה היא להפיץ את הפופאפ כמה שיותר, ולכן צריך להוסיף למטה קישור שמוביל לדף נחיתה שיש בו אפשרות להוספת הפופאפ לאתר או להורדת תוסף, ולא לחפש את בעל האתר, וכו'

          • כרגע אני באמצע לעשות את כל זה.

          זה הכל.

          י תגובה 1 תגובה אחרונה
          4
          • ט טופטופיסט

            @יוניתזון
            זה לא כ"כ משנה...
            ב"א מה שיוצא הוא כך:

            • המטרה היא להפיץ את הפופאפ כמה שיותר, ולכן צריך להוסיף למטה קישור שמוביל לדף נחיתה שיש בו אפשרות להוספת הפופאפ לאתר או להורדת תוסף, ולא לחפש את בעל האתר, וכו'

            • כרגע אני באמצע לעשות את כל זה.

            זה הכל.

            י מנותק
            י מנותק
            יוניתזון
            מורחק
            כתב נערך לאחרונה על ידי
            #88

            @טופטופיסט כתב בשיתוף | פופאפ לזכרון בית המקדש - לבעלי אתרים:

            כרגע אני באמצע לעשות את כל זה.

            שכויח, כל הכבוד

            תגובה 1 תגובה אחרונה
            0
            • י מנותק
              י מנותק
              יוניתזון
              מורחק
              כתב נערך לאחרונה על ידי
              #89
              פוסט זה נמחק!
              צ תגובה 1 תגובה אחרונה
              0
              • י יוניתזון

                פוסט זה נמחק!

                צ מנותק
                צ מנותק
                צבי דורש ציון
                כתב נערך לאחרונה על ידי צבי דורש ציון
                #90

                @יוניתזון זה לא המנהלים, אלא אנחנו מחקנו למען הסדר הטוב...

                @יוניתזון כתב בשיתוף | פופאפ לזכרון בית המקדש - לבעלי אתרים:

                כמו פה https://forum.netfree.link/

                מה התכוונת? נפתח לי דף הבית של הפורום של נטפרי...

                י 2 תגובות תגובה אחרונה
                2
                • צ צבי דורש ציון

                  @יוניתזון זה לא המנהלים, אלא אנחנו מחקנו למען הסדר הטוב...

                  @יוניתזון כתב בשיתוף | פופאפ לזכרון בית המקדש - לבעלי אתרים:

                  כמו פה https://forum.netfree.link/

                  מה התכוונת? נפתח לי דף הבית של הפורום של נטפרי...

                  י מנותק
                  י מנותק
                  יוניתזון
                  מורחק
                  כתב נערך לאחרונה על ידי
                  #91
                  פוסט זה נמחק!
                  תגובה 1 תגובה אחרונה
                  0
                  • צ צבי דורש ציון

                    @יוניתזון זה לא המנהלים, אלא אנחנו מחקנו למען הסדר הטוב...

                    @יוניתזון כתב בשיתוף | פופאפ לזכרון בית המקדש - לבעלי אתרים:

                    כמו פה https://forum.netfree.link/

                    מה התכוונת? נפתח לי דף הבית של הפורום של נטפרי...

                    י מנותק
                    י מנותק
                    יוניתזון
                    מורחק
                    כתב נערך לאחרונה על ידי
                    #92

                    @צבי-דורש-ציון כתב בשיתוף | פופאפ לזכרון בית המקדש - לבעלי אתרים:

                    מה התכוונת? נפתח לי דף הבית של הפורום של נטפרי...

                    לא משנה!
                    שאמרת....

                    זה לא המנהלים, אלא אנחנו מחקנו למען הסדר הטוב...

                    זה כבר פתר לי את הבעיה😉

                    תגובה 1 תגובה אחרונה
                    0
                    • T Tיו_

                      @LEVI-H כתב בשיתוף | פופאפ לזכרון בית המקדש - לבעלי אתרים:

                      @Tיו_ כן, מעולה.

                      <style>
                       
                      @import url('https://fonts.googleapis.com/css2?family=Bona+Nova+SC&display=swap');
                      
                      :root {
                          --background-color: #ffffff;
                          --overlay-background: rgba(114, 42, 42, 0.5);
                          --border-color: #444;
                          --text-color: #ffffff;
                          --highlight-color: #ffffff;
                          --secondary-text-color: #bbb;
                          --shadow-color: rgba(255, 255, 255, 0.1);
                          --overlay-opacity: 0.5;
                          --unit-background-color: rgba(142, 136, 136, 0.5);
                      }
                      
                      body {
                          background-color: var(--background-color);
                          margin: 0;
                          font-family: 'Bona Nova SC', Arial, sans-serif;
                          color: var(--text-color);
                      }
                      
                      #popup-container {
                          position: fixed;
                          bottom: 30px;
                          right: 30px;
                          background-color: var(--overlay-background);
                          border-radius: 15px;
                          padding: 20px;
                          box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
                          z-index: 1000;
                          overflow: hidden;
                          max-width: 350px;
                          width: auto;
                          height: auto;
                          box-sizing: border-box;
                          text-align: center;
                          transition: transform 0.3s ease, box-shadow 0.3s ease;
                          transform: translateY(-10px);
                      }
                      
                      #popup-container:hover {
                          transform: translateY(-15px);
                          box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
                      }
                      
                      #popup-background {
                          position: absolute;
                          top: 0;
                          left: 0;
                          width: 100%;
                          height: 100%;
                          background-image: url('בית המקדש.jpg');
                          background-size: cover;
                          background-position: center;
                          mix-blend-mode: overlay;
                          opacity: var(--overlay-opacity);
                          z-index: 0;
                          border-radius: 15px;
                          filter: blur(1px);
                      }
                      
                      #close-btn {
                          position: absolute;
                          top: 5px;
                          left: 5px;
                          background-color: transparent;
                          border: none;
                          color: var(--text-color);
                          font-size: 16px;
                          cursor: pointer;
                          z-index: 2;
                      }
                      
                      #temple-counter {
                          position: relative;
                          z-index: 1;
                      }
                      
                      #temple-counter h2 {
                          color: var(--highlight-color);
                          font-size: 18px;
                          margin-bottom: 10px;
                          font-weight: 700;
                          line-height: 1.2;
                      }
                      
                      .time-unit {
                          display: flex;
                          justify-content: center;
                          align-items: center;
                          margin-bottom: 10px;
                          flex-direction: row-reverse;
                      }
                      
                      .unit {
                          display: flex;
                          flex-direction: column;
                          align-items: center;
                          margin: 0 5px;
                      }
                      
                      .unit-title {
                          font-size: 12px;
                          color: var(--secondary-text-color);
                          margin-top: 4px;
                      }
                      
                      .unit-value-container {
                          display: flex;
                          flex-direction: row;
                          justify-content: center;
                          align-items: center;
                      }
                      
                      .unit-value {
                          display: flex;
                          align-items: center;
                          justify-content: center;
                          border: none;
                          padding: 5px;
                          border-radius: 6px;
                          background-color: var(--unit-background-color);
                          font-family: 'Digital-7', Arial, sans-serif;
                          font-size: 20px;
                          font-weight: 700;
                          color: var(--text-color);
                          min-width: 20px;
                          width: 20px;
                          margin: 0 1px;
                          height: 30px;
                          line-height: 30px;
                          text-align: center;
                          box-sizing: border-box;
                      }
                      
                      .colon {
                          font-size: 16px;
                          line-height: 30px;
                          font-family: 'Digital-7', Arial, sans-serif;
                          display: flex;
                          align-items: center;
                          justify-content: center;
                          height: 30px;
                          margin: 0 2px;
                          position: relative;
                          top: -8px;
                      }
                      
                      .action {
                          font-size: 14px;
                          color: var(--highlight-color);
                          margin-top: 10px;
                          text-transform: uppercase;
                          font-weight: 700;
                      }
                      
                      @media (max-width: 480px) {
                          #popup-container {
                              width: 90vw;
                              padding: 5px;
                              right: 5vw;
                          }
                      
                          .unit-value {
                              font-size: 16px;
                              height: auto;
                          }
                      
                          .colon {
                              font-size: 14px;
                              line-height: 16px;
                          }
                      }
                       
                      </style>
                      <script>
                       
                      const link = document.createElement('link');
                      link.rel = 'stylesheet';
                      link.href = 'style.css';
                      document.head.appendChild(link);
                      
                      const popupContainer = document.createElement('div');
                      popupContainer.id = 'popup-container';
                      
                      popupContainer.innerHTML = `
                          <div id="popup-background"></div>
                          <button id="close-btn" onclick="closePopup()" aria-label="סגור">✕</button>
                          <div id="temple-counter">
                              <h2>זמן שחלף מאז חורבן בית המקדש</h2>
                              <div class="time-unit" id="time-units-container"></div>
                              <div class="action">"והראנו בבניינו ושמחנו בתיקונו"</div>
                          </div>
                      `;
                      
                      document.body.appendChild(popupContainer);
                      
                      
                      const DESTRUCTION_YEAR = 70;
                      
                      function getTishaBAvDate(year) {
                          return new Date(year, 7, 12);
                      }
                      
                      function calculateTimeSinceDestruction() {
                          const today = new Date();
                          const tishaBAvDate = getTishaBAvDate(today.getFullYear());
                          const timeSinceDestruction = today - tishaBAvDate;
                          const daysSinceDestruction = Math.floor(timeSinceDestruction / (1000 * 60 * 60 * 24)) - 1;
                          const yearsSinceDestruction = today.getFullYear() - DESTRUCTION_YEAR;
                      
                          const times = {
                              days: daysSinceDestruction,
                              years: yearsSinceDestruction,
                          };
                      
                          const timeUnitsContainer = document.getElementById('time-units-container');
                          timeUnitsContainer.innerHTML = '';
                      
                      
                          const TIME_UNITS = ['days', 'years'];
                      
                          TIME_UNITS.forEach((unit, index) => {
                              let unitValue = times[unit].toString().padStart(2, '0');
                      
                              const unitContainer = document.createElement('div');
                              unitContainer.classList.add('unit');
                      
                              const valueContainer = document.createElement('div');
                              valueContainer.classList.add('unit-value-container');
                      
                              unitValue.split('').forEach(number => {
                                  const numberElement = document.createElement('div');
                                  numberElement.classList.add('unit-value');
                                  numberElement.textContent = number;
                                  valueContainer.appendChild(numberElement);
                              });
                      
                              unitContainer.appendChild(valueContainer);
                      
                              const titleElement = document.createElement('div');
                              titleElement.classList.add('unit-title');
                              titleElement.textContent = unit === 'years' ? 'שנים' : 'ימים';
                      
                              unitContainer.appendChild(titleElement);
                              timeUnitsContainer.appendChild(unitContainer);
                      
                              if (index < TIME_UNITS.length - 1) {
                                  const colonElement = document.createElement('div');
                                  colonElement.classList.add('colon');
                                  colonElement.textContent = ':';
                                  timeUnitsContainer.appendChild(colonElement);
                              }
                          });
                      
                          requestAnimationFrame(calculateTimeSinceDestruction);
                      }
                      
                      calculateTimeSinceDestruction();
                      
                      function closePopup() {
                          const popupContainer = document.getElementById('popup-container');
                          if (popupContainer) {
                              popupContainer.style.display = 'none';
                          }
                      }
                       
                      </script>
                      
                      ט מנותק
                      ט מנותק
                      טופטופיסט
                      כתב נערך לאחרונה על ידי
                      #93

                      @Tיו_ היקר!

                      ראיתי עכשיו שהייתה בעיה בחישוב שלי
                      ומה שיצא הוא -
                      f7d94d66-3862-48a3-8e2f-89e183f4356f-image.png
                      מינוס.
                      אני תיקנתי בקוד המקור.
                      אבל אתה תצטרך לשנות משהו בקוד אצלך בגלל שאתה לא משוייך לגיטאהב.
                      תסתכל בקוד בגיטאהב ותעתיק משם את הסקריפט.

                      תגובה 1 תגובה אחרונה
                      2
                      • לאציל מחובר
                        לאציל מחובר
                        לאצי
                        כתב נערך לאחרונה על ידי
                        #94

                        יש לי אתר בWIX. ניתן להטמיע את הוידגט עם קוד HTML?
                        עדיף לי קוד HTML להטמעה מאשר קוד להטמעת iframe שאיתו אני לא יכול לשחק עם הגודל.

                        צ תגובה 1 תגובה אחרונה
                        1
                        • לאציל לאצי

                          יש לי אתר בWIX. ניתן להטמיע את הוידגט עם קוד HTML?
                          עדיף לי קוד HTML להטמעה מאשר קוד להטמעת iframe שאיתו אני לא יכול לשחק עם הגודל.

                          צ מנותק
                          צ מנותק
                          צבי דורש ציון
                          כתב נערך לאחרונה על ידי צבי דורש ציון
                          #95

                          @לאצי נתייג את @טופטופיסט היקר

                          תגובה 1 תגובה אחרונה
                          3
                          • לאציל מחובר
                            לאציל מחובר
                            לאצי
                            כתב נערך לאחרונה על ידי
                            #96

                            @טופטופיסט נתתי לGPT את הקוד שיצר @יאנג-בוי והוא יצר לי את הקוד הזה. בפועל הוא עובד לי אבל אשמח אם תעבור עליו לראות שהוא תקין.

                            <!DOCTYPE html>
                            <html lang="he">
                            <head>
                                <meta charset="UTF-8">
                                <meta name="viewport" content="width=device-width, initial-scale=1.0">
                                <title>זכרון בית המקדש</title>
                                <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bona+Nova+SC&display=swap">
                                <style>
                                    :root {
                                        --background-color: #ffffff;
                                        --overlay-background: rgba(114, 42, 42, 0.5);
                                        --border-color: #444;
                                        --text-color: #ffffff;
                                        --highlight-color: #ffffff;
                                        --secondary-text-color: #bbb;
                                        --shadow-color: rgba(255, 255, 255, 0.1);
                                        --overlay-opacity: 0.5;
                                        --unit-background-color: rgba(142, 136, 136, 0.5);
                                    }
                            
                                    #popup-container {
                                        position: fixed;
                                        bottom: 30px;
                                        left: 50px; /* שינוי למיקום השמאלי */
                                        background-color: var(--overlay-background);
                                        border-radius: 15px;
                                        padding: 20px;
                                        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
                                        z-index: 1000;
                                        overflow: hidden;
                                        max-width: 350px;
                                        width: auto;
                                        height: auto;
                                        box-sizing: border-box;
                                        text-align: center;
                                        direction: rtl;
                                    }
                            
                                    #popup-background {
                                        position: absolute;
                                        top: 0;
                                        left: 0;
                                        width: 100%;
                                        height: 100%;
                                        background-image: url('https://raw.githubusercontent.com/moshelavi/beit-amikdash/main/beit%20amikdash%20script/%D7%91%D7%99%D7%AA%20%D7%94%D7%9E%D7%A7%D7%93%D7%A9.jpg');
                                        background-size: cover;
                                        background-position: center;
                                        mix-blend-mode: overlay;
                                        opacity: var(--overlay-opacity);
                                        z-index: 0;
                                        border-radius: 15px;
                                        filter: blur(1px);
                                    }
                            
                                    #temple-counter h2 {
                                        color: var(--highlight-color);
                                        font-size: 18px;
                                        margin-bottom: 10px;
                                        font-weight: 700;
                                    }
                            
                                    .unit-value {
                                        font-size: 20px;
                                        font-weight: 700;
                                        color: var(--text-color);
                                    }
                                </style>
                            </head>
                            <body>
                                <div id="popup-container">
                                    <div id="popup-background"></div>
                                    <div id="temple-counter">
                                        <h2>זמן שחלף מאז חורבן בית המקדש:</h2>
                                        <div class="time-unit">
                                            <span class="unit-value" id="years"></span> שנים
                                            <span class="unit-value" id="days"></span> ימים
                                        </div>
                                    </div>
                                </div>
                                <script>
                                    function updateCounter() {
                                        const destructionDate = new Date(-70, 7, 4); 
                                        const now = new Date();
                                        let diffTime = now - destructionDate;
                                        let years = Math.floor(diffTime / (1000 * 60 * 60 * 24 * 365.25));
                                        let days = Math.floor((diffTime % (1000 * 60 * 60 * 24 * 365.25)) / (1000 * 60 * 60 * 24));
                                        document.getElementById('years').textContent = years;
                                        document.getElementById('days').textContent = days;
                                    }
                                    updateCounter();
                                    setInterval(updateCounter, 86400000);
                                </script>
                            </body>
                            </html>
                            
                            
                            יאנג בויי תגובה 1 תגובה אחרונה
                            0
                            • לאציל לאצי

                              @טופטופיסט נתתי לGPT את הקוד שיצר @יאנג-בוי והוא יצר לי את הקוד הזה. בפועל הוא עובד לי אבל אשמח אם תעבור עליו לראות שהוא תקין.

                              <!DOCTYPE html>
                              <html lang="he">
                              <head>
                                  <meta charset="UTF-8">
                                  <meta name="viewport" content="width=device-width, initial-scale=1.0">
                                  <title>זכרון בית המקדש</title>
                                  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bona+Nova+SC&display=swap">
                                  <style>
                                      :root {
                                          --background-color: #ffffff;
                                          --overlay-background: rgba(114, 42, 42, 0.5);
                                          --border-color: #444;
                                          --text-color: #ffffff;
                                          --highlight-color: #ffffff;
                                          --secondary-text-color: #bbb;
                                          --shadow-color: rgba(255, 255, 255, 0.1);
                                          --overlay-opacity: 0.5;
                                          --unit-background-color: rgba(142, 136, 136, 0.5);
                                      }
                              
                                      #popup-container {
                                          position: fixed;
                                          bottom: 30px;
                                          left: 50px; /* שינוי למיקום השמאלי */
                                          background-color: var(--overlay-background);
                                          border-radius: 15px;
                                          padding: 20px;
                                          box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
                                          z-index: 1000;
                                          overflow: hidden;
                                          max-width: 350px;
                                          width: auto;
                                          height: auto;
                                          box-sizing: border-box;
                                          text-align: center;
                                          direction: rtl;
                                      }
                              
                                      #popup-background {
                                          position: absolute;
                                          top: 0;
                                          left: 0;
                                          width: 100%;
                                          height: 100%;
                                          background-image: url('https://raw.githubusercontent.com/moshelavi/beit-amikdash/main/beit%20amikdash%20script/%D7%91%D7%99%D7%AA%20%D7%94%D7%9E%D7%A7%D7%93%D7%A9.jpg');
                                          background-size: cover;
                                          background-position: center;
                                          mix-blend-mode: overlay;
                                          opacity: var(--overlay-opacity);
                                          z-index: 0;
                                          border-radius: 15px;
                                          filter: blur(1px);
                                      }
                              
                                      #temple-counter h2 {
                                          color: var(--highlight-color);
                                          font-size: 18px;
                                          margin-bottom: 10px;
                                          font-weight: 700;
                                      }
                              
                                      .unit-value {
                                          font-size: 20px;
                                          font-weight: 700;
                                          color: var(--text-color);
                                      }
                                  </style>
                              </head>
                              <body>
                                  <div id="popup-container">
                                      <div id="popup-background"></div>
                                      <div id="temple-counter">
                                          <h2>זמן שחלף מאז חורבן בית המקדש:</h2>
                                          <div class="time-unit">
                                              <span class="unit-value" id="years"></span> שנים
                                              <span class="unit-value" id="days"></span> ימים
                                          </div>
                                      </div>
                                  </div>
                                  <script>
                                      function updateCounter() {
                                          const destructionDate = new Date(-70, 7, 4); 
                                          const now = new Date();
                                          let diffTime = now - destructionDate;
                                          let years = Math.floor(diffTime / (1000 * 60 * 60 * 24 * 365.25));
                                          let days = Math.floor((diffTime % (1000 * 60 * 60 * 24 * 365.25)) / (1000 * 60 * 60 * 24));
                                          document.getElementById('years').textContent = years;
                                          document.getElementById('days').textContent = days;
                                      }
                                      updateCounter();
                                      setInterval(updateCounter, 86400000);
                                  </script>
                              </body>
                              </html>
                              
                              
                              יאנג בויי מחובר
                              יאנג בויי מחובר
                              יאנג בוי
                              מדריכים
                              כתב נערך לאחרונה על ידי יאנג בוי
                              #97

                              @לאצי כתב בשיתוף | פופאפ לזכרון בית המקדש - לבעלי אתרים:

                              בפועל הוא עובד לי אבל אשמח אם תעבור עליו לראות שהוא תקין.

                              אצלנו אומרים, זה עובד? אל תיגע... 😉

                              לאציל תגובה 1 תגובה אחרונה
                              2
                              • יאנג בויי יאנג בוי

                                @לאצי כתב בשיתוף | פופאפ לזכרון בית המקדש - לבעלי אתרים:

                                בפועל הוא עובד לי אבל אשמח אם תעבור עליו לראות שהוא תקין.

                                אצלנו אומרים, זה עובד? אל תיגע... 😉

                                לאציל מחובר
                                לאציל מחובר
                                לאצי
                                כתב נערך לאחרונה על ידי לאצי
                                #98

                                @יאנג-בוי בעיקרון, אתה צודק. אבל עכשיו שמתי לב שזה לא מתחיל לעבוד. כלומר הוידגט עצמו מעולה, אבל המספר המופיע בו לא מתחיל להיות נכון...
                                0ab2ecbd-2602-4ada-be2f-7bf7bf372157-image.png
                                בעוד שהמספר הנכון הוא מה שמופיע כאן

                                אשמח גם אם זה יציג גם את השעות כמו ש @לא-מתייאש עשה כאן
                                ועוד רעיון לפיצ'ר קטן, נראה לי שיהיה יותר מושך אם תמונת הרקע תהיה בגיף כמו באתר המקור. אם זה אפשרי.

                                יוסי מחשביםי תגובה 1 תגובה אחרונה
                                0
                                • לאציל לאצי

                                  @יאנג-בוי בעיקרון, אתה צודק. אבל עכשיו שמתי לב שזה לא מתחיל לעבוד. כלומר הוידגט עצמו מעולה, אבל המספר המופיע בו לא מתחיל להיות נכון...
                                  0ab2ecbd-2602-4ada-be2f-7bf7bf372157-image.png
                                  בעוד שהמספר הנכון הוא מה שמופיע כאן

                                  אשמח גם אם זה יציג גם את השעות כמו ש @לא-מתייאש עשה כאן
                                  ועוד רעיון לפיצ'ר קטן, נראה לי שיהיה יותר מושך אם תמונת הרקע תהיה בגיף כמו באתר המקור. אם זה אפשרי.

                                  יוסי מחשביםי מנותק
                                  יוסי מחשביםי מנותק
                                  יוסי מחשבים
                                  צוות פיקוח
                                  כתב נערך לאחרונה על ידי
                                  #99

                                  @לאצי כתב בשיתוף | פופאפ לזכרון בית המקדש - לבעלי אתרים:

                                  ועוד רעיון לפיצ'ר קטן, נראה לי שיהיה יותר מושך אם תמונת הרקע תהיה בגיף כמו באתר המקור. אם זה אפשרי.

                                  קישור לתמונה

                                  תגובה 1 תגובה אחרונה
                                  2
                                  • לאציל מחובר
                                    לאציל מחובר
                                    לאצי
                                    כתב נערך לאחרונה על ידי לאצי
                                    #100

                                    @טופטופיסט @יאנג-בוי בסוף נתתי לGPT את כל הקוד כפי שהוא מופיע בגיטהאב (שזה אומר; HTML, JS, וCSS ) וזה מה שהוא יצר לי

                                    <!DOCTYPE html>
                                    <html lang="he">
                                    
                                    <head>
                                        <meta charset="UTF-8">
                                        <meta name="viewport" content="width=device-width, initial-scale=1.0">
                                        <title>Sample page</title>
                                        <style>
                                            @import url('https://fonts.googleapis.com/css2?family=Bona+Nova+SC&display=swap');
                                    
                                            :root {
                                                --background-color: #ffffff;
                                                --overlay-background: rgba(114, 42, 42, 0.5);
                                                --border-color: #444;
                                                --text-color: #ffffff;
                                                --highlight-color: #ffffff;
                                                --secondary-text-color: #bbb;
                                                --shadow-color: rgba(255, 255, 255, 0.1);
                                                --overlay-opacity: 0.5;
                                                --unit-background-color: rgba(142, 136, 136, 0.5);
                                            }
                                    
                                            body {
                                                background-color: transparent(--background-color);
                                                margin: 0;
                                                font-family: 'Bona Nova SC', Arial, sans-serif;
                                                color: var(--text-color);
                                            }
                                    
                                            #popup-container {
                                                position: fixed;
                                                bottom: 20px;
                                                right: 20px;
                                                background-color: var(--overlay-background);
                                                border-radius: 10px;
                                                padding: 15px;
                                                box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
                                                z-index: 1000;
                                                overflow: hidden;
                                                max-width: 300px; /* הקטנת גודל */
                                                width: auto;
                                                height: auto;
                                                box-sizing: border-box;
                                                text-align: center;
                                            }
                                    
                                            #popup-background {
                                                position: absolute;
                                                top: 0;
                                                left: 0;
                                                width: 100%;
                                                height: 100%;
                                                background-image: url('https://moshelavi.github.io/beit-amikdash/beit%20amikdash%20script/Landing%20page/%D7%91%D7%99%D7%AA%20%D7%94%D7%9E%D7%A7%D7%93%D7%A9.gif'); /* ודא שהקובץ נמצא באותה תיקייה */
                                                background-size: cover;
                                                background-position: center;
                                                opacity: var(--overlay-opacity);
                                                z-index: 0;
                                                border-radius: 10px;
                                                filter: blur(1px);
                                            }
                                    
                                            #temple-counter {
                                                position: relative;
                                                z-index: 1;
                                            }
                                    
                                            #temple-counter h2 {
                                                color: var(--highlight-color);
                                                font-size: 16px;
                                                margin-bottom: 10px;
                                                font-weight: 700;
                                                line-height: 1.2;
                                            }
                                    
                                            .time-unit {
                                                display: flex;
                                                justify-content: center;
                                                align-items: center;
                                                margin-bottom: 10px;
                                                flex-direction: row-reverse;
                                            }
                                    
                                            .unit {
                                                display: flex;
                                                flex-direction: column;
                                                align-items: center;
                                                margin: 0 5px;
                                            }
                                    
                                            .unit-title {
                                                font-size: 10px;
                                                color: var(--secondary-text-color);
                                                margin-top: 4px;
                                            }
                                    
                                            .unit-value-container {
                                                display: flex;
                                                flex-direction: row;
                                                justify-content: center;
                                                align-items: center;
                                            }
                                    
                                            .unit-value {
                                                display: flex;
                                                align-items: center;
                                                justify-content: center;
                                                border: none;
                                                padding: 4px;
                                                border-radius: 6px;
                                                background-color: var(--unit-background-color);
                                                font-family: 'Digital-7', Arial, sans-serif;
                                                font-size: 16px;
                                                font-weight: 700;
                                                color: var(--text-color);
                                                min-width: 16px;
                                                width: 16px;
                                                margin: 0 1px;
                                                height: 24px;
                                                line-height: 24px;
                                                text-align: center;
                                                box-sizing: border-box;
                                            }
                                    
                                            .colon {
                                                font-size: 14px;
                                                line-height: 24px;
                                                font-family: 'Digital-7', Arial, sans-serif;
                                                display: flex;
                                                align-items: center;
                                                justify-content: center;
                                                height: 24px;
                                                margin: 0 2px;
                                                position: relative;
                                                top: -6px;
                                            }
                                    
                                            .action {
                                                font-size: 12px;
                                                color: var(--highlight-color);
                                                margin-top: 8px;
                                                text-transform: uppercase;
                                                font-weight: 700;
                                            }
                                    
                                            @media (max-width: 480px) {
                                                #popup-container {
                                                    width: 80vw;
                                                    padding: 5px;
                                                    right: 5vw;
                                                }
                                    
                                                .unit-value {
                                                    font-size: 14px;
                                                    height: auto;
                                                }
                                    
                                                .colon {
                                                    font-size: 12px;
                                                    line-height: 14px;
                                                }
                                            }
                                        </style>
                                    </head>
                                    
                                    <body>
                                        <div id="popup-container">
                                            <div id="popup-background"></div>
                                            <div id="temple-counter">
                                                <h2>זמן שחלף מאז חורבן בית המקדש</h2>
                                                <div class="time-unit" id="time-units-container"></div>
                                                <div class="action">"והראנו בבניינו ושמחנו בתיקונו"</div>
                                            </div>
                                        </div>
                                    
                                        <script>
                                            const DESTRUCTION_YEAR = 70;
                                    
                                            function getTishaBAvDate(year) {
                                                return new Date(year, 7, 12);
                                            }
                                    
                                            function calculateTimeSinceDestruction() {
                                                const today = new Date();
                                                let tishaBAvDate = getTishaBAvDate(today.getFullYear());
                                    
                                                if (today < tishaBAvDate) {
                                                    tishaBAvDate = getTishaBAvDate(today.getFullYear() - 1);
                                                }
                                    
                                                const timeSinceDestruction = today - tishaBAvDate;
                                                const daysSinceDestruction = Math.floor(timeSinceDestruction / (1000 * 60 * 60 * 24));
                                    
                                                let yearsSinceDestruction = today.getFullYear() - DESTRUCTION_YEAR;
                                                if (today < tishaBAvDate) {
                                                    yearsSinceDestruction -= 1;
                                                }
                                    
                                                const times = { days: daysSinceDestruction, years: yearsSinceDestruction };
                                                const timeUnitsContainer = document.getElementById('time-units-container');
                                                timeUnitsContainer.innerHTML = '';
                                    
                                                const TIME_UNITS = ['days', 'years'];
                                                TIME_UNITS.forEach(unit => {
                                                    let unitValue = times[unit].toString().padStart(2, '0');
                                    
                                                    const unitContainer = document.createElement('div');
                                                    unitContainer.classList.add('unit');
                                    
                                                    const valueContainer = document.createElement('div');
                                                    valueContainer.classList.add('unit-value-container');
                                    
                                                    unitValue.split('').forEach(number => {
                                                        const numberElement = document.createElement('div');
                                                        numberElement.classList.add('unit-value');
                                                        numberElement.textContent = number;
                                                        valueContainer.appendChild(numberElement);
                                                    });
                                    
                                                    unitContainer.appendChild(valueContainer);
                                                    unitContainer.appendChild(document.createElement('div')).textContent = unit === 'years' ? 'שנים' : 'ימים';
                                                    timeUnitsContainer.appendChild(unitContainer);
                                                });
                                    
                                                requestAnimationFrame(calculateTimeSinceDestruction);
                                            }
                                    
                                            calculateTimeSinceDestruction();
                                        </script>
                                    </body>
                                    
                                    </html>
                                    
                                    

                                    הבעיה היא שמשום מה הוא טעה איפשהו בחישוב ויצא לי 1955 שנים במקום 1954. וגם הימים מופיעים לי לפני השנים. מה צריך לשנות?
                                    7cc6501c-6807-4057-878d-9c0443cc1b1d-image.png

                                    יום חדש מתחילי פ 2 תגובות תגובה אחרונה
                                    0
                                    • לאציל לאצי

                                      @טופטופיסט @יאנג-בוי בסוף נתתי לGPT את כל הקוד כפי שהוא מופיע בגיטהאב (שזה אומר; HTML, JS, וCSS ) וזה מה שהוא יצר לי

                                      <!DOCTYPE html>
                                      <html lang="he">
                                      
                                      <head>
                                          <meta charset="UTF-8">
                                          <meta name="viewport" content="width=device-width, initial-scale=1.0">
                                          <title>Sample page</title>
                                          <style>
                                              @import url('https://fonts.googleapis.com/css2?family=Bona+Nova+SC&display=swap');
                                      
                                              :root {
                                                  --background-color: #ffffff;
                                                  --overlay-background: rgba(114, 42, 42, 0.5);
                                                  --border-color: #444;
                                                  --text-color: #ffffff;
                                                  --highlight-color: #ffffff;
                                                  --secondary-text-color: #bbb;
                                                  --shadow-color: rgba(255, 255, 255, 0.1);
                                                  --overlay-opacity: 0.5;
                                                  --unit-background-color: rgba(142, 136, 136, 0.5);
                                              }
                                      
                                              body {
                                                  background-color: transparent(--background-color);
                                                  margin: 0;
                                                  font-family: 'Bona Nova SC', Arial, sans-serif;
                                                  color: var(--text-color);
                                              }
                                      
                                              #popup-container {
                                                  position: fixed;
                                                  bottom: 20px;
                                                  right: 20px;
                                                  background-color: var(--overlay-background);
                                                  border-radius: 10px;
                                                  padding: 15px;
                                                  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
                                                  z-index: 1000;
                                                  overflow: hidden;
                                                  max-width: 300px; /* הקטנת גודל */
                                                  width: auto;
                                                  height: auto;
                                                  box-sizing: border-box;
                                                  text-align: center;
                                              }
                                      
                                              #popup-background {
                                                  position: absolute;
                                                  top: 0;
                                                  left: 0;
                                                  width: 100%;
                                                  height: 100%;
                                                  background-image: url('https://moshelavi.github.io/beit-amikdash/beit%20amikdash%20script/Landing%20page/%D7%91%D7%99%D7%AA%20%D7%94%D7%9E%D7%A7%D7%93%D7%A9.gif'); /* ודא שהקובץ נמצא באותה תיקייה */
                                                  background-size: cover;
                                                  background-position: center;
                                                  opacity: var(--overlay-opacity);
                                                  z-index: 0;
                                                  border-radius: 10px;
                                                  filter: blur(1px);
                                              }
                                      
                                              #temple-counter {
                                                  position: relative;
                                                  z-index: 1;
                                              }
                                      
                                              #temple-counter h2 {
                                                  color: var(--highlight-color);
                                                  font-size: 16px;
                                                  margin-bottom: 10px;
                                                  font-weight: 700;
                                                  line-height: 1.2;
                                              }
                                      
                                              .time-unit {
                                                  display: flex;
                                                  justify-content: center;
                                                  align-items: center;
                                                  margin-bottom: 10px;
                                                  flex-direction: row-reverse;
                                              }
                                      
                                              .unit {
                                                  display: flex;
                                                  flex-direction: column;
                                                  align-items: center;
                                                  margin: 0 5px;
                                              }
                                      
                                              .unit-title {
                                                  font-size: 10px;
                                                  color: var(--secondary-text-color);
                                                  margin-top: 4px;
                                              }
                                      
                                              .unit-value-container {
                                                  display: flex;
                                                  flex-direction: row;
                                                  justify-content: center;
                                                  align-items: center;
                                              }
                                      
                                              .unit-value {
                                                  display: flex;
                                                  align-items: center;
                                                  justify-content: center;
                                                  border: none;
                                                  padding: 4px;
                                                  border-radius: 6px;
                                                  background-color: var(--unit-background-color);
                                                  font-family: 'Digital-7', Arial, sans-serif;
                                                  font-size: 16px;
                                                  font-weight: 700;
                                                  color: var(--text-color);
                                                  min-width: 16px;
                                                  width: 16px;
                                                  margin: 0 1px;
                                                  height: 24px;
                                                  line-height: 24px;
                                                  text-align: center;
                                                  box-sizing: border-box;
                                              }
                                      
                                              .colon {
                                                  font-size: 14px;
                                                  line-height: 24px;
                                                  font-family: 'Digital-7', Arial, sans-serif;
                                                  display: flex;
                                                  align-items: center;
                                                  justify-content: center;
                                                  height: 24px;
                                                  margin: 0 2px;
                                                  position: relative;
                                                  top: -6px;
                                              }
                                      
                                              .action {
                                                  font-size: 12px;
                                                  color: var(--highlight-color);
                                                  margin-top: 8px;
                                                  text-transform: uppercase;
                                                  font-weight: 700;
                                              }
                                      
                                              @media (max-width: 480px) {
                                                  #popup-container {
                                                      width: 80vw;
                                                      padding: 5px;
                                                      right: 5vw;
                                                  }
                                      
                                                  .unit-value {
                                                      font-size: 14px;
                                                      height: auto;
                                                  }
                                      
                                                  .colon {
                                                      font-size: 12px;
                                                      line-height: 14px;
                                                  }
                                              }
                                          </style>
                                      </head>
                                      
                                      <body>
                                          <div id="popup-container">
                                              <div id="popup-background"></div>
                                              <div id="temple-counter">
                                                  <h2>זמן שחלף מאז חורבן בית המקדש</h2>
                                                  <div class="time-unit" id="time-units-container"></div>
                                                  <div class="action">"והראנו בבניינו ושמחנו בתיקונו"</div>
                                              </div>
                                          </div>
                                      
                                          <script>
                                              const DESTRUCTION_YEAR = 70;
                                      
                                              function getTishaBAvDate(year) {
                                                  return new Date(year, 7, 12);
                                              }
                                      
                                              function calculateTimeSinceDestruction() {
                                                  const today = new Date();
                                                  let tishaBAvDate = getTishaBAvDate(today.getFullYear());
                                      
                                                  if (today < tishaBAvDate) {
                                                      tishaBAvDate = getTishaBAvDate(today.getFullYear() - 1);
                                                  }
                                      
                                                  const timeSinceDestruction = today - tishaBAvDate;
                                                  const daysSinceDestruction = Math.floor(timeSinceDestruction / (1000 * 60 * 60 * 24));
                                      
                                                  let yearsSinceDestruction = today.getFullYear() - DESTRUCTION_YEAR;
                                                  if (today < tishaBAvDate) {
                                                      yearsSinceDestruction -= 1;
                                                  }
                                      
                                                  const times = { days: daysSinceDestruction, years: yearsSinceDestruction };
                                                  const timeUnitsContainer = document.getElementById('time-units-container');
                                                  timeUnitsContainer.innerHTML = '';
                                      
                                                  const TIME_UNITS = ['days', 'years'];
                                                  TIME_UNITS.forEach(unit => {
                                                      let unitValue = times[unit].toString().padStart(2, '0');
                                      
                                                      const unitContainer = document.createElement('div');
                                                      unitContainer.classList.add('unit');
                                      
                                                      const valueContainer = document.createElement('div');
                                                      valueContainer.classList.add('unit-value-container');
                                      
                                                      unitValue.split('').forEach(number => {
                                                          const numberElement = document.createElement('div');
                                                          numberElement.classList.add('unit-value');
                                                          numberElement.textContent = number;
                                                          valueContainer.appendChild(numberElement);
                                                      });
                                      
                                                      unitContainer.appendChild(valueContainer);
                                                      unitContainer.appendChild(document.createElement('div')).textContent = unit === 'years' ? 'שנים' : 'ימים';
                                                      timeUnitsContainer.appendChild(unitContainer);
                                                  });
                                      
                                                  requestAnimationFrame(calculateTimeSinceDestruction);
                                              }
                                      
                                              calculateTimeSinceDestruction();
                                          </script>
                                      </body>
                                      
                                      </html>
                                      
                                      

                                      הבעיה היא שמשום מה הוא טעה איפשהו בחישוב ויצא לי 1955 שנים במקום 1954. וגם הימים מופיעים לי לפני השנים. מה צריך לשנות?
                                      7cc6501c-6807-4057-878d-9c0443cc1b1d-image.png

                                      יום חדש מתחילי מנותק
                                      יום חדש מתחילי מנותק
                                      יום חדש מתחיל
                                      כתב נערך לאחרונה על ידי יום חדש מתחיל
                                      #101

                                      @לאצי הנה הקוד שסדר הימים והשנים הפוך כרצונך.

                                      <!DOCTYPE html>
                                      <html lang="he">
                                       
                                      <head>
                                          <meta charset="UTF-8">
                                          <meta name="viewport" content="width=device-width, initial-scale=1.0">
                                          <title>Sample page</title>
                                          <style>
                                              @import url('https://fonts.googleapis.com/css2?family=Bona+Nova+SC&display=swap');
                                       
                                              :root {
                                                  --background-color: #ffffff;
                                                  --overlay-background: rgba(114, 42, 42, 0.5);
                                                  --border-color: #444;
                                                  --text-color: #ffffff;
                                                  --highlight-color: #ffffff;
                                                  --secondary-text-color: #bbb;
                                                  --shadow-color: rgba(255, 255, 255, 0.1);
                                                  --overlay-opacity: 0.5;
                                                  --unit-background-color: rgba(142, 136, 136, 0.5);
                                              }
                                       
                                              body {
                                                  background-color: transparent(--background-color);
                                                  margin: 0;
                                                  font-family: 'Bona Nova SC', Arial, sans-serif;
                                                  color: var(--text-color);
                                              }
                                       
                                              #popup-container {
                                                  position: fixed;
                                                  bottom: 20px;
                                                  right: 20px;
                                                  background-color: var(--overlay-background);
                                                  border-radius: 10px;
                                                  padding: 15px;
                                                  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
                                                  z-index: 1000;
                                                  overflow: hidden;
                                                  max-width: 300px; /* הקטנת גודל */
                                                  width: auto;
                                                  height: auto;
                                                  box-sizing: border-box;
                                                  text-align: center;
                                              }
                                       
                                              #popup-background {
                                                  position: absolute;
                                                  top: 0;
                                                  left: 0;
                                                  width: 100%;
                                                  height: 100%;
                                                  background-image: url('https://moshelavi.github.io/beit-amikdash/beit%20amikdash%20script/Landing%20page/%D7%91%D7%99%D7%AA%20%D7%94%D7%9E%D7%A7%D7%93%D7%A9.gif'); /* ודא שהקובץ נמצא באותה תיקייה */
                                                  background-size: cover;
                                                  background-position: center;
                                                  opacity: var(--overlay-opacity);
                                                  z-index: 0;
                                                  border-radius: 10px;
                                                  filter: blur(1px);
                                              }
                                       
                                              #temple-counter {
                                                  position: relative;
                                                  z-index: 1;
                                              }
                                       
                                              #temple-counter h2 {
                                                  color: var(--highlight-color);
                                                  font-size: 16px;
                                                  margin-bottom: 10px;
                                                  font-weight: 700;
                                                  line-height: 1.2;
                                              }
                                       
                                              .time-unit {
                                                  display: flex;
                                                  justify-content: center;
                                                  align-items: center;
                                                  margin-bottom: 10px;
                                                  flex-direction: row-reverse;
                                              }
                                       
                                              .unit {
                                                  display: flex;
                                                  flex-direction: column;
                                                  align-items: center;
                                                  margin: 0 5px;
                                              }
                                       
                                              .unit-title {
                                                  font-size: 10px;
                                                  color: var(--secondary-text-color);
                                                  margin-top: 4px;
                                              }
                                       
                                              .unit-value-container {
                                                  display: flex;
                                                  flex-direction: row;
                                                  justify-content: center;
                                                  align-items: center;
                                              }
                                       
                                              .unit-value {
                                                  display: flex;
                                                  align-items: center;
                                                  justify-content: center;
                                                  border: none;
                                                  padding: 4px;
                                                  border-radius: 6px;
                                                  background-color: var(--unit-background-color);
                                                  font-family: 'Digital-7', Arial, sans-serif;
                                                  font-size: 16px;
                                                  font-weight: 700;
                                                  color: var(--text-color);
                                                  min-width: 16px;
                                                  width: 16px;
                                                  margin: 0 1px;
                                                  height: 24px;
                                                  line-height: 24px;
                                                  text-align: center;
                                                  box-sizing: border-box;
                                              }
                                       
                                              .colon {
                                                  font-size: 14px;
                                                  line-height: 24px;
                                                  font-family: 'Digital-7', Arial, sans-serif;
                                                  display: flex;
                                                  align-items: center;
                                                  justify-content: center;
                                                  height: 24px;
                                                  margin: 0 2px;
                                                  position: relative;
                                                  top: -6px;
                                              }
                                       
                                              .action {
                                                  font-size: 12px;
                                                  color: var(--highlight-color);
                                                  margin-top: 8px;
                                                  text-transform: uppercase;
                                                  font-weight: 700;
                                              }
                                       
                                              @media (max-width: 480px) {
                                                  #popup-container {
                                                      width: 80vw;
                                                      padding: 5px;
                                                      right: 5vw;
                                                  }
                                       
                                                  .unit-value {
                                                      font-size: 14px;
                                                      height: auto;
                                                  }
                                       
                                                  .colon {
                                                      font-size: 12px;
                                                      line-height: 14px;
                                                  }
                                              }
                                          </style>
                                      </head>
                                       
                                      <body>
                                          <div id="popup-container">
                                              <div id="popup-background"></div>
                                              <div id="temple-counter">
                                                  <h2>זמן שחלף מאז חורבן בית המקדש</h2>
                                                  <div class="time-unit" id="time-units-container"></div>
                                                  <div class="action">"והראנו בבניינו ושמחנו בתיקונו"</div>
                                              </div>
                                          </div>
                                       
                                          <script>
                                              const DESTRUCTION_YEAR = 70;
                                       
                                              function getTishaBAvDate(year) {
                                                  return new Date(year, 7, 12);
                                              }
                                       
                                              function calculateTimeSinceDestruction() {
                                                  const today = new Date();
                                                  let tishaBAvDate = getTishaBAvDate(today.getFullYear());
                                       
                                                  if (today < tishaBAvDate) {
                                                      tishaBAvDate = getTishaBAvDate(today.getFullYear() - 1);
                                                  }
                                       
                                                  const timeSinceDestruction = today - tishaBAvDate;
                                                  const daysSinceDestruction = Math.floor(timeSinceDestruction / (1000 * 60 * 60 * 24));
                                       
                                                  let yearsSinceDestruction = today.getFullYear() - DESTRUCTION_YEAR;
                                                  if (today < tishaBAvDate) {
                                                      yearsSinceDestruction -= 1;
                                                  }
                                       
                                                  const times = { days: daysSinceDestruction, years: yearsSinceDestruction };
                                                  const timeUnitsContainer = document.getElementById('time-units-container');
                                                  timeUnitsContainer.innerHTML = '';
                                       
                                                  const TIME_UNITS = ['years', 'days'];
                                                  TIME_UNITS.forEach(unit => {
                                                      let unitValue = times[unit].toString().padStart(2, '0');
                                       
                                                      const unitContainer = document.createElement('div');
                                                      unitContainer.classList.add('unit');
                                       
                                                      const valueContainer = document.createElement('div');
                                                      valueContainer.classList.add('unit-value-container');
                                       
                                                      unitValue.split('').forEach(number => {
                                                          const numberElement = document.createElement('div');
                                                          numberElement.classList.add('unit-value');
                                                          numberElement.textContent = number;
                                                          valueContainer.appendChild(numberElement);
                                                      });
                                       
                                                      unitContainer.appendChild(valueContainer);
                                                      unitContainer.appendChild(document.createElement('div')).textContent = unit === 'years' ? 'שנים' : 'ימים';
                                                      timeUnitsContainer.appendChild(unitContainer);
                                                  });
                                       
                                                  requestAnimationFrame(calculateTimeSinceDestruction);
                                              }
                                       
                                              calculateTimeSinceDestruction();
                                          </script>
                                      </body>
                                       
                                      </html>
                                      

                                      הקלטת מסך 2025-02-18 105217.gif

                                      תגובה 1 תגובה אחרונה
                                      2
                                      • לאציל לאצי

                                        @טופטופיסט @יאנג-בוי בסוף נתתי לGPT את כל הקוד כפי שהוא מופיע בגיטהאב (שזה אומר; HTML, JS, וCSS ) וזה מה שהוא יצר לי

                                        <!DOCTYPE html>
                                        <html lang="he">
                                        
                                        <head>
                                            <meta charset="UTF-8">
                                            <meta name="viewport" content="width=device-width, initial-scale=1.0">
                                            <title>Sample page</title>
                                            <style>
                                                @import url('https://fonts.googleapis.com/css2?family=Bona+Nova+SC&display=swap');
                                        
                                                :root {
                                                    --background-color: #ffffff;
                                                    --overlay-background: rgba(114, 42, 42, 0.5);
                                                    --border-color: #444;
                                                    --text-color: #ffffff;
                                                    --highlight-color: #ffffff;
                                                    --secondary-text-color: #bbb;
                                                    --shadow-color: rgba(255, 255, 255, 0.1);
                                                    --overlay-opacity: 0.5;
                                                    --unit-background-color: rgba(142, 136, 136, 0.5);
                                                }
                                        
                                                body {
                                                    background-color: transparent(--background-color);
                                                    margin: 0;
                                                    font-family: 'Bona Nova SC', Arial, sans-serif;
                                                    color: var(--text-color);
                                                }
                                        
                                                #popup-container {
                                                    position: fixed;
                                                    bottom: 20px;
                                                    right: 20px;
                                                    background-color: var(--overlay-background);
                                                    border-radius: 10px;
                                                    padding: 15px;
                                                    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
                                                    z-index: 1000;
                                                    overflow: hidden;
                                                    max-width: 300px; /* הקטנת גודל */
                                                    width: auto;
                                                    height: auto;
                                                    box-sizing: border-box;
                                                    text-align: center;
                                                }
                                        
                                                #popup-background {
                                                    position: absolute;
                                                    top: 0;
                                                    left: 0;
                                                    width: 100%;
                                                    height: 100%;
                                                    background-image: url('https://moshelavi.github.io/beit-amikdash/beit%20amikdash%20script/Landing%20page/%D7%91%D7%99%D7%AA%20%D7%94%D7%9E%D7%A7%D7%93%D7%A9.gif'); /* ודא שהקובץ נמצא באותה תיקייה */
                                                    background-size: cover;
                                                    background-position: center;
                                                    opacity: var(--overlay-opacity);
                                                    z-index: 0;
                                                    border-radius: 10px;
                                                    filter: blur(1px);
                                                }
                                        
                                                #temple-counter {
                                                    position: relative;
                                                    z-index: 1;
                                                }
                                        
                                                #temple-counter h2 {
                                                    color: var(--highlight-color);
                                                    font-size: 16px;
                                                    margin-bottom: 10px;
                                                    font-weight: 700;
                                                    line-height: 1.2;
                                                }
                                        
                                                .time-unit {
                                                    display: flex;
                                                    justify-content: center;
                                                    align-items: center;
                                                    margin-bottom: 10px;
                                                    flex-direction: row-reverse;
                                                }
                                        
                                                .unit {
                                                    display: flex;
                                                    flex-direction: column;
                                                    align-items: center;
                                                    margin: 0 5px;
                                                }
                                        
                                                .unit-title {
                                                    font-size: 10px;
                                                    color: var(--secondary-text-color);
                                                    margin-top: 4px;
                                                }
                                        
                                                .unit-value-container {
                                                    display: flex;
                                                    flex-direction: row;
                                                    justify-content: center;
                                                    align-items: center;
                                                }
                                        
                                                .unit-value {
                                                    display: flex;
                                                    align-items: center;
                                                    justify-content: center;
                                                    border: none;
                                                    padding: 4px;
                                                    border-radius: 6px;
                                                    background-color: var(--unit-background-color);
                                                    font-family: 'Digital-7', Arial, sans-serif;
                                                    font-size: 16px;
                                                    font-weight: 700;
                                                    color: var(--text-color);
                                                    min-width: 16px;
                                                    width: 16px;
                                                    margin: 0 1px;
                                                    height: 24px;
                                                    line-height: 24px;
                                                    text-align: center;
                                                    box-sizing: border-box;
                                                }
                                        
                                                .colon {
                                                    font-size: 14px;
                                                    line-height: 24px;
                                                    font-family: 'Digital-7', Arial, sans-serif;
                                                    display: flex;
                                                    align-items: center;
                                                    justify-content: center;
                                                    height: 24px;
                                                    margin: 0 2px;
                                                    position: relative;
                                                    top: -6px;
                                                }
                                        
                                                .action {
                                                    font-size: 12px;
                                                    color: var(--highlight-color);
                                                    margin-top: 8px;
                                                    text-transform: uppercase;
                                                    font-weight: 700;
                                                }
                                        
                                                @media (max-width: 480px) {
                                                    #popup-container {
                                                        width: 80vw;
                                                        padding: 5px;
                                                        right: 5vw;
                                                    }
                                        
                                                    .unit-value {
                                                        font-size: 14px;
                                                        height: auto;
                                                    }
                                        
                                                    .colon {
                                                        font-size: 12px;
                                                        line-height: 14px;
                                                    }
                                                }
                                            </style>
                                        </head>
                                        
                                        <body>
                                            <div id="popup-container">
                                                <div id="popup-background"></div>
                                                <div id="temple-counter">
                                                    <h2>זמן שחלף מאז חורבן בית המקדש</h2>
                                                    <div class="time-unit" id="time-units-container"></div>
                                                    <div class="action">"והראנו בבניינו ושמחנו בתיקונו"</div>
                                                </div>
                                            </div>
                                        
                                            <script>
                                                const DESTRUCTION_YEAR = 70;
                                        
                                                function getTishaBAvDate(year) {
                                                    return new Date(year, 7, 12);
                                                }
                                        
                                                function calculateTimeSinceDestruction() {
                                                    const today = new Date();
                                                    let tishaBAvDate = getTishaBAvDate(today.getFullYear());
                                        
                                                    if (today < tishaBAvDate) {
                                                        tishaBAvDate = getTishaBAvDate(today.getFullYear() - 1);
                                                    }
                                        
                                                    const timeSinceDestruction = today - tishaBAvDate;
                                                    const daysSinceDestruction = Math.floor(timeSinceDestruction / (1000 * 60 * 60 * 24));
                                        
                                                    let yearsSinceDestruction = today.getFullYear() - DESTRUCTION_YEAR;
                                                    if (today < tishaBAvDate) {
                                                        yearsSinceDestruction -= 1;
                                                    }
                                        
                                                    const times = { days: daysSinceDestruction, years: yearsSinceDestruction };
                                                    const timeUnitsContainer = document.getElementById('time-units-container');
                                                    timeUnitsContainer.innerHTML = '';
                                        
                                                    const TIME_UNITS = ['days', 'years'];
                                                    TIME_UNITS.forEach(unit => {
                                                        let unitValue = times[unit].toString().padStart(2, '0');
                                        
                                                        const unitContainer = document.createElement('div');
                                                        unitContainer.classList.add('unit');
                                        
                                                        const valueContainer = document.createElement('div');
                                                        valueContainer.classList.add('unit-value-container');
                                        
                                                        unitValue.split('').forEach(number => {
                                                            const numberElement = document.createElement('div');
                                                            numberElement.classList.add('unit-value');
                                                            numberElement.textContent = number;
                                                            valueContainer.appendChild(numberElement);
                                                        });
                                        
                                                        unitContainer.appendChild(valueContainer);
                                                        unitContainer.appendChild(document.createElement('div')).textContent = unit === 'years' ? 'שנים' : 'ימים';
                                                        timeUnitsContainer.appendChild(unitContainer);
                                                    });
                                        
                                                    requestAnimationFrame(calculateTimeSinceDestruction);
                                                }
                                        
                                                calculateTimeSinceDestruction();
                                            </script>
                                        </body>
                                        
                                        </html>
                                        
                                        

                                        הבעיה היא שמשום מה הוא טעה איפשהו בחישוב ויצא לי 1955 שנים במקום 1954. וגם הימים מופיעים לי לפני השנים. מה צריך לשנות?
                                        7cc6501c-6807-4057-878d-9c0443cc1b1d-image.png

                                        פ מנותק
                                        פ מנותק
                                        פקז
                                        כתב נערך לאחרונה על ידי
                                        #102

                                        @לאצי בשביל הסדר תחליף בשורה 202

                                        const TIME_UNITS = ['days', 'years'];
                                        

                                        ל

                                        const TIME_UNITS = ['years', 'days'];
                                        לאציל תגובה 1 תגובה אחרונה
                                        1
                                        • פ פקז

                                          @לאצי בשביל הסדר תחליף בשורה 202

                                          const TIME_UNITS = ['days', 'years'];
                                          

                                          ל

                                          const TIME_UNITS = ['years', 'days'];
                                          לאציל מחובר
                                          לאציל מחובר
                                          לאצי
                                          כתב נערך לאחרונה על ידי
                                          #103

                                          @פקז @יום-חדש-מתחיל תודה.
                                          הבעיה עם החישוב בעינה עומדת.

                                          פ תגובה 1 תגובה אחרונה
                                          0

                                          • התחברות

                                          • אין לך חשבון עדיין? הרשמה

                                          • התחברו או הירשמו כדי לחפש.
                                          • פוסט ראשון
                                            פוסט אחרון
                                          0
                                          • חוקי הפורום
                                          • פופולרי
                                          • לא נפתר
                                          • משתמשים
                                          • חיפוש גוגל בפורום
                                          • צור קשר