Code consistency

pull/12/merge
Aigars Silkalns 2016-03-06 12:44:01 +02:00
parent f37200885d
commit 28b9c466e2
2 changed files with 583 additions and 614 deletions

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. --> <!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8"> <meta charset="utf-8">
@ -36,10 +36,10 @@
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]--> <![endif]-->
</head> </head>
<body class="nav-md"> <body class="nav-md">
<div class="container body"> <div class="container body">
@ -488,7 +488,7 @@
<!-- pace --> <!-- pace -->
<script src="js/pace/pace.min.js"></script> <script src="js/pace/pace.min.js"></script>
<script> <script>
$(window).load(function () { $(window).load(function() {
var date = new Date(); var date = new Date();
var d = date.getDate(); var d = date.getDate();
@ -505,13 +505,13 @@
}, },
selectable: true, selectable: true,
selectHelper: true, selectHelper: true,
select: function (start, end, allDay) { select: function(start, end, allDay) {
$('#fc_create').click(); $('#fc_create').click();
started = start; started = start;
ended = end ended = end
$(".antosubmit").on("click", function () { $(".antosubmit").on("click", function() {
var title = $("#title").val(); var title = $("#title").val();
if (end) { if (end) {
ended = end ended = end
@ -536,14 +536,14 @@
return false; return false;
}); });
}, },
eventClick: function (calEvent, jsEvent, view) { eventClick: function(calEvent, jsEvent, view) {
//alert(calEvent.title, jsEvent, view); //alert(calEvent.title, jsEvent, view);
$('#fc_edit').click(); $('#fc_edit').click();
$('#title2').val(calEvent.title); $('#title2').val(calEvent.title);
categoryClass = $("#event_type").val(); categoryClass = $("#event_type").val();
$(".antosubmit2").on("click", function () { $(".antosubmit2").on("click", function() {
calEvent.title = $("#title2").val(); calEvent.title = $("#title2").val();
calendar.fullCalendar('updateEvent', calEvent); calendar.fullCalendar('updateEvent', calEvent);
@ -552,43 +552,36 @@
calendar.fullCalendar('unselect'); calendar.fullCalendar('unselect');
}, },
editable: true, editable: true,
events: [ events: [{
{
title: 'All Day Event', title: 'All Day Event',
start: new Date(y, m, 1) start: new Date(y, m, 1)
}, }, {
{
title: 'Long Event', title: 'Long Event',
start: new Date(y, m, d - 5), start: new Date(y, m, d - 5),
end: new Date(y, m, d - 2) end: new Date(y, m, d - 2)
}, }, {
{
title: 'Meeting', title: 'Meeting',
start: new Date(y, m, d, 10, 30), start: new Date(y, m, d, 10, 30),
allDay: false allDay: false
}, }, {
{
title: 'Lunch', title: 'Lunch',
start: new Date(y, m, d + 14, 12, 0), start: new Date(y, m, d + 14, 12, 0),
end: new Date(y, m, d, 14, 0), end: new Date(y, m, d, 14, 0),
allDay: false allDay: false
}, }, {
{
title: 'Birthday Party', title: 'Birthday Party',
start: new Date(y, m, d + 1, 19, 0), start: new Date(y, m, d + 1, 19, 0),
end: new Date(y, m, d + 1, 22, 30), end: new Date(y, m, d + 1, 22, 30),
allDay: false allDay: false
}, }, {
{
title: 'Click for Google', title: 'Click for Google',
start: new Date(y, m, 28), start: new Date(y, m, 28),
end: new Date(y, m, 29), end: new Date(y, m, 29),
url: 'http://google.com/' url: 'http://google.com/'
} }]
]
}); });
}); });
</script> </script>
</body> </body>
</html> </html>

View File

@ -1,7 +1,7 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* General page setup * General page setup
*/ */
#dt_example { #dt_example {
font: 80%/1.45em "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; font: 80%/1.45em "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
margin: 0; margin: 0;
@ -9,50 +9,39 @@
color: #333; color: #333;
background-color: #fff; background-color: #fff;
} }
#dt_example #container { #dt_example #container {
width: 800px; width: 800px;
margin: 30px auto; margin: 30px auto;
padding: 0; padding: 0;
} }
#dt_example #footer { #dt_example #footer {
margin: 50px auto 0 auto; margin: 50px auto 0 auto;
padding: 0; padding: 0;
} }
#dt_example #demo { #dt_example #demo {
margin: 30px auto 0 auto; margin: 30px auto 0 auto;
} }
#dt_example .demo_jui { #dt_example .demo_jui {
margin: 30px auto 0 auto; margin: 30px auto 0 auto;
} }
#dt_example .big { #dt_example .big {
font-size: 1.3em; font-size: 1.3em;
font-weight: bold; font-weight: bold;
line-height: 1.6em; line-height: 1.6em;
color: #4E6CA3; color: #4E6CA3;
} }
#dt_example .spacer { #dt_example .spacer {
height: 20px; height: 20px;
clear: both; clear: both;
} }
#dt_example .clear { #dt_example .clear {
clear: both; clear: both;
} }
#dt_example pre { #dt_example pre {
padding: 15px; padding: 15px;
background-color: #F5F5F5; background-color: #F5F5F5;
border: 1px solid #CCCCCC; border: 1px solid #CCCCCC;
} }
#dt_example h1 { #dt_example h1 {
margin-top: 2em; margin-top: 2em;
font-size: 1.3em; font-size: 1.3em;
@ -62,7 +51,6 @@
border-bottom: 1px solid #B0BED9; border-bottom: 1px solid #B0BED9;
clear: both; clear: both;
} }
#dt_example h2 { #dt_example h2 {
font-size: 1.2em; font-size: 1.2em;
font-weight: normal; font-weight: normal;
@ -70,34 +58,27 @@
color: #4E6CA3; color: #4E6CA3;
clear: both; clear: both;
} }
#dt_example a { #dt_example a {
color: #0063DC; color: #0063DC;
text-decoration: none; text-decoration: none;
} }
#dt_example a:hover { #dt_example a:hover {
text-decoration: underline; text-decoration: underline;
} }
#dt_example ul { #dt_example ul {
color: #4E6CA3; color: #4E6CA3;
} }
.css_right { .css_right {
float: right; float: right;
} }
.css_left { .css_left {
float: left; float: left;
} }
.demo_links { .demo_links {
float: left; float: left;
width: 50%; width: 50%;
margin-bottom: 1em; margin-bottom: 1em;
} }
#demo_info { #demo_info {
padding: 5px; padding: 5px;
border: 1px solid #B0BED9; border: 1px solid #B0BED9;
@ -105,23 +86,18 @@
width: 100%; width: 100%;
overflow: auto; overflow: auto;
} }
#dt_example code { #dt_example code {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
padding: 2px 4px !important; padding: 2px 4px !important;
white-space: nowrap; white-space: nowrap;
font-size: 0.9em; font-size: 0.9em;
color: #D14; color: #D14;
background-color: #F7F7F9; background-color: #F7F7F9;
border: 1px solid #E1E1E8; border: 1px solid #E1E1E8;
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
-moz-border-radius: 3px; -moz-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
} }
#dt_example div.syntaxhighlighter code { #dt_example div.syntaxhighlighter code {
padding: 0 !important; padding: 0 !important;
} }