<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<r14.Models.MountainInfo>>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>SortSummits</title>
    <link rel="Stylesheet" href="../../Content/ui-lightness/jquery-ui-1.8.16.custom.css" />
<link rel="Stylesheet" href="../../Content/site.css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" 
        type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
</head>
<body>
    <div>
<b>Quiz:</b> potrafisz uporządkować te szczyty według wysokości (najwyższe na początku)? 
 
<div id="summits"> 
    <% foreach(var mountain in Model) { %> 
        <div class="mountain"><%: mountain.Name %></div> 
    <% } %> 
</div> 
 
<script type="text/javascript">
    $(function () {
        $("#summits").sortable();
    }); 
</script> 
    
    </div>
</body>
</html>
