fix noscript notifications

This commit is contained in:
Andrew Dolgov 2021-04-09 13:45:25 +03:00
parent 49ef15f11d
commit a5af15cfe9
2 changed files with 27 additions and 3 deletions

View File

@ -110,19 +110,31 @@
} }
</style> </style>
<noscript>
<?= stylesheet_tag("themes/light.css") ?>
<style type="text/css">
body.css_loading noscript {
display : block;
margin : 16px;
}
</style>
</noscript>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="referrer" content="no-referrer"/> <meta name="referrer" content="no-referrer"/>
</head> </head>
<body class="flat ttrss_main ttrss_index css_loading"> <body class="flat ttrss_main ttrss_index css_loading">
<div id="overlay" style="display : block"> <noscript class="alert alert-error"><?= ('Javascript is disabled. Please enable it.') ?></noscript>
<div id="overlay">
<div id="overlay_inner"> <div id="overlay_inner">
<?= __("Loading, please wait...") ?> <?= __("Loading, please wait...") ?>
<div dojoType="dijit.ProgressBar" places="0" style="width : 300px" id="loading_bar" <div dojoType="dijit.ProgressBar" places="0" style="width : 300px" id="loading_bar"
progress="0" maximum="100"> progress="0" maximum="100">
</div> </div>
<noscript><br/><?php print_error('Javascript is disabled. Please enable it.') ?></noscript>
</div> </div>
</div> </div>

View File

@ -93,11 +93,24 @@
} }
</style> </style>
<noscript>
<style type="text/css">
body.css_loading noscript {
display : block;
margin : 16px;
}
</style>
<?= stylesheet_tag("themes/light.css") ?>
</noscript>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head> </head>
<body class="flat ttrss_main ttrss_prefs css_loading"> <body class="flat ttrss_main ttrss_prefs css_loading">
<noscript class="alert alert-error"><?= ('Javascript is disabled. Please enable it.') ?></noscript>
<div id="notify" class="notify"></div> <div id="notify" class="notify"></div>
<div id="cmdline" style="display : none"></div> <div id="cmdline" style="display : none"></div>
@ -107,7 +120,6 @@
<div dojoType="dijit.ProgressBar" places="0" style="width : 300px" id="loading_bar" <div dojoType="dijit.ProgressBar" places="0" style="width : 300px" id="loading_bar"
progress="0" maximum="100"> progress="0" maximum="100">
</div> </div>
<noscript><br/><?php print_error('Javascript is disabled. Please enable it.') ?></noscript>
</div> </div>
</div> </div>