Некодим© 2020-2026 Некодим
Готовые модификации для вашего сайта. Улучшайте функциональность и дизайн без программирования.
Журнал изменений История Git Файлы Tilda MCP Каталог файловtilda-feed-1.1.js Следить за файлом 2301 * @param {object} obj – object with data which came from the backend2302 * @param {object} post – JSON with data for post2303 */2304 function t_feed_changeURL(obj, post) {2305 var hostUrl = window.location.protocol + '//' + window.location.hostname;2306 // Cut out protocol and host from post url and collect pathname2307 var postPathname = post.url.split('/').slice(3).join('/');2308 var url = hostUrl + '/' + postPathname;2309 2310 var newPageTitle = document.title + '-' + post.title;2311 История файла и сравнение версий if (document.querySelector('.t-feed__post-popup')) {
2313 if (typeof history.pushState != 'undefined') {2314 window.history.pushState(2327 function t_feed_drawWholePostPopup(obj, post, opts, lid_post, recid) {2328 var rec = document.querySelector('#rec' + recid);2329 var feed = rec.querySelector('.js-feed') || rec;2330 var gridType = feed.getAttribute('data-feed-grid-type');2331 var statAttr = opts.popup_opts.popupStat ? 'data-track-popup="' + opts.popup_opts.popupStat + '"' : '';2332 var popupStyle = opts.popup_opts.overlayBgColorRgba2333 ? 'style="background-color:' + opts.popup_opts.overlayBgColorRgba + '"'2335 var popupStyleClose = opts.popup_opts.overlayBgColorRgba2336 ? 'style="background-color:' + opts.popup_opts.overlayBgColorRgba.replace('1)', '0.9)') + '"'2339 var inOneColumnHTML = {2340 open: !opts.popup_opts.inTwoColumns ? '<div class="t-feed__post-popup__content t-col t-col_8">' : '',2341 close: !opts.popup_opts.inTwoColumns ? '</div>' : '',2344 var inTwoColumnsHTML = {2345 open: opts.popup_opts.inTwoColumns2346 ? '<div class="t-feed__post-popup__content t-feed__post-popup__content_half t-feed__post-popup__content-col t-col t-col_6">'2348 close: opts.popup_opts.inTwoColumns ? '</div>' : '',2352 var panelClass = gridType === 'side-panel' ? ' t-feed__post-popup_panel ' : ' ';2354 '<div class="t-feed__post-popup' +2356 't-popup" data-feed-popup-feeduid="' +2358 '" data-feed-popup-postuid="' +2365 '<div class="t-feed__post-popup__close-wrapper t-feed__post-popup__close-wrapper_loading" ' +2369 t_feed_drawPostPopupCloseIcon(recid, opts) +2371 t_feed_drawPopupTitle(obj, opts) +2373 t_feed_drawSharing(opts) +2376 var containerClass = gridType === 'side-panel' ? ' t-feed__post-popup__container_panel ' : ' ';2378 '<div class="t-feed__post-popup__container' +2380 't-feed__post-popup__container_loading t-container t-popup__container t-popup__container-static t-popup__container-animated">' +2381 '<div class="t-feed__post-popup__content-wrapper">';2382 str += inOneColumnHTML.open;2384 if (!opts.popup_opts.inTwoColumns) {2385 if (opts.popup_opts.imagePos == 'aftertitle') {2386 str += '' + t_feed_addPostPopupHeading(opts, post, recid);2387 str += '' + t_feed_drawPostPopupCover(recid, 'aftertitle', opts, post);2389 str += '' + t_feed_drawPostPopupCover(recid, 'beforetitle', opts, post);2390 str += '' + t_feed_addPostPopupHeading(opts, post, recid);2394 if (opts.popup_opts.inTwoColumns) {2395 str += inTwoColumnsHTML.open;2396 str += '' + t_feed_drawPostPopupCover(recid, 'beforetitle', opts, post);2397 str += inTwoColumnsHTML.close;2400 str += inTwoColumnsHTML.open;