Skip to content

Commit 13e833f

Browse files
committed
Enhance dummy site for Timesheet show case
1 parent 481c00d commit 13e833f

File tree

7 files changed

+130
-10
lines changed

7 files changed

+130
-10
lines changed

dist/timesheet.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ var Timesheet = function () {
195195

196196
var p = new _parser2.default();
197197

198-
this.list = p.parse(html);
198+
this.list = p.Parse(html);
199199
}
200200

201201
// End returns the last end date of all bubbles
@@ -237,6 +237,11 @@ var Timesheet = function () {
237237

238238
exports.default = Timesheet;
239239

240+
241+
if (window) {
242+
window.Timesheet = Timesheet;
243+
}
244+
240245
},{"./parser":4}],4:[function(require,module,exports){
241246
'use strict';
242247

@@ -281,8 +286,8 @@ var Parser = function () {
281286
}
282287

283288
_createClass(Parser, [{
284-
key: 'parse',
285-
value: function parse(html) {
289+
key: 'Parse',
290+
value: function Parse(html) {
286291
var dateStart = void 0,
287292
dateEnd = void 0,
288293
label = void 0,

dist/timesheet.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_includes/head.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,14 @@
1414

1515
<link rel="preload" href="{{ "/assets/styles/main.css" | prepend: site.baseurl }}" as="style" onload="this.rel='stylesheet'">
1616
<noscript><link rel="stylesheet" href="{{ "/assets/styles/main.css" | prepend: site.baseurl }}"></noscript>
17+
18+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,800">
19+
<script type="text/javascript" src="./assets/dist/timesheet.js"></script>
20+
<script type="text/javascript">
21+
function ready(f){/in/.test(document.readyState)?setTimeout('ready('+f+')',9):f()};
22+
23+
ready(function() {
24+
new Timesheet(document.querySelector('.timesheet'));
25+
});
26+
</script>
1727
</head>

docs/assets/dist/timesheet.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ var Timesheet = function () {
195195

196196
var p = new _parser2.default();
197197

198-
this.list = p.parse(html);
198+
this.list = p.Parse(html);
199199
}
200200

201201
// End returns the last end date of all bubbles
@@ -237,6 +237,11 @@ var Timesheet = function () {
237237

238238
exports.default = Timesheet;
239239

240+
241+
if (window) {
242+
window.Timesheet = Timesheet;
243+
}
244+
240245
},{"./parser":4}],4:[function(require,module,exports){
241246
'use strict';
242247

@@ -281,8 +286,8 @@ var Parser = function () {
281286
}
282287

283288
_createClass(Parser, [{
284-
key: 'parse',
285-
value: function parse(html) {
289+
key: 'Parse',
290+
value: function Parse(html) {
286291
var dateStart = void 0,
287292
dateEnd = void 0,
288293
label = void 0,

0 commit comments

Comments
 (0)