From 343ae43683888ef431d411c93220df096d149425 Mon Sep 17 00:00:00 2001 From: Hugo Lopez Date: Thu, 23 May 2024 16:17:01 +0200 Subject: [PATCH] align CSS/HTML selectors with i18n naming convention --- SignItCoreContent.js | 16 ++++----- SignItVideosGallery.js | 2 +- content_scripts/signit.css | 56 ++++++++++++++--------------- content_scripts/signit.js | 14 ++++---- popup/popup.css | 74 +++++++++++++++++++------------------- popup/popup.html | 10 +++--- popup/popup.js | 20 +++++------ 7 files changed, 96 insertions(+), 96 deletions(-) diff --git a/SignItCoreContent.js b/SignItCoreContent.js index 13095f0..9d068b9 100644 --- a/SignItCoreContent.js +++ b/SignItCoreContent.js @@ -21,9 +21,9 @@ var SignItCoreContent = function (locale) { console.log("Passed trough ! :", locale); console.log("SignItCoreContent.js",banana ); this.$container = $(` -
+

-
+

Media: @@ -34,11 +34,11 @@ var SignItCoreContent = function (locale) {

-
+

Definition: ${ banana.i18n("si-panel-definitions-title",locale) }

-
-
+
+ @@ -71,9 +71,9 @@ var SignItCoreContent = function (locale) { this.$videosPanelContent = this.$container.find(".signit-video"); this.$videosPanelGallery = new SignItVideosGallery( this.$videosPanelContent ); - this.$definitionPanelContent = this.$container.find(".signit-definition"); - this.$definitionPanelText = this.$container.find(".signit-definition-text"); - this.$definitionPanelSource = this.$container.find(".signit-definition-source a"); + this.$definitionPanelContent = this.$container.find(".signit-definitions"); + this.$definitionPanelText = this.$container.find(".signit-definitions-text"); + this.$definitionPanelSource = this.$container.find(".signit-definitions-source a"); this.$definitionPanelSpinner = this.$container.find(".signit-loading"); this.$definitionPanelError = this.$container.find(".signit-error"); diff --git a/SignItVideosGallery.js b/SignItVideosGallery.js index 196e9e6..6db0463 100644 --- a/SignItVideosGallery.js +++ b/SignItVideosGallery.js @@ -4,7 +4,7 @@ var SignItVideosGallery = function ( container ) { this.previousVideoButton = new OO.ui.ButtonWidget( { icon: 'previous', framed: false } ); this.nextVideoButton = new OO.ui.ButtonWidget( { icon: 'next', framed: false } ); - this.$videoContainer = $( '
' ); + this.$videoContainer = $( '