मीडियाविकि:Gadget-DottoPV.js
सूचना: यह पृष्ठ सुरक्षित करने बाद, परिवर्तनों को देखने लिए ब्राउज़र का कैश ख़ाली करने की आवश्यकता हो सकती है।
- मोज़िला / फ़ायरफ़ॉक्स / सफ़ारी: shift hold करें जब आप reload क्लिक करते है, या Ctrl-Shift-R (अपल मैक में Cmd-Shift-R) दबाएँ;
- गूगल क्रोम: Ctrl-shift-R (मैक में Cmd-Shift-R) दबाएँ
- इंटरनेट एक्सप्लोरर: Ctrl hold करें जब आप refresh क्लिक करते हैं, या Ctrl-F5 क्लिक करते हैं;
- कॉङ्करर: सिर्फ़ Reload बटन पर क्लिक करें, या F5 क्लिक करें;
- ऑपरा सदस्य को Tools→Preferences में सम्पूर्ण कैश ख़ाली करने की ज़रूरत हो सकती है।
/**
* +-------------------------------------------------------------------------+
* | === WARNING: GLOBAL GADGET FILE === |
* | Changes to this page affect many users. |
* +-------------------------------------------------------------------------+
*
* Converts Dot into Devnagari Poorna Viram in editor
* script written by [[User:Sfic]]
*/
//<nowiki>
( function ( window, document, $, undefined ) { // Wrap with anonymous function
var hindifullstop = "enable";
$("#wpTextbox1").keyup(function (e) {
if ("enable" == hindifullstop) {
var t = ". ",
n = "। ",
l = t.replace(/([\\.*+?|()\[\]{}])/g, "\\$1"),
i = $(this).prop("selectionStart"),
s = $(this).val(),
a = s.substring(i - t.length, i);
if (new RegExp(l).test(a) === !0) {
var o = s.substring(0, i - t.length) + n + s.substring(i);
$(this).val(o);
var h = i - t.length + n.length;
this.setSelectionRange(h, h)
}
}
}), $(document.body).keyup(function (e) {
e.ctrlKey && 190 == e.keyCode && (hindifullstop = "enable" == hindifullstop ? "disable" : "enable")
});
} ( window, document, jQuery )); // End wrap with anonymous function
// </nowiki>