Remove iframe. For some reason it breaks site

This commit is contained in:
Alexander Nozik 2024-03-01 09:30:38 +03:00
parent a1da3f9a5e
commit 523ac48fb6
2 changed files with 21 additions and 22 deletions

View File

@ -20,8 +20,8 @@
b.push(
'<a ' +
'class="link depth-' + indent + '"' +
( (typeof target !== 'undefined' && target != '') ? ' target="' + target + '"' : '') +
( (typeof href !== 'undefined' && href != '') ? ' href="' + href + '"' : '') +
( (typeof target !== 'undefined' && target !== '') ? ' target="' + target + '"' : '') +
( (typeof href !== 'undefined' && href !== '') ? ' href="' + href + '"' : '') +
'>' +
'<span class="indent-' + indent + '"></span>' +
$this.text() +
@ -42,7 +42,7 @@
$.fn.panel = function(userConfig) {
// No elements?
if (this.length == 0)
if (this.length === 0)
return $this;
// Multiple elements?
@ -153,7 +153,7 @@
href = $a.attr('href'),
target = $a.attr('target');
if (!href || href == '#' || href == '' || href == '#' + id)
if (!href || href === '#' || href === '' || href === '#' + id)
return;
// Cancel original event.
@ -166,7 +166,7 @@
// Redirect to href.
window.setTimeout(function() {
if (target == '_blank')
if (target === '_blank')
window.open(href);
else
window.location.href = href;
@ -287,7 +287,7 @@
if (config.hideOnEscape)
$window.on('keydown', function(event) {
if (event.keyCode == 27)
if (event.keyCode === 27)
$this._hide(event);
});
@ -307,7 +307,7 @@
return $(this);
// No elements?
if (this.length == 0)
if (this.length === 0)
return $this;
// Multiple elements?
@ -329,8 +329,8 @@
var i = $(this);
if (i.val() == ''
|| i.val() == i.attr('placeholder'))
if (i.val() === ''
|| i.val() === i.attr('placeholder'))
i
.addClass('polyfill-placeholder')
.val(i.attr('placeholder'));
@ -343,7 +343,7 @@
if (i.attr('name').match(/-polyfill-field$/))
return;
if (i.val() == '')
if (i.val() === '')
i
.addClass('polyfill-placeholder')
.val(i.attr('placeholder'));
@ -356,7 +356,7 @@
if (i.attr('name').match(/-polyfill-field$/))
return;
if (i.val() == i.attr('placeholder'))
if (i.val() === i.attr('placeholder'))
i
.removeClass('polyfill-placeholder')
.val('');
@ -377,16 +377,16 @@
.replace(/type=password/i, 'type=text')
);
if (i.attr('id') != '')
if (i.attr('id') !== '')
x.attr('id', i.attr('id') + '-polyfill-field');
if (i.attr('name') != '')
if (i.attr('name') !== '')
x.attr('name', i.attr('name') + '-polyfill-field');
x.addClass('polyfill-placeholder')
.val(x.attr('placeholder')).insertAfter(i);
if (i.val() == '')
if (i.val() === '')
i.hide();
else
x.hide();
@ -398,7 +398,7 @@
var x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]');
if (i.val() == '') {
if (i.val() === '') {
i.hide();
x.show();
@ -442,7 +442,7 @@
if (i.attr('name').match(/-polyfill-field$/))
i.attr('name', '');
if (i.val() == i.attr('placeholder')) {
if (i.val() === i.attr('placeholder')) {
i.removeClass('polyfill-placeholder');
i.val('');
@ -478,7 +478,7 @@
x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]');
if (i.val() == '') {
if (i.val() === '') {
i.hide();
x.show();
}
@ -498,7 +498,7 @@
case 'textarea':
i.val(i.attr('defaultValue'));
if (i.val() == '') {
if (i.val() === '') {
i.addClass('polyfill-placeholder');
i.val(i.attr('placeholder'));
}
@ -538,7 +538,7 @@
$parent = $e.parent();
// No parent? Bail.
if ($parent.length == 0)
if ($parent.length === 0)
return;
// Not moved? Move it.
@ -552,7 +552,7 @@
$p = $e.prev();
// Couldn't find anything? Means this element's already at the top, so bail.
if ($p.length == 0)
if ($p.length === 0)
return;
// Move element to top of parent.

View File

@ -5,8 +5,7 @@ section_title: О программе
language: ru
---
<iframe width="100%" height="315" src="https://www.youtube.com/embed/pniPs5ne294" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
[Видео презентация программы](https://youtu.be/pniPs5ne294?si=TzY9yvt6PmYcDIq7)
Магистерская программа МФТИ **"Научное программное обеспечение"** создана при поддержке двух школ МФТИ: Физтех-школы физики и исследований им. Ландау ([ЛФИ](https://mipt.ru/education/departments/lpr/)) и Физтех-школы прикладной математики и информатики ([ФПМИ](https://mipt.ru/education/departments/fpmi/)), а также ряда академических и промышленных партнеров. В ее основе лежит взаимодействие студента и [научного руководителя](#mentors).