<!DOCTYPE html>
<html>
<head>
  <title>Intermediate action</title>

  <% if current_user %>
  <%= javascript_include_tag "#{jslib_url_for(current_user.username)}/easyXDM/easyXDM.min.js" %>
  <% else %>
  <%= javascript_include_tag "#{FactlinkUI::Application.config.static_url}/lib/dist/easyXDM/easyXDM.min.js" %>
  <% end %>
  <style type="text/css">
    html, body {
      height: 100%;
      width: 100%;
      margin: 0 auto;
      padding: 0;
      overflow: hidden;
    }

    iframe {
      height: 100%;
      width: 100%;
      border: 0;
      z-index: 2147483646;
    }

    iframe.overlay {
      background: transparent;
    }

    form {
      display: none;
    }
  </style>

  <%= csrf_meta_tag %>
</head>
<body>
  <iframe src="" name="frame" id="frame"></iframe>

  <%= javascript_include_tag "intermediate" %>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>Intermediate action</title>

  <% if current_user %>
  <%= javascript_include_tag "#{jslib_url_for(current_user.username)}/easyXDM/easyXDM.min.js" %>
  <% else %>
  <%= javascript_include_tag "#{FactlinkUI::Application.config.static_url}/public/easyXDM.min.js" %>
  <% end %>
  <style type="text/css">
    html, body {
      height: 100%;
      width: 100%;
      margin: 0 auto;
      padding: 0;
      overflow: hidden;
    }

    iframe {
      height: 100%;
      width: 100%;
      border: 0;
      z-index: 2147483646;
    }

    iframe.overlay {
      background: transparent;
    }

    form {
      display: none;
    }
  </style>

  <%= csrf_meta_tag %>
</head>
<body>
  <iframe src="" name="frame" id="frame"></iframe>

  <%= javascript_include_tag "intermediate" %>
</body>
</html>

Load easyXDM for non-logged in users from static-server/public
Load easyXDM for non-logged in users from static-server/public

Signed-off-by: tomdev <96835dd8bfa718bd6447ccc87af89ae1675daeca@codigy.nl>
