UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.

121 lines (115 loc) 6.05 kB
<!DOCTYPE html> <html lang="en"> <head> <title id='Description'>The jqxWindow provides keyboard navigation once it gains focus(either programmatically or as a result of a user click). When the widget is focused, you can use the keyboard to change its position and size.</title> <link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <script type="text/javascript" src="../../../scripts/jquery-1.12.4.min.js"></script> <script type="text/javascript" src="../../../scripts/demos.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxwindow.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxscrollbar.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxpanel.js"></script> <style type="text/css"> .big-image { float: left; margin-right: 15px; margin-bottom: 15px; border: 1px solid #999; background: #fff; padding: 3px; } .important-text { font-size: 13px; font-family: Verdana, Geneva, 'DejaVu Sans', sans-serif; } .more-text { font-family: Verdana, Geneva, 'DejaVu Sans', sans-serif; color: #444; font-size: 11px; font-style: italic; } </style> <script type="text/javascript"> function addEventListeners() { $('#showWindowButton').mousedown(function () { $('#window').jqxWindow('open'); $('#window').jqxWindow('focus'); }); } function createElements() { var jqxWidget = $('#jqxWidget'); var offset = jqxWidget.offset(); $('#window').jqxWindow({ position: { x: offset.left + 50, y: offset.top + 50 }, resizable: true, width: 500, height: 400, minWidth: 300, minHeight: 300 }); $('#window').jqxWindow('focus'); $('#showWindowButton').jqxButton({width: '100px' }); } $(document).ready(function () { addEventListeners(); createElements(); $("#jqxWidget").css('visibility', 'visible'); }); </script> </head> <body class='default'> <div style="visibility: hidden;" id="jqxWidget"> <div style="font-family: Verdana; font-size: 12px; width: 400px; margin-left: 20px; float: left;"> <input type="button" value="Show" id="showWindowButton" /> <ul> <li><b>Esc</b> key - closes the window.</li> <li><b>Up</b> key - moves window up.</li> <li><b>Ctrl + Up</b> - narrows window in vertical direction.</li> <li><b>Down</b> key - moves window down.</li> <li><b>Ctrl + Down</b> - expands window in vertical direction.</li> <li><b>Left</b> key - moves window left.</li> <li><b>Ctrl + Left</b> - narrows window in horizontal direction.</li> <li><b>Right</b> key - moves window down.</li> <li><b>Ctrl + Right</b> - expands window in horizontal direction.</li> </ul> </div> <div id="window"> <div> About 30 St Mary Axe </div> <div> <div> <img src="../../../images/building_big.jpg" alt="" class="big-image" /> <div> <h3>30 St Mary Axe</h3> <p class="important-text"> the Swiss Re Building (colloquially referred to as the Gherkin), is a skyscraper in London's main financial district, the City of London, completed in December 2003 and opened at the end of May 2004. With 40 floors, the tower is 180 metres (591 ft) tall, and stands on the former site of the Baltic Exchange building, which was severely damaged on 10 April 1992 by the explosion of a bomb placed by the Provisional IRA. </p> <div class="more-text"> The building is on the former site of the Baltic Exchange building, the headquarters of a global marketplace for ship sales and shipping information. On 10 April 1992 the Provisional IRA detonated a bomb close to the Exchange, severely damaging the historic Exchange building and neighbouring structures. The UK government's statutory adviser on the historic environment, English Heritage, and the City of London governing body, the City of London Corporation, were keen that any redevelopment must restore the building's old façade onto St Mary Axe. The Exchange Hall was a celebrated fixture of the ship trading company. </div> </div> </div> </div> </div> </div> <div style="position: absolute; bottom: 5px; right: 5px;"> <a href="https://www.jqwidgets.com/" alt="https://www.jqwidgets.com/"><img alt="https://www.jqwidgets.com/" title="https://www.jqwidgets.com/" src="https://www.jqwidgets.com/wp-content/design/i/logo-jqwidgets.png"/></a> </div> </body> </html>