Sha256: 25fc9b60794e390a57063f48317b0270ae4383d66199e0929fcafa1e4bf80ac1

Contents?: true

Size: 726 Bytes

Versions: 3

Compression:

Stored size: 726 Bytes

Contents

<dl>
    <dt>{{ __statistics }}</dt>
    <dd>
        <a href="https://github.com/rundocs/analytics" target="_blank">
            {{ __total_visits }} <span id="counter"><span class="progress"></span></span> <i class="fa fa-eye"></i>
        </a>
    </dd>
</dl>

<script>
    $(document).ready(function() {
        let analytics = new URL("https://rundocs-analytics.glitch.me/collect?v={{ version }}&lang={{ lang }}");
        analytics.searchParams.append("user_lang", navigator.language);
        analytics.searchParams.append("host", location.host);
        analytics.searchParams.append("platform", navigator.platform);
        $.getJSON(analytics.toString(), (data) => $("#counter").html(data.count));
    });
</script>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-rtd-theme-1.1.7 _includes/addons/analytics.liquid
jekyll-rtd-theme-1.1.6 _includes/addons/analytics.liquid
jekyll-rtd-theme-1.1.5 _includes/addons/analytics.liquid