PageSourceSearch

https://aussiefloyd.com/ScriptResource.axd?d=KarKye5Ral2FR-p19l946…Jq65VZL-Zk1ZT59spjLzzpyfUZujZFI1&t=51e37521

js aussiefloyd.com collected 2026-10-02 06:18:41 UTC 2,670 bytes, 63 lines download raw bytes

1// Name:        HTMLEditor.Toolbar_buttons.FontName.debug.js
2// Assembly:    AjaxControlToolkit
3// Version:     4.1.7.1213
4// FileVersion: 4.1.7.1213
5Type.registerNamespace("Sys.Extended.UI.HTMLEditor.ToolbarButton");
6
7Sys.Extended.UI.HTMLEditor.ToolbarButton.FontName = function(element) {
8    Sys.Extended.UI.HTMLEditor.ToolbarButton.FontName.initializeBase(this, [element]);
9}
10
11Sys.Extended.UI.HTMLEditor.ToolbarButton.FontName.prototype = {
12    initialize : function() {
13        Sys.Extended.UI.HTMLEditor.ToolbarButton.FontName.callBaseMethod(this, "initialize");
14    },
15    
16    callMethod : function(select,event) {
17        if(!Sys.Extended.UI.HTMLEditor.ToolbarButton.FontName.callBaseMethod(this, "callMethod")) return false;
18
19        try {
20            var editor = this._designPanel;
21            editor._execCommand("fontname",false,select.options.item(select.selectedIndex).value);
22        } catch(e) {}
23    },
24    
25    checkState : function() {
26        if(!Sys.Extended.UI.HTMLEditor.ToolbarButton.FontName.callBaseMethod(this, "checkState")) return false;
27    
28        var editor = this._designPanel;
29        var param =null;
30        try{param = (Function.createDelegate(editor, Sys.Extended.UI.HTMLEditor._queryCommandValue))("fontname");} catch(e){}
31
32        if(!editor._FontNotSet)
33        if(!param || param.length==0) {
34            param = Sys.Extended.UI.HTMLEditor.getStyle(editor._doc.body,"font-family");
35        }
36
37        var el   = this._select;
38        var i=0;
39        if(param && param.length > 0) {
40            var seek = param.toLowerCase().split(",")[0].replace(/^(['"])/,"").replace(/(['"])$/,"");
41
42            for(i=0; i< el.options.length; i++) {
43                var cur = el.options.item(i).value.toLowerCase().split(",")[0];
44                if(cur==seek) break
45            }
46            if(i==el.options.length) {
47                try {
48                    var newopt = document.createElement("OPTION");
49                    newopt.value = param.replace(/^(['"])/,"").replace(/(['"])$/,"");
50                    newopt.text  = param.split(",")[0].replace(/^(['"])/,"").replace(/(['"])$/,"");
51                    el.add(newopt,(Sys.Extended.UI.HTMLEditor.isIE)?i:null);
52                    $addHandler(newopt, "click", this._onclick_option$delegate);
53                } catch(e) {
54                    i = 0;
55                }
56            }
57        }
58        el.selectedIndex = i;
59    }
60}
61
62Sys.Extended.UI.HTMLEditor.ToolbarButton.FontName.registerClass("Sys.Extended.UI.HTMLEditor.ToolbarButton.FontName", Sys.Extended.UI.HTMLEditor.ToolbarButton.DesignModeSelectButton);
63

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.