123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset='utf-8'>
- <meta http-equiv="X-UA-Compatible" content="chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <link href='https://fonts.googleapis.com/css?family=Architects+Daughter' rel='stylesheet' type='text/css'>
- <link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
- <!-- <link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen"> -->
- <link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print">
- <link rel="stylesheet" type="text/css" href="stylesheets/simple-calendar.css">
- <!--[if lt IE 9]>
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
- <title>Simple-calendar by Lixucheng</title>
- <style>
- #calendar{
- width: 100%
- }
- .clearfix{
- margin-bottom: 50px !important;
- }
- </style>
- </head>
- <body>
- <header>
- <div class="inner">
- <h1>nice day</h1>
- <h2>日历挂件2022年</h2>
- </div>
- </header>
- <div id="content-wrapper">
- <div class="inner clearfix">
- <div id = 'calendar'>
- </div>
- </div>
-
- </div>
- <script type="text/javascript" src="javascripts/simple-calendar.js"></script>
- <script>
- var myCalendar = new SimpleCalendar('#calendar');
- </script>
- <script>
- /*弹出层*/
- /*
- 参数解释:
- title 标题
- url 请求的url
- id 需要操作的数据id
- w 弹出层宽度(缺省调默认值)
- h 弹出层高度(缺省调默认值)
- */
- function x_admin_show(title,url,w,h){
- if (title == null || title == '') {
- title=false;
- };
- if (url == null || url == '') {
- url="404.html";
- };
- if (w == null || w == '') {
- w=($(window).width()*0.9);
- };
- if (h == null || h == '') {
- h=($(window).height() - 50);
- };
- layer.open({
- type: 2,
- area: [w+'px', h +'px'],
- fix: false, //不固定
- maxmin: true,
- shadeClose: true,
- shade:0.4,
- title: title,
- content: url,
-
- }
-
- });
- }
-
- /*关闭弹出框口*/
- function x_admin_close(){
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
- </script>
- </body>
- </html>
|