javascript-ej1-demos/splitter/nestedsplitter.html

84 строки
3.4 KiB
HTML

<!doctype html>
<html>
<head>
<title>Essential JS 1 : Nested Splitter</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8" />
<link href="../content/bootstrap.min.css" rel="stylesheet">
<link href="../content/ejthemes/default-theme/ej.web.all.min.css" rel="stylesheet" />
<link href="../content/default.css" rel="stylesheet" />
<link href="../content/default-responsive.css" rel="stylesheet" />
<!--[if lt IE 9]>
<script src="../scripts/jquery-1.11.3.min.js" type="text/javascript" ></script>
<![endif]-->
<!--[if IE 9]><!-->
<script src="../scripts/jquery-3.4.1.min.js" type="text/javascript"> </script>
<!--<![endif]-->
<script src="../scripts/ej.web.all.min.js" type="text/javascript"></script>
<script src="../scripts/properties.js" type="text/javascript"></script>
</head>
<body>
<div class="content-container-fluid">
<div class="row">
<div class="cols-sample-area splitter-width">
<!----------------Splitter Control---------------->
<div id="outterSplitter">
<div>
<div class="content" style="padding: 0px 15px;">
<h3 class="h3">FRENCH CITIES </h3>
</div>
</div>
<div id="innerSplitter">
<div>
<div class="content">
<h3 class="h3">PARIS </h3>
Paris, the city of lights and love - this short guide is full of ideas for how to make the most of the romanticism...
</div>
</div>
<div>
<div class="content">
<h3 class="h3">CAMEMBERT </h3>
The village in the Orne département of Normandy where the famous French cheese is originated from.
</div>
</div>
<div>
<div class="content">
<h3 class="h3">GRENOBLE </h3>
The capital city of the French Alps and a major scientific center surrounded by many ski resorts, host of the Winter Olympics in 1968.
</div>
</div>
</div>
</div>
<!------------------------------------------------->
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
$("#outterSplitter").ejSplitter({
height: 280, width: "50%",
orientation: ej.Orientation.Vertical,
properties: [{ paneSize: 60, minSize: 30 }, { minSize: 30 }],
enableAutoResize: true
});
$("#innerSplitter").ejSplitter({
properties: [{ paneSize: "33%", minSize: 30 }, { paneSize: "33%", minSize: 30 }, {minSize: 30 }],
enableAutoResize: true
});
});
</script>
<style type="text/css" class="cssStyles">
.h3 {
font-size: 14px;
}
.content {
padding: 9px;
}
@media \0screen {
.fixedlayout .row .cols-sample-area { padding: 24.5px !important; }
}
</style>
</body>
</html>