Tag: js
Metadata/Frontmatter of current note in Obsidian
August 3, 2021
Get the metadata or the frontmatter of the currently open note in Obsidian plugin development.
Get selected text in Obsidian
August 3, 2021
Getting the currently selected text when creating an Obsidian plugin
Get current file content in Obsidian
August 3, 2021
Get currently open file and content when developing a plugin for Obsidian
Finding the Factorial using Recursion
September 29, 2008
Finding the Factorial using Recursion in javascript. function factorial(x) { if(x
Chainable interface in JavaScript
October 28, 2007
Creating Chainable interfaces in javascript… (function() { function _init() { return this; } _init.prototype = { “myFunction”: function() { return…
Execute JavaScript files using Rhino
October 16, 2007
The command to execute a javascript file using rhino. java -jar /path/to/custom_rhino.jar JS_File.js Get Custom Rhino(From Dojo Library)
Find Element’s Position using JavaScript
June 23, 2007
Find the position of an element using javascript function findPos(obj) { var curleft = curtop = 0; if (obj.offsetParent) {…
Recent Comments