Skip to content

Commit

Permalink
ffff
Browse files Browse the repository at this point in the history
  • Loading branch information
RaTeNo committed May 19, 2022
1 parent 13b399f commit fed3e0e
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 9 deletions.
Binary file modified ViewerJS/images/toolbarButton-presentation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion ViewerJS/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<button id = "next" class = "toolbarButton pageDown" title = "Next Page"></button>
</div>
<label id = "pageNumberLabel" class = "toolbarLabel" for = "pageNumber">Страница:</label>
<input type = "number" id = "pageNumber" class = "toolbarField pageNumber"/>
<input type = "number" id = "pageNumber" class = "toolbarField pageNumber" disabled/>
<span id = "numPages" class = "toolbarLabel"></span>
</div>
<div id = "toolbarMiddleContainer" class = "outerCenter">
Expand Down Expand Up @@ -232,6 +232,9 @@
margin-left: 20px;
}

#pageNumber{

}

</style>
</body>
Expand Down
5 changes: 2 additions & 3 deletions css/response_1279.css
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,6 @@
{
position: relative;

height: 99px;
padding-left: 63px;
}

Expand All @@ -791,13 +790,13 @@

.files .row .file .name
{
display: -webkit-box;
/*display: -webkit-box;
overflow: hidden;
max-height: 38px;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
-webkit-box-orient: vertical;*/
}

.files .row .file .links
Expand Down
20 changes: 19 additions & 1 deletion css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3515,6 +3515,8 @@ aside .menu .sub_menu a.active

align-items: stretch;
align-content: stretch;

--files_count: 3;
}

.files .row > *
Expand Down Expand Up @@ -12734,7 +12736,7 @@ section.total {
/**************************/

.webinar_more{
display: none;
display: none !important;
}

.auth .contacts .descr{
Expand All @@ -12750,3 +12752,19 @@ section.total {
padding: 30px;
}

.viewer_container{
position: relative;
padding-bottom: 142%; /* задаёт высоту контейнера для 16:9 (если 4:3 — поставьте 75%) */
height: 0;
overflow: hidden;
}

.viewer_container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-width: 0;
outline-width: 0;
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@

<div>
<div class="name">
<a href="/">Супер длинное название папки в две строки</a>
<a href="/">Супер длинное название папки в две строкиСупер длинное название папки в две строкиСупер длинное название папки в две строкиСупер длинное название папки в две строкиСупер длинное название папки в две строкиСупер длинное название папки в две строкиСупер длинное название папки в две строкиСупер длинное название папки в две строки</a>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ $(() => {


// Вспомогательные функции
const setHeight = (className) => {
const setHeight = (className) => {
let maxheight = 0

className.each(function () {
Expand Down
28 changes: 28 additions & 0 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,11 @@ $(window).on('load', () => {
$('.workbook .row').each(function () {
namesHeight($(this), parseInt($(this).css('--workbook_count')))
})

$('.files .row').each(function () {
namesHeight2($(this), 100)
})

})


Expand Down Expand Up @@ -614,6 +619,12 @@ $(window).on('resize', () => {
namesHeight($(this), parseInt($(this).css('--workbook_count')))
})

$('.files .row').each(function () {
namesHeight2($(this), 100)
})




// Перезапись ширины окна
WW = $(window).width()
Expand All @@ -639,6 +650,23 @@ function namesHeight(context, step) {
})
}

function namesHeight2(context, step) {
console.log(step);
let start = 0,
finish = step,
$items = context.find('> *')

//$items.find('.name, .desc').height('auto')
$items.each(function () {
console.log($items.slice(start, finish));
setHeight($items.slice(start, finish))
setHeight($items.slice(start, finish))

start = start + step
finish = finish + step
})
}


function sec2time(timeInSeconds) {
let pad = (num, size) => ('000' + num).slice(size * -1),
Expand Down
6 changes: 4 additions & 2 deletions lekcia3.html
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,10 @@ <h2>Что вам известно о продукции?</h2>
<p>Служба Яндекс.Рефераты предназначена для студентов и школьников, дизайнеров и журналистов, создателей научных заявок и отчетов — для всех, кто относится к тексту, как к количеству знаков.</p>

<p><b>Нажав на кнопку «Написать реферат», вы лично создаете уникальный текст, причем именно от вашего нажатия на кнопку зависит, какой именно текст получится — таким образом, авторские права на реферат принадлежат только вам.</b></p>

<iframe src = "ViewerJS/#../images/ohm2013.odp" width='100%' height='700px' class="viewer" allowfullscreen webkitallowfullscreen frameBorder="0"></iframe>
<div class="viewer_container">
<iframe src = "ViewerJS/#../images/ohm2013.odp" width='100%' height='700px' class="viewer" allowfullscreen webkitallowfullscreen frameBorder="0"></iframe>
</div>

</section>
</section>
<section class="comments">
Expand Down

0 comments on commit fed3e0e

Please sign in to comment.