diff --git a/template/assets/markline/0.4.0/markline-debug.js b/template/assets/markline/0.5.0/markline-debug.js similarity index 92% rename from template/assets/markline/0.4.0/markline-debug.js rename to template/assets/markline/0.5.0/markline-debug.js index 496e863..b94e42f 100644 --- a/template/assets/markline/0.4.0/markline-debug.js +++ b/template/assets/markline/0.5.0/markline-debug.js @@ -1,7 +1,7 @@ -define("markline/0.4.0/markline-debug", ["jquery/2.1.1/jquery-debug"], function(require, exports, module) { - var Timeline = require("markline/0.4.0/timeline-debug"); +define("markline/0.5.0/markline-debug", ["jquery/2.1.1/jquery-debug"], function(require, exports, module) { + var Timeline = require("markline/0.5.0/timeline-debug"); var $ = require("jquery/2.1.1/jquery-debug"); - var DEFAULT_MEMTION_URL = "https://github.com/{@memtion}"; + var DEFAULT_MENTION_URL = "https://github.com/{@mention}"; function isString(object) { return Object.prototype.toString.call(object) === "[object String]"; @@ -58,19 +58,19 @@ define("markline/0.4.0/markline-debug", ["jquery/2.1.1/jquery-debug"], function( var RE_STRONG = /(\*\*|__)(.*?)\1/g; var RE_EM = /(\*|_)(.*?)\1/g; var RE_DELETE = /(\~\~?)(.*?)\1/g; - var RE_MEMTION = /(^|[^a-zA-Z0-9])@([^\s\t,\(\)\[\]\{\}]+)/g; - var RE_MEMTION_PLACEHOLDER = /\{@memtion\}/ig; + var RE_MENTION = /(^|[^a-zA-Z0-9])@([^\s\t,\(\)\[\]\{\}]+)/g; + var RE_MENTION_PLACEHOLDER = /\{@mention\}/ig; var RE_HASHTAG = /(?:^|[\s\t])\#([^\s\t]+)/g; var html = markdown.replace(RE_IMAGE, '$1'); html = html.replace(RE_LINK, '$1'); html = html.replace(RE_STRONG, '$2'); html = html.replace(RE_EM, '$2'); html = html.replace(RE_DELETE, '$2'); - // memtion: - if (meta.memtion) { - html = html.replace(RE_MEMTION, function($0, prefix, memtion_name) { - var memtion_url = meta.memtion || DEFAULT_MEMTION_URL; - return prefix + '@' + memtion_name + ''; + // mention: + if (meta.mention) { + html = html.replace(RE_MENTION, function($0, prefix, mention_name) { + var mention_url = meta.mention || DEFAULT_MENTION_URL; + return prefix + '@' + mention_name + ''; }); } // #hashtags: @@ -186,19 +186,19 @@ define("markline/0.4.0/markline-debug", ["jquery/2.1.1/jquery-debug"], function( }; module.exports = Markline; }); -define("markline/0.4.0/timeline-debug", ["jquery/2.1.1/jquery-debug"], function(require, exports, module) { +define("markline/0.5.0/timeline-debug", ["jquery/2.1.1/jquery-debug"], function(require, exports, module) { var $ = require("jquery/2.1.1/jquery-debug"); - var offset_left = 30; - var offset_top = 20; - var year_width = 100; - + var offset_left = 30; // offset left for group name. + var offset_top = 20; // offset top for date header. + var year_width = 100; // width per date (year). function Markline(element, data) { this._element = $(element); this.title = data.title || ""; this.meta = data.meta || {}; this.body = data.body || {}; } - + // @param {Number} distance, two date distance milliseconds. + // @return {Number} line width. function calcLength(distance) { return parseInt((distance / (24 * 60 * 60 * 1000)) * year_width / 365.24, 10); } diff --git a/template/assets/markline/0.4.0/markline.js b/template/assets/markline/0.5.0/markline.js similarity index 88% rename from template/assets/markline/0.4.0/markline.js rename to template/assets/markline/0.5.0/markline.js index 1d149b7..f401277 100644 --- a/template/assets/markline/0.4.0/markline.js +++ b/template/assets/markline/0.5.0/markline.js @@ -1 +1 @@ -define("markline/0.4.0/markline",["jquery/2.1.1/jquery"],function(t,e,a){function r(t){return"[object String]"===Object.prototype.toString.call(t)}function n(t,e){this.element=t;var a=o(e);this.timeline=new c(this.element,a)}function s(t){if(!t)return new Date;var e=/^(\d{4})(?:[/-](\d{1,2})(?:[/-](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2}))?)?)?)?)?$/,a=t.match(e);if(a){var r=a[1],n=parseInt(a[2]||1,10)-1,s=a[3]||1,i=a[4]||0,l=a[5]||0,o=a[6]||0;return new Date(r,n,s,i,l,o)}}function i(t){var e=/^\d{4}$/,a=/^\d{4}[\/\-]\d{1,2}$/,r=s(t);return e.test(t)?r.setYear(r.getFullYear()+1):a.test(t)&&(11===r.getMonth()?(r.setYear(r.getFullYear()+1),r.setMonth(0)):r.setMonth(r.getMonth()+1)),r}function l(t,e){var a=/!\[([^\]]*)\]\(([^\)]+)\)/g,r=/\[([^\]]*)\]\(([^\)]+)\)/g,n=/(\*\*|__)(.*?)\1/g,s=/(\*|_)(.*?)\1/g,i=/(\~\~?)(.*?)\1/g,l=/(^|[^a-zA-Z0-9])@([^\s\t,\(\)\[\]\{\}]+)/g,o=/\{@memtion\}/gi,c=/(?:^|[\s\t])\#([^\s\t]+)/g,p=t.replace(a,'$1');return p=p.replace(r,'$1'),p=p.replace(n,"$2"),p=p.replace(s,"$2"),p=p.replace(i,"$2"),e.memtion&&(p=p.replace(l,function(t,a,r){var n=e.memtion||d;return a+'@'+r+""})),p=p.replace(c,function(t,a){var r,n=e.tags||e.tag||{};if(n.hasOwnProperty(a)){var s=(n[a]||"").split(/,[\s\t]+/),i=s[0],l=s[1];r=' style="color:'+i+";background-color:"+l+';"'}return'#"+a+""})}function o(t){function e(t){for(;d.body.hasOwnProperty(t);)t+=" ";y=l(t,d.meta),d.body[y]=[],b=!0}for(var a,n,o,c=t.split(/\r\n|\r|\n/),d={title:"",meta:{},body:{}},p=/^#\s+(.*)$/,u=/^[\-\*]\s+([^:]+):\s*(.*)$/,h=/^[\s\t]+[\-\*]\s+([^:]+):\s*(.*)$/,m=/^\-{2,}$/,f=/^##+\s+(.*)$/,v=/^[\*\-]\s+(([0-9\/\-]+)(?:~([0-9\/\-]*))?)\s+(.*)$/,g=/^\s+[\*\-]\s+(([0-9\/\-]+)(?:~([0-9\/\-]*))?)\s+(.*)$/,y="",b=!1,$=!1,j=0,_=c.length;_>j;j++){var w,k=c[j];if(w=k.match(p))d.title=l(w[1],d.meta);else if(!b&&(w=k.match(u))){var q=w[1],x=w[2];d.meta[q]=x,n=q,o=x,$=!0}else if(!b&&(w=k.match(h))){r(d.meta[n])&&(d.meta[n]={"default":o});var q=w[1],x=w[2];d.meta[n][q]=x,$=!0}else if(k.match(m))e("");else if(w=k.match(f)){var Y=w[1];e(Y)}else if(w=k.match(v)){d.body[y]||(d.body[y]=[]);var F=w[2],O=void 0===w[3]?F:w[3],M=w[4],D={date:w[1],"date-start":s(F),"date-end":i(O),name:l(M,d.meta),events:[]};d.body[y].push(D),a=D,b=!0}else if(w=k.match(g)){var P=w[1],S=w[2],T=void 0===w[3]?S:w[3],I=w[4];a.events.push({date:P,"date-start":s(S),"date-end":i(T),name:l(I,d.meta)}),b=!0}}return d}var c=t("markline/0.4.0/timeline"),d=(t("jquery/2.1.1/jquery"),"https://github.com/{@memtion}");n.prototype.render=function(){this.timeline.render()},a.exports=n}),define("markline/0.4.0/timeline",["jquery/2.1.1/jquery"],function(t,e,a){function r(t,e){this._element=i(t),this.title=e.title||"",this.meta=e.meta||{},this.body=e.body||{}}function n(t){return parseInt(t/864e5*o/365.24,10)}function s(t){return"[object Function]"===Object.prototype.toString.call(t)}var i=t("jquery/2.1.1/jquery"),l=30,o=100;r.prototype._process=function(t,e){if(e)for(var a in t)if(t.hasOwnProperty(a)){var r=t[a];s(e["group:start"])&&e["group:start"].call(this,a,r);for(var n=0,i=r.length;i>n;n++){var l=r[n];if(s(e["line:start"])&&e["line:start"].call(this,l),l.events)for(var o=0,c=l.events.length;c>o;o++)s(e.event)&&e.event.call(this,l.events[o]);s(e["line:stop"])&&e["line:stop"].call(this,l)}s(e["group:stop"])&&e["group:stop"].call(this,a,r)}},r.prototype.render=function(){var t,e;this._process(this.body,{"line:start":function(a){var r=a["date-start"],n=a["date-end"];(!t||t>r)&&(t=r),(!e||n>e)&&(e=n)}});var a=t.getFullYear(),r=e.getFullYear()+2;t=new Date(a,0,1);for(var s=['
',"
    "],o=a,c=0;r>=o;o++,c++)s.push("
  1. ");s.push("
","
");var d=['
'],p=0;this._process(this.body,{"group:start":function(t){d.push('
',"","
    ")},"group:stop":function(){d.push("
","
")},"line:start":function(e){var a=e["date-start"],r=e["date-end"],s=n(a-t)+l;p=a;var i=n(r-a);8>i&&(i=8),d.push('
  • ',"
    ",'
      ')},"line:stop":function(t){d.push("
    ","","","
    ","
  • ")},event:function(t){var e=n(t["date-start"]-p),a=n(t["date-end"]-t["date-start"]);8>a&&(a=8,e-=4),d.push('
  • ')}});this._element.addClass("markline"),this._element.on("scroll",function(){var t=i(this),e=i("> header",this);e.css({left:t.scrollLeft(),bottom:-t.scrollTop()});var a=i(".dates",this);a.css({top:t.scrollTop()});var r=i(".groups > label",this);r.css({left:t.scrollLeft()-90})}),this._element.append(["
    ",this.title,"
    "].join("")),this._element.append(s.join("")),this._element.append(d.join(""))},a.exports=r}); \ No newline at end of file +define("markline/0.5.0/markline",["jquery/2.1.1/jquery"],function(t,e,a){function r(t){return"[object String]"===Object.prototype.toString.call(t)}function n(t,e){this.element=t;var a=o(e);this.timeline=new c(this.element,a)}function s(t){if(!t)return new Date;var e=/^(\d{4})(?:[/-](\d{1,2})(?:[/-](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2}))?)?)?)?)?$/,a=t.match(e);if(a){var r=a[1],n=parseInt(a[2]||1,10)-1,s=a[3]||1,i=a[4]||0,l=a[5]||0,o=a[6]||0;return new Date(r,n,s,i,l,o)}}function i(t){var e=/^\d{4}$/,a=/^\d{4}[\/\-]\d{1,2}$/,r=s(t);return e.test(t)?r.setYear(r.getFullYear()+1):a.test(t)&&(11===r.getMonth()?(r.setYear(r.getFullYear()+1),r.setMonth(0)):r.setMonth(r.getMonth()+1)),r}function l(t,e){var a=/!\[([^\]]*)\]\(([^\)]+)\)/g,r=/\[([^\]]*)\]\(([^\)]+)\)/g,n=/(\*\*|__)(.*?)\1/g,s=/(\*|_)(.*?)\1/g,i=/(\~\~?)(.*?)\1/g,l=/(^|[^a-zA-Z0-9])@([^\s\t,\(\)\[\]\{\}]+)/g,o=/\{@mention\}/gi,c=/(?:^|[\s\t])\#([^\s\t]+)/g,p=t.replace(a,'$1');return p=p.replace(r,'$1'),p=p.replace(n,"$2"),p=p.replace(s,"$2"),p=p.replace(i,"$2"),e.mention&&(p=p.replace(l,function(t,a,r){var n=e.mention||d;return a+'@'+r+""})),p=p.replace(c,function(t,a){var r,n=e.tags||e.tag||{};if(n.hasOwnProperty(a)){var s=(n[a]||"").split(/,[\s\t]+/),i=s[0],l=s[1];r=' style="color:'+i+";background-color:"+l+';"'}return'#"+a+""})}function o(t){function e(t){for(;d.body.hasOwnProperty(t);)t+=" ";y=l(t,d.meta),d.body[y]=[],b=!0}for(var a,n,o,c=t.split(/\r\n|\r|\n/),d={title:"",meta:{},body:{}},p=/^#\s+(.*)$/,u=/^[\-\*]\s+([^:]+):\s*(.*)$/,h=/^[\s\t]+[\-\*]\s+([^:]+):\s*(.*)$/,f=/^\-{2,}$/,m=/^##+\s+(.*)$/,v=/^[\*\-]\s+(([0-9\/\-]+)(?:~([0-9\/\-]*))?)\s+(.*)$/,g=/^\s+[\*\-]\s+(([0-9\/\-]+)(?:~([0-9\/\-]*))?)\s+(.*)$/,y="",b=!1,$=!1,j=0,_=c.length;_>j;j++){var w,k=c[j];if(w=k.match(p))d.title=l(w[1],d.meta);else if(!b&&(w=k.match(u))){var q=w[1],x=w[2];d.meta[q]=x,n=q,o=x,$=!0}else if(!b&&(w=k.match(h))){r(d.meta[n])&&(d.meta[n]={"default":o});var q=w[1],x=w[2];d.meta[n][q]=x,$=!0}else if(k.match(f))e("");else if(w=k.match(m)){var Y=w[1];e(Y)}else if(w=k.match(v)){d.body[y]||(d.body[y]=[]);var F=w[2],O=void 0===w[3]?F:w[3],M=w[4],D={date:w[1],"date-start":s(F),"date-end":i(O),name:l(M,d.meta),events:[]};d.body[y].push(D),a=D,b=!0}else if(w=k.match(g)){var P=w[1],S=w[2],T=void 0===w[3]?S:w[3],I=w[4];a.events.push({date:P,"date-start":s(S),"date-end":i(T),name:l(I,d.meta)}),b=!0}}return d}var c=t("markline/0.5.0/timeline"),d=(t("jquery/2.1.1/jquery"),"https://github.com/{@mention}");n.prototype.render=function(){this.timeline.render()},a.exports=n}),define("markline/0.5.0/timeline",["jquery/2.1.1/jquery"],function(t,e,a){function r(t,e){this._element=i(t),this.title=e.title||"",this.meta=e.meta||{},this.body=e.body||{}}function n(t){return parseInt(t/864e5*o/365.24,10)}function s(t){return"[object Function]"===Object.prototype.toString.call(t)}var i=t("jquery/2.1.1/jquery"),l=30,o=100;r.prototype._process=function(t,e){if(e)for(var a in t)if(t.hasOwnProperty(a)){var r=t[a];s(e["group:start"])&&e["group:start"].call(this,a,r);for(var n=0,i=r.length;i>n;n++){var l=r[n];if(s(e["line:start"])&&e["line:start"].call(this,l),l.events)for(var o=0,c=l.events.length;c>o;o++)s(e.event)&&e.event.call(this,l.events[o]);s(e["line:stop"])&&e["line:stop"].call(this,l)}s(e["group:stop"])&&e["group:stop"].call(this,a,r)}},r.prototype.render=function(){var t,e;this._process(this.body,{"line:start":function(a){var r=a["date-start"],n=a["date-end"];(!t||t>r)&&(t=r),(!e||n>e)&&(e=n)}});var a=t.getFullYear(),r=e.getFullYear()+2;t=new Date(a,0,1);for(var s=['
    ',"
      "],o=a,c=0;r>=o;o++,c++)s.push("
    1. ");s.push("
    ","
    ");var d=['
    '],p=0;this._process(this.body,{"group:start":function(t){d.push('
    ',"","
      ")},"group:stop":function(){d.push("
    ","
    ")},"line:start":function(e){var a=e["date-start"],r=e["date-end"],s=n(a-t)+l;p=a;var i=n(r-a);8>i&&(i=8),d.push('
  • ',"
    ",'
      ')},"line:stop":function(t){d.push("
    ","","","
    ","
  • ")},event:function(t){var e=n(t["date-start"]-p),a=n(t["date-end"]-t["date-start"]);8>a&&(a=8,e-=4),d.push('
  • ')}});this._element.addClass("markline"),this._element.on("scroll",function(){var t=i(this),e=i("> header",this);e.css({left:t.scrollLeft(),bottom:-t.scrollTop()});var a=i(".dates",this);a.css({top:t.scrollTop()});var r=i(".groups > label",this);r.css({left:t.scrollLeft()-90})}),this._element.append(["
    ",this.title,"
    "].join("")),this._element.append(s.join("")),this._element.append(d.join(""))},a.exports=r}); \ No newline at end of file diff --git a/template/assets/markline/0.4.0/timeline-debug.css b/template/assets/markline/0.5.0/timeline-debug.css similarity index 99% rename from template/assets/markline/0.4.0/timeline-debug.css rename to template/assets/markline/0.5.0/timeline-debug.css index 11a02de..201eec6 100644 --- a/template/assets/markline/0.4.0/timeline-debug.css +++ b/template/assets/markline/0.5.0/timeline-debug.css @@ -210,7 +210,7 @@ .markline .tags { height: 20px; margin: 0 5px; - padding: 0 5px 2px 15px; + padding: 0 5px 0 15px; display: inline-block; -moz-border-radius:100% 3px 3px 100%; -khtml-border-radius:100% 3px 3px 100%; diff --git a/template/assets/markline/0.4.0/timeline-debug.js b/template/assets/markline/0.5.0/timeline-debug.js similarity index 93% rename from template/assets/markline/0.4.0/timeline-debug.js rename to template/assets/markline/0.5.0/timeline-debug.js index 0508a9f..b647a4e 100644 --- a/template/assets/markline/0.4.0/timeline-debug.js +++ b/template/assets/markline/0.5.0/timeline-debug.js @@ -1,16 +1,16 @@ -define("markline/0.4.0/timeline-debug", ["jquery/2.1.1/jquery-debug"], function(require, exports, module) { +define("markline/0.5.0/timeline-debug", ["jquery/2.1.1/jquery-debug"], function(require, exports, module) { var $ = require("jquery/2.1.1/jquery-debug"); - var offset_left = 30; - var offset_top = 20; - var year_width = 100; - + var offset_left = 30; // offset left for group name. + var offset_top = 20; // offset top for date header. + var year_width = 100; // width per date (year). function Markline(element, data) { this._element = $(element); this.title = data.title || ""; this.meta = data.meta || {}; this.body = data.body || {}; } - + // @param {Number} distance, two date distance milliseconds. + // @return {Number} line width. function calcLength(distance) { return parseInt((distance / (24 * 60 * 60 * 1000)) * year_width / 365.24, 10); } diff --git a/template/assets/markline/0.4.0/timeline.css b/template/assets/markline/0.5.0/timeline.css similarity index 94% rename from template/assets/markline/0.4.0/timeline.css rename to template/assets/markline/0.5.0/timeline.css index 1d6da80..ebc91f9 100644 --- a/template/assets/markline/0.4.0/timeline.css +++ b/template/assets/markline/0.5.0/timeline.css @@ -1 +1 @@ -.markline{background:#333;color:#ccc;position:relative;font-size:13px;min-width:500px;height:100%;-moz-border-radius:2px;-khtml-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;overflow:auto}.markline>header{position:absolute;left:0;bottom:0;margin:0 0 10px 30px;font-size:2em;color:rgba(153,153,153,.3);white-space:nowrap;z-index:99;cursor:default;transition:color .5s ease-in-out;-webkit-transition:color .5s ease-in-out;-moz-transition:color .5s ease-in-out;-o-transition:color .5s ease-in-out}.markline>header:hover{color:#999}.markline>header>a{color:rgba(110,163,208,.3);text-decoration:none;transition:color .5s ease-in-out;-webkit-transition:color .5s ease-in-out;-moz-transition:color .5s ease-in-out;-o-transition:color .5s ease-in-out}.markline>header>a:hover{border-bottom:1px solid rgba(110,163,208,.5)}.markline>header:hover>a{color:#6EA3D0}.markline>.dates{position:absolute;top:0;left:0;white-space:nowrap;height:100%}.markline>.dates>ol,.markline>.dates>ol>li{list-style:none;margin:0;padding:0;height:100%}.markline>.dates>ol>li{display:inline-block;box-sizing:border-box;width:100px;border-left:1px dashed rgba(255,255,255,.2);text-align:center}.markline>.dates>ol>li:first-child{margin-left:30px}.markline>.dates>ol>li>label,.markline>.groups>ol>li>label{background-color:#333;display:block}.markline>.dates>ol>li>label{position:relative}.markline,.markline>.dates>ol>li{min-height:400px}.markline>.events{position:absolute;top:30px;left:0}.markline>.events ol,.markline>.events ol>li{list-style:none;margin:0;padding:0}.markline>.events ol>li{white-space:nowrap;position:relative}.markline>.events>.groups{margin:10px 0;padding:10px 0;position:relative}.markline>.events>.groups>label{position:absolute;left:-90px;top:100px;text-align:right;width:200px;overflow:hidden;-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);z-index:102;background-color:#333}.markline>.events>.groups>ol>li>div{display:inline-block;background:rgba(51,51,51,.4);position:relative;padding-right:20px;z-index:101;-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px}.markline>.events>.groups>ol>li>div>ol{white-space:nowrap;border:0;background-color:#999;height:8px;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;vertical-align:middle;margin-right:5px;display:inline-block;position:relative}.markline>.events>.groups>ol>li>div:hover>ol{background-color:#ccc}.markline>.events>.groups>ol>li>div>label,.markline>.events>.groups>ol>li>div>time{padding:2px 5px}.markline>.events>.groups>ol>li>div:hover>label,.markline>.events>.groups>ol>li>div:hover>time{color:#fff}.markline>.events>.groups>ol>li>div>ol>li{width:8px;height:8px;font-size:0;border:0;background-color:#ccc;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;position:absolute;top:0;left:0;overflow:hidden;text-indent:-10000px;cursor:pointer}.markline>.events>.groups>ol>li>div:hover>ol>li{background-color:#fff;z-index:100}.markline>.events>.groups>ol>li>div>ol>li:hover{background-color:#333;border:1px solid #ccc;margin-top:-1px;margin-left:-1px;-moz-border-radius:5px;-khtml-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.markline>.events del{font-style:italic;color:#999}.markline>.events a{color:#6EA3D0;text-decoration:none}.markline>.events a:hover{border-bottom:1px solid #6EA3D0}.markline>.events a.img{border:0;display:inline-block;width:12px;height:12px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0F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prMi0aDQViDYDEYfAjNG202BVmLLyGCSSxiWDBrEdEg6gs4up9h/4FhYXVm9sAPP5fLuecc7klUxkEK7AM5YIM5TRxIuAJugnAUcuAB6ANLQAvYwQFaKhVmRV2LPVM/U+AbmKtg9wC4A66BDjAF5GmNvDZL+3rY7Y8iWASOhs72gHvgOYLPgAw1V7dLPqfVl8jm4o88VtX3QsFE6aVLYDb2NnAOLAC3QHdIlag/ajtYu/6Pw7i7rH4UFmbUDatjN0heUR/VE/XLejhWe4n6BMw3rMJb8ZUbYxI4A7aiHHWL2EvGrfPvAAhpVNB/Tr+2AAAAAElFTkSuQmCC) center center/cover no-repeat;margin:-1px 3px 0;vertical-align:middle;text-indent:1000px;overflow:hidden}.markline:after{content:"\0020";display:block;height:0;clear:both}.markline{zoom:1}.clearfix:after{content:"\0020";display:block;height:0;clear:both}.clearfix{zoom:1}.markline .tags{height:20px;margin:0 5px;padding:0 5px 2px 15px;display:inline-block;-moz-border-radius:100% 3px 3px 100%;-khtml-border-radius:100% 3px 3px 100%;-webkit-border-radius:100% 3px 3px 100%;border-radius:100% 3px 3px 100%;position:relative;color:#eee;background-color:#96f}.markline .tags:before{position:absolute;content:"";left:5px;top:50%;margin-top:-3px;width:6px;height:6px;background:#eee;-moz-border-radius:100%;-khtml-border-radius:100%;-webkit-border-radius:100%;border-radius:100%} \ No newline at end of file +.markline{background:#333;color:#ccc;position:relative;font-size:13px;min-width:500px;height:100%;-moz-border-radius:2px;-khtml-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;overflow:auto}.markline>header{position:absolute;left:0;bottom:0;margin:0 0 10px 30px;font-size:2em;color:rgba(153,153,153,.3);white-space:nowrap;z-index:99;cursor:default;transition:color .5s ease-in-out;-webkit-transition:color .5s ease-in-out;-moz-transition:color .5s ease-in-out;-o-transition:color .5s ease-in-out}.markline>header:hover{color:#999}.markline>header>a{color:rgba(110,163,208,.3);text-decoration:none;transition:color .5s ease-in-out;-webkit-transition:color .5s ease-in-out;-moz-transition:color .5s ease-in-out;-o-transition:color .5s ease-in-out}.markline>header>a:hover{border-bottom:1px solid rgba(110,163,208,.5)}.markline>header:hover>a{color:#6EA3D0}.markline>.dates{position:absolute;top:0;left:0;white-space:nowrap;height:100%}.markline>.dates>ol,.markline>.dates>ol>li{list-style:none;margin:0;padding:0;height:100%}.markline>.dates>ol>li{display:inline-block;box-sizing:border-box;width:100px;border-left:1px dashed rgba(255,255,255,.2);text-align:center}.markline>.dates>ol>li:first-child{margin-left:30px}.markline>.dates>ol>li>label,.markline>.groups>ol>li>label{background-color:#333;display:block}.markline>.dates>ol>li>label{position:relative}.markline,.markline>.dates>ol>li{min-height:400px}.markline>.events{position:absolute;top:30px;left:0}.markline>.events ol,.markline>.events ol>li{list-style:none;margin:0;padding:0}.markline>.events ol>li{white-space:nowrap;position:relative}.markline>.events>.groups{margin:10px 0;padding:10px 0;position:relative}.markline>.events>.groups>label{position:absolute;left:-90px;top:100px;text-align:right;width:200px;overflow:hidden;-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);z-index:102;background-color:#333}.markline>.events>.groups>ol>li>div{display:inline-block;background:rgba(51,51,51,.4);position:relative;padding-right:20px;z-index:101;-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px}.markline>.events>.groups>ol>li>div>ol{white-space:nowrap;border:0;background-color:#999;height:8px;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;vertical-align:middle;margin-right:5px;display:inline-block;position:relative}.markline>.events>.groups>ol>li>div:hover>ol{background-color:#ccc}.markline>.events>.groups>ol>li>div>label,.markline>.events>.groups>ol>li>div>time{padding:2px 5px}.markline>.events>.groups>ol>li>div:hover>label,.markline>.events>.groups>ol>li>div:hover>time{color:#fff}.markline>.events>.groups>ol>li>div>ol>li{width:8px;height:8px;font-size:0;border:0;background-color:#ccc;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;position:absolute;top:0;left:0;overflow:hidden;text-indent:-10000px;cursor:pointer}.markline>.events>.groups>ol>li>div:hover>ol>li{background-color:#fff;z-index:100}.markline>.events>.groups>ol>li>div>ol>li:hover{background-color:#333;border:1px solid #ccc;margin-top:-1px;margin-left:-1px;-moz-border-radius:5px;-khtml-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.markline>.events del{font-style:italic;color:#999}.markline>.events a{color:#6EA3D0;text-decoration:none}.markline>.events a:hover{border-bottom:1px solid #6EA3D0}.markline>.events a.img{border:0;display:inline-block;width:12px;height:12px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiT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ElFTkSuQmCC) center center/cover no-repeat;margin:-1px 3px 0;vertical-align:middle;text-indent:1000px;overflow:hidden}.markline:after{content:"\0020";display:block;height:0;clear:both}.markline{zoom:1}.clearfix:after{content:"\0020";display:block;height:0;clear:both}.clearfix{zoom:1}.markline .tags{height:20px;margin:0 5px;padding:0 5px 0 15px;display:inline-block;-moz-border-radius:100% 3px 3px 100%;-khtml-border-radius:100% 3px 3px 100%;-webkit-border-radius:100% 3px 3px 100%;border-radius:100% 3px 3px 100%;position:relative;color:#eee;background-color:#96f}.markline .tags:before{position:absolute;content:"";left:5px;top:50%;margin-top:-3px;width:6px;height:6px;background:#eee;-moz-border-radius:100%;-khtml-border-radius:100%;-webkit-border-radius:100%;border-radius:100%} \ No newline at end of file diff --git a/template/assets/markline/0.4.0/timeline.js b/template/assets/markline/0.5.0/timeline.js similarity index 97% rename from template/assets/markline/0.4.0/timeline.js rename to template/assets/markline/0.5.0/timeline.js index 59e5dd7..3a4ce6d 100644 --- a/template/assets/markline/0.4.0/timeline.js +++ b/template/assets/markline/0.5.0/timeline.js @@ -1 +1 @@ -define("markline/0.4.0/timeline",["jquery/2.1.1/jquery"],function(t,e,s){function l(t,e){this._element=n(t),this.title=e.title||"",this.meta=e.meta||{},this.body=e.body||{}}function i(t){return parseInt(t/864e5*o/365.24,10)}function a(t){return"[object Function]"===Object.prototype.toString.call(t)}var n=t("jquery/2.1.1/jquery"),r=30,o=100;l.prototype._process=function(t,e){if(e)for(var s in t)if(t.hasOwnProperty(s)){var l=t[s];a(e["group:start"])&&e["group:start"].call(this,s,l);for(var i=0,n=l.length;n>i;i++){var r=l[i];if(a(e["line:start"])&&e["line:start"].call(this,r),r.events)for(var o=0,p=r.events.length;p>o;o++)a(e.event)&&e.event.call(this,r.events[o]);a(e["line:stop"])&&e["line:stop"].call(this,r)}a(e["group:stop"])&&e["group:stop"].call(this,s,l)}},l.prototype.render=function(){var t,e;this._process(this.body,{"line:start":function(s){var l=s["date-start"],i=s["date-end"];(!t||t>l)&&(t=l),(!e||i>e)&&(e=i)}});var s=t.getFullYear(),l=e.getFullYear()+2;t=new Date(s,0,1);for(var a=['
    ',"
      "],o=s,p=0;l>=o;o++,p++)a.push("
    1. ");a.push("
    ","
    ");var h=['
    '],d=0;this._process(this.body,{"group:start":function(t){h.push('
    ',"","
      ")},"group:stop":function(){h.push("
    ","
    ")},"line:start":function(e){var s=e["date-start"],l=e["date-end"],a=i(s-t)+r;d=s;var n=i(l-s);8>n&&(n=8),h.push('
  • ',"
    ",'
      ')},"line:stop":function(t){h.push("
    ","","","
    ","
  • ")},event:function(t){var e=i(t["date-start"]-d),s=i(t["date-end"]-t["date-start"]);8>s&&(s=8,e-=4),h.push('
  • ')}});this._element.addClass("markline"),this._element.on("scroll",function(){var t=n(this),e=n("> header",this);e.css({left:t.scrollLeft(),bottom:-t.scrollTop()});var s=n(".dates",this);s.css({top:t.scrollTop()});var l=n(".groups > label",this);l.css({left:t.scrollLeft()-90})}),this._element.append(["
    ",this.title,"
    "].join("")),this._element.append(a.join("")),this._element.append(h.join(""))},s.exports=l}); \ No newline at end of file +define("markline/0.5.0/timeline",["jquery/2.1.1/jquery"],function(t,e,s){function l(t,e){this._element=n(t),this.title=e.title||"",this.meta=e.meta||{},this.body=e.body||{}}function i(t){return parseInt(t/864e5*o/365.24,10)}function a(t){return"[object Function]"===Object.prototype.toString.call(t)}var n=t("jquery/2.1.1/jquery"),r=30,o=100;l.prototype._process=function(t,e){if(e)for(var s in t)if(t.hasOwnProperty(s)){var l=t[s];a(e["group:start"])&&e["group:start"].call(this,s,l);for(var i=0,n=l.length;n>i;i++){var r=l[i];if(a(e["line:start"])&&e["line:start"].call(this,r),r.events)for(var o=0,p=r.events.length;p>o;o++)a(e.event)&&e.event.call(this,r.events[o]);a(e["line:stop"])&&e["line:stop"].call(this,r)}a(e["group:stop"])&&e["group:stop"].call(this,s,l)}},l.prototype.render=function(){var t,e;this._process(this.body,{"line:start":function(s){var l=s["date-start"],i=s["date-end"];(!t||t>l)&&(t=l),(!e||i>e)&&(e=i)}});var s=t.getFullYear(),l=e.getFullYear()+2;t=new Date(s,0,1);for(var a=['
    ',"
      "],o=s,p=0;l>=o;o++,p++)a.push("
    1. ");a.push("
    ","
    ");var h=['
    '],d=0;this._process(this.body,{"group:start":function(t){h.push('
    ',"","
      ")},"group:stop":function(){h.push("
    ","
    ")},"line:start":function(e){var s=e["date-start"],l=e["date-end"],a=i(s-t)+r;d=s;var n=i(l-s);8>n&&(n=8),h.push('
  • ',"
    ",'
      ')},"line:stop":function(t){h.push("
    ","","","
    ","
  • ")},event:function(t){var e=i(t["date-start"]-d),s=i(t["date-end"]-t["date-start"]);8>s&&(s=8,e-=4),h.push('
  • ')}});this._element.addClass("markline"),this._element.on("scroll",function(){var t=n(this),e=n("> header",this);e.css({left:t.scrollLeft(),bottom:-t.scrollTop()});var s=n(".dates",this);s.css({top:t.scrollTop()});var l=n(".groups > label",this);l.css({left:t.scrollLeft()-90})}),this._element.append(["
    ",this.title,"
    "].join("")),this._element.append(a.join("")),this._element.append(h.join(""))},s.exports=l}); \ No newline at end of file diff --git a/template/index.html b/template/index.html index 5b82540..516558e 100644 --- a/template/index.html +++ b/template/index.html @@ -13,14 +13,14 @@ font-family: Helvetica, Arial, sans-serif; } - +