@@ -106,7 +106,6 @@ document.addEventListener("DOMContentLoaded", function () {
106106 const mobileExportPdf = document . getElementById ( "mobile-export-pdf" ) ;
107107 const mobileCopyMarkdown = document . getElementById ( "mobile-copy-markdown" ) ;
108108 const mobileThemeToggle = document . getElementById ( "mobile-theme-toggle" ) ;
109- const mobileDirectionToggle = document . getElementById ( "mobile-direction-toggle" ) ;
110109 const shareButton = document . getElementById ( "share-button" ) ;
111110 const mobileShareButton = document . getElementById ( "mobile-share-button" ) ;
112111 const githubImportModal = document . getElementById ( "github-import-modal" ) ;
@@ -264,12 +263,6 @@ document.addEventListener("DOMContentLoaded", function () {
264263 directionToggle . setAttribute ( "aria-label" , toggleLabel ) ;
265264 directionToggle . setAttribute ( "aria-pressed" , isRtl . toString ( ) ) ;
266265 }
267- if ( mobileDirectionToggle ) {
268- const icon = isRtl
269- ? '<i class="bi bi-text-left me-2"></i>'
270- : '<i class="bi bi-text-right me-2"></i>' ;
271- mobileDirectionToggle . innerHTML = `${ icon } ${ toggleLabel } ` ;
272- }
273266 }
274267
275268 const savedDirection = loadGlobalState ( ) . direction ;
@@ -5037,19 +5030,6 @@ document.addEventListener("DOMContentLoaded", function () {
50375030 mobileExportHtml . addEventListener ( "click" , ( ) => exportHtml . click ( ) ) ;
50385031 mobileExportPdf . addEventListener ( "click" , ( ) => exportPdf . click ( ) ) ;
50395032 mobileCopyMarkdown . addEventListener ( "click" , ( ) => copyMarkdownButton . click ( ) ) ;
5040- if ( mobileDirectionToggle ) {
5041- mobileDirectionToggle . addEventListener ( "click" , ( ) => {
5042- if ( directionToggle ) {
5043- directionToggle . click ( ) ;
5044- } else {
5045- const currentDir = markdownEditor ? markdownEditor . getAttribute ( "dir" ) : "ltr" ;
5046- const direction = currentDir === "rtl" ? "ltr" : "rtl" ;
5047- applyDirectionToContent ( direction ) ;
5048- saveGlobalState ( { direction } ) ;
5049- updateDirectionToggleUI ( direction ) ;
5050- }
5051- } ) ;
5052- }
50535033 mobileThemeToggle . addEventListener ( "click" , ( ) => {
50545034 themeToggle . click ( ) ;
50555035 mobileThemeToggle . innerHTML = themeToggle . innerHTML + " Toggle Dark Mode" ;
@@ -7243,11 +7223,6 @@ document.addEventListener("DOMContentLoaded", function () {
72437223 const isRtl = document . body . style . direction === 'rtl' ;
72447224 dirToggle . title = isRtl ? dict . switchLtr : dict . switchRtl ;
72457225 }
7246- const mDirToggle = document . getElementById ( 'mobile-direction-toggle' ) ;
7247- if ( mDirToggle ) {
7248- const isRtl = document . body . style . direction === 'rtl' ;
7249- mDirToggle . innerHTML = `<i class="bi bi-text-right me-2"></i> ${ isRtl ? dict . switchLtr : dict . switchRtl } ` ;
7250- }
72517226
72527227 // Modal Titles
72537228 const modalHelpTitle = document . getElementById ( 'help-modal-title' ) ;
0 commit comments