日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

html 日历系统 源码,calendar.html

發布時間:2024/2/28 39 豆豆
生活随笔 收集整理的這篇文章主要介紹了 html 日历系统 源码,calendar.html 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Full Calendar - Bootstrap后臺管理系統模版Ace下載

try{ace.settings.check('navbar' , 'fixed')}catch(e){}

Ace Admin

try{ace.settings.check('main-container' , 'fixed')}catch(e){}

try{ace.settings.check('sidebar' , 'fixed')}catch(e){}

try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}

try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}

Full Calendar

with draggable and editable events

Draggable events

My Event 1

My Event 2

My Event 3

My Event 4

My Event 5

My Event 6

My Event 7

Remove after drop

#438EB9

#222A2D

#C6487E

#D0D0D0

? Choose Skin

Fixed Navbar

Fixed Sidebar

Fixed Breadcrumbs

Right To Left (rtl)

Inside

.container

window.jQuery || document.write("

if("ontouchend" in document) document.write("

jQuery(function($) {

/* initialize the external events

-----------------------------------------------------------------*/

$('#external-events div.external-event').each(function() {

// create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/)

// it doesn't need to have a start or end

var eventObject = {

title: $.trim($(this).text()) // use the element's text as the event title

};

// store the Event Object in the DOM element so we can get to it later

$(this).data('eventObject', eventObject);

// make the event draggable using jQuery UI

$(this).draggable({

zIndex: 999,

revert: true, // will cause the event to go back to its

revertDuration: 0 // original position after the drag

});

});

/* initialize the calendar

-----------------------------------------------------------------*/

var date = new Date();

var d = date.getDate();

var m = date.getMonth();

var y = date.getFullYear();

var calendar = $('#calendar').fullCalendar({

buttonText: {

prev: '',

next: ''

},

header: {

left: 'prev,next today',

center: 'title',

right: 'month,agendaWeek,agendaDay'

},

events: [

{

title: 'All Day Event',

start: new Date(y, m, 1),

className: 'label-important'

},

{

title: 'Long Event',

start: new Date(y, m, d-5),

end: new Date(y, m, d-2),

className: 'label-success'

},

{

title: 'Some Event',

start: new Date(y, m, d-3, 16, 0),

allDay: false

}]

,

editable: true,

droppable: true, // this allows things to be dropped onto the calendar !!!

drop: function(date, allDay) { // this function is called when something is dropped

// retrieve the dropped element's stored Event Object

var originalEventObject = $(this).data('eventObject');

var $extraEventClass = $(this).attr('data-class');

// we need to copy it, so that multiple events don't have a reference to the same object

var copiedEventObject = $.extend({}, originalEventObject);

// assign it the date that was reported

copiedEventObject.start = date;

copiedEventObject.allDay = allDay;

if($extraEventClass) copiedEventObject['className'] = [$extraEventClass];

// render the event on the calendar

// the last `true` argument determines if the event "sticks" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/)

$('#calendar').fullCalendar('renderEvent', copiedEventObject, true);

// is the "remove after drop" checkbox checked?

if ($('#drop-remove').is(':checked')) {

// if so, remove the element from the "Draggable Events" list

$(this).remove();

}

}

,

selectable: true,

selectHelper: true,

select: function(start, end, allDay) {

bootbox.prompt("New Event Title:", function(title) {

if (title !== null) {

calendar.fullCalendar('renderEvent',

{

title: title,

start: start,

end: end,

allDay: allDay

},

true // make the event "stick"

);

}

});

calendar.fullCalendar('unselect');

}

,

eventClick: function(calEvent, jsEvent, view) {

var form = $("

Change event name ?");

form.append(" ");

form.append(" Save");

var div = bootbox.dialog({

message: form,

buttons: {

"delete" : {

"label" : " Delete Event",

"className" : "btn-sm btn-danger",

"callback": function() {

calendar.fullCalendar('removeEvents' , function(ev){

return (ev._id == calEvent._id);

})

}

} ,

"close" : {

"label" : " Close",

"className" : "btn-sm"

}

}

});

form.on('submit', function(){

calEvent.title = form.find("input[type=text]").val();

calendar.fullCalendar('updateEvent', calEvent);

div.modal("hide");

return false;

});

//console.log(calEvent.id);

//console.log(jsEvent);

//console.log(view);

// change the border color just for fun

//$(this).css('border-color', 'red');

}

});

})

一鍵復制

編輯

Web IDE

原始數據

按行查看

歷史

超強干貨來襲 云風專訪:近40年碼齡,通宵達旦的技術人生

總結

以上是生活随笔為你收集整理的html 日历系统 源码,calendar.html的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。