<!--

    ShinyProxy

    Copyright (C) 2016-2021 Open Analytics

    ===========================================================================

    This program is free software: you can redistribute it and/or modify
    it under the terms of the Apache License as published by
    The Apache Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    Apache License for more details.

    You should have received a copy of the Apache License
    along with this program.  If not, see <http://www.apache.org/licenses/>

-->
<!DOCTYPE html>
<html>
<head lang="en">
	<title>Landingsitemap.xml</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" media="screen" href="/webjars/bootstrap/3.4.1/css/bootstrap.min.css" />
	<link rel="stylesheet" media="screen" href="/css/default.css"/>
	<script src="/webjars/jquery/3.5.0/jquery.min.js"></script>
	<script src="/webjars/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
	<div id="navbar">
		<nav class="navbar navbar-inverse navbar-fixed-top">
			<div class="container-fluid">
				<div class="navbar-header">
					<img class="navbar-brand" src="https://bioinformatics.cuanschutz.edu/images/dna.png" />
					<a class="navbar-brand" href="/">Biostatistics and Bioinformatics Shared Resource Applications</a>
				</div>
				<div class="navbar-form navbar-right">
					
					
					
				</div>
				
			</div>
		</nav>
		<div class="modal fade" id="reportIssueModal" role="dialog">
			<div class="modal-dialog">
				<div class="modal-content">
					<form role="form" method="post" action="/issue"><input type="hidden" name="_csrf" value="fc1e3e24-4b62-412d-a040-9ff090febf92"/>
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
							<h4 class="modal-title">Report Issue</h4>
						</div>
						<div class="modal-body">
							<div class="form-group">
								<label for="customMessage"><span class="glyphicon glyphicon-chat"></span> Message to add to the report:</label>
								<textarea class="form-control" name="customMessage" placeholder="Enter message" cols="40" rows="5"></textarea>
								<input type="hidden" name="currentLocation"></input>
							</div>
						</div>
						<div class="modal-footer">
							<button type="submit" class="btn btn-default btn-success">Submit</button>
							<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
						</div>
					</form>
				</div>
			</div>
		</div>
		<script lang="JavaScript">
			$(document).ready(function() { $('input[name="currentLocation"]').val(window.location.href); });
		</script>
	</div>
	
    <iframe id="shinyframe" src="" width="100%" frameBorder="0"></iframe>
    <div class="loading"><div class="loading-txt">Launching <span>Landingsitemap.xml</span>...</div></div>
    
	<script type="text/javascript">
		function setShinyframeHeight() {
			$('#shinyframe').css('height', ($(window).height())+'px');
		}
		window.addEventListener("load", setShinyframeHeight);
		window.addEventListener("resize",  setShinyframeHeight);
		
		$(window).on('load', function() {
			var source = $("#shinyframe").attr("src");
			if (source == "") {
				$(".loading").show();
				$.post(window.location.pathname + window.location.search, function(response) {
					$("#shinyframe").attr("src", response.containerPath);
					$(".loading").fadeOut("slow");
				}).fail(function(request) {
					var newDoc = document.open("text/html", "replace");
					newDoc.write(request.responseText);
					newDoc.close();
				});
			}
		});
	</script>
</body>
</html>
