UNPKG

metro4

Version:

The front-end framework for Build responsive, mobile-first projects on the web with the first front-end component library in Metro Style

52 lines (46 loc) 2.08 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <link href="../metro/css/metro-all.css?ver=@@b-version" rel="stylesheet"> <title>Test Any - Metro 4 :: Popular HTML, CSS and JS library</title> </head> <body class="m4-cloak"> <div class="container"> <h1>Any test page</h1> <div style="width: 300px;"> <input id="DATA_COMPILED" class="input-small" name="data_compiled" data-role="calendarpicker" data-cls-calendar-header="bg-crimson" data-cls-calendar="compact" data-clear-button="true" data-validate="required" data-cls-input="text-bold text-center" data-label="Compiled" data-cls-label="text-bold fg-crimson" type="text" autocomplete="off" readonly data-value="31/12/2020" data-format="DD/MM/YYYY" data-input-format="DD/MM/YYYY" > </div> <br> <br> <div class="example" style="width: 300px;"> <input type="text" data-role="calendarpicker" value="1972/12/21" id="calendarpicker_val_test" data-format="DD MMMM YY" class=""> <br /> <button class="button" onclick="$('#DATA_COMPILED').prop('disabled', true)">Disabled</button> <button class="button" onclick="$('#DATA_COMPILED').prop('disabled', false)">Enabled</button> <button class="button" onclick="Metro.getPlugin('#calendarpicker_val_test', 'calendarpicker').val('1972/12/21')">Reset</button> <button class="button" onclick="Metro.getPlugin('#calendarpicker_val_test', 'calendarpicker').val('2017/10/25')">Set 2017/10/25</button> <button class="button" onclick="alert( Metro.getPlugin('#calendarpicker_val_test', 'calendarpicker').val())">Get date</button> </div> </div> <script src="../metro/js/metro.js?ver=@@b-version"></script> </body> </html>