This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This tests if the localStorage is available or not. | |
* Alternatively, you can check how modernizr does it: | |
* https://github.com/Modernizr/Modernizr/blob/master/feature-detects/storage/localstorage.js | |
* | |
* If you check just (typeof window.Storage != "undefined"), | |
* it will not detect if the user is allowing localStorage or not. | |
* | |
* If you check (typeof window.localStorage != "undefined"), | |
* it will throw a SecurityException if the user has disallowed localStorage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* History manager. | |
* | |
* It can be used to keep track of application state. | |
* Can be used in places where an Undo/Redo framework doesn't quite fit. | |
* | |
* Can be used with Node.js or as a RequireJS modle. | |
* | |
* @version 0.0.1 | |
* @author TanelTM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="cordova.js"></script> | |
<script type="text/javascript"> | |
(function() { | |
var isDeviceReady = false; | |
var onDeviceReady = function() { | |
console.log('whenDeviceReady:onDeviceReady') | |
isDeviceReady = true | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var queryString='?reload='+new Date().getTime();$('link[rel="stylesheet"]').each(function(){this.href=this.href.replace(/\?.*|$/, queryString);})})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initial test data | |
var data = [ | |
[1, 2, 3], | |
[4, 5, 6], | |
[7, 8, 9], | |
]; | |
// First time this function is executed with just the input argument | |
// The input argument always has the test data and it doesn't change | |
// |
This is a CSS snippet for Obsidian.md to create a timeline in your daily notes.
To include the timeline in your daily note, add the following to your daily note template:
<div data-timeline="{{date:DDD}}"></div>
Preview can be found here: https://codepen.io/taneltm/pen/eYyeyBe