دعم الموقع

Hey Travis,

I noticed on all pages for movies or tv that there are themes. For instance: https://www.themoviedb.org/movie/299534-avengers-endgame

The color overlay on the backdrop image and collection backdrop along with content score progress bar, edit content button and alike. How are you achieving this if you don't mind me asking and is this theme_color var available threw the API? As I see this script.

          var collection_waypoint_check = false;
          new Waypoint({
            element: document.getElementById('collection_waypoint'),
            handler: function(direction) {
              if (direction == 'down' && !collection_waypoint_check) {
                $.ajax({
                  url: '/collection/86311/static_cache/movie_card?version=1&translate=false&language=en-US&theme_color=082567',
                  type: 'GET',
                  headers: {
                    'Accept-Language': 'en-US',
                    'Content-Type': 'text/html;charset=utf-8'
                  }
                }).done(function(response) {
                  collection_waypoint_check = true;

                  $('#collection_waypoint').html(response).hide().fadeIn(1000);
                });
              }
            },
            offset: '100%'
          });

I just think its really neat and curious on a dev level how you accomplish this.

2 ردود (على هذه الصفحة 1 من 1)

Jump to last post

Hi, a related topic is here.

@lineker said:

Hi, a related topic is here.

Thanks

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول