Sha256: edd7c8fdc2c8cd35a40574876420b84d87f609c14a8e5a1cf6b49dcf0b416a5c

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

// override this file in your application to add custom behaviour

//= require 'selectize.min'
//= require 'thecore_ui_commons'
//= require 'rails_admin/custom/thecore/ui'

const adjustIframe = function(obj) {
    console.log("Resizing");
    obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
};

let currentURL = new URL(window.location.href);

$(document).on('turbo:load', function (event) {
    currentURL = new URL(event.originalEvent.detail.url);
    console.log("Page loaded listening to turbo:load event", currentURL.href);
    console.log(" - Protocol:", currentURL.protocol);
    console.log(" - Username:", currentURL.username);
    console.log(" - Password:", currentURL.password);
    console.log(" - Host:", currentURL.host);
    console.log(" - Hostname:", currentURL.hostname);
    console.log(" - Port:", currentURL.port);
    console.log(" - Pathname:", currentURL.pathname);
    console.log(" - Search:", currentURL.search);
    currentURL.searchParams.forEach((v, k) => {
        console.log(`  - ${k}: ${v}`);
    })
    console.log(" - Hash:", currentURL.hash);
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thecore_ui_rails_admin-3.0.14 app/assets/javascripts/rails_admin/custom/ui.js