User:GALLAHAN/common.js: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 December 2023

  • curprev 17:5817:58, 29 December 2023GALLAHAN talk contribs 1,130 bytes +1,130 Created page with "// Select all text inside of the element(s) calling this. jQuery.fn.selectText = function(){ var doc = document; var element = this[0]; //console.log(this, element); if (doc.body.createTextRange) { var range = document.body.createTextRange(); range.moveToElementText(element); range.select(); } else if (window.getSelection) { var selection = window.getSelection(); var range = document.createRange();..."