<!doctype html>

<html lang="en">
<head>
    <meta charset="utf-8">

    <title>{{ slug }}</title>
    <meta name="description" content="Institute for Data Processing and Electronics">
    <meta name="author" content="Nicholas Tan Jerome">
    <link rel="stylesheet" href="{{ static_url("css/jquery-ui.min.css") }}">
    <link rel="stylesheet" href="{{ static_url("css/style.css") }}">

    <!--[if lt IE 9]>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
    <![endif]-->
</head>

<body>
    <div id="header">
        <div id="header-text">
            Data repository
        </div>
        <div id="header-icon">
        <div>
            <a href="https://ufo.kit.edu/dis/index.php/project/astor/" target="_blank">
                <img src="{{ static_url("img/icon/astor.png") }}" height="50px" width="auto"/>
            </a>
        </div>
        <div>
            <a href="https://ufo.kit.edu/dis/index.php/project/nova/" target="_blank">
                <img src="{{ static_url("img/icon/nova.png") }}" height="50px" width="auto"/>
            </a>
        </div>
        </div>
    </div>
    <div class="clearfix"></div>

    <hr>
    
    <div id="title">
        <p>{{ title }}</p>
    </div>
    
    <div id="authors">
        <p>
            {% for author in authors %}
            {{ author }}, 
            {% end %}
        </p>
    </div>

    <div id="institute">
        <p>
            {% for institute in institutes %}
            {{ institute }}, 
            {% end %}
        </p>
    </div>
    
    <div id="subheader">
        <span>Sample:</span> 
        <select class="target">
            {% for sample in data_list %}
            {% if sample[1]  == name %}
            <option value={{ sample[0] }} selected>{{ sample[1] }}</option> 
            {% else %}
            <option value={{ sample[0] }}>{{ sample[1] }}</option> 
            {% end %}
            {% end %}
        </select>
        <img class="icon" id="download" src="{{ static_url("img/icon/download.svg") }}"/>
        <span id="size">({{ data_size }} GB)</span>
    </div>

    <div id="image-container" class="clearfix">
        <div id="img-left">
            <div class="cont">
	            <span id="image-text">Overview (Volume Rendering)</span>
            </div>
	        <div class="photowrapper">
                <img id="img-preview" width="100%" height="100%" src="img?id={{ index }}&name={{ name }}&type=preview&counter=0"/>
            <div id="text-desc">
            <p id="description"><span>Description</span>
                {% for text_desc in desc %}
                    {% if text_desc['type'] == "i" %}
                        <i>{{ text_desc['text'] }}</i>
                    {% else %}
                        {{ text_desc['text'] }}
                    {% end %}
                {% end %}
                
            </p>
            </div>
            </div>
        </div>

        <div id="img-right">
	        <div id="photowrapper-front" class="photowrapper">
                <div class="cont">
                    <img id="front-left" class="icon" src="{{ static_url("img/icon/left-arrow.svg") }}"/>
                    <span id="image-text">Front: <span id="front-text">1</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="front-quality-text"></span></span>
                    <img id="front-right" class="icon" src="{{ static_url("img/icon/right-arrow.svg") }}"/>
                </div>
                <img id="img-front" width="100%" height="100%" src="img?id={{ index }}&name={{ name }}&type=front-resized&counter=0"/>
                <div id="slider-right"></div><div class="slice-count" id="front-count">{{ front_count }}</div>
            </div>
        </div>
        
        <div id="img-center">
	        <div id="photowrapper-top" class="photowrapper">
                <div class="cont">
                    <img id="top-left" class="icon" src="{{ static_url("img/icon/left-arrow.svg") }}"/>
                    <span id="image-text">Top: <span id="top-text">1</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="top-quality-text"></span></span>
                    <img id="top-right" class="icon" src="{{ static_url("img/icon/right-arrow.svg") }}"/>
                </div>
                <img id="img-top"  width="100%" height="100%" src="img?id={{ index }}&name={{ name }}&type=top-resized&counter=0" data-zoom-image="img?id={{ index }}&name={{ name }}&type=top-resized&counter=0" />
	            <div id="slider-center"></div><div class="slice-count" id="top-count">{{ top_count }}</div>
            </div>

	        <div id="photowrapper-left" class="photowrapper">
                <div class="cont">
                    <img id="left-left" class="icon" src="{{ static_url("img/icon/left-arrow.svg") }}"/>
                    <span id="image-text">Left: <span id="left-text">1</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="left-quality-text"></span></span>
                    <img id="left-right" class="icon" src="{{ static_url("img/icon/right-arrow.svg") }}"/>
                </div>
                <img id="placeholder-left" width="100%" height="100%" src="img?id={{ index }}&name={{ name }}&type=left-resized&counter=0"/>
	            <div id="slider-left"></div><div class="slice-count" id="left-count">{{ left_count }}</div>
            </div>

        </div>
    </div>
    <hr>

    <div id="footer">&copy;2017 A service provided by Ultra-fast Online Processing for Data-intensive Sciences group (UFO), https://ufo.kit.edu/</div>
<script src="{{ static_url("js/jquery-1.12.4.min.js") }}"></script>
<script src="{{ static_url("js/jquery-ui.min.js") }}"></script>
<script src="{{ static_url("js/jquery.ez-plus.js") }}"></script>
<script src="{{ static_url("js/jquery.fullscreenslides.js") }}"></script>
<script src="{{ static_url("js/script.js") }}"></script>
</body>
</html>

