Plugin Directory

Changeset 3269601


Ignore:
Timestamp:
04/09/2025 10:55:22 AM (12 months ago)
Author:
topirank
Message:

Init version 1.1.5

Location:
topirank-integration
Files:
32 added
5 edited

Legend:

Unmodified
Added
Removed
  • topirank-integration/trunk/assets/css/topirank-normalize.css

    r3268778 r3269601  
    99
    1010#__next {
    11   position: absolute;
    1211  width: 100%;
    1312  left: 0;
     
    107106
    108107.topirank-styles table {
    109   display: inline-table !important;
    110108  border-width: 0;
    111109}
  • topirank-integration/trunk/assets/js/topirank-normalize.js

    r3268778 r3269601  
    1 document.addEventListener("DOMContentLoaded", function () {
    2     var nextElement = document.getElementById("__next");
    3     var templateElement = document.querySelector(".optimized-topirank-template");
    4 
    5     if (nextElement && templateElement) {
    6         function updateTemplateHeight() {
    7             templateElement.style.height = nextElement.offsetHeight + "px";
    8         }
    9 
    10         updateTemplateHeight();
    11 
    12         var resizeObserver = new ResizeObserver(function () {
    13             updateTemplateHeight();
    14         });
    15 
    16         resizeObserver.observe(nextElement);
    17     }
    18 
    19 });
    20 
    211document.addEventListener("DOMContentLoaded", function () {
    222    const progressBar = document.querySelector(".first-progress-bar-default");
     
    299
    3010
    31 window.addEventListener("load", () => {
    32     const content = document.querySelector(".optimized-topirank-template");
    33     if (!content) return;
    34 
    35     const headerRoot = document.querySelector("header") || document.querySelector('[data-elementor-type="header"]');
    36     if (!headerRoot) return;
    37 
    38     const allHeaderElements = [headerRoot, ...headerRoot.querySelectorAll("*")];
    39     const fixedEl = allHeaderElements.find(el => getComputedStyle(el).position === "fixed");
    40 
    41     if (!fixedEl) return;
    42 
    43     requestAnimationFrame(() => {
    44         const headerOffsetTop = fixedEl.getBoundingClientRect().top + window.scrollY;
    45         const headerHeight = fixedEl.offsetHeight;
    46         const progressBar = document.querySelector(".first-progress-bar-default");
    47         const progressBarHeight = progressBar ? progressBar.offsetHeight : 0;
    48 
    49         const totalOffset = headerOffsetTop + headerHeight - progressBarHeight;
    50 
    51         const contentTop = content.getBoundingClientRect().top + window.scrollY;
    52 
    53         if (contentTop < totalOffset + 10) {
    54             content.style.paddingTop = `${totalOffset}px`;
    55         }
    56     });
    57 });
    5811
    5912
  • topirank-integration/trunk/includes/register-files.php

    r3268778 r3269601  
    152152                        'topirank-archive-page-js-' . sanitize_title($file_name),
    153153                        $js_url . '/page-js/' . basename($js_file),
    154                         [],
     154                        ['set-height-js'],
    155155                        time(),
    156156                        true
  • topirank-integration/trunk/readme.txt

    r3268778 r3269601  
    44Requires at least: 6.0
    55Tested up to: 6.7.2
    6 Stable tag: 1.1.4
     6Stable tag: 1.1.5
    77Requires PHP: 7.3
    88License: GPLv2 or later
     
    5757
    5858== Changelog ==
     59
     60= 1.1.5 =
     61* Bug fixing.
    5962
    6063= 1.1.4 =
  • topirank-integration/trunk/topirank-integration.php

    r3268778 r3269601  
    33Plugin Name: Topirank Integration
    44Description: Plugin for parsing pages
    5 Version: 1.1.4
     5Version: 1.1.5
    66Author: Topirank
    77License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.