Установил альтернативную отрисовку по умолчанию для первого апреля
All checks were successful
Build and deploy / Publish image (push) Successful in 5m49s
All checks were successful
Build and deploy / Publish image (push) Successful in 5m49s
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
|
||||
var userData = new UserData
|
||||
{
|
||||
reason = "Прошу отчислить меня по собственному желанию в связи с не желанием продолжать обучение в данном учебном заведении, планирую перевестись в ДГТУ.",
|
||||
reason = "Прошу отчислить меня по собственному желанию в связи с не желанием продолжать обучение в данном учебном заведении, и планами перевестись в ДГТУ.",
|
||||
email = userEmail,
|
||||
phone = "",
|
||||
fio = userFIO,
|
||||
@@ -69,11 +69,6 @@
|
||||
<br>Заявление на отчисление<p class="text-2xl font-normal">отправлено директору</p>
|
||||
</div>
|
||||
<div id="pdfrenderer">
|
||||
<object data="/getStatement" type="application/pdf" class="w-96 sm:w-[32rem] h-[30rem] rounded-2xl text-center">
|
||||
<p>Не удалось отобразить заявление</p>
|
||||
<button id="alterRender" class="btn btn-primary my-2">использовать альтернативную отрисовку</button>
|
||||
<p>или откойте в браузере на основе Firefox</p>
|
||||
</object>
|
||||
</div>
|
||||
<div class="join w-full mt-4 flex gap-2">
|
||||
<button onclick="denyModal.showModal()" class="btn btn-error rounded-full flex-grow w-30">
|
||||
@@ -91,10 +86,6 @@
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.10.377/pdf.min.js"></script>
|
||||
<script>
|
||||
const alterRenderButton = document.getElementById('alterRender');
|
||||
alterRenderButton.addEventListener('click', alterRender);
|
||||
|
||||
function alterRender() {
|
||||
const pdfrenderer = document.getElementById('pdfrenderer');
|
||||
const url = '/getStatement';
|
||||
pdfrenderer.innerHTML = '<canvas id="pdf-canvas" class="w-96 rounded-2xl"></canvas>';
|
||||
@@ -114,5 +105,4 @@
|
||||
page.render(renderContext);
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user