home
/
zktecojo
/
public_html
/
assets
/
js
➕ New
📤 Upload
✎ Editing:
mytimeline.jquery.min.js
← Back
!function(a){var b={create:function(b,c,d){this.data=b||[{year:"The year is 2054",events:["Over half of Earth's population has settled on Mars"]}],this.$el=a(d),this.options=a.extend({},a.fn.myTimeline.options,c),this.loadTimeline()},loadTimeline:function(){function d(d){"earliest"==b.options.order&&d.reverse(),a.each(d,function(b){c.push("<h4>"+d[b].year+"</h4>"),c.push("<ul class='Timeline-yearEvents'>"),"object"==typeof d[b].events?a.each(d[b].events,function(a){c.push("<li>"+d[b].events[a]+"</li>")}):"string"==typeof d[b].events&&c.push("<li>"+d[b].events+"</li>"),c.push("</ul>")}),b.renderTimelime(c.join(""))}var b=this,c=[];b.options.ajax?a.getJSON(b.options.ajax,function(a){d(a)}):d(b.data)},renderTimelime:function(b){a("<div/>",{"class":"Timeline Timeline--"+this.options.theme,html:b}).appendTo(this.$el)}};a.fn.myTimeline=function(c,d){return this.each(function(){var e=Object.create(b);e.create(c,d,this),a.data(this,"myTimeline",e)})},a.fn.myTimeline.options={order:"latest",theme:"dark"}}(jQuery);
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel