From 523ac48fb6cebf163c412f158df9f357ecb9ab17 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Fri, 1 Mar 2024 09:30:38 +0300 Subject: [PATCH] Remove iframe. For some reason it breaks site --- data/magprog/assets/js/util.js | 40 +++++++++++++++++----------------- data/magprog/content/intro.md | 3 +-- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/data/magprog/assets/js/util.js b/data/magprog/assets/js/util.js index ecf7b37..75c6f7c 100644 --- a/data/magprog/assets/js/util.js +++ b/data/magprog/assets/js/util.js @@ -20,8 +20,8 @@ b.push( '' + '' + $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. diff --git a/data/magprog/content/intro.md b/data/magprog/content/intro.md index 8292379..80f6a57 100644 --- a/data/magprog/content/intro.md +++ b/data/magprog/content/intro.md @@ -5,8 +5,7 @@ section_title: О программе language: ru --- - - +[Видео презентация программы](https://youtu.be/pniPs5ne294?si=TzY9yvt6PmYcDIq7) Магистерская программа МФТИ **"Научное программное обеспечение"** создана при поддержке двух школ МФТИ: Физтех-школы физики и исследований им. Ландау ([ЛФИ](https://mipt.ru/education/departments/lpr/)) и Физтех-школы прикладной математики и информатики ([ФПМИ](https://mipt.ru/education/departments/fpmi/)), а также ряда академических и промышленных партнеров. В ее основе лежит взаимодействие студента и [научного руководителя](#mentors).