<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Viewer.aspx.cs" Inherits="eDocument.Server.Administrator.edoc_sak.Viewer" MasterPageFile="~/Site.Master" %>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://fonts.googleapis.com/css?family=Barlow:400,500,600" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="<%= InstallUrl %>k247.min.css">
    <style>
        body{
            background-color:#f3f3f3 !important;
        }

        .edoc-viewer{
            position:relative;
            z-index:0;
            margin-top:44px;
            margin-left:-15px;
            margin-right:-15px;
        }

        .edoc-viewer form{
            -webkit-box-shadow:0 3px 6px 0 rgba(0, 0, 0, 0.3);
            box-shadow:0 3px 6px 0 rgba(0, 0, 0, 0.3);
        }

        .edoc-viewer .diff_added {
            background: #99ff99;
        }

        .edoc-viewer .diff_removed {
            background: #ff6666;
        }

        .edoc-viewer .diff_changed {
            background: #ffcc66;
        }
    </style>
    <link href="<%= InstallUrl %>details.min.css?v=<%= EdocVersion %>" rel="stylesheet">
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <div id="root" class="ssp__h-100">
    </div>
    
    <script>
        document.addEventListener("DOMContentLoaded", function(){
            viewer
                .init({
                    apiUrl: "<%= ApiUrl %>",
                    customerId: "<%= CustomerUsername %>",
                    isEdocCase: true,
                })
                .form({
                    divId: "root",
                    formId: "<%= Request.QueryString["formId"]  %>"
                });
        });
    </script>
    
    <script type="text/javascript" src="<%= InstallUrl %>/viewer/viewer.min.js?v=<%= EdocVersion %>"></script>
    <%--<script type="text/javascript" src="<%= InstallUrl %>details.min.js?v=<%= EdocVersion %>"></script>--%>
    <%--<script type="text/javascript" src='http://192.168.1.19:3000/details.min.js'></script>--%>
</asp:Content>